SHA256
1
0
forked from pool/libguestfs
libguestfs/libguestfs.perl.no-rpath.patch
Olaf Hering d9ff6c49c2 split perl patch libguestfs-1.19.30.patch into
libguestfs.perl.install_vendor.patch and libguestfs.perl.no-rpath.patch
Both are needed in upcoming versions

OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=21
2012-08-29 14:07:05 +00:00

20 lines
1.0 KiB
Diff

[ 193s] ERROR: RPATH "/home/abuild/rpmbuild/BUILD/libguestfs-1.19.30/src/.libs" on /home/abuild/rpmbuild/BUILDROOT/libguestfs-1.19.30-1.x86_64/usr/lib/perl5/site_perl/5.16.0/x86_64-linux-thread-multi/auto/Sys/Guestfs/Guestfs.so is not allowed
[ 193s] ERROR: RPATH "/home/abuild/rpmbuild/BUILD/libguestfs-1.19.30/src/.libs" on /home/abuild/rpmbuild/BUILDROOT/libguestfs-1.19.30-1.x86_64/usr/lib/perl5/site_perl/5.16.0/x86_64-linux-thread-multi/auto/Sys/Guestfs/Guestfs.so is not allowed
---
perl/Makefile.am | 2 ++
1 file changed, 2 insertions(+)
Index: b/perl/Makefile.am
===================================================================
--- a/perl/Makefile.am
+++ b/perl/Makefile.am
@@ -65,6 +65,8 @@ all: Makefile-pl src_deps
Makefile-pl: Makefile.PL
perl Makefile.PL INSTALLDIRS=$(INSTALLDIRS) PREFIX=$(prefix)
+ @set -x ; \
+ for i in `grep -wl ^LD_RUN_PATH Makefile*` ; do sed -i~ 's@^LD_RUN_PATH.*@LD_RUN_PATH=@' $$i ; done
# No! Otherwise it is deleted before the clean-local rule runs.
#CLEANFILES = Makefile-pl