Thread View: linux.debian.bugs.dist
1 messages
1 total messages
Started by Helmut Grohne
Mon, 09 Nov 2026 06:00
Bug#1153492: gecode FTBCFS: uses build architecture build tools
Author: 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--
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads