Article View: linux.debian.bugs.dist
Article #2290Bug#1152222: gbwt FTCBFS: uses build architecture build tools
From: Helmut Grohne
Date: Mon, 26 Oct 2026 20:20
Date: Mon, 26 Oct 2026 20:20
121 lines
5774 bytes
5774 bytes
--JHWa59ucDarvWzj6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Source: gbwt Version: 1.6-1 Tags: patch User: debian-cross@lists.debian.org Usertags: ftcbfs gbwt fails to cross build from source, because it hard codes build architecture build tools such as g++ and pkg-config without a triplet prefix. I'm attaching a combined upstream/debian patch to fix this. Please consider applying it and forwarding the upstream portion. Helmut --JHWa59ucDarvWzj6 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="gbwt_1.6-1.1.debdiff" diff -Nru gbwt-1.6/debian/changelog gbwt-1.6/debian/changelog --- gbwt-1.6/debian/changelog 2026-10-22 11:41:18.000000000 +0200 +++ gbwt-1.6/debian/changelog 2026-10-26 16:41:23.000000000 +0100 @@ -1,3 +1,10 @@ +gbwt (1.6-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Use host tools. (Closes: #-1) + + -- Helmut Grohne <helmut@subdivi.de> Mon, 26 Oct 2026 16:41:23 +0100 + gbwt (1.6-1) unstable; urgency=medium * Initial release. (Closes: #1151617) diff -Nru gbwt-1.6/debian/patches/cross.patch gbwt-1.6/debian/patches/cross.patch --- gbwt-1.6/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 +0100 +++ gbwt-1.6/debian/patches/cross.patch 2026-10-26 16:41:23.000000000 +0100 @@ -0,0 +1,50 @@ +--- gbwt-1.6.orig/Makefile ++++ gbwt-1.6/Makefile +@@ -3,6 +3,8 @@ + BUILD_OBJ=obj + SOURCE_DIR=src + ++PKG_CONFIG ?= pkg-config ++ + # Multithreading with OpenMP. + PARALLEL_FLAGS=-fopenmp -pthread + +@@ -11,10 +13,10 @@ + LIBS=-L$(LIB_DIR) -lsdsl + + # Use pkg-config to find system dependencies. +-ifeq ($(shell pkg-config --exists libzstd && echo 1), 1) ++ifeq ($(shell $(PKG_CONFIG) --exists libzstd && echo 1), 1) + $(info Found libzstd.) +- INCLUDES += $(shell pkg-config --cflags libzstd) +- LIBS += $(shell pkg-config --libs libzstd) ++ INCLUDES += $(shell $(PKG_CONFIG) --cflags libzstd) ++ LIBS += $(shell $(PKG_CONFIG) --libs libzstd) + else + $(error Could not find libzstd. Please update PKG_CONFIG_PATH to include zstd development files) + endif +--- gbwt-1.6.orig/tests/Makefile ++++ gbwt-1.6/tests/Makefile +@@ -1,6 +1,8 @@ + MAIN_DIR=.. + LIBRARY=$(MAIN_DIR)/lib/libgbwt.a + ++PKG_CONFIG ?= pkg-config ++ + # Multithreading with OpenMP. + PARALLEL_FLAGS=-fopenmp -pthread + +@@ -9,10 +11,10 @@ + LIBS=-L$(LIB_DIR) -lsdsl -lgtest -lgtest_main + + # Use pkg-config to find system dependencies. +-ifeq ($(shell pkg-config --exists libzstd && echo 1), 1) ++ifeq ($(shell $(PKG_CONFIG) --exists libzstd && echo 1), 1) + $(info Found libzstd.) +- INCLUDES += $(shell pkg-config --cflags libzstd) +- LIBS += $(shell pkg-config --libs libzstd) ++ INCLUDES += $(shell $(PKG_CONFIG) --cflags libzstd) ++ LIBS += $(shell $(PKG_CONFIG) --libs libzstd) + else + $(error Could not find libzstd. Please update PKG_CONFIG_PATH to include zstd development files) + endif diff -Nru gbwt-1.6/debian/patches/series gbwt-1.6/debian/patches/series --- gbwt-1.6/debian/patches/series 2026-10-22 11:41:18.000000000 +0200 +++ gbwt-1.6/debian/patches/series 2026-10-26 16:40:41.000000000 +0100 @@ -1,3 +1,4 @@ build_shared_library use_debian_sdsl add_ldflags_cppflags +cross.patch diff -Nru gbwt-1.6/debian/rules gbwt-1.6/debian/rules --- gbwt-1.6/debian/rules 2026-10-22 11:41:18.000000000 +0200 +++ gbwt-1.6/debian/rules 2026-10-26 16:41:23.000000000 +0100 @@ -4,6 +4,8 @@ export LC_ALL=C.UTF-8 include /usr/share/dpkg/default.mk +DPKG_EXPORT_BUILDTOOLS := 1 +include /usr/share/dpkg/buildtools.mk # for hardening you might like to uncomment this: export DEB_BUILD_MAINT_OPTIONS=hardening=+all @@ -15,7 +17,7 @@ dh $@ override_dh_auto_build: - dh_auto_build -- CPPFLAGS="$(CPPFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" MY_CXX=g++ INC_DIR=/usr/include LIB_DIR=/usr/lib + dh_auto_build -- CPPFLAGS="$(CPPFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" MY_CXX=$(CXX) INC_DIR=/usr/include LIB_DIR=/usr/lib execute_after_dh_install: d-shlibmove --commit \ --JHWa59ucDarvWzj6--
Technical Details
Message-ID:
<NSzkJ-84wi-9@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.szaf.org!news.samoylyk.net!gothmog.csi.it!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.szaf.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Helmut Grohne <helmut@subdivi.de> Newsgroups: linux.debian.bugs.dist Subject: Bug#1152222: gbwt FTCBFS: uses build architecture build tools Date: Mon, 26 Oct 2026 21:20:01 +0100 Message-ID: <NSzkJ-84wi-9@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Mon Oct 26 20:18:07 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.45 Reply-To: Helmut Grohne <helmut@subdivi.de>, 1152222@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-med-packaging@lists.alioth.debian.org X-Debian-Pr-Message: report 1152222 X-Debian-Pr-Package: src:gbwt X-Debian-Pr-Keywords: patch X-Debian-Pr-Source: gbwt MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="JHWa59ucDarvWzj6" 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/1999094 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 121 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 26 Oct 2026 17:02:17 +0100 X-Original-Message-ID: <20261026160217.GA3347287@subdivi.de>