Source: rep-gtk
Version: 1:0.90.8.2-3
Tags: patch upstream
User: [email protected]
Usertags: rebootstrap

rep-gtk fails to cross build from source, because it uses the build
architecture pkg-config. This is mostly due to hard coding pkg-config in
configure.in. The attached patch fixes those. After applying it, rep-gtk
still fails to cross build due to #890194. Please apply this patch
anyway and close this bug when doing so.

Helmut
--- rep-gtk-0.90.8.2.orig/configure.in
+++ rep-gtk-0.90.8.2/configure.in
@@ -49,8 +49,8 @@
 REP_MIN_VER="0.90.5"
 
 PKG_CHECK_MODULES(LIBREP, librep >= $REP_MIN_VER
-		  ,REP_EXECDIR="`pkg-config --variable=repcommonexecdir librep`"
-		  REP_CFLAGS="`pkg-config --cflags librep`"
+		  ,REP_EXECDIR="`$PKG_CONFIG --variable=repcommonexecdir librep`"
+		  REP_CFLAGS="`$PKG_CONFIG --cflags librep`"
 		  ,AC_MSG_ERROR([can not locate librep >= $REP_MIN_VER]))
 
 dnl Check for glib
@@ -110,14 +110,14 @@
 
 mv rep-gtk.ebuild rep-gtk-$version.ebuild
 
-REP_VERSION="`pkg-config --modversion librep`"
-GLIB_VERSION="`pkg-config --modversion glib-2.0`"
+REP_VERSION="`$PKG_CONFIG --modversion librep`"
+GLIB_VERSION="`$PKG_CONFIG --modversion glib-2.0`"
 
 if $PKG_CONFIG --exists cairo; then
-	CAIRO_VERSION="`pkg-config --modversion cairo`"
+	CAIRO_VERSION="`$PKG_CONFIG --modversion cairo`"
 fi
 
-GTK_VERSION="`pkg-config --modversion gtk+-2.0`"
+GTK_VERSION="`$PKG_CONFIG --modversion gtk+-2.0`"
 
 echo "
   == == == == == == == == == == == == ==

Reply via email to