From ba4342d2b7f8499f61d7251d7450722ce04fe0e4 Mon Sep 17 00:00:00 2001 From: Thilo Fromm Date: Fri, 29 Sep 2023 14:54:13 +0200 Subject: [PATCH] Apply suggestions from code review Thank you @krnowak! Great review and awesome feedback, as always. Co-authored-by: Krzesimir Nowak --- PREFIX.md | 2 +- build_library/prefix_util.sh | 36 +++++++++---------- .../prefix-final/prefix-final-0.0.1.ebuild | 2 +- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/PREFIX.md b/PREFIX.md index 1351e87e72..e353a0d5b6 100644 --- a/PREFIX.md +++ b/PREFIX.md @@ -17,7 +17,7 @@ Before prefix build support are considered stable, the below must be implemented ## About Prefix builds let you build and ship applications and all their dependencies in a custom directory. -This custom directory is self-contained, all dependencies are included, and binaries are only linked agains libraries in the custom directory. +This custom directory is self-contained, all dependencies are included, and binaries are only linked against libraries in the custom directory. The applications' root will be `/` - i.e. there's no need to `chroot` into the custom directory. For example, applications built with the prefix `/usr/local/my-app` will ship diff --git a/build_library/prefix_util.sh b/build_library/prefix_util.sh index dee1c72f2a..62a3adbdb6 100644 --- a/build_library/prefix_util.sh +++ b/build_library/prefix_util.sh @@ -4,7 +4,7 @@ DEFAULT_STAGING_ROOT="/build/" function lineprepend() { - awk -v msg="$@" '{ print msg ": " $0}' + awk -v msg="$*" '{ print msg ": " $0}' } # -- @@ -114,17 +114,17 @@ function create_make_conf() { sudo_clobber "${filepath}" <