Package: src:sqlite3 Version: 3.8.2-1 Severity: serious Tags: patch Justification: fails to build from source
Dear Maintainer, With the new tcl8.5 in experimental the flags passed to configure must be updated. This patch does just that. Also included is a small patch to remove chrpath usage on cross compilation. For the case x86_64 -> or1k chrpath does not handle the ELF format and fails. *** sqlite3-cross.patch --- ../t/sqlite3-3.8.2/debian/rules 2013-09-07 06:27:48.000000000 +0000 +++ debian/rules 2014-02-10 04:48:34.676551819 +0000 @@ -20,11 +20,15 @@ export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +# Keep --with-tcl to explicitly state where tclConfig is, otherwise configure +# might find it in weird places. +confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) \ + LDFLAGS=-L/usr/lib/$(DEB_HOST_GNU_TYPE) \ + --with-tcl=/usr/lib/tcl8.5 + ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) - confflags += --build $(DEB_HOST_GNU_TYPE) --with-tcl=/usr/lib/tcl8.5 export CROSS_BUILDING=no else - confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) --with-tcl=/usr/$(DEB_HOST_GNU_TYPE)/lib/tcl8.5 LDFLAGS=-L/usr/$(DEB_HOST_GNU_TYPE)/lib export CROSS_BUILDING=yes endif @@ -86,8 +90,10 @@ dh_testroot $(MAKE) install DESTDIR=$(DESTDIR) +ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) chrpath -d $(DESTDIR)/usr/bin/sqlite3 chrpath -d $(DESTDIR)/usr/lib/tcltk/sqlite3/libtclsqlite3.so +endif install -m 0664 libtclsqlite3.la $(DESTDIR)/usr/lib/tcltk/sqlite3/ install -d $(DESTDIR)/usr/share/lemon install -m 0664 tool/lempar.c $(DESTDIR)/usr/share/lemon/ -- System Information: Debian Release: 7.2 Architecture: amd64 (x86_64) Foreign Architectures: or1k Kernel: Linux 3.12-1-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org