File: 04-fix-sort-syntax.patch

package info (click to toggle)
sqlite 2.8.17-14
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 4,716 kB
  • ctags: 3,107
  • sloc: ansic: 32,407; tcl: 10,821; sh: 7,775; yacc: 677; makefile: 385; awk: 62
file content (22 lines) | stat: -rw-r--r-- 740 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: obsolete command line syntax
 As well as the tclsh issue the log also shows:
 sort: cannot read: +4: No such file or directory
 Which seems to be down to the use of an obsolete command line syntax.
 Seemingly the supported syntax is "sort -k 4".
Author: Ian Campbell <ijc@hellion.org.uk>
Bug-Debian: http://bugs.debian.org/746058
Last-Update: 2014-05-28

---

--- sqlite-2.8.17.orig/Makefile.in
+++ sqlite-2.8.17/Makefile.in
@@ -183,7 +183,7 @@ Makefile: $(TOP)/Makefile.in
 # of the most recently modified source code file
 #
 last_change:	$(SRC)
-	cat $(SRC) | grep '$$Id: ' | sort +4 | tail -1 \
+	cat $(SRC) | grep '$$Id: ' | sort -k 4 | tail -1 \
           | awk '{print $$5,$$6}' >last_change
 
 libsqlite.la:	$(LIBOBJ)