diff options
author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2023-01-30 22:20:38 +0800 |
---|---|---|
committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2023-01-30 22:20:38 +0800 |
commit | fa93fdc383c190569821ae224413c848c19d9a7c (patch) | |
tree | cb607d163f91bc31c806327ae8f7e49b95b67f8b /www/node18/files/extra-patch-common.gypi | |
parent | */py-: Fix MASTER_SITES after CHEESESHOP to PYPI trasition (diff) |
Framework: Rewrite nodejs.mk and reorganize www/{node,npm,yarn}
The current USES=nodejs has the following issues:
- www/node is not the default version while www/node16 is.
- It also means inconsistent naming of node ports.
- www/npm duplicates with www/npm-node16.
- www/yarn duplicates with www/yarn-node16.
The notable changes are introduced to fix the above issues:
- Rewrite Mk/Uses/nodejs.mk.
- Add new LTS version of nodejs (www/noe18).
- Add new current version of nodejs (www/node19).
- Change default nodejs version from 16 to 18 (latest LTS).
- Use consistent naming for all supported node versions.
- Convert www/node, www/npm and www/yarn to meta ports.
After this commit:
- All supported node versions are named as node{14,16,18,19}
- www/node is a meta port which depends on the default version (e.g. www/node18)
- www/npm is a meta port which depends on the default version (e.g. www/npm-node18)
- www/yarn is a meta port which depends on the default version (e.g. www/yarn-node18)
- Bump PORTREVISION of dependent ports for dependency change (from www/node16 to www/node18)
Discussed with: jrm, otis, pizzamig
Diffstat (limited to 'www/node18/files/extra-patch-common.gypi')
-rw-r--r-- | www/node18/files/extra-patch-common.gypi | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/www/node18/files/extra-patch-common.gypi b/www/node18/files/extra-patch-common.gypi new file mode 100644 index 000000000000..8e817a2959c9 --- /dev/null +++ b/www/node18/files/extra-patch-common.gypi @@ -0,0 +1,13 @@ +--- common.gypi.orig 2019-10-01 15:32:40.000000000 +0200 ++++ common.gypi 2019-10-16 12:47:09.236138000 +0200 +@@ -390,8 +390,8 @@ + 'ldflags': [ '-m32' ], + }], + [ 'target_arch=="ppc64" and OS!="aix"', { +- 'cflags': [ '-m64', '-mminimal-toc' ], +- 'ldflags': [ '-m64' ], ++ 'cflags': [ '-m64' ], ++ 'ldflags': [ '-m64' ], + }], + [ 'target_arch=="s390x"', { + 'cflags': [ '-m64', '-march=z196' ], |