From e66392d2f86bb73fdbdccc5a0e8e2c8c70ac793b Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 21 Dec 2007 16:08:17 +0000 Subject: automatically require perlapi- for binary perl modules (so that we can cleanly handle perl API breakage) --- find-requires.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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- 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` -- cgit v1.2.1