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

Bug#990888: marked as done (libnss-gw-name FTCBFS: builds for the build architecture)



Your message dated Wed, 11 May 2022 18:48:56 +0000
with message-id <E1norOK-0000ib-Am@fasolo.debian.org>
and subject line Bug#990888: fixed in libnss-gw-name 0.3-4
has caused the Debian Bug report #990888,
regarding libnss-gw-name FTCBFS: builds for the build architecture
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.)


-- 
990888: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=990888
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: libnss-gw-name
Version: 0.3-2
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs

libnss-gw-name fails to cross build from source, because debian/rules
does not pass cross tools to make. The easiest way of doing so - using
dh_auto_build - is not sufficient as the upstream Makefile hard codes
pkg-config. It has to be made substitutable as well. Please consider
applying the attached patch.

Helmut
diff --minimal -Nru libnss-gw-name-0.3/debian/changelog libnss-gw-name-0.3/debian/changelog
--- libnss-gw-name-0.3/debian/changelog	2013-06-03 14:34:30.000000000 +0200
+++ libnss-gw-name-0.3/debian/changelog	2021-07-10 17:38:30.000000000 +0200
@@ -1,3 +1,12 @@
+libnss-gw-name (0.3-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Let dh_auto_build pass cross tools to make.
+    + cross.patch: Make pkg-config substitutable.
+
+ -- Helmut Grohne <helmut@subdivi.de>  Sat, 10 Jul 2021 17:38:30 +0200
+
 libnss-gw-name (0.3-2) unstable; urgency=low
 
   * Upload to unstable 
diff --minimal -Nru libnss-gw-name-0.3/debian/patches/cross.patch libnss-gw-name-0.3/debian/patches/cross.patch
--- libnss-gw-name-0.3/debian/patches/cross.patch	1970-01-01 01:00:00.000000000 +0100
+++ libnss-gw-name-0.3/debian/patches/cross.patch	2021-07-10 17:38:13.000000000 +0200
@@ -0,0 +1,21 @@
+--- libnss-gw-name-0.3.orig/Makefile
++++ libnss-gw-name-0.3/Makefile
+@@ -1,6 +1,7 @@
+ # Makefile for libnss-gw-name
+ 
+ CC = gcc
++PKG_CONFIG ?= pkg-config
+ prefix = /usr
+ exec_prefix = ${prefix}
+ BITSOFS=
+@@ -13,8 +14,8 @@
+ # This only works sometimes, give manually when needed:
+ BIT_CFLAGS = $(if $(BITSOFS),-m$(BITSOFS))
+ CFLAGS = $(BIT_CFLAGS) -g -O2 -Wall -Wpointer-arith
+-CPPFLAGS = $(shell pkg-config --cflags libnl-3.0 libnl-route-3.0)
+-LIBS = $(shell pkg-config --libs libnl-3.0 libnl-route-3.0)
++CPPFLAGS = $(shell $(PKG_CONFIG) --cflags libnl-3.0 libnl-route-3.0)
++LIBS = $(shell $(PKG_CONFIG) --libs libnl-3.0 libnl-route-3.0)
+ LDFLAGS = -shared -Wl,-soname,$(INSTALL_NAME) -Wl,-z,defs
+ 
+ all: $(SHARED_OBJECT)
diff --minimal -Nru libnss-gw-name-0.3/debian/patches/series libnss-gw-name-0.3/debian/patches/series
--- libnss-gw-name-0.3/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ libnss-gw-name-0.3/debian/patches/series	2021-07-10 17:37:53.000000000 +0200
@@ -0,0 +1 @@
+cross.patch
diff --minimal -Nru libnss-gw-name-0.3/debian/rules libnss-gw-name-0.3/debian/rules
--- libnss-gw-name-0.3/debian/rules	2011-06-28 10:38:44.000000000 +0200
+++ libnss-gw-name-0.3/debian/rules	2021-07-10 17:38:29.000000000 +0200
@@ -22,7 +22,7 @@
 
 build-arch-stamp:
 	dh_testdir
-	$(MAKE) CFLAGS="$(CFLAGS)"
+	dh_auto_build -- CFLAGS="$(CFLAGS)"
 	touch build-arch-stamp
 
 clean:

--- End Message ---
--- Begin Message ---
Source: libnss-gw-name
Source-Version: 0.3-4
Done: Vagrant Cascadian <vagrant@reproducible-builds.org>

We believe that the bug you reported is fixed in the latest version of
libnss-gw-name, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 990888@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Vagrant Cascadian <vagrant@reproducible-builds.org> (supplier of updated libnss-gw-name package)

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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 11 May 2022 11:06:19 -0700
Source: libnss-gw-name
Architecture: source
Version: 0.3-4
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Vagrant Cascadian <vagrant@reproducible-builds.org>
Closes: 990888 1009910 1010859
Changes:
 libnss-gw-name (0.3-4) unstable; urgency=medium
 .
   * QA upload.
 .
   [ Vagrant Cascadian ]
   * Update to debhelper-compat 13 and switch to "dh". (Closes: #1010859)
   * postinst/postrm: Remove call to ldconfig, now handled with
     dpkg-triggers.
   * debian/control: Set Priority to "optional".
   * debian/control: Comment out obsolete Vcs-* headers. (Closes: #1009910)
   * debian/control: Set Rules-Requires-Root to "no".
   * Remove obsolete lintian override.
 .
   [ Helmut Grohne ]
   * Make pkg-config substitutable. Fixes FTCBFS. (Closes: #990888)
 .
   [ Vagrant Cascadian ]
   * debian/control: Update Standards-Version to 4.6.0.
Checksums-Sha1:
 cb6c7c7e865f1b33d4ab0b60bc7c1b50ec58ae30 1389 libnss-gw-name_0.3-4.dsc
 875ade1fe7c2e3fbe6ac75f3b21447c953e3b3d7 3564 libnss-gw-name_0.3-4.debian.tar.xz
Checksums-Sha256:
 8a1a7466adbb35e843bf0b6be787f9c2942306481d4724460f1be9bb05a03d81 1389 libnss-gw-name_0.3-4.dsc
 709e461f47b2284cc1970b071137ee82161b1be1b8d217f3c2384a4d60a5b5c8 3564 libnss-gw-name_0.3-4.debian.tar.xz
Files:
 2a2ee2968c51aa8aee1d836a743ef36b 1389 admin optional libnss-gw-name_0.3-4.dsc
 4dd52c6534e65556413cedcae8ae65f9 3564 admin optional libnss-gw-name_0.3-4.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iJYEARYKAD4WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYnwAJyAcdmFncmFudEBy
ZXByb2R1Y2libGUtYnVpbGRzLm9yZwAKCRDcUY/If5cWql8qAQCId9djlmbG5Wr0
TRgkAQb6FFtw2hiLKspEzpMXkVOK8gEAzC+m1cgzywu7pLK5kZHog3eGOCbJ4Yhb
5H5tSOwMgwg=
=wDQy
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: