[Debichem-devel] Bug#865716: gperiodic FTCBFS: fails finding gtk with the build architecture pkg-config

Helmut Grohne helmut at subdivi.de
Sat Jun 24 05:33:53 UTC 2017


Source: gperiodic
Version: 2.0.10-7
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

gperiodic fails to cross build from source, because it uses the build
architecture pkg-config and thus fails finding the (host architecture)
gtk. Adding the host architecture triplet as a prefix to pkg-config
fixes the build. Please consider applying the attached patch.

Helmut
-------------- next part --------------
diff --minimal -Nru gperiodic-2.0.10/debian/changelog gperiodic-2.0.10/debian/changelog
--- gperiodic-2.0.10/debian/changelog	2012-05-02 22:36:59.000000000 +0200
+++ gperiodic-2.0.10/debian/changelog	2017-06-23 23:11:08.000000000 +0200
@@ -1,3 +1,10 @@
+gperiodic (2.0.10-7.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Use a triplet-prefixed pkg-config. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Fri, 23 Jun 2017 23:11:08 +0200
+
 gperiodic (2.0.10-7) unstable; urgency=low
 
   * debian/patches/488461_update_Uun_and_Uuu.patch: Adjusted.
diff --minimal -Nru gperiodic-2.0.10/debian/patches/remove_DEPRECATED_flags_for_GTK_2_4.patch gperiodic-2.0.10/debian/patches/remove_DEPRECATED_flags_for_GTK_2_4.patch
--- gperiodic-2.0.10/debian/patches/remove_DEPRECATED_flags_for_GTK_2_4.patch	2012-05-02 17:59:32.000000000 +0200
+++ gperiodic-2.0.10/debian/patches/remove_DEPRECATED_flags_for_GTK_2_4.patch	2017-06-23 23:11:08.000000000 +0200
@@ -7,15 +7,16 @@
 diff -urNad gperiodic~/Makefile gperiodic/Makefile
 --- gperiodic~/Makefile	2007-07-11 14:58:05.000000000 +0200
 +++ gperiodic/Makefile	2008-06-30 14:45:51.000000000 +0200
-@@ -1,6 +1,9 @@
+@@ -1,6 +1,10 @@
  CC := gcc
 -CFLAGS := `pkg-config --cflags gtk+-2.0` -I. -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED
 -LIBS :=`pkg-config --libs gtk+-2.0`
++PKG_CONFIG ?= pkg-config
 +CFLAGS :=
 +LIBS :=
 +LDFLAGS :=
-+override CFLAGS += `pkg-config --cflags gtk+-2.0` -I. -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED
-+override LIBS += `pkg-config --libs gtk+-2.0`
++override CFLAGS += `$(PKG_CONFIG) --cflags gtk+-2.0` -I. -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED
++override LIBS += `$(PKG_CONFIG) --libs gtk+-2.0`
  bindir ?= /usr/bin
  datadir ?= /usr/share
  enable_nls ?= 1
diff --minimal -Nru gperiodic-2.0.10/debian/rules gperiodic-2.0.10/debian/rules
--- gperiodic-2.0.10/debian/rules	2012-05-02 17:59:32.000000000 +0200
+++ gperiodic-2.0.10/debian/rules	2017-06-23 23:11:06.000000000 +0200
@@ -1,7 +1,11 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/architecture.mk
+
 PACKAGE = gperiodic
 
+export PKG_CONFIG = $(DEB_HOST_GNU_TYPE)-pkg-config
+
 LDFLAGS ?=
 LDFLAGS += -Wl,-z,defs -Wl,--as-needed
 


More information about the Debichem-devel mailing list