Your message dated Fri, 15 Jul 2022 18:18:56 +0000
with message-id <e1ocptw-000eu1...@fasolo.debian.org>
and subject line Bug#940607: fixed in ldap2dns 0.3.1-5
has caused the Debian Bug report #940607,
regarding ldap2dns FTCBFS: many reasons
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 ow...@bugs.debian.org
immediately.)


-- 
940607: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=940607
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: ldap2dns
Version: 0.3.1-3.2
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

ldap2dns fails to cross build from source for multiple reasons. For
starters, debian/rules fails to pass cross tools to make. Then the
upstream Makefile stuffs flags into the CC variable which get lost when
dh_auto_build substitutes it. Further down, it has a copy of CC called
LD, which doesn't get substituted. It lists -l flags as Makefile
dependencies. Doing so works fine during native compilation, because
make has an architecture-dependent search path. This is why make is not
marked Multi-Arch: foreign. Such dependencies do break cross building
and need to be avoided. Close to the end it strips with the build
architecture strip during make install. Beyond breaking cross
compilation, this breaks generation of -dbgsym packages as well as
DEB_BUILD_OPTIONS=nostrip (aka #437301). The attached patch fixes all of
that (including #437301).

Helmut
diff -u ldap2dns-0.3.1/Makefile ldap2dns-0.3.1/Makefile
--- ldap2dns-0.3.1/Makefile
+++ ldap2dns-0.3.1/Makefile
@@ -1,12 +1,14 @@
 # $Id: Makefile,v 1.29 2002/08/02 15:19:36 jrief Exp $ 
 VERSION=0.3.1
 RELEASE=1
-CC=gcc -O2
-CCDEBUG=gcc -g
+CC=gcc
+CCRELEASE=$(CC) -O2
+CCDEBUG=$(CC) -g
 CFLAGS=$(INC) -DVERSION='"$(VERSION)"'
 LIBS=-lldap -llber
-LD=gcc 
+LD=$(CC)
 LDFLAGS=
+INSTALL ?= install
 INSTALL_PREFIX=
 PREFIXDIR=$(INSTALL_PREFIX)/usr
 LDAPCONFDIR=$(INSTALL_PREFIX)/etc/ldap
@@ -15,17 +17,17 @@
 
 all: ldap2dns ldap2dnsd ldap2dns-dbg
 
-ldap2dns: ldap2dns.o $(LIBS) 
-       $(LD) $(LDFLAGS) -o $@ $+
+ldap2dns: ldap2dns.o $(filter-out -l%,$(LIBS))
+       $(LD) $(LDFLAGS) -o $@ $+ $(filter -l%,$(LIBS))
 
 ldap2dnsd: ldap2dns
        ln -sf ldap2dns ldap2dnsd
 
-ldap2dns-dbg: ldap2dns.o-dbg $(LIBS) 
-       $(LD) $(LDFLAGS) -o $@ $+
+ldap2dns-dbg: ldap2dns.o-dbg $(filter-out -l%,$(LIBS))
+       $(LD) $(LDFLAGS) -o $@ $+ $(filter -l%,$(LIBS))
 
 ldap2dns.o: ldap2dns.c
-       $(CC) $(CFLAGS) -c $< -o $@
+       $(CCRELEASE) $(CFLAGS) -c $< -o $@
 
 ldap2dns.o-dbg: ldap2dns.c
        $(CCDEBUG) $(CFLAGS) -c $< -o $@
@@ -33,16 +35,16 @@
 install: all
        mkdir -p $(PREFIXDIR)/bin
        mkdir -p $(LDAPCONFDIR)
-       install -s -o root -g root -m 755 ldap2dns $(PREFIXDIR)/bin/
+       $(INSTALL) -s -o root -g root -m 755 ldap2dns $(PREFIXDIR)/bin/
        #ln -sf $(PREFIXDIR)/bin/ldap2dns $(PREFIXDIR)/bin/ldap2dnsd
-       install -o root -g root -m 755 ldap2tinydns-conf $(PREFIXDIR)/bin/
+       $(INSTALL) -o root -g root -m 755 ldap2tinydns-conf $(PREFIXDIR)/bin/
        
        # OpenLDAP2
-       install -o root -g root -m 644 dns.schema $(LDAPCONFDIR)/schema/
+       $(INSTALL) -o root -g root -m 644 dns.schema $(LDAPCONFDIR)/schema/
        
        # OpenLDAP1
-       #install -o root -g root -m 644 dns.at.conf $(LDAPCONFDIR)/
-       #install -o root -g root -m 644 dns.oc.conf $(LDAPCONFDIR)/
+       #$(INSTALL) -o root -g root -m 644 dns.at.conf $(LDAPCONFDIR)/
+       #$(INSTALL) -o root -g root -m 644 dns.oc.conf $(LDAPCONFDIR)/
        
        # README.txt
        links -dump README.html > README.txt
diff -u ldap2dns-0.3.1/debian/changelog ldap2dns-0.3.1/debian/changelog
--- ldap2dns-0.3.1/debian/changelog
+++ ldap2dns-0.3.1/debian/changelog
@@ -1,3 +1,10 @@
+ldap2dns (0.3.1-3.3) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix cross building. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Mon, 16 Sep 2019 17:42:12 +0200
+
 ldap2dns (0.3.1-3.2) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -u ldap2dns-0.3.1/debian/rules ldap2dns-0.3.1/debian/rules
--- ldap2dns-0.3.1/debian/rules
+++ ldap2dns-0.3.1/debian/rules
@@ -14,7 +14,7 @@
 build: configure-stamp build-stamp
 build-stamp:
        dh_testdir
-       $(MAKE)
+       dh_auto_build
        touch build-stamp
 
 clean:
@@ -29,7 +29,7 @@
        dh_testroot
        dh_clean -k
        dh_installdirs
-       $(MAKE) install INSTALL_PREFIX=$(CURDIR)/debian/ldap2dns
+       $(MAKE) install INSTALL_PREFIX=$(CURDIR)/debian/ldap2dns 
INSTALL='install --strip-program=true'
 
 # Build architecture-independent files here.
 binary-indep: build install

--- End Message ---
--- Begin Message ---
Source: ldap2dns
Source-Version: 0.3.1-5
Done: Joao Eriberto Mota Filho <eribe...@debian.org>

We believe that the bug you reported is fixed in the latest version of
ldap2dns, 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 940...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Joao Eriberto Mota Filho <eribe...@debian.org> (supplier of updated ldap2dns 
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 ftpmas...@ftp-master.debian.org)


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

Format: 1.8
Date: Thu, 14 Jul 2022 13:19:12 -0300
Source: ldap2dns
Architecture: source
Version: 0.3.1-5
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packa...@qa.debian.org>
Changed-By: Joao Eriberto Mota Filho <eribe...@debian.org>
Closes: 437301 940607
Changes:
 ldap2dns (0.3.1-5) unstable; urgency=medium
 .
   * QA upload.
   * Migrations:
       - DebSrc to 3.0.
       - DH level format. Consequently:
           ~ debian/compat: removed.
           ~ debian/control: changed from 'debhelper' to 'debhelper-compat' in
             Build-Depends field and bumped level to 13.
       - debian/copyright to 1.0 format.
       - debian/rules to new (reduced) format. Consequently:
           ~ debian/man/: created to group all manpages.
           ~ debian/*.1: moved to debian/man/.
           ~ debian/manpages: created to install the manpages.
           ~ Closes: #437301
   * debian/clean: created to remove files generated by the building process.
   * debian/control:
       - Added Homepage field.
       - Added 'Rules-Requires-Root: binary-targets' to source stanza.
       - Added Vcs-* fields.
       - Bumped Standards-Version to 4.6.1.
       - Dropped no longer needed relationships for libldap2-dev and links in
         Build-Depends field.
   * debian/dirs: removed unneeded /etc/ldap line.
   * debian/lintian-overrides: created to override a false positive about
     ldap2dnsd.1.
   * debian/lintian-overrides: created to override a false positive about
     ldap2dnsd.1.
   * debian/patches/:
       - 010_old-changes.patch: created to group all changes from DebSrc 1.0.
       - 020_add-GCC-hardening.patch: created to provide GCC hardening.
       - 030_fix-chown.patch: created to use colons instead of dots (deprecated)
         in chown commands.
       - 040_fix-FTCBFS.patch: created to fix a fail to cross build from source
         for multiple reasons. Thanks to Helmut Grohne <hel...@subdivi.de>.
         (Closes: #940607)
   * debian/salsa-ci.yml: added to provide CI tests for Salsa.
   * debian/upstream/metadata: created.
   * debian/watch: added a fake site to explain about the current status of the
     original upstream homepage.
Checksums-Sha1:
 8efb67c733776a2841d8c2b6a796b5c66c685bd7 1848 ldap2dns_0.3.1-5.dsc
 39d207a14a19494a55bd24c2f883d4843b2385f0 8588 ldap2dns_0.3.1-5.debian.tar.xz
 a8694e4ba34b69454274b80a5354f0af8df8a831 6296 ldap2dns_0.3.1-5_source.buildinfo
Checksums-Sha256:
 2d15217e8fa6e1b8fc3e977a5961c5f90260aee1b0cf85e08216f4e004098600 1848 
ldap2dns_0.3.1-5.dsc
 3e700288a17d686e1493926a61e6cbb67e84f4f5a29cfb2cae714df8da55f431 8588 
ldap2dns_0.3.1-5.debian.tar.xz
 9e9269d0ecd5222000fae4962edcc1fb952fdd99df8d99949d4871b06dace925 6296 
ldap2dns_0.3.1-5_source.buildinfo
Files:
 1bfd0cc13523b064e8d5547fab0670f5 1848 admin optional ldap2dns_0.3.1-5.dsc
 fdacffa9c014ea8a6981e9ff6900be00 8588 admin optional 
ldap2dns_0.3.1-5.debian.tar.xz
 19c91468dc036902e7a42a1b803c2c6e 6296 admin optional 
ldap2dns_0.3.1-5_source.buildinfo

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

iQIzBAEBCgAdFiEENX3LDuyVoBrrofDS3mO5xwTr6e8FAmLRqykACgkQ3mO5xwTr
6e8xcA/9El7ae6Zl+/V9RmLrsHTsGkHZS25c+tHYKVb4shCUI+6+1NE9C9487Wlf
lZlbJunhSmDq5urQjawi4EbM/CoUZnEJMpT1Mvtp52UeXhR76zsK7RlU4m5TZwqT
pSp2JSKKnHYRTGYEg9aAm+rTYz1BqvOqLVTdirRFpAVBhlYp5STq+tFQ6d6cIAX0
X7UPTu+waBBMv8kX0ffjFoWXE8hTs1XqKKNZBrK76i0jwh23GWwO4UzCNAEpnJsv
lZHxZeFU/vnqKo7fv+cdHx7/lwiHvdbnk65vOrdHa+pOAFnaV7IRb/2bWECjqIR+
Hq8Ka7OUtpTCNaFJ2tJdGiQrIWPgrj7Z7r0pvoC06FsWjORnlMx8SvsyHQei5Co5
ICxH0BGOzx6FZDH5UWrZkZCIkycoR1Kb1HepspCZMi3ZxMrTxJm+ucUKb1YAQaeS
hvEV7OYYTn8bATe2GbMipR83Dd5bSAFzO4dnb9Wlpl92gugJW0YEmVEnRmKtuOH0
QzcyNfB6uoWjEUj6e1E5ax/Nnzzrov2Jbo1RwZYk5faeuuokBHmuGrS2ASkpkGaO
eVIXo+W8xofb2K+O+coxClDieG9XQxxum6V3NqpclfbxBu9LBOPx90ZJeqxh/f7l
h1mbeZuiqAIIIzuHMnneZAbCc1JR5dhu2VutVa3rzYzhQlNQHb0=
=/FF9
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to