aboutsummaryrefslogtreecommitdiffstats
path: root/find-requires.in
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-12-21 16:08:17 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-12-21 16:08:17 +0000
commite66392d2f86bb73fdbdccc5a0e8e2c8c70ac793b (patch)
tree7e1b6026c1268ec3b9f16ee8cb34023c9e079e64 /find-requires.in
parent1838408130d73766f64fd5dea70df9a173e93a84 (diff)
downloadrpm-setup-e66392d2f86bb73fdbdccc5a0e8e2c8c70ac793b.tar
rpm-setup-e66392d2f86bb73fdbdccc5a0e8e2c8c70ac793b.tar.gz
rpm-setup-e66392d2f86bb73fdbdccc5a0e8e2c8c70ac793b.tar.bz2
rpm-setup-e66392d2f86bb73fdbdccc5a0e8e2c8c70ac793b.tar.xz
rpm-setup-e66392d2f86bb73fdbdccc5a0e8e2c8c70ac793b.zip
automatically require perlapi-<perl-version> for binary perl modules
(so that we can cleanly handle perl API breakage)
Diffstat (limited to 'find-requires.in')
-rwxr-xr-xfind-requires.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/find-requires.in b/find-requires.in
index 8d86350..a073ed1 100755
--- a/find-requires.in
+++ b/find-requires.in
@@ -166,10 +166,13 @@ fi
echo $perllist | tr '[:blank:]' \\n | @RPMVENDORDIR@/perl.req | grep 'perl([[:upper:]]' | 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 libperl.so exists and if XS modules are found, depend on perlapi-<version> and 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
+ version=`perl -MConfig -e 'print $Config{version}'`
+ echo perlapi-$version
+
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`