Source: hintview Version: 2.1.0-1 Tags: patch User: [email protected] Usertags: ftcbfs
hintview fails to cross build from source, because it does not pass cross tools to make. The easiest way of doing so - using dh_auto_build - mostly fixes that except for pkg-config, which uses the non-standard PKGCONFIG variable rather than PKG_CONFIG. I suggest renaming it upstream. Please consider applying the attached patch. Helmut
diff -Nru hintview-2.1.0/debian/changelog hintview-2.1.0/debian/changelog --- hintview-2.1.0/debian/changelog 2024-12-09 21:53:34.000000000 +0100 +++ hintview-2.1.0/debian/changelog 2025-09-11 08:14:17.000000000 +0200 @@ -1,3 +1,12 @@ +hintview (2.1.0-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Let dh_auto_build pass cross tools to make. + + cross.patch: Use standard tool variables. + + -- Helmut Grohne <[email protected]> Thu, 11 Sep 2025 08:14:17 +0200 + hintview (2.1.0-1) unstable; urgency=medium * New upstream version, obsoletes patches. diff -Nru hintview-2.1.0/debian/patches/cross.patch hintview-2.1.0/debian/patches/cross.patch --- hintview-2.1.0/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 +0100 +++ hintview-2.1.0/debian/patches/cross.patch 2025-09-11 08:14:17.000000000 +0200 @@ -0,0 +1,24 @@ +--- hintview-2.1.0.orig/Linux/Makefile ++++ hintview-2.1.0/Linux/Makefile +@@ -6,16 +6,15 @@ + + ifeq ($(WITH_GTK),0) + ++PKG_CONFIG ?= pkg-config + GTK_CFLAGS = -DWITH_GTK=0 + GTL_LIBS = + else ifeq ($(WITH_GTK),2) +-PKGCONFIG = $(shell which pkg-config) +-GTK_CFLAGS = $(shell $(PKGCONFIG) --cflags gtk+-2.0) -DWITH_GTK=2 +-GTK_LIBS = $(shell $(PKGCONFIG) --libs gtk+-2.0) ++GTK_CFLAGS = $(shell $(PKG_CONFIG) --cflags gtk+-2.0) -DWITH_GTK=2 ++GTK_LIBS = $(shell $(PKG_CONFIG) --libs gtk+-2.0) + else ifeq ($(WITH_GTK),3) +-PKGCONFIG = $(shell which pkg-config) +-GTK_CFLAGS = $(shell $(PKGCONFIG) --cflags gtk+-3.0) -DWITH_GTK=3 +-GTK_LIBS = $(shell $(PKGCONFIG) --libs gtk+-3.0) ++GTK_CFLAGS = $(shell $(PKG_CONFIG) --cflags gtk+-3.0) -DWITH_GTK=3 ++GTK_LIBS = $(shell $(PKG_CONFIG) --libs gtk+-3.0) + else + $(error "Valid values for WITH_GTK are 0, 2 or 3") + endif diff -Nru hintview-2.1.0/debian/patches/series hintview-2.1.0/debian/patches/series --- hintview-2.1.0/debian/patches/series 2024-12-09 21:40:57.000000000 +0100 +++ hintview-2.1.0/debian/patches/series 2025-09-11 08:14:17.000000000 +0200 @@ -1,2 +1,3 @@ #add_GL.patch #manpage_section.patch +cross.patch diff -Nru hintview-2.1.0/debian/rules hintview-2.1.0/debian/rules --- hintview-2.1.0/debian/rules 2023-10-31 19:57:44.000000000 +0100 +++ hintview-2.1.0/debian/rules 2025-09-11 08:14:17.000000000 +0200 @@ -18,7 +18,7 @@ dh $@ override_dh_auto_build: - cd Linux; WITH_GTK=3 make + WITH_GTK=3 dh_auto_build --sourcedirectory=Linux #override_dh_auto_configure: # dh_auto_configure -- \

