Package: libsqlite3-0 Version: 3.27.2-1 Severity: minor Tags: patch Dear Maintainer,
If csv.so will be installed, sqlite3 will FTCBFS, as cvs.so is compiled with "build" compiler instead of "host"/"target" compiler. (It would trigger failure at dh_strip; and, of course, in anything that would try to use this miscompiled csv.so; but currently it is only compiled, but never used, so mistake never noticed). Patch attached. P.S. FTR, as of now (sqlite3 3.25.3 or 3.26.0+fossil), the bug on single-column csv files that was mentioned at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=900277#17 seems fixed. -- System Information: Debian Release: 9.6 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'proposed-updates'), (500, 'stable') Architecture: i386 (x86_64) Foreign Architectures: amd64 Kernel: Linux 4.9.0-6-amd64 (SMP w/2 CPU cores) Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R), LANGUAGE=ru_RU.KOI8-R (charmap=KOI8-R) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages libsqlite3-0:i386 depends on: ii libc6 2.24-11+deb9u3 libsqlite3-0:i386 recommends no packages. libsqlite3-0:i386 suggests no packages. -- no debconf information
--- sqlite3-3.26.0+fossilbc891ac6b/debian/rules-dist 2018-06-06 00:47:02.000000000 +0300 +++ sqlite3-3.26.0+fossilbc891ac6b/debian/rules 2019-01-14 20:14:26.867517570 +0300 @@ -30,6 +30,12 @@ export CROSS_BUILDING=yes endif +ifeq ($(origin CC),default) + HOST_CC ?= $(DEB_HOST_GNU_TYPE)-gcc +else + HOST_CC ?= $(CC) +endif + export CFLAGS += -O2 -fno-strict-aliasing \ -DSQLITE_SECURE_DELETE -DSQLITE_ENABLE_COLUMN_METADATA \ -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS \ @@ -80,7 +86,7 @@ ifneq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) $(MAKE) lemon endif - cd ext/misc && $(CC) -g -fPIC -I../.. -shared csv.c -o csv.so + cd ext/misc && $(HOST_CC) $(LDFLAGS) $(CPPFLAGS) $(CFLAGS) -g -fPIC -I../.. -shared csv.c -o csv.so touch $@