From b9e5cfbaf37c187934d23c11f9a07b723c21be6b Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 5 Dec 2021 09:57:28 +0100 Subject: community/nodejs: fixed patching in wrong place --- community/nodejs/PKGBUILD | 18 ++++++++++++++++++ community/nodejs/node-17.1.0-atomic.patch | Bin 0 -> 1226 bytes 2 files changed, 18 insertions(+) create mode 100644 community/nodejs/node-17.1.0-atomic.patch (limited to 'community/nodejs') diff --git a/community/nodejs/PKGBUILD b/community/nodejs/PKGBUILD index efbf8000..08611e96 100644 --- a/community/nodejs/PKGBUILD +++ b/community/nodejs/PKGBUILD @@ -15,3 +15,21 @@ eval "$( 3 i CXXFLAGS+=" -g1" ' )" + +# add -latomic where needed (i486) +if [ "$CARCH" = 'i486' ]; then + source+=('node-17.1.0-atomic.patch') + sha512sums+=('0fd62af37c4c0e2cd81fc613f4610741dbe6e883b5d15aa1fd64bcdbca8ec8d95aa98a37525425e5f80e8ca1305e222235f3ca6069779e3fcc1940b20207d50a') + eval "$( + declare -f prepare | \ + sed ' + $i patch -Np1 -i "../node-17.1.0-atomic.patch" + ' + )" + eval "$( + declare -f build | \ + sed ' + 3 i LDFLAGS+=" -latomic" + ' + )" +fi diff --git a/community/nodejs/node-17.1.0-atomic.patch b/community/nodejs/node-17.1.0-atomic.patch new file mode 100644 index 00000000..58ae4ecc Binary files /dev/null and b/community/nodejs/node-17.1.0-atomic.patch differ -- cgit v1.2.3-54-g00ecf