From 45a95ca8e0718c47c9009251e8b02578fc441eff Mon Sep 17 00:00:00 2001 From: John Vogel Date: Sat, 10 Feb 2018 23:25:44 -0500 Subject: [PATCH] imagemagick: fix bogus rpath in perl .so files The perl binding .so files are being built with RPATH prefixed with the build's work directory because the imagemagick libs aren't installed yet. Rebuild the perl binding with LD_RUN_PATH removed from the linker command line. Also, change '--with-lcms=no --with-lcms2=yes' to '--with-lcms=yes'. Upstream changed the lcms flags again. Seems only lcms2 is actually supported and --with-lcms is the only current switch for that now. --- imagemagick/Pkgfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/imagemagick/Pkgfile b/imagemagick/Pkgfile index 4e24eaa28..6a11e4b56 100644 --- a/imagemagick/Pkgfile +++ b/imagemagick/Pkgfile @@ -6,7 +6,7 @@ name=imagemagick version=7.0.7-22 -release=1 +release=2 source=(ftp://ftp.imagemagick.org/pub/ImageMagick/releases/ImageMagick-$version.tar.xz) build () { @@ -16,11 +16,17 @@ build () { --enable-shared \ --with-modules \ --with-perl=yes \ - --with-lcms=no --with-lcms2=yes + --with-lcms=yes make make DESTDIR=$PKG install + # rebuild perl binding .so files to remove bogus workdir rpath + cd PerlMagick + find . -name '*.so' -delete + sed -i 's,LD_RUN_PATH="$(LD_RUN_PATH)" ,,' quantum/Makefile + make DESTDIR=$PKG install + rm -r $PKG/usr/share/doc find $PKG -regex '.*\(ChangeLog\|LICENSE\|NEWS\.txt\)$' -delete find $PKG -regex '.*\(\.packlist\|perllocal.pod\|\.bs\)$' -delete