Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src/lib/build
diff options
context:
space:
mode:
authorChristian Heusel <christian@heusel.eu>2023-07-27 11:53:11 +0200
committerLevente Polyak <anthraxx@archlinux.org>2023-08-27 16:55:50 +0200
commit9f7808c26e4270370bb878de56004ddda49b7ce9 (patch)
tree8890125983f571b5ee9cf25bc8da242647bbe460 /src/lib/build
parent5f4fd52e3836ddddb25a0f9e15d0acfed06f693d (diff)
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>
Diffstat (limited to 'src/lib/build')
-rw-r--r--src/lib/build/build.sh2
1 files changed, 1 insertions, 1 deletions
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
;;