Your message dated Wed, 24 Sep 2025 12:05:14 +0000
with message-id <[email protected]>
and subject line Bug#1115558: fixed in asedriveiiie 3.7-12.1
has caused the Debian Bug report #1115558,
regarding asedriveiiie missing error trapping and FTCBFS
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 [email protected]
immediately.)


-- 
1115558: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1115558
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: asedriveiiie
Version: 3.7-12
Severity: serious
Justification: policy 4.6
Tags: patch
User: [email protected]
Usertags: ftcbfs

asedriveiiie fails to cross build from source. On the surface, it uses 
the build architecture pkg-config and fails to locate dependencies 
that way. While looking into this problem, I stumbled into a worse 
problem. The upstream Makefile sets CC to "${BUILD}-gcc" and as BUILD 
happens to be empty by default, CC becomes "-gcc". When used in a rule, 
make interprets the "-" as a prefix suppressing errors. Doing so 
violates Debian policy section 4.6. Hence this bug is an rcbug.

Passing --build to configure initializes BUILD and practically fixes the 
policy violation. It also helps with cross compilation. Hence, that's 
what I am proposing. If you fix this aspect only, please downgrade the 
severity of this bug.

The other part is using that prefix on pkg-config. That's also 
implemented in the attached patch. Please consider applying it.

Helmut
diff -Nru asedriveiiie-3.7/debian/changelog asedriveiiie-3.7/debian/changelog
--- asedriveiiie-3.7/debian/changelog   2025-02-22 16:07:46.000000000 +0100
+++ asedriveiiie-3.7/debian/changelog   2025-09-17 10:39:00.000000000 +0200
@@ -1,3 +1,11 @@
+asedriveiiie (3.7-12.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload. (Closes: #-1)
+  * Fix error trapping: Pass --build to configure.
+  * Fix FTCBFS: Add prefix to pkg-config.
+
+ -- Helmut Grohne <[email protected]>  Wed, 17 Sep 2025 10:39:00 +0200
+
 asedriveiiie (3.7-12) unstable; urgency=medium
 
   [ Carles Pina i Estany ]
diff -Nru asedriveiiie-3.7/debian/patches/cross.patch 
asedriveiiie-3.7/debian/patches/cross.patch
--- asedriveiiie-3.7/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 
+0100
+++ asedriveiiie-3.7/debian/patches/cross.patch 2025-09-17 10:38:59.000000000 
+0200
@@ -0,0 +1,60 @@
+--- asedriveiiie-3.7.orig/asedriveiiie-serial/configure
++++ asedriveiiie-3.7/asedriveiiie-serial/configure
+@@ -44,8 +44,10 @@
+       exit 1
+ fi
+ 
++PKG_CONFIG="${BUILD:+$BUILD-}pkg-config"
++
+ if [ -z "$USBDROPDIR" ]; then
+-      USBDROPDIR=`pkg-config libpcsclite --variable=usbdropdir`
++      USBDROPDIR=`$PKG_CONFIG libpcsclite --variable=usbdropdir`
+ fi
+ 
+ if [ -z "$USBDROPDIR" ]; then
+@@ -54,13 +56,13 @@
+ fi
+ 
+ if [ -z "$PCSC_HEADERS" ]; then
+-      CFLAGS="$CFLAGS `pkg-config libpcsclite --cflags`"
++      CFLAGS="$CFLAGS `$PKG_CONFIG libpcsclite --cflags`"
+ else
+       CFLAGS="$CFLAGS -I${PCSC_HEADERS}"
+ fi
+ 
+ if [ -z "$PCSC_LIBS" ]; then
+-      LDFLAGS="$LDFLAGS `pkg-config libpcsclite --libs`"
++      LDFLAGS="$LDFLAGS `$PKG_CONFIG libpcsclite --libs`"
+ else
+       LDFLAGS="$LDFLAGS -L${PCSC_LIBS} -lpcsclite"
+ fi
+--- asedriveiiie-3.7.orig/asedriveiiie-usb/configure
++++ asedriveiiie-3.7/asedriveiiie-usb/configure
+@@ -44,8 +44,10 @@
+       exit 1
+ fi
+ 
++PKG_CONFIG="${BUILD:+$BUILD-}pkg-config"
++
+ if [ -z "$USBDROPDIR" ]; then
+-      USBDROPDIR=`pkg-config libpcsclite --variable=usbdropdir`
++      USBDROPDIR=`$PKG_CONFIG libpcsclite --variable=usbdropdir`
+ fi
+ 
+ if [ -z "$USBDROPDIR" ]; then
+@@ -54,13 +56,13 @@
+ fi
+ 
+ if [ -z "$PCSC_HEADERS" ]; then
+-      CFLAGS="$CFLAGS `pkg-config libpcsclite --cflags`"
++      CFLAGS="$CFLAGS `$PKG_CONFIG libpcsclite --cflags`"
+ else
+       CFLAGS="$CFLAGS -I${PCSC_HEADERS}"
+ fi
+ 
+ if [ -z "$PCSC_LIBS" ]; then
+-      LDFLAGS="$LDFLAGS `pkg-config libpcsclite --libs`"
++      LDFLAGS="$LDFLAGS `$PKG_CONFIG libpcsclite --libs`"
+ else
+       LDFLAGS="$LDFLAGS -L${PCSC_LIBS} -lpcsclite"
+ fi
diff -Nru asedriveiiie-3.7/debian/patches/series 
asedriveiiie-3.7/debian/patches/series
--- asedriveiiie-3.7/debian/patches/series      2025-02-22 16:07:46.000000000 
+0100
+++ asedriveiiie-3.7/debian/patches/series      2025-09-17 10:34:44.000000000 
+0200
@@ -1,2 +1,3 @@
 06_rules_file_install
 04_configure
+cross.patch
diff -Nru asedriveiiie-3.7/debian/rules asedriveiiie-3.7/debian/rules
--- asedriveiiie-3.7/debian/rules       2025-02-22 16:07:46.000000000 +0100
+++ asedriveiiie-3.7/debian/rules       2025-09-17 10:38:13.000000000 +0200
@@ -1,6 +1,7 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
+include /usr/share/dpkg/architecture.mk
 # https://wiki.debian.org/Hardening
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 DPKG_EXPORT_BUILDFLAGS = 1
@@ -10,8 +11,8 @@
        dh $@
 
 override_dh_auto_configure:
-       cd asedriveiiie-usb ; CFLAGS="$(CFLAGS) $(CPPFLAGS)" ./configure
-       cd asedriveiiie-serial ; CFLAGS="$(CFLAGS) $(CPPFLAGS)" ./configure
+       env -C asedriveiiie-usb CFLAGS="$(CFLAGS) $(CPPFLAGS)" ./configure 
--build=$(DEB_HOST_GNU_TYPE)
+       env -C asedriveiiie-serial CFLAGS="$(CFLAGS) $(CPPFLAGS)" ./configure 
--build=$(DEB_HOST_GNU_TYPE)
 
 override_dh_auto_build:
        $(MAKE) -C asedriveiiie-usb

--- End Message ---
--- Begin Message ---
Source: asedriveiiie
Source-Version: 3.7-12.1
Done: Helmut Grohne <[email protected]>

We believe that the bug you reported is fixed in the latest version of
asedriveiiie, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Helmut Grohne <[email protected]> (supplier of updated asedriveiiie 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 [email protected])


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

Format: 1.8
Date: Wed, 17 Sep 2025 10:39:00 +0200
Source: asedriveiiie
Architecture: source
Version: 3.7-12.1
Distribution: unstable
Urgency: medium
Maintainer: Ludovic Rousseau <[email protected]>
Changed-By: Helmut Grohne <[email protected]>
Closes: 1115558
Changes:
 asedriveiiie (3.7-12.1) unstable; urgency=medium
 .
   * Non-maintainer upload. (Closes: #1115558)
   * Fix error trapping: Pass --build to configure.
   * Fix FTCBFS: Add prefix to pkg-config.
Checksums-Sha1:
 26877cd6ffc57defcd6b60c26f9b3bcba3b212b7 2009 asedriveiiie_3.7-12.1.dsc
 3eaa680e098aab6046061156efb1f5b02d764b98 10944 
asedriveiiie_3.7-12.1.debian.tar.xz
 c623be5e3b9185e23fe71efb9394fa2ce7948fcc 6935 
asedriveiiie_3.7-12.1_amd64.buildinfo
Checksums-Sha256:
 1593eb70a3711f950ec4c1a85aad6d2f666a2da32127b964b65118beb8327be1 2009 
asedriveiiie_3.7-12.1.dsc
 5dd626879bd5a2908c82cbaa1250b52bf603dcfc8b8fc58f849b58894e7912fd 10944 
asedriveiiie_3.7-12.1.debian.tar.xz
 34c4f329e5621c7e6ef1aa49e1cd04772969a5af34008abdde1695e8d6ef65bd 6935 
asedriveiiie_3.7-12.1_amd64.buildinfo
Files:
 25beb7be9ab2c2b132189a54ec2bb128 2009 libs optional asedriveiiie_3.7-12.1.dsc
 8f629c3086cce7322e2287a4ba9d56f8 10944 libs optional 
asedriveiiie_3.7-12.1.debian.tar.xz
 26aa37838824f6f128eedffed4398c9c 6935 libs optional 
asedriveiiie_3.7-12.1_amd64.buildinfo

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

iQJNBAEBCgA3FiEE9eEbn/6REUb0HZU9eKG03+j5xX4FAmjT3MkZHGx1ZG92aWMu
cm91c3NlYXVAZnJlZS5mcgAKCRB4obTf6PnFfrfbD/4mD+zLKznFtc/U4aG2ZswH
Oi56k8ADUzpxZn7dCD09k+TFpqjznuXOnCkAuF4MnCiGMyp2fMlEkFBQNlcphvZu
HSMPiw45aMnrDfpus0fFx9q8WzFaDv8qdn3BfRTQt/wygFg4/aitw2AkMqo7W5t7
XRd7XkITj69An4hU9N2ay7UWdkQjV6r2NLD6hULdLThK6LOtkeWJFl57MLcBBMQI
NuwQkOvCca6h9kf7hJQ6OkXPt/gLsSjYkNeWXDwGZEDRRkmtYjNvJRpVyu+ZY67Q
SwIFq+p5p5ckpiQFiW1XIyu79THyhrLd64DNVOCfNrxlIxdj0iXlssSc60jfYkU3
kvxVJeGd/TGJyUX7n3s9/CYuitPXP1rfrrRQOaruzMPw4W+9gw61w0Xxd6llnzh2
6PD3kIKnGF4st3MbaIpoEZ9GzR2+Vtug4rHX6mOT/Qk+3Y4l9ydrVgVb3SohD2s/
U0x5MdxF9WqkdDSCx17n4CP5wX+M7a8Som10MXuFABu+guGL8X6U9fAc49q26vnX
E74U6oNJy+M6RmklltuU0nwpflxSLMaAsGqm81haUFt/LF5TOwLwuCBcB9YKyubs
KiH/65z/Ys7GuMP/jZ3eEldl2iOkCrPkQw6GPongaiMXEv005cvgHOrlkOHIQ6mD
TXj+hLZhnADiYRBXz3DgsA==
=qD57
-----END PGP SIGNATURE-----

Attachment: pgpMBZLnyUw4m.pgp
Description: PGP signature


--- End Message ---

Reply via email to