Build failure. Not using AUR helper despite the directory, I cd'd into the cache dir and ran makepkg, same error.
mv: cannot stat '/home/fred/.cache/yay/imagemagick6/pkg/libmagick6/usr/lib/perl5': No such file or directory
==> ERROR: A failure occurred in package_libmagick6().
Aborting...
I noted with some concern the existence of this dir under pkg
…
[fred@デブ.狸.agency ~/.cache/yay/imagemagick6]$ tree pkg/libmagick6/home
pkg/libmagick6/home
└── fred
└── perl5
├── lib
│ └── perl5
│ └── x86_64-linux-thread-multi
│ ├── auto
│ │ └── Image
│ │ └── Magick
│ │ └── Q16HDRI
│ │ ├── autosplit.ix
│ │ └── Q16HDRI.so
│ ├── Image
│ │ ├── Magick
│ │ │ └── Q16HDRI.pm
│ │ └── Magick.pm
│ └── perllocal.pod
└── man
└── man3
├── Image::Magick.3pm
└── Image::Magick::Q16HDRI.3pm
Here's a patch for you:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
- From 957c3093baaae86bf516e2128de45cc3f39df0ee Mon Sep 17 00:00:00 2001
From: Fredrick Brennan <copypaste@kittens.ph>
Date: Tue, 4 Jul 2023 02:23:50 -0400
Subject: [PATCH] pkgrel 2: unperl
- ---
.SRCINFO | 2 +-
PKGBUILD | 10 +++++++++-
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/.SRCINFO b/.SRCINFO
index 7c0e1d2..102f8b2 100644
- --- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = imagemagick6
pkgdesc = An image viewing/manipulation program (legacy 6.9.12-* series)
pkgver = 6.9.12.90
- - pkgrel = 1
+ pkgrel = 2
url = https://legacy.imagemagick.org/
arch = x86_64
license = custom
diff --git a/PKGBUILD b/PKGBUILD
index 9ed8653..41fe1b3 100644
- --- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@ pkgname=libmagick6
pkgbase=imagemagick6
_pkgver=6.9.12-90
pkgver=${_pkgver//-/.}
- -pkgrel=1
+pkgrel=2
pkgdesc="An image viewing/manipulation program (legacy 6.9.12-* series)"
url="https://legacy.imagemagick.org/"
arch=('x86_64')
@@ -25,6 +25,10 @@ validpgpkeys=('D8272EF51DA223E4D05B466989AB63D48277377A') # Lexie Parsimoniae (I
shopt -s extglob
+_unperl() {
+ unset PERL5LIB PERL_LOCAL_LIB_ROOT PERL_MB_OPT PERL_MM_OPT
+}
+
prepare() {
mkdir -p binpkg/usr/lib/pkgconfig {binpkg,docpkg}/usr/share
@@ -35,7 +39,9 @@ prepare() {
}
build() {
+ _unperl
cd ImageMagick-$_pkgver
+ unset PERL5LIB PERL_LOCAL_LIB_ROOT PERL_MB_OPT PERL_MM_OPT
./configure \
PKG_CONFIG="/usr/bin/env PKG_CONFIG_PATH=/usr/lib/$pkgbase/pkgconfig pkg-config" \
--prefix=/usr \
@@ -73,12 +79,14 @@ build() {
}
check() (
+ _unperl
cd ImageMagick-$_pkgver
ulimit -n 4096
make check || :
)
package_libmagick6() {
+ _unperl
pkgdesc="${pkgdesc/)/; library)}"
optdepends=('ghostscript: PS/PDF support'
'libheif: HEIF support'
- --
2.41.0
-----BEGIN PGP SIGNATURE-----
iHUEARYIAB0WIQS1rLeeEfG/f0nzK7hYUwVpYvFOWAUCZKO7cgAKCRBYUwVpYvFO
WDfZAP9+UWdH1pg1wY5tqySQoZwhLPib9YH2gNHVnVinmjIhDQD/SZlnSkPcZPJP
CXiyCius7CEwdibO+by7oyQi5gMdiw0=
=ZEaA
-----END PGP SIGNATURE-----
Pinned Comments
yochananmarqos commented on 2021-09-08 21:45 (UTC) (edited on 2022-08-27 21:36 (UTC) by yochananmarqos)
DO NOT report issues if you’re using an AUR helper (including Pamac aka Add/Remove Software). If you have a problem, build it manually and see if you can reproduce the issue.
Please don't spam the comments if the package is out of date. Just flag it out of date.