From 0a8a93b9a06da7477cc764176ffd6115d1d9ccbe Mon Sep 17 00:00:00 2001 From: Andrej Shadura Date: Tue, 8 Jan 2019 18:27:08 +0100 Subject: Disable the build script on: mips mipsel powerpc powerpcspe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I was going to say: — Fsck it, I’m not going to fix build on those broken architectures. But then I found https://bugs.debian.org/897086. Seems it can be worked around by disabling version scripts on just those architectures. --- checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... configure: error: in `/<>': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details --- configure:2772: checking whether we are cross compiling configure:2780: gcc -o conftest -g -O2 -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,--version-script=/<>/debian/version-script conftest.c >&5 configure:2784: $? = 0 configure:2791: ./conftest ./configure: line 2793: 26989 Segmentation fault ./conftest$ac_cv_exeext configure:2795: $? = 139 configure:2802: error: in `/<>': configure:2804: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. --- --- debian/changelog | 6 ++++++ debian/rules | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/debian/changelog b/debian/changelog index 9fe069b..9f4722d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +libguess (1.2-4) unstable; urgency=medium + + * Disable the version script on mips mipsel powerpc powerpcspe. + + -- Andrej Shadura Tue, 08 Jan 2019 18:40:41 +0100 + libguess (1.2-3) unstable; urgency=medium * Use debhelper-compat = 12, bump S-V. diff --git a/debian/rules b/debian/rules index 755fc58..d5d21d8 100755 --- a/debian/rules +++ b/debian/rules @@ -1,8 +1,12 @@ #!/usr/bin/make -f +include /usr/share/dpkg/architecture.mk + export CFLAGS := $(shell dpkg-buildflags --get CFLAGS) export CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS) +ifeq ($(filter $(DEB_HOST_ARCH),mips mipsel powerpc powerpcspe),) export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--version-script=$(CURDIR)/debian/version-script +endif export ACLOCAL := aclocal -I m4 -- cgit v1.2.3