From 9f7808c26e4270370bb878de56004ddda49b7ce9 Mon Sep 17 00:00:00 2001 From: Christian Heusel Date: Thu, 27 Jul 2023 11:53:11 +0200 Subject: [PATCH] fix(build): installing packages into the chroot fails for relative links As the relative links are relative to the pkgctl invocations PWD and not necessarily relative to the location where makechrootpkg is invoked from this fails unexpectedly. This commit fixes this by just using the full path when passing the location to makechrootpkg. Fixes https://gitlab.archlinux.org/archlinux/devtools/-/issues/181 Signed-off-by: Christian Heusel --- src/lib/build/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/build/build.sh b/src/lib/build/build.sh index ecdeaad..a5a272d 100644 --- a/src/lib/build/build.sh +++ b/src/lib/build/build.sh @@ -200,7 +200,7 @@ pkgctl_build() { ;; -I|--install) (( $# <= 1 )) && die "missing argument for %s" "$1" - MAKECHROOT_OPTIONS+=("-I" "$2") + MAKECHROOT_OPTIONS+=("-I" "$(realpath "$2")") warning 'installing packages into the chroot may break reproducible builds, use with caution!' shift 2 ;;