[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#900194: bluemon FTCBFS: fails finding dbus-1.pc with the build architecture pkg-config



Source: bluemon
Version: 1.4-7
Tags: patch upstream
User: helmutg@debian.org
Usertags: rebootstrap

bluemon fails to cross build from source, because the upstream build
system hard codes the build architecture pkg-config and thus fails
finding dbus-1.pc, which is only requested for the host architecture by
Build-Depends. I think the proper solution is to make pkg-config
substitutable. After doing so, bluemon cross builds successfully,
because dh_auto_build substitutes PKG_CONFIG. Please consider applying
the attached patch.

Helmut
--- bluemon-1.4.orig/Makefile
+++ bluemon-1.4/Makefile
@@ -1,6 +1,7 @@
+PKG_CONFIG ?= pkg-config
 LIBRARYPATH ?= /usr/lib
-LIBS = -L$(LIBRARYPATH) -lbluetooth `pkg-config --libs dbus-1`
-INCLUDES=`pkg-config --cflags dbus-1`
+LIBS = -L$(LIBRARYPATH) -lbluetooth `$(PKG_CONFIG) --libs dbus-1`
+INCLUDES=`$(PKG_CONFIG) --cflags dbus-1`
 # Where to put stuff on 'make install'?
 PREFIX ?= $(DESTDIR)/usr
 SBIN    ?= $(PREFIX)/sbin

Reply to: