libguestfs/libguestfs-1.19.30.patch
2012-08-15 18:06:38 +00:00

29 lines
1.3 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 | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Index: libguestfs-1.19.30/perl/Makefile.am
===================================================================
--- libguestfs-1.19.30.orig/perl/Makefile.am
+++ libguestfs-1.19.30/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
@@ -74,7 +76,7 @@ clean-local:
rm -f Makefile-pl
install-data-hook:
- $(MAKE) -f Makefile-pl DESTDIR=$(DESTDIR) install
+ $(MAKE) -f Makefile-pl DESTDIR=$(DESTDIR) install_vendor
endif