dbermond commented on 2018-01-25 01:10

Basically, in this case you need to use the command extra-x86_64-build. Use it with makechrootpkg -I options (after --) to provide the needed AUR package dependencies.

japp1egate commented on 2018-01-25 00:00

Wow. That makes little-to-no sense to me. I know I haven't set DESTDIR or pkgdir to anything myself. Can you point me in the right direction for instructions to set up a clean chroot environment? No need for hand-holding or anything. Just please point me in the right direction. :)

dbermond commented on 2018-01-24 23:31

@japp1egate Your perl files are being installed to ${pkgdir}/home/japple/perl5/lib/perl5/ instead of ${pkgdir}/usr/lib/perl5/. I don't know why.

Sorry, but I have no solution for this. You're the first one to raise this issue here. Make sure that you don't have the environment variables DESTDIR and pkgdir setted elsewhere.

As a final attempt, you can try to build in a chroot by using devtools. It should work since it will build in an isolated environment.

I recognize and understand that you are not able to reproduce the error on your side, but by looking at the issue I'm having, are you able to make a determination as to what's actually broken and offer some advice on how to fix it?

dbermond commented on 2018-01-24 21:28

@japp1egate It seems that you're doing it in the wrong way. You do not need to extract the contents of the ImageMagick source tarball because it's done by makepkg. You're not supposed to copy the .diff file because it comes along with this AUR package.

I have extracted the contents of ImageMagick-7.0.7-22.tar.xz to a src/ directory in my homedir. I then copied the arch-fonts.diff into the resulting ImageMagick-7.0.7-22 directory.

After downloading the PKGBUILD file into the same extracted directory, I ran makepkg, the result of which you see above.

Inside the PKGBUILD, I see a section labeled "package_imagemagick-full()" and within that function is a line which reads 'find "$pkgdir/usr/lib/perl5" -name '*.so' -exec chrpath -d {} +'. I believe this is where the process is breaking for me.