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 <christian@heusel.eu>
This commit is contained in:
parent
5f4fd52e38
commit
9f7808c26e
|
@ -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
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue