aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-11 11:47:58 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-11 11:47:58 +0000
commit6d76bca2135cb35aa72e3b785945d10436d047d2 (patch)
tree81e40871c3c6cbcb11cf71f0cd722995f61757b0
parent2f9397f30384664cfdbc6f07d58d081f36193fd7 (diff)
downloadrpm-setup-6d76bca2135cb35aa72e3b785945d10436d047d2.tar
rpm-setup-6d76bca2135cb35aa72e3b785945d10436d047d2.tar.gz
rpm-setup-6d76bca2135cb35aa72e3b785945d10436d047d2.tar.bz2
rpm-setup-6d76bca2135cb35aa72e3b785945d10436d047d2.tar.xz
rpm-setup-6d76bca2135cb35aa72e3b785945d10436d047d2.zip
Insert an automatic dependency on libperl.so when building XS modules.
This fixes the root cause of bugzilla #17967.
-rwxr-xr-xfind-requires.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/find-requires.in b/find-requires.in
index a926a3b..13f9994 100755
--- a/find-requires.in
+++ b/find-requires.in
@@ -163,6 +163,19 @@ fi
echo $perllist | tr '[:blank:]' \\n | @RPMVENDORDIR@/perl.req | grep 'perl([A-Z]' | egrep -v 'perl\((Be|FreeBSD|HPUX|Mac|MSDOS|MVS|OS2|Riscos|SGI|Solaris|VMS|Win32|WinNT)' | sort -u
#
+# --- If libperl.so exists and if XS modules are found, depend on libperl.so
+if [ -n "$perllist" ]; then
+ if perl -V:useshrplib | grep -q true ; then
+ if echo $perllist | grep -q `perl -MConfig -e 'print $Config{archname}'` ; then
+ f=`perl -MConfig -e 'print $Config{archlib}'`/CORE/libperl.so
+ lib64=`if file -L $f 2>/dev/null | \
+ grep "ELF 64-bit" >/dev/null; then echo "()$mark64"; fi`
+ echo libperl.so$lib64
+ fi
+ fi
+fi
+
+#
# --- Python modules.
[ -x @RPMVENDORDIR@/python.req -a -n "$pythonlist" ] && \
echo $pythonlist | tr '[:blank:]' \\n | @RPMVENDORDIR@/python.req | sort -u