Bug#92025: apt: [hurd] libstdc++ version detection breaks here
Package: apt
Version: 0.5.3
Severity: important
On the Hurd, libstdc++ has no "-libcX.Y-" in the name. The sed
expression will therefore not trigger and apt will misdetect the
version as "NEEDED". This results in a strange name for libapt-pkg,
and subsequent failure of the build.
Please apply the following patch - the regexp should work for the
filename patterns occuring on Hurd and Linux architectures.
--- apt-0.5.3/aclocal.m4 Sun Mar 4 23:34:10 2001
+++ apt-0.5.3+/aclocal.m4 Wed Mar 28 19:21:27 2001
@@ -135,7 +135,7 @@
if test "$?" = 0; then
soname=`objdump -p ./$dummy |grep NEEDED|grep libstd`
- LIBSTDCPP_VER=`echo $soname | sed -e 's/.*NEEDED.*libstdc++-libc.*-\(.*\).so.\(.*\)/\2-\1/'`
+ LIBSTDCPP_VER=`echo $soname | sed -e 's/.*NEEDED.*libstdc++\(-libc.*\(-.*\)\)\?.so.\(.*\)/\3\2/'`
fi
rm -f $dummy $dummy.cc
Reply to: