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

Bug#960291: marked as done (dhcpcd-dbus FTCBFS: uses the build architecture pkg-config)



Your message dated Thu, 22 Jun 2023 23:30:22 +0000
with message-id <[🔎] E1qCTks-00G63s-D0@fasolo.debian.org>
and subject line Bug#1038864: Removed package(s) from unstable
has caused the Debian Bug report #960291,
regarding dhcpcd-dbus FTCBFS: uses the build architecture pkg-config
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
960291: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=960291
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: dhcpcd-dbus
Version: 0.6.0-3
Tags: patch upstream
User: debian-cross@lists.debian.org
Usertags: ftcbfs

dhcpcd-dbus fails to cross build from source, because the upstream
configure script hard codes the build architecture pkg-config. The
attached patch implements a detection method similar to the detection
method for the C compiler and makes dhcpcd-dbus cross buildable. Please
consider applying the patch.

Helmut
--- dhcpcd-dbus-0.6.0.orig/configure
+++ dhcpcd-dbus-0.6.0/configure
@@ -166,6 +166,24 @@
 fi
 echo "CC=		$CC" >>$CONFIG_MK
 
+if [ -z "$PKG_CONFIG" ]; then
+	printf "Looking for pkg-config ... "
+	for b in "$TARGET-" ""; do
+		if type "${b}pkg-config" >/dev/null 2>&1; then
+			PKG_CONFIG="${b}pkg-config"
+			echo "$PKG_CONFIG"
+			break
+		fi
+	done
+	if [ -z "$PKG_CONFIG" ]; then
+		echo
+		echo "no suitable pkg-config found - aborting" >&2
+		exit 1
+	fi
+else
+	echo "Using pkg-config $PKG_CONFIG"
+fi
+
 if [ -n "$CFLAGS" ]; then
 	echo "CFLAGS=		$CFLAGS" >>$CONFIG_MK
 fi
@@ -228,8 +246,8 @@
 fi
 
 # Get DBus CFLAGS
-DBUS_CFLAGS=$(pkg-config --cflags dbus-1) || exit 1
-DBUS_LIBS=$(pkg-config --libs dbus-1) || exit 1
+DBUS_CFLAGS=$($PKG_CONFIG --cflags dbus-1) || exit 1
+DBUS_LIBS=$($PKG_CONFIG --libs dbus-1) || exit 1
 echo "DBus CFLAGS=$DBUS_CFLAGS"
 echo "DBus LIBS=$DBUS_LIBS"
 echo "CPPFLAGS+=	$DBUS_CFLAGS" >>config.mk

--- End Message ---
--- Begin Message ---
Version: 0.6.1-4+rm

Dear submitter,

as the package dhcpcd-dbus has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1038864

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply to: