Package: te923con
Version: 0.6.1-3
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu disco ubuntu-patch

Dear Maintainer,

te923con 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 in order after the files that need them.

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

  * Merge from Debian unstable. Remaining changes:
    - debian/patches/ld-as-needed.patch: Put -lusb at end of linker flags 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 te923con-0.6.1/debian/patches/ld-as-needed.patch 
te923con-0.6.1/debian/patches/ld-as-needed.patch
--- te923con-0.6.1/debian/patches/ld-as-needed.patch    1969-12-31 
19:00:00.000000000 -0500
+++ te923con-0.6.1/debian/patches/ld-as-needed.patch    2017-08-03 
02:17:14.000000000 -0400
@@ -0,0 +1,10 @@
+--- a/Makefile
++++ b/Makefile
+@@ -6,6 +6,6 @@
+ all: te923con
+ 
+ te923con: te923con.c te923con.h te923usb.c te923usb.h te923com.c te923com.h
+-      gcc $(CPPFLAGS) $(CFLAGS) $(CXXFLAGS) $(LDFLAGS) -Wall -lusb -o 
te923con te923con.c te923usb.c te923com.c
++      gcc $(CPPFLAGS) $(CFLAGS) $(CXXFLAGS) $(LDFLAGS) -Wall -o te923con 
te923con.c te923usb.c te923com.c -lusb
+ 
+ 
diff -Nru te923con-0.6.1/debian/patches/series 
te923con-0.6.1/debian/patches/series
--- te923con-0.6.1/debian/patches/series        2017-05-11 13:12:00.000000000 
-0400
+++ te923con-0.6.1/debian/patches/series        2018-12-13 17:55:06.000000000 
-0500
@@ -1,2 +1,3 @@
 spelling.patch
 hardening.patch
+ld-as-needed.patch

Reply via email to