From 2b64e03a1141f52b55f713f9d18b3c5e94e2d6d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Mon, 8 Feb 2021 14:50:35 +0100 Subject: [PATCH] nodejs: add libatomic-devel to {host,}makedepends Also architectures where XBPS_{TARGET_}NO_ATOMIC8 is false , e.g. armv7l, are linked against libatomic, so just always add that tiny dependency to {host,}makedepends. --- srcpkgs/nodejs/template | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/srcpkgs/nodejs/template b/srcpkgs/nodejs/template index 7f305afc20..3d84f1c0de 100644 --- a/srcpkgs/nodejs/template +++ b/srcpkgs/nodejs/template @@ -4,11 +4,11 @@ version=14.15.4 revision=1 wrksrc="node-v${version}" # Need these for host v8 for torque, see https://github.com/nodejs/node/pull/21079 -hostmakedepends="which pkg-config python3 zlib-devel $(vopt_if icu icu-devel) - $(vopt_if ssl libressl-devel) $(vopt_if libuv libuv-devel) +hostmakedepends="which pkg-config python3 libatomic-devel zlib-devel + $(vopt_if icu icu-devel) $(vopt_if ssl libressl-devel) $(vopt_if libuv libuv-devel) $(vopt_if http_parser http-parser-devel) $(vopt_if nghttp2 nghttp2-devel) $(vopt_if cares c-ares-devel) $(vopt_if http_parser llhttp-devel)" -makedepends="zlib-devel $(vopt_if icu icu-devel) +makedepends="libatomic-devel zlib-devel $(vopt_if icu icu-devel) $(vopt_if ssl libressl-devel) $(vopt_if libuv libuv-devel) $(vopt_if http_parser http-parser-devel) $(vopt_if nghttp2 nghttp2-devel) $(vopt_if cares c-ares-devel) $(vopt_if http_parser llhttp-devel)" @@ -47,13 +47,6 @@ case "$XBPS_TARGET_MACHINE" in ppc*) broken="Node 12.x does not support 32-bit ppc" ;; esac -if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then - makedepends+=" libatomic-devel" -fi -if [ "$XBPS_NO_ATOMIC8" ]; then - hostmakedepends+=" libatomic-devel" -fi - CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" CXXFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"