Package: wcc
Version: 0.0.2+dfsg-4.1
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu kinetic ubuntu-patch

Hi Philippe,

In Ubuntu, the wcc autopkgtest is failing because Ubuntu has moved to glibc
2.36, which results in some changes to the output of ldd.  The wldd wrapper
does not handle all of these changes correctly.

Please find attached a patch that adjusts wldd to handle this new ldd
output.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
slanga...@ubuntu.com                                     vor...@debian.org
diff -Nru wcc-0.0.2+dfsg/debian/patches/glibc-2.36-compat.patch 
wcc-0.0.2+dfsg/debian/patches/glibc-2.36-compat.patch
--- wcc-0.0.2+dfsg/debian/patches/glibc-2.36-compat.patch       1969-12-31 
16:00:00.000000000 -0800
+++ wcc-0.0.2+dfsg/debian/patches/glibc-2.36-compat.patch       2022-08-26 
09:18:41.000000000 -0700
@@ -0,0 +1,21 @@
+Description: fix wldd to be compatible with glibc 2.36's ldd output
+ wldd assumes everything in the output of ldd with a => pointer is a
+ shared library, but glibc 2.36 now also outputs the information about
+ the linker in the same format.  Filter it out.
+Author: Steve Langasek <steve.langa...@ubuntu.com>
+Last-Update: 2022-08-26
+Forwarded: no
+ 
+Index: wcc-0.0.2+dfsg/src/tools/wldd
+===================================================================
+--- wcc-0.0.2+dfsg.orig/src/tools/wldd
++++ wcc-0.0.2+dfsg/src/tools/wldd
+@@ -19,7 +19,7 @@
+ }
+ 
+ getlibs (){
+-      ldd $1|grep "=> /"|awk '{print $1}'|sed s#"\..*"##|sed 
s#"^lib"#"-l"#|tr "\n" " "
++      ldd $1|awk '/ld-linux/ { next; } /=> \// {print $1}'|sed s#"\..*"##|sed 
s#"^lib"#"-l"#|tr "\n" " "
+       echo ""
+ }
+ 
diff -Nru wcc-0.0.2+dfsg/debian/patches/series 
wcc-0.0.2+dfsg/debian/patches/series
--- wcc-0.0.2+dfsg/debian/patches/series        2020-03-21 10:02:12.000000000 
-0700
+++ wcc-0.0.2+dfsg/debian/patches/series        2022-08-26 09:15:40.000000000 
-0700
@@ -10,3 +10,4 @@
 spelling_in_src.patch
 latex_build.patch
 glibc.patch
+glibc-2.36-compat.patch

Reply via email to