Date: Sun, 3 May 2020 04:03:30 +0000 (UTC) From: Fukang Chen <loader@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r533741 - in head/www: node node/files node12 node12/files Message-ID: <202005030403.04343Ut9043557@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: loader Date: Sun May 3 04:03:30 2020 New Revision: 533741 URL: https://svnweb.freebsd.org/changeset/ports/533741 Log: www/node, www/node12: Fix build on armv6 and armv7 Reviewed by: koobs, bhughes Approved by: koobs (ports, mentor), bhughes (maintainer) Differential Revision: https://reviews.freebsd.org/D24612 MFH: 2020Q2 Added: head/www/node/files/extra-patch-tools_v8__gypfiles_v8.gyp (contents, props changed) head/www/node12/files/extra-patch-tools_v8__gypfiles_v8.gyp (contents, props changed) Modified: head/www/node/Makefile head/www/node12/Makefile Modified: head/www/node/Makefile ============================================================================== --- head/www/node/Makefile Sun May 3 03:24:07 2020 (r533740) +++ head/www/node/Makefile Sun May 3 04:03:30 2020 (r533741) @@ -78,6 +78,10 @@ LIB_DEPENDS+= libcares.so:dns/c-ares\ EXTRA_PATCHES= ${PATCHDIR}/extra-patch-common.gypi .endif +.if ${ARCH} == armv6 || ${ARCH} == armv7 +EXTRA_PATCHES= ${PATCHDIR}/extra-patch-tools_v8__gypfiles_v8.gyp +.endif + .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 BROKEN_SSL+= base .endif Added: head/www/node/files/extra-patch-tools_v8__gypfiles_v8.gyp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/node/files/extra-patch-tools_v8__gypfiles_v8.gyp Sun May 3 04:03:30 2020 (r533741) @@ -0,0 +1,11 @@ +--- tools/v8_gypfiles/v8.gyp.orig 2020-04-25 08:50:20 UTC ++++ tools/v8_gypfiles/v8.gyp +@@ -805,7 +805,7 @@ + }], + # Platforms that don't have Compare-And-Swap (CAS) support need to link atomic library + # to implement atomic memory access +- ['v8_current_cpu in ["mips", "mipsel", "mips64", "mips64el", "ppc", "arm"]', { ++ ['v8_current_cpu in ["mips", "mipsel", "mips64", "mips64el", "ppc"]', { + 'link_settings': { + 'libraries': ['-latomic', ], + }, Modified: head/www/node12/Makefile ============================================================================== --- head/www/node12/Makefile Sun May 3 03:24:07 2020 (r533740) +++ head/www/node12/Makefile Sun May 3 04:03:30 2020 (r533741) @@ -80,6 +80,10 @@ LIB_DEPENDS+= libcares.so:dns/c-ares\ BROKEN_SSL+= base .endif +.if ${ARCH} == armv6 || ${ARCH} == armv7 +EXTRA_PATCHES= ${PATCHDIR}/extra-patch-tools_v8__gypfiles_v8.gyp +.endif + .if ${PORT_OPTIONS:MBUNDLED_SSL} && ${ARCH} != amd64 CONFIGURE_ARGS+=--openssl-no-asm .endif Added: head/www/node12/files/extra-patch-tools_v8__gypfiles_v8.gyp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/node12/files/extra-patch-tools_v8__gypfiles_v8.gyp Sun May 3 04:03:30 2020 (r533741) @@ -0,0 +1,11 @@ +--- tools/v8_gypfiles/v8.gyp.orig 2020-04-25 08:58:14 UTC ++++ tools/v8_gypfiles/v8.gyp +@@ -809,7 +809,7 @@ + }], + # Platforms that don't have Compare-And-Swap (CAS) support need to link atomic library + # to implement atomic memory access +- ['v8_current_cpu in ["mips", "mipsel", "mips64", "mips64el", "ppc", "arm"]', { ++ ['v8_current_cpu in ["mips", "mipsel", "mips64", "mips64el", "ppc"]', { + 'link_settings': { + 'libraries': ['-latomic', ], + },
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005030403.04343Ut9043557>