Bug#746058: sqlite: FTBFS: /bin/sh: 1: tclsh: not found
Package: src:sqlite Followup-For: Bug #746058 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". Ian. -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#746058: sqlite: FTBFS: /bin/sh: 1: tclsh: not found
tags 746058 +patch thanks the unversioned "tclsh" binary is no longer supplied by tcl- packages, only by the tcl package (from source tcltk-defaults) hence this failure. I first tried building with the tcl package installed but that failed with a segfault which I put down to version mismatches (admittedly this was in an arm64 qemu chroot so ymmv). I looked at patching the upstream source but it looked pretty involved. So I then took the approach of creating a directory under the build tree with a tclsh symlink in it pointing at the system's tclsh8.5 binary. While I was there I also fixed an issue with incomplete cleanup in the clean target that I ran into. Debdiff attatched and uploaded to debian-ports arm64. No immediate intent to NMU in debian proper. diff -Nru sqlite-2.8.17/debian/changelog sqlite-2.8.17/debian/changelog --- sqlite-2.8.17/debian/changelog 2014-01-06 15:20:30.0 + +++ sqlite-2.8.17/debian/changelog 2014-05-25 22:38:51.0 +0100 @@ -1,3 +1,10 @@ +sqlite (2.8.17-10+arm64) unreleased; urgency=medium + + * Add code in debian/rules to make build use appropriate tclsh. + * Fix clean target. + + -- Peter Michael Green Sun, 25 May 2014 21:31:36 + + sqlite (2.8.17-10) unstable; urgency=low * Update Standards-Version to 3.9.5 . diff -Nru sqlite-2.8.17/debian/rules sqlite-2.8.17/debian/rules --- sqlite-2.8.17/debian/rules 2014-01-06 15:12:07.0 + +++ sqlite-2.8.17/debian/rules 2014-05-25 22:51:49.0 +0100 @@ -4,6 +4,8 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +export PATH:=$(CURDIR)/bin:$(PATH) + CONFIGURE_EXTRA_FLAGS = config_TARGET_TCL_INC="-I/usr/include/tcl8.5" \ config_BUILD_CFLAGS="$(CFLAGS) -DTHREADSAFE=1" \ config_TARGET_LIBS="-ltcl8.5 -lpthread" \ @@ -12,8 +14,12 @@ override_dh_clean: dh_autotools-dev_restoreconfig dh_clean + rm -rf bin + rm -f index.html override_dh_auto_configure: + mkdir bin + ln -s $(shell which tclsh8.5) bin/tclsh dh_autotools-dev_updateconfig dh_auto_configure -- $(CONFIGURE_EXTRA_FLAGS)
Bug#746058: sqlite: FTBFS: /bin/sh: 1: tclsh: not found
Source: sqlite Version: 2.8.17-10 Severity: serious Tags: jessie sid User: debian...@lists.debian.org Usertags: qa-ftbfs-20140426 qa-ftbfs Justification: FTBFS on amd64 Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part (hopefully): > ar cru .libs/libtclsqlite.a tclsqlite.o > ranlib .libs/libtclsqlite.a > creating libtclsqlite.la > (cd .libs && rm -f libtclsqlite.la && ln -s ../libtclsqlite.la > libtclsqlite.la) > cat ./src/attach.c ./src/auth.c ./src/btree.c ./src/btree.h ./src/btree_rb.c > ./src/build.c ./src/copy.c ./src/date.c ./src/delete.c ./src/encode.c > ./src/expr.c ./src/func.c ./src/hash.c ./src/hash.h ./src/insert.c > ./src/main.c ./src/os.c ./src/pager.c ./src/pager.h ./src/parse.y > ./src/pragma.c ./src/printf.c ./src/random.c ./src/select.c ./src/shell.c > ./src/sqlite.h.in ./src/sqliteInt.h ./src/table.c ./src/tclsqlite.c > ./src/tokenize.c ./src/trigger.c ./src/update.c ./src/util.c ./src/vacuum.c > ./src/vdbe.c ./src/vdbeaux.c ./src/vdbe.h ./src/where.c | grep '$Id: ' | sort > +4 | tail -1 \ > | awk '{print $5,$6}' >last_change > sort: cannot read: +4: No such file or directory > tclsh ./www/index.tcl `cat ./VERSION` >index.html > /bin/sh: 1: tclsh: not found > make[2]: *** [index.html] Error 127 The full build log is available from: http://aws-logs.debian.net/ftbfs-logs/2014/04/26/sqlite_2.8.17-10_unstable.log A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute! About the archive rebuild: The rebuild was done on EC2 VM instances from Amazon Web Services, using a clean, minimal and up-to-date chroot. Every failed build was retried once to eliminate random failures. -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org