Your message dated Sun, 08 May 2022 18:00:20 +0000
with message-id <[email protected]>
and subject line Bug#916557: fixed in usbrelay 1.0-1
has caused the Debian Bug report #916557,
regarding usbrelay: FTBFS with ld --as-needed
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.)


-- 
916557: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916557
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: usbrelay
Version: 0.4-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu disco ubuntu-patch

Dear Maintainer,

usbrelay currently fails to build from source with ld --as-needed, which
is enabled by default in Ubuntu. This linker option requires that
libraries be placed after the files that need them.

In Ubuntu, the attached patch was applied to achieve the following:

  * d/p/ld-as-needed.patch: Add libraries to LIBS instead of LDFLAGS to fix
    FTBFS with ld --as-needed.

Thanks for considering the patch.

Logan Rosen

-- System Information:
Debian Release: buster/sid
  APT prefers cosmic-updates
  APT policy: (500, 'cosmic-updates'), (500, 'cosmic-security'), (500, 
'cosmic'), (400, 'cosmic-proposed'), (100, 'cosmic-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.18.0-12-generic (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru usbrelay-0.4/debian/patches/ld-as-needed.patch 
usbrelay-0.4/debian/patches/ld-as-needed.patch
--- usbrelay-0.4/debian/patches/ld-as-needed.patch      1969-12-31 
19:00:00.000000000 -0500
+++ usbrelay-0.4/debian/patches/ld-as-needed.patch      2018-12-15 
17:17:46.000000000 -0500
@@ -0,0 +1,16 @@
+--- a/Makefile
++++ b/Makefile
+@@ -1,11 +1,11 @@
+ CFLAGS += -O2 -Wall
+ HIDAPI = hidraw
+-LDFLAGS += -lhidapi-$(HIDAPI)
++LIBS += -lhidapi-$(HIDAPI)
+ 
+ all: usbrelay
+ 
+ usbrelay: usbrelay.c
+-      $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $<
++      $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
+ 
+ clean:
+       rm -f usbrelay
diff -Nru usbrelay-0.4/debian/patches/series usbrelay-0.4/debian/patches/series
--- usbrelay-0.4/debian/patches/series  2018-10-21 11:21:09.000000000 -0400
+++ usbrelay-0.4/debian/patches/series  2018-12-15 17:17:16.000000000 -0500
@@ -1 +1,2 @@
 0001-make-CFLAGS-LDFLAGS-and-CPPFLAGS-customizable.patch
+ld-as-needed.patch

--- End Message ---
--- Begin Message ---
Source: usbrelay
Source-Version: 1.0-1
Done: Jan Dittberner <[email protected]>

We believe that the bug you reported is fixed in the latest version of
usbrelay, 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.
Jan Dittberner <[email protected]> (supplier of updated usbrelay 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: Fri, 06 May 2022 17:07:11 +0200
Source: usbrelay
Binary: python3-usbrelay python3-usbrelay-dbgsym usbrelay usbrelay-dbgsym 
usbrelayd
Architecture: source amd64 all
Version: 1.0-1
Distribution: unstable
Urgency: medium
Maintainer: Jan Dittberner <[email protected]>
Changed-By: Jan Dittberner <[email protected]>
Description:
 python3-usbrelay - Python bindings for USB HID relay driver
 usbrelay   - USB HID relay driver
 usbrelayd  - MQTT client for USB HID relay driver
Closes: 916557
Changes:
 usbrelay (1.0-1) unstable; urgency=medium
 .
   [ Michal Sojka ]
   * New upstream version 1.0
   * Drop "v" prefix from the watch file and update to version=4
   * Drop 0001-make-CFLAGS-LDFLAGS-and-CPPFLAGS-customizable.patch
   * Update gcc9.patch (Closes: Bug#916557)
   * Pass Debian package version to the build system
   * Use upstream man page rather than Debian one
   * Override lintian soname error
   * Add python3-usbrelay package
   * Add usbrelayd package providing interface to MQTT
   * Update udev rules
   * Bump debhelper compatibility to 13 (no changes)
   * Bump Standards-Version to 4.6.0 (no changes)
   * Update copyright information
   * Announce the hardware support using AppStream
   * Add usbrelayd(8) manpage
   * Fix spelling error
   * Add myself as uploader
   * Use DynamicUser rather than hardcoding usbrelay user
   * Add Documentation key to usbrelayd.service
   * Add "Rules-Requires-Root: no" to d/control
   * Remove StopWhenUnneeded from systemd service (backport from upstream)
 .
   [ Jan Dittberner ]
   * fix filenamemangle parameter in debian/watch
Checksums-Sha1:
 3a2cba50d91c5c8d08d8fbcefddbd98588389621 1716 usbrelay_1.0-1.dsc
 3e9531ae7b4396b286bdf0d37cae9bc747f2cff8 466023 usbrelay_1.0.orig.tar.gz
 1ff855409045f16b7caf84ed76c95904ea636c51 10900 usbrelay_1.0-1.debian.tar.xz
 7359231a44842e613d49ece2f6c25efc453d3d89 12388 
python3-usbrelay-dbgsym_1.0-1_amd64.deb
 d285fe1449145094f3693d3459e4810b27d5cbb7 12260 python3-usbrelay_1.0-1_amd64.deb
 f9f0865a7285c23d4ec8b28ae44973c4216f8c90 17168 usbrelay-dbgsym_1.0-1_amd64.deb
 951dc1fab66bf95ff07a1e26846768fa1bf51b28 8083 usbrelay_1.0-1_amd64.buildinfo
 c2d078cbb991f852cd5c11dc9c2489c2721337a9 358540 usbrelay_1.0-1_amd64.deb
 b54df0ac1ffedd0b352619081acde8941d0245a5 11492 usbrelayd_1.0-1_all.deb
Checksums-Sha256:
 95babfb2bb29d72970dd565daa1258bd11d7484788a622433650922d60082b12 1716 
usbrelay_1.0-1.dsc
 f69684b7544623fbb9845542251b20020c9e490aba9f0624ec3ae89b2b2c191b 466023 
usbrelay_1.0.orig.tar.gz
 e39285f04a8a01f9c338fb0ba7fe58deab1dd64fa04dd1ca688d1f65e6a60da1 10900 
usbrelay_1.0-1.debian.tar.xz
 2a883317521b4c03a6d641ca03a546438e031cbdeb4019b9387e2df380eb896d 12388 
python3-usbrelay-dbgsym_1.0-1_amd64.deb
 c662224e1d01f7a383e9c66e6fc2fcc4e08f709d645a050970b705ea0858c4b4 12260 
python3-usbrelay_1.0-1_amd64.deb
 33ad8fecc5966519858a6920bcdeaf4f716d39927a62de0a3858b6473acc93c2 17168 
usbrelay-dbgsym_1.0-1_amd64.deb
 5deea917c5f7e165c8591915445833eac2a9db9d7d6824633059c98d75d0d897 8083 
usbrelay_1.0-1_amd64.buildinfo
 80d831ef0252d6836b47236ec17d3ef4995d2b2aa1502d99a918b967277fa5c4 358540 
usbrelay_1.0-1_amd64.deb
 50cd84e82b57fbb0a58245b3d4ea682042ee05883ab34aca736e248db37c87ed 11492 
usbrelayd_1.0-1_all.deb
Files:
 aa5d64b74b33de0b187d948d25e6e336 1716 electronics optional usbrelay_1.0-1.dsc
 b7f92c4c1b6eae0501725da3a71d3ed4 466023 electronics optional 
usbrelay_1.0.orig.tar.gz
 d9b1d4309185a895507e4a747bae94dd 10900 electronics optional 
usbrelay_1.0-1.debian.tar.xz
 215625f917809782e60a9d220682b2a0 12388 debug optional 
python3-usbrelay-dbgsym_1.0-1_amd64.deb
 b94037902ab20a29e25104c573f0d65b 12260 python optional 
python3-usbrelay_1.0-1_amd64.deb
 4bfb688a88caf19add61b1ed5e82ea88 17168 debug optional 
usbrelay-dbgsym_1.0-1_amd64.deb
 35bec64c0a9e08c0e4b2e47ac8831913 8083 electronics optional 
usbrelay_1.0-1_amd64.buildinfo
 b8e280c9a684b21e9d02d8ab1f04a836 358540 electronics optional 
usbrelay_1.0-1_amd64.deb
 dcdac466fcdd2952d052404ac2ef3b2c 11492 net optional usbrelayd_1.0-1_all.deb

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

iQFFBAEBCgAvFiEEKHuXKkUYdvdO9493DXkdyNc3wdkFAmJ1SPYRHGphbmRkQGNh
Y2VydC5vcmcACgkQDXkdyNc3wdnAmwf8D4nU45CesiCjE97My+JU6JCs97VPBWtO
/RlWMBLLdw41FfANiSvt9KNjkInEXA/3ATCscZs+D8FVmU+3uVdPtpqnyTXmnWcm
6GHEO7puK6TCIxa+EMvhH9VdNZWsFPFXk7Ipg2RXlQfiZW+T6wEu4KDtyBtlfkm9
PKvBywC11LToufXP9GvvywFgOCcl9Zm+VW8MQPjz/h+QhWuD7eKXz3y6lZapU4mj
ziyf3rj1Yq1HHg8Jbj8Kg6XFMaKactT24LLv5dgy1LCCjFo7F7LNOOiO7JcozX6L
ThuDbG/cBnc4XtTaoSwrb46TZ3N8H7XyH8q+txaYoSo/S2Xan6u2Dg==
=ftbV
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to