Article View: linux.debian.bugs.dist
Article #3862Bug#1153492: gecode FTBCFS: uses build architecture build tools
From: Helmut Grohne
Date: Mon, 09 Nov 2026 06:00
Date: Mon, 09 Nov 2026 06:00
91 lines
5285 bytes
5285 bytes
--FwCl35azQA/lC4F7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Source: gecode Version: 6.4.0-2 Tags: patch User: debian-cross@lists.debian.org Usertags: ftcbfs gecode fails to cross build from source, because it uses build architecture build tools in two distinct locations. debian/rules hard codes the build architecture pkg-config and therefore fails supplying the relevant include directories for Qt. The easiest way of fixing this is using dpkg's buildtools.mk. Then, the upstream gecode.m4 locates qmake6 without an architecture prefix. As a result, Qt link flags are skipped. qmake6 should be located using AC_CHECK_TOOLS rather than AC_CHECK_PROGS. Once addressing both, gecode cross builds successfully. Please consider applying the attached patch. Helmut --FwCl35azQA/lC4F7 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="gecode_6.4.0-2.1.debdiff" diff -Nru gecode-6.4.0/debian/changelog gecode-6.4.0/debian/changelog --- gecode-6.4.0/debian/changelog 2026-09-20 07:16:22.000000000 +0200 +++ gecode-6.4.0/debian/changelog 2026-11-07 10:01:59.000000000 +0100 @@ -1,3 +1,12 @@ +gecode (6.4.0-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Let dpkg's buildtools.mk supply a cross pkg-config. + + cross.patch: Let AC_CHECK_TOOLS locate a cross qmake. + + -- Helmut Grohne <helmut@subdivi.de> Sat, 07 Nov 2026 10:01:59 +0100 + gecode (6.4.0-2) unstable; urgency=medium * Upload to unstable diff -Nru gecode-6.4.0/debian/patches/cross.patch gecode-6.4.0/debian/patches/cross.patch --- gecode-6.4.0/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 +0100 +++ gecode-6.4.0/debian/patches/cross.patch 2026-11-07 10:01:59.000000000 +0100 @@ -0,0 +1,11 @@ +--- gecode-6.4.0.orig/gecode.m4 ++++ gecode-6.4.0/gecode.m4 +@@ -1277,7 +1277,7 @@ + AC_ARG_ENABLE([qt], + AS_HELP_STRING([--enable-qt], + [build with Qt support, requires Qt 5.15 or newer @<:@default=yes@:>@])) +- AC_CHECK_PROGS(QMAKE, [qmake6 qmake-qt6 qmake-qt5 qmake5 qmake]) ++ AC_CHECK_TOOLS(QMAKE, [qmake6 qmake-qt6 qmake-qt5 qmake5 qmake]) + MOC=/usr/lib/qt6/libexec/moc + AC_CHECK_PROGS(MOC, [/usr/lib/qt6/libexec/moc]) + AC_MSG_CHECKING(whether to build with Qt support) diff -Nru gecode-6.4.0/debian/patches/series gecode-6.4.0/debian/patches/series --- gecode-6.4.0/debian/patches/series 2026-08-30 19:59:18.000000000 +0200 +++ gecode-6.4.0/debian/patches/series 2026-11-07 10:01:59.000000000 +0100 @@ -6,3 +6,4 @@ remove-uv backport-doxygen-1.15 force-moc6 +cross.patch diff -Nru gecode-6.4.0/debian/rules gecode-6.4.0/debian/rules --- gecode-6.4.0/debian/rules 2026-08-30 19:59:18.000000000 +0200 +++ gecode-6.4.0/debian/rules 2026-11-07 10:01:59.000000000 +0100 @@ -1,5 +1,8 @@ #!/usr/bin/make -f +include /usr/share/dpkg/architecture.mk +include /usr/share/dpkg/buildtools.mk + DEB_MAKE_CHECK_TARGET=check LD_LIBRARY_PATH=. DEB_DH_BUILDDEB_ARGS=-- -Zxz @@ -8,8 +11,8 @@ CXXFLAGS += -O3 endif -CFLAGS += -D_REENTRANT $(CPPFLAGS) $(shell pkg-config --cflags Qt6Core Qt6Gui Qt6Widgets Qt6PrintSupport) -CXXFLAGS += -D_REENTRANT $(CPPFLAGS) $(shell pkg-config --cflags Qt6Core Qt6Gui Qt6Widgets Qt6PrintSupport) +CFLAGS += -D_REENTRANT $(CPPFLAGS) $(shell $(PKG_CONFIG) --cflags Qt6Core Qt6Gui Qt6Widgets Qt6PrintSupport) +CXXFLAGS += -D_REENTRANT $(CPPFLAGS) $(shell $(PKG_CONFIG) --cflags Qt6Core Qt6Gui Qt6Widgets Qt6PrintSupport) DEB_CONFIGURE_EXTRA_FLAGS += DLLFLAGS="$(LDFLAGS)" GLDFLAGS="$(LDFLAGS)" %: --FwCl35azQA/lC4F7--
Technical Details
Message-ID:
<NXqA9-aL9J-5@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.in-chemnitz.de!news.szaf.org!fu-berlin.de!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.in-chemnitz.de!news.szaf.org!fu-berlin.de!bofh.it!news.nic.it!robomod From: Helmut Grohne <helmut@subdivi.de> Newsgroups: linux.debian.bugs.dist Subject: Bug#1153492: gecode FTBCFS: uses build architecture build tools Date: Mon, 09 Nov 2026 07:00:01 +0100 Message-ID: <NXqA9-aL9J-5@gated-at.bofh.it> X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Mon Nov 9 05:55:13 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.45 Reply-To: Helmut Grohne <helmut@subdivi.de>, 1153492@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: kaol@debian.org X-Debian-Pr-Message: report 1153492 X-Debian-Pr-Package: src:gecode X-Debian-Pr-Keywords: patch X-Debian-Pr-Source: gecode MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="FwCl35azQA/lC4F7" Content-Disposition: inline X-Reportbug-Version: 13.2.0 X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2001591 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 91 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sat, 7 Nov 2026 23:08:38 +0100 X-Original-Message-ID: <20261107220838.GA4056015@subdivi.de>