Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
rootmos committed Mar 1, 2024
1 parent 450b50c commit 101fdd2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
TEST_OUTPUT_DIR: /tmp/tests
steps:
- name: Install minimal dependencies
run: pacman -Suy --noconfirm sudo fakeroot binutils which wget git
run: pacman -Suy --noconfirm sudo fakeroot binutils which wget git diffutils

- name: Check out repository code
uses: actions/checkout@v4
Expand Down
8 changes: 4 additions & 4 deletions build/archlinux/nodejs-shared/PKGBUILD.gen
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ echo 1>&2 "$(basename "$ORIGINAL") SHA256: $ORIGINAL_SHA256"

SHARED="$SCRIPT_DIR/PKGBUILD.shared"

cp -v "$ORIGINAL" "$SHARED"
cp 1>&2 -v "$ORIGINAL" "$SHARED"

sed -i 's/pkgname=nodejs/pkgname=nodejs-shared\nconflicts=('"'"'nodejs'"'"')/' "$SHARED"
sed -i 's,./configure,./configure --shared,' "$SHARED"
Expand All @@ -27,15 +27,15 @@ for d in gcc make icu pkgconf debugedit; do
fi
EXTRA_makedepends="$EXTRA_makedepends'$d'"
done
sed -i 's/^makedepends=\(.*\)$/makedepends=\1\nmakedepends+=('"$EXTRA_makedepends"')/' PKGBUILD.shared
sed -i 's/^makedepends=\(.*\)$/makedepends=\1\nmakedepends+=('"$EXTRA_makedepends"')/' "$SHARED"

if diff "$ORIGINAL" "$SHARED"; then
if diff 1>&2 "$ORIGINAL" "$SHARED"; then
echo 1>&2 "unexpectedly similar files!"
exit 1
fi

SHARED_SHA256=$(sha256sum "$SHARED" | cut -f1 -d' ')
echo "$(basename "$SHARED") SHA256: $SHARED_SHA256"
echo 1>&2 "$(basename "$SHARED") SHA256: $SHARED_SHA256"

. "$SHARED"

Expand Down

0 comments on commit 101fdd2

Please sign in to comment.