diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-12-27 06:30:35 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-12-27 06:30:35 +0000 |
commit | 721e451ec418e1712f6962404e111f0ebd487389 (patch) | |
tree | aab5b35236af464349c2522312c63b664273465c /net-libs | |
parent | e80134587e8d959a88dba7dd3784895372e205c8 (diff) |
gentoo auto-resync : 27:12:2024 - 06:30:34
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/Manifest.gz | bin | 30666 -> 30672 bytes | |||
-rw-r--r-- | net-libs/libmicrodns/Manifest | 2 | ||||
-rw-r--r-- | net-libs/libmicrodns/libmicrodns-0.1.2.ebuild | 31 | ||||
-rw-r--r-- | net-libs/libotr/Manifest | 1 | ||||
-rw-r--r-- | net-libs/libotr/libotr-4.1.1-r1.ebuild | 36 | ||||
-rw-r--r-- | net-libs/meanwhile/Manifest | 4 | ||||
-rw-r--r-- | net-libs/meanwhile/files/meanwhile-1.0.2-glib2.31.patch | 213 | ||||
-rw-r--r-- | net-libs/meanwhile/files/meanwhile-1.0.2-presence.patch | 42 | ||||
-rw-r--r-- | net-libs/meanwhile/meanwhile-1.0.2-r1.ebuild | 53 | ||||
-rw-r--r-- | net-libs/nodejs/Manifest | 2 | ||||
-rw-r--r-- | net-libs/nodejs/files/nodejs-22.12.0-paxmarking.patch | 102 | ||||
-rw-r--r-- | net-libs/nodejs/nodejs-22.12.0-r1.ebuild | 293 |
12 files changed, 397 insertions, 382 deletions
diff --git a/net-libs/Manifest.gz b/net-libs/Manifest.gz Binary files differindex 0af219e20a87..c247a0e2ff6d 100644 --- a/net-libs/Manifest.gz +++ b/net-libs/Manifest.gz diff --git a/net-libs/libmicrodns/Manifest b/net-libs/libmicrodns/Manifest index aa58233702c4..a6fe61031ef2 100644 --- a/net-libs/libmicrodns/Manifest +++ b/net-libs/libmicrodns/Manifest @@ -1,6 +1,4 @@ -DIST microdns-0.1.2.tar.xz 49420 BLAKE2B 247a82c3bb038487390ba967387e9d4cec638ee5315290387c5b8863afbd45cc0700a3ee6c0308db253a161b5c1d345f77808de96df3f31bfaa2ff74e8fa3c05 SHA512 a6b15c65c74560fdba8973c63ffae9cdde4445f54196bb2d7d6348f6c15f8f162ef0a4e91b969ea3f2a60c701c3cc72799fcfba2fbf08c37f71ba8d5e3409702 DIST microdns-0.2.0.tar.xz 50544 BLAKE2B 6f224f7c891e2f14e7c1c97a259ffb323193f8362a728559a506dada6726b25618f86b71f33d7dd0c240d943f5e6b44fadcd2deabff7bacaa53968128d350a0c SHA512 fc642d463f52409e76515897e3662b7b08ee35dc760e595980c343a4fd24f1b76cdfbd4f91ea2115a02243be8ae8908670440ead96715c8983abb2a8559702b6 -EBUILD libmicrodns-0.1.2.ebuild 697 BLAKE2B 55ddb8252a091d04220bafc621bc8372c0889af4d871bd91a28f530268c5556b078a1794ace5408881e13ee27ffebe51c61bb20e0821669f72a08a96d5e7d564 SHA512 513205c31d900d803c11ff97d67cd944ae2bf0d01b229fefe350e85c4b6148bdaae11cab0736de4dda8d73d4d85d706080fa28c505a0dfaa3670b2e5e68c818f EBUILD libmicrodns-0.2.0-r1.ebuild 699 BLAKE2B 01fde99e50badf1d166ced7e211daffc9718ec629946b696ff0c4dcd2bf60dee39b0a24bcb923b9ed98f343a24e15ea6e322bd240d2b358d504da9b0ddc593bd SHA512 11edc75991fabf38835512040a6c99e93b728cf4363aec95b4880eb055e3426f486327449244412fa94edefc107c5b522ff99b069e3ebc95bdea90deab35f7a2 EBUILD libmicrodns-9999.ebuild 704 BLAKE2B 459e4bfb9ba3629ad948929ff39b4e4adf5a8e7a6bec76656c11300208392a41ddaab3c66fa06713845bf80c81a3335ba1ac1e1c3ad6c14f94c75abb075fafcc SHA512 8ca6ddd7dbf6372077947873f6efcc23866955ad9204f16c7f3154e5ce5a6dfb5c2a31851e0128840596cbdced2ac43d26f01007b88b8829eb11474db1b21ecd MISC metadata.xml 254 BLAKE2B 4f83405f0c5f776131825e94db2344f42dbcae710a30024d85374b3d0a3945f711c4f45f85f30a3b09eed0775dd38be7e73c2cc27016cbf2203e0ebef6addf41 SHA512 1df82bee3f7e4594a26a409efeda2283088993cafd502ccc7bf68fc73b2c857b1d61268a0a32933ef99f413d9541e8473e69969805240855da97ebdec9601f99 diff --git a/net-libs/libmicrodns/libmicrodns-0.1.2.ebuild b/net-libs/libmicrodns/libmicrodns-0.1.2.ebuild deleted file mode 100644 index f49bd4643610..000000000000 --- a/net-libs/libmicrodns/libmicrodns-0.1.2.ebuild +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit meson - -DESCRIPTION="Minimal mDNS resolver (and announcer) library" -HOMEPAGE="https://videolabs.io" - -if [[ ${PV} == 9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/videolabs/${PN}" -else - SRC_URI="https://github.com/videolabs/${PN}/releases/download/${PV}/${P/lib/}.tar.xz" - KEYWORDS="amd64 ~arm arm64 ~loong ppc ppc64 ~riscv x86" - S="${WORKDIR}/${P/lib/}" -fi - -LICENSE="LGPL-2.1+" -SLOT="0" -IUSE="examples test" -RESTRICT="!test? ( test )" - -src_configure() { - local emesonargs=( - $(meson_feature examples) - $(meson_feature test tests) - ) - meson_src_configure -} diff --git a/net-libs/libotr/Manifest b/net-libs/libotr/Manifest index ee650d738bb6..41f956803a9a 100644 --- a/net-libs/libotr/Manifest +++ b/net-libs/libotr/Manifest @@ -1,6 +1,5 @@ AUX libotr-4.1.1-dont-clobber-fortify-source.patch 762 BLAKE2B 0d9fe67330b78887751622c5dc9f7ca997ac3a0138aafc3a0ecf9fe9eaff39ef39f3a21ed8b8fa5c5cfd0d4cd39d0387a8b4e3319eed4f55bbdf750ffb319813 SHA512 ed9daa6ee9da54fa318678bb01e7d9c6f0b5de80036d591110dfe60b6f352cd66fc3566295671bcaaded759a812561a2bc3d4599c3e53576b67af3b71ce49cca AUX libotr-4.1.1-fix-build-with-libgcrypt-1.10.patch 285 BLAKE2B c83895dc849645ae83bf2f5e5a7c63fd5d94071af6859744551be298d2de7708d6818aadecfc1d83e6fb93c14cad23d2d3e5f1650067fbf29e4cb43aab8101ad SHA512 d1d59c884ec96ab258aeb9d41ce39949aec97de85859c4fc376b5afdc225495a0f7266b4214140f5f6cc4e0acd1a63a376f070a4393460d36e72934a8398e06f DIST libotr-4.1.1.tar.gz 655791 BLAKE2B 51be68277b56dab96a68fb744e467dc13d966038849ccc0b98b1d0082bcf3b4a0b7fcaeb3f050b0798851723bcdf11bc7ef6681a94999105656dec2fe919659b SHA512 c957206235b9f627542f23a645c822ea1b318d83fa655f41ed8d9a3c0dddf30b88f0ca82060026af155e48ecb13969dc9270831f20304669794151f666ae5cb0 -EBUILD libotr-4.1.1-r1.ebuild 771 BLAKE2B d16596ff69387fcdfc010549015a091092bd44116de1ed57ead7a0551f9e85996d8b75a32049e63732f3fa11b3bf5dcb37e9750bbee71fcddc15d8adcbcd2da9 SHA512 719084188e5c20476b7192685fb15f3f0076dee7c950ff9c5941591428dd7975b07f5c990ba0d5b505896ba014d57375b5d03cfa8543951bb1c4e4c8405bd2c8 EBUILD libotr-4.1.1-r2.ebuild 901 BLAKE2B a8b31442af15c242a06c8d14bdce5220f0088b1aee08236ab87ccbae2556ee0e84d36ae1de6429aebcd76aa2d11723ce8d0bc6c51674230aa95c4365d1f22d5c SHA512 1038455443738df573eb279456478c346d689702ed4f9123582dcc8b3b1e2d7dcfae8c83bfb791993412a43c359ec8865da31cb6fde6e0ea45a612f4c1f63b2c MISC metadata.xml 168 BLAKE2B 2e0e000b4c3b6ca04c12903fdbe278415c05a822623c52e9aa95cbbf3d50bcb1246b7edbda7d2f6b559af8950c6374e6e0a69b76319964cfe686bf50b0604a57 SHA512 4dcf45d1809e8390a2d8155c8ebfe0dd610203e392aeab0ccd8a10f42cc8532a4925eff32b35e7a6c35598a4efd288229034ec0732299dbd8cfa0acff705fed3 diff --git a/net-libs/libotr/libotr-4.1.1-r1.ebuild b/net-libs/libotr/libotr-4.1.1-r1.ebuild deleted file mode 100644 index 82761cced531..000000000000 --- a/net-libs/libotr/libotr-4.1.1-r1.ebuild +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit autotools - -DESCRIPTION="(OTR) Messaging allows you to have private conversations over instant messaging" -HOMEPAGE="https://otr.cypherpunks.ca" -SRC_URI="https://otr.cypherpunks.ca/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" - -RDEPEND=" - dev-libs/libgcrypt:0= - dev-libs/libgpg-error:0=" -DEPEND="${RDEPEND}" - -PATCHES=( - "${FILESDIR}/${PN}-4.1.1-fix-build-with-libgcrypt-1.10.patch" -) - -src_prepare() { - default - eautoreconf -} - -src_install() { - default - dodoc UPGRADING - - # no static archives, #465686 - find "${ED}" -name '*.la' -delete || die -} diff --git a/net-libs/meanwhile/Manifest b/net-libs/meanwhile/Manifest index 44ab87b89c7e..6d00dc9cefa1 100644 --- a/net-libs/meanwhile/Manifest +++ b/net-libs/meanwhile/Manifest @@ -1,8 +1,4 @@ AUX meanwhile-1.0.2-gentoo-fhs-samples.patch 588 BLAKE2B 1905d0d49a814157ae8f6c80f94dcfebcd742404f1329f2f2cd75c6d50cdf50934f93baedfdb79a3b5ad1f2b1b264b6ed7163da4ef51f96f56fdbe6d8d8a46bb SHA512 af12dff949c06994f2834978cac405cb4e6d39714a09b088eab33b433f8597ef3a70f523ec903b4df0f8d272ae63d0c25cd73efe68f3cba58624c9a6682a3e2c -AUX meanwhile-1.0.2-glib2.31.patch 6461 BLAKE2B 1d46f23d60776dd3f3743ca8c892828b966bc3bcf679d7e3f33739fb1d54fe999bf9ff605590c7458b3d4e12a374109903ba53bad1763e343c30224c506b89bf SHA512 b22a45ff231f33294808e65dd0e0461810be26078d94493c56e3e0303fa9d5606f7916f14edee7f94a2b78574300ba76df433b9e3c1ba0b5df3da0d07aa9ca70 -AUX meanwhile-1.0.2-presence.patch 1163 BLAKE2B ba471439dd6acaa5e4b3db78432b76379570c8bde5c760ce0ce388ef33b41527e43c001445c7bfad3e998590c8e80e13b6b12723d340bfac338e9394ed4b8e9a SHA512 f4caf5f727464b044ed533abcb3929227bc55cba4132b55587411ae5c78c320c916924c5b9228a34634af68f4a00d8103616c64b4b77f04e15f66d8ff62dbbd7 -DIST meanwhile-1.0.2.tar.gz 479325 BLAKE2B 70b032ab9b1fc6f556a16afceec5eac72b8efc686977734c84068fb34e49fed01c2c20743ba058cd99de155dd0172ea2132c8bdbfbbfcaa572f889c15da96e01 SHA512 ba356124352ed522bc4c62282e4267960e0d3751c990cc422957ae263c70932264dee2d5e3dfe436325ad53f1833ff541eda4b36a6b78441374256ef54c786e6 DIST meanwhile-1.1.1.tar.gz 180449 BLAKE2B ec4c2a4713f78b6e780f4b7c64b0efbde98275643814010fca995cedb49e7141a0d3065807cab19b78ef9d9813ebc91e2dcf7ee1abc956df91c64af5a7e2aa45 SHA512 89ddb1711ee5c5f5ec2e47b47e4eaf4623b5638a121a87bc905f86b201af753a2689b68ec8397a7cd1578a5a773a289bbe53f38acde2bf0598ce3f25c0dd645c -EBUILD meanwhile-1.0.2-r1.ebuild 987 BLAKE2B 5f0a20e345df7f5563b02de7b9e9b78f4a456ef514964f566082ddb2ca876ed10d8e7028c372f666b95acb3c26a4cdfc09b23067a95df96e6af5e39c78d45093 SHA512 3e0b6341865bca8bdf216336978a38262fc7b4b5f3a34268886a7822ef0f7ed7a3ff112a908c3ba98570b6f2de694f62703aca5839f777cae48bfd35c8911e0e EBUILD meanwhile-1.1.1.ebuild 1019 BLAKE2B 959efc8ca29c76188dc1bb681db1e4f502919cedd0d72394a01301656865fc38486774f83a82c65393afc5461dcc2ef119ebd78deafd10e433d03672fcbf9eb1 SHA512 e46dc0dbae2e8edaae9c7b5a37b1fecbc8e5cc96e56e27c16b6ec53d5b68e97a0fb17ad51baadbb4e03ca1c959ef3d2698fa4da19d2e19f1d446d2459b4e701d MISC metadata.xml 305 BLAKE2B ffcaa8843ef1d8da4d897419a86e53a1ae494120a3a9313cb3536cb4c5d71962d95a4563411ed5ecf68cff8b7c2336e416394288d2402a650cb6edc1b8821341 SHA512 1420e494c215907f681f075d4395152e436a4831362418e1b53d4975fb8947149dfd10aee5318765c5b3785f965ad645b188caf17ffab33f8564746e46b3656c diff --git a/net-libs/meanwhile/files/meanwhile-1.0.2-glib2.31.patch b/net-libs/meanwhile/files/meanwhile-1.0.2-glib2.31.patch deleted file mode 100644 index 4ffcc3672fc7..000000000000 --- a/net-libs/meanwhile/files/meanwhile-1.0.2-glib2.31.patch +++ /dev/null @@ -1,213 +0,0 @@ -diff -uNr meanwhile-1.0.2/src/channel.c meanwhile-1.0.2-r1/src/channel.c ---- meanwhile-1.0.2/src/channel.c 2005-12-08 23:04:46.000000000 +0100 -+++ meanwhile-1.0.2-r1/src/channel.c 2012-03-20 21:15:03.000000000 +0100 -@@ -19,8 +19,6 @@ - */ - - #include <glib.h> --#include <glib/ghash.h> --#include <glib/glist.h> - #include <string.h> - - #include "mw_channel.h" -diff -uNr meanwhile-1.0.2/src/mw_debug.c meanwhile-1.0.2-r1/src/mw_debug.c ---- meanwhile-1.0.2/src/mw_debug.c 2005-12-03 04:46:10.000000000 +0100 -+++ meanwhile-1.0.2-r1/src/mw_debug.c 2012-03-20 21:12:09.000000000 +0100 -@@ -19,7 +19,7 @@ - */ - - --#include <glib/gstring.h> -+#include <glib.h> - - #include "mw_debug.h" - -diff -uNr meanwhile-1.0.2/src/mw_message.h meanwhile-1.0.2-r1/src/mw_message.h ---- meanwhile-1.0.2/src/mw_message.h 2005-12-15 01:30:28.000000000 +0100 -+++ meanwhile-1.0.2-r1/src/mw_message.h 2012-03-20 21:06:28.000000000 +0100 -@@ -22,7 +22,7 @@ - #define _MW_MESSAGE_H - - --#include <glib/glist.h> -+#include <glib.h> - #include "mw_common.h" - - -diff -uNr meanwhile-1.0.2/src/mw_srvc_conf.h meanwhile-1.0.2-r1/src/mw_srvc_conf.h ---- meanwhile-1.0.2/src/mw_srvc_conf.h 2005-12-15 01:30:28.000000000 +0100 -+++ meanwhile-1.0.2-r1/src/mw_srvc_conf.h 2012-03-20 21:08:01.000000000 +0100 -@@ -22,7 +22,7 @@ - #define _MW_SRVC_CONF_H - - --#include <glib/glist.h> -+#include <glib.h> - #include "mw_common.h" - - -diff -uNr meanwhile-1.0.2/src/mw_srvc_dir.h meanwhile-1.0.2-r1/src/mw_srvc_dir.h ---- meanwhile-1.0.2/src/mw_srvc_dir.h 2005-12-15 01:30:28.000000000 +0100 -+++ meanwhile-1.0.2-r1/src/mw_srvc_dir.h 2012-03-20 21:08:23.000000000 +0100 -@@ -22,7 +22,6 @@ - - - #include <glib.h> --#include <glib/glist.h> - - - #ifdef __cplusplus -diff -uNr meanwhile-1.0.2/src/mw_srvc_place.h meanwhile-1.0.2-r1/src/mw_srvc_place.h ---- meanwhile-1.0.2/src/mw_srvc_place.h 2005-12-15 01:30:28.000000000 +0100 -+++ meanwhile-1.0.2-r1/src/mw_srvc_place.h 2012-03-20 21:09:51.000000000 +0100 -@@ -22,7 +22,7 @@ - #define _MW_SRVC_PLACE_H - - --#include <glib/glist.h> -+#include <glib.h> - #include "mw_common.h" - - -diff -uNr meanwhile-1.0.2/src/mw_srvc_resolve.h meanwhile-1.0.2-r1/src/mw_srvc_resolve.h ---- meanwhile-1.0.2/src/mw_srvc_resolve.h 2005-12-15 01:30:28.000000000 +0100 -+++ meanwhile-1.0.2-r1/src/mw_srvc_resolve.h 2012-03-20 21:10:54.000000000 +0100 -@@ -23,7 +23,6 @@ - - - #include <glib.h> --#include <glib/glist.h> - - - #ifdef __cplusplus -diff -uNr meanwhile-1.0.2/src/mw_st_list.h meanwhile-1.0.2-r1/src/mw_st_list.h ---- meanwhile-1.0.2/src/mw_st_list.h 2005-12-15 01:30:28.000000000 +0100 -+++ meanwhile-1.0.2-r1/src/mw_st_list.h 2012-03-20 21:11:27.000000000 +0100 -@@ -30,7 +30,6 @@ - - - #include <glib.h> --#include <glib/glist.h> - #include "mw_common.h" - - -diff -uNr meanwhile-1.0.2/src/mw_util.h meanwhile-1.0.2-r1/src/mw_util.h ---- meanwhile-1.0.2/src/mw_util.h 2004-12-28 21:41:26.000000000 +0100 -+++ meanwhile-1.0.2-r1/src/mw_util.h 2012-03-20 21:06:54.000000000 +0100 -@@ -23,8 +23,6 @@ - - - #include <glib.h> --#include <glib/ghash.h> --#include <glib/glist.h> - - - #define map_guint_new() \ -diff -uNr meanwhile-1.0.2/src/srvc_aware.c meanwhile-1.0.2-r1/src/srvc_aware.c ---- meanwhile-1.0.2/src/srvc_aware.c 2005-12-08 23:02:11.000000000 +0100 -+++ meanwhile-1.0.2-r1/src/srvc_aware.c 2012-03-20 21:07:22.000000000 +0100 -@@ -19,8 +19,6 @@ - */ - - #include <glib.h> --#include <glib/ghash.h> --#include <glib/glist.h> - #include <string.h> - - #include "mw_channel.h" -diff -uNr meanwhile-1.0.2/src/srvc_conf.c meanwhile-1.0.2-r1/src/srvc_conf.c ---- meanwhile-1.0.2/src/srvc_conf.c 2005-12-28 03:46:54.000000000 +0100 -+++ meanwhile-1.0.2-r1/src/srvc_conf.c 2012-03-20 21:07:42.000000000 +0100 -@@ -19,8 +19,6 @@ - */ - - #include <glib.h> --#include <glib/ghash.h> --#include <glib/glist.h> - - #include <stdio.h> - #include <stdlib.h> -diff -uNr meanwhile-1.0.2/src/srvc_dir.c meanwhile-1.0.2-r1/src/srvc_dir.c ---- meanwhile-1.0.2/src/srvc_dir.c 2005-09-15 22:30:20.000000000 +0200 -+++ meanwhile-1.0.2-r1/src/srvc_dir.c 2012-03-20 21:08:44.000000000 +0100 -@@ -18,7 +18,7 @@ - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - --#include <glib/ghash.h> -+#include <glib.h> - - #include "mw_channel.h" - #include "mw_common.h" -diff -uNr meanwhile-1.0.2/src/srvc_ft.c meanwhile-1.0.2-r1/src/srvc_ft.c ---- meanwhile-1.0.2/src/srvc_ft.c 2005-09-15 22:30:37.000000000 +0200 -+++ meanwhile-1.0.2-r1/src/srvc_ft.c 2012-03-20 21:09:05.000000000 +0100 -@@ -19,7 +19,7 @@ - */ - - --#include <glib/glist.h> -+#include <glib.h> - - #include "mw_channel.h" - #include "mw_common.h" -diff -uNr meanwhile-1.0.2/src/srvc_im.c meanwhile-1.0.2-r1/src/srvc_im.c ---- meanwhile-1.0.2/src/srvc_im.c 2005-12-28 03:46:54.000000000 +0100 -+++ meanwhile-1.0.2-r1/src/srvc_im.c 2012-03-20 21:09:31.000000000 +0100 -@@ -19,7 +19,6 @@ - */ - - #include <glib.h> --#include <glib/glist.h> - #include <string.h> - - #include "mw_channel.h" -diff -uNr meanwhile-1.0.2/src/srvc_place.c meanwhile-1.0.2-r1/src/srvc_place.c ---- meanwhile-1.0.2/src/srvc_place.c 2005-12-03 03:00:29.000000000 +0100 -+++ meanwhile-1.0.2-r1/src/srvc_place.c 2012-03-20 21:10:05.000000000 +0100 -@@ -19,8 +19,7 @@ - */ - - #include <glib.h> --#include <glib/ghash.h> --#include <glib/glist.h> -+ - - #include <stdio.h> - #include <stdlib.h> -diff -uNr meanwhile-1.0.2/src/srvc_resolve.c meanwhile-1.0.2-r1/src/srvc_resolve.c ---- meanwhile-1.0.2/src/srvc_resolve.c 2005-10-27 02:10:06.000000000 +0200 -+++ meanwhile-1.0.2-r1/src/srvc_resolve.c 2012-03-20 21:10:21.000000000 +0100 -@@ -18,7 +18,7 @@ - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - --#include <glib/ghash.h> -+#include <glib.h> - - #include "mw_channel.h" - #include "mw_common.h" -diff -uNr meanwhile-1.0.2/src/srvc_store.c meanwhile-1.0.2-r1/src/srvc_store.c ---- meanwhile-1.0.2/src/srvc_store.c 2005-11-19 02:52:42.000000000 +0100 -+++ meanwhile-1.0.2-r1/src/srvc_store.c 2012-03-20 21:11:13.000000000 +0100 -@@ -18,7 +18,7 @@ - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - --#include <glib/glist.h> -+#include <glib.h> - - #include "mw_channel.h" - #include "mw_debug.h" -diff -uNr meanwhile-1.0.2/src/st_list.c meanwhile-1.0.2-r1/src/st_list.c ---- meanwhile-1.0.2/src/st_list.c 2005-12-08 23:01:27.000000000 +0100 -+++ meanwhile-1.0.2-r1/src/st_list.c 2012-03-20 21:11:44.000000000 +0100 -@@ -20,7 +20,7 @@ - - #include <stdio.h> - #include <string.h> --#include <glib/gstring.h> -+#include <glib.h> - - #include "mw_debug.h" - #include "mw_util.h" diff --git a/net-libs/meanwhile/files/meanwhile-1.0.2-presence.patch b/net-libs/meanwhile/files/meanwhile-1.0.2-presence.patch deleted file mode 100644 index e01089eda91c..000000000000 --- a/net-libs/meanwhile/files/meanwhile-1.0.2-presence.patch +++ /dev/null @@ -1,42 +0,0 @@ -# User Mikael Berthe <mikael.berthe@lilotux.net> -# Date 1194208892 -3600 -Fix Awareness Snapshots with recent Sametime servers - -With recent Sametime servers there seem to be 2 bytes -after the Snapshot Message Blocks. -This patch tries to use the end of block offset provided -by the server. - -diff -r be8d8f1d3ebc src/common.c ---- a/src/common.c Sun Nov 04 18:48:00 2007 +0100 -+++ b/src/common.c Tue Nov 06 11:46:26 2007 +0100 -@@ -878,23 +878,24 @@ gboolean mwAwareIdBlock_equal(const stru - /* 8.4.2.4 Snapshot */ - - void mwAwareSnapshot_get(struct mwGetBuffer *b, struct mwAwareSnapshot *idb) { -- guint32 junk; -- char *empty = NULL; -+ guint32 end_of_block; - - g_return_if_fail(b != NULL); - g_return_if_fail(idb != NULL); - -- guint32_get(b, &junk); -+ guint32_get(b, &end_of_block); - mwAwareIdBlock_get(b, &idb->id); - mwString_get(b, &idb->group); - gboolean_get(b, &idb->online); -- -- g_free(empty); - - if(idb->online) { - mwString_get(b, &idb->alt_id); - mwUserStatus_get(b, &idb->status); - mwString_get(b, &idb->name); -+ } -+ -+ if( b->ptr < b->buf + end_of_block ) { -+ mwGetBuffer_advance(b, b->buf + end_of_block - b->ptr); - } - } - diff --git a/net-libs/meanwhile/meanwhile-1.0.2-r1.ebuild b/net-libs/meanwhile/meanwhile-1.0.2-r1.ebuild deleted file mode 100644 index 35f9de1f3477..000000000000 --- a/net-libs/meanwhile/meanwhile-1.0.2-r1.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit autotools flag-o-matic - -DESCRIPTION="Meanwhile (Sametime protocol) library" -HOMEPAGE="http://meanwhile.sourceforge.net/" -SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz" - -LICENSE="LGPL-2" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv sparc x86" -IUSE="doc debug" - -RDEPEND="dev-libs/glib:2" -DEPEND=" - ${RDEPEND} - dev-libs/gmp" -BDEPEND=" - virtual/pkgconfig - doc? ( app-text/doxygen )" - -PATCHES=( - # bug 239144 - "${FILESDIR}"/${P}-presence.patch - # bug 409081 - "${FILESDIR}"/${P}-glib2.31.patch - # bug 241298 - "${FILESDIR}"/${P}-gentoo-fhs-samples.patch -) - -src_prepare() { - default - eautoreconf -} - -src_configure() { - append-cflags -fno-tree-vrp - - econf \ - --disable-static \ - --enable-doxygen=$(usex doc) \ - $(use_enable debug) -} - -src_install() { - default - - # no static archives - find "${D}" -name '*.la' -delete || die -} diff --git a/net-libs/nodejs/Manifest b/net-libs/nodejs/Manifest index 3f1f6e9bd5de..a53a7dd16646 100644 --- a/net-libs/nodejs/Manifest +++ b/net-libs/nodejs/Manifest @@ -1,5 +1,6 @@ AUX nodejs-18.16.0-paxmarking.patch 3470 BLAKE2B 4de01a4b3267d24c7c899a9caf8dae3975a8ed4a82cfe4df2ffc6858a3e1153bd6801ec5f5dc17ab5984ffa2d3b5ec9651c80e6993bd20c14865b0d873f58547 SHA512 5f49c1ca953421b3aa07e0b93375e99c9e5f543b48df3cff833f5e55f7e1b511971c56ed250e36c8a7465229db135a8d2bd1319f2d09368788f6152f06ced4f9 AUX nodejs-20.6.0-paxmarking.patch 3143 BLAKE2B 34b93f63481177f1b70d26bdbdb27674533016dd5cefe4161cfa49c3defc6316cbbf22df024d28e9d42687be78fb0a6ce6e95334cad386d6371ff1f7fd9063ee SHA512 6604a1c8041e28bea0ea8c4dd168d44fb4ae7d25b15db4e20c220bcf3697d08de5205dde502dda4d061ace36e3f8f3511f646b00acc0382c2c8dff64cf1bf8b8 +AUX nodejs-22.12.0-paxmarking.patch 3566 BLAKE2B 0528b950c338da76d44509e58d8e6c266e89f3312020b3859ad642a5c8ec7a098ee5a7650cb9b7aaeafeb6246ce67071aa7e4e0c404e1de0a10461e960b08f08 SHA512 487bd764aa406e283519bd914ace76375895376cabd03ce092c114d797c5d143cb40003941a29418f3bd7a6e9498a24f13d10279be65a1f4f13fc96d966b9dd5 AUX nodejs-22.2.0-riscv.patch 1760 BLAKE2B f5f033dd589637481d2a2f3e67cdbb7a6052bdb187d2666b145a76f23da6e36adeddfe2b6e1718ae4412df914f8517bec2cdc5c15b18eb9dca5dad7a6668cc04 SHA512 f2ff6da8cf5dcc994a7a20342e2928dc1821fbbf42891009a6234b6051277e0200d7e3fbba63b9a2773887591d0ad5ceb1bb3d25e5efeb557f6d00109a80253c DIST node-v18.20.4.tar.xz 40445740 BLAKE2B 0675f2aba1d9a9cd9aeb665ecb3a0f61b9caf39daeb6154941f84b9c423caa7a658c14b8c2c5e12d94424b2470748ec7fad28ecb10390d37f92eb7e50f8adc26 SHA512 1ccef99ebee3906f5bad3c1582f9551ced9bed15e6a047d59d1a23c6110004fb46ea4bebcf9899748c64109f78788d7365ee956444e645eaf397dabbcddda21e DIST node-v18.20.5.tar.xz 40624172 BLAKE2B 3691e655016704adb625cbf6bda7c79775a3184c4081a70874573807cde9ecc646dd6a572bad7872138f9a95ee2756f0ed5ecabe796bcd2f5dcd612d79ec8b2f SHA512 d2215d26ac3bca00ea5eb16976e943375e8d98cef9b2674f9842aa73afb3c269afd0a17104961f6f13e653ab13da1f647669b76a8446a5b82c9db6a743cd5e7f @@ -19,6 +20,7 @@ EBUILD nodejs-20.17.0.ebuild 7836 BLAKE2B 8973c50ea0734561505a225fce2751fcdc4876 EBUILD nodejs-20.18.0.ebuild 8165 BLAKE2B 2723d1bdeabbc8bc72af7ec9c11cc1583a1a3b012d3f81a23c5470b8598259217ea90a8591712f123ae6258f2c2d4d15547621f1095dba49ef41cb8a19dcf407 SHA512 9b33b0744cbff2fc0ad68dd5d272a0970e3c39ce226ec09b546100bfe7f5e2cf83cfb25650d3572f723997a37ea53c8613b8c0ce777f103eb06ca2f8440c5d86 EBUILD nodejs-20.18.1.ebuild 8165 BLAKE2B 2723d1bdeabbc8bc72af7ec9c11cc1583a1a3b012d3f81a23c5470b8598259217ea90a8591712f123ae6258f2c2d4d15547621f1095dba49ef41cb8a19dcf407 SHA512 9b33b0744cbff2fc0ad68dd5d272a0970e3c39ce226ec09b546100bfe7f5e2cf83cfb25650d3572f723997a37ea53c8613b8c0ce777f103eb06ca2f8440c5d86 EBUILD nodejs-22.10.0.ebuild 8696 BLAKE2B 972c0b5e456c6a654cd91c5f7fd8db0dba7d10348c16fec01f53c1f0d84a99ab676cf25951e66a3f150ea8cacdf4ee00db503711a7c97de490a314459f3125c4 SHA512 cc150b924fc4f1dac86b6c9ac7f2c2ec2c49248f5cd21d5de37553e96678eb0b318e40d1423becee7fa79679708555e7939cbe980c5595e0cd23a366db94a3b2 +EBUILD nodejs-22.12.0-r1.ebuild 8697 BLAKE2B 28eb6204acb9429b592756db5db76a04ededba8667d61b76ae88221ce621b8d8a3c0e83505ccad5a02aace6c1898897b021c991478c1d54047b506b520fc14a5 SHA512 fe45bead7f4860cbdb91cc8e2378c8e2ce61fc22eb2cf3809fa413a843cf66460c6c47401a47ae63cf35cd1269874c938ce8b9cd5e70f2d0f91f659014e32027 EBUILD nodejs-22.12.0.ebuild 8696 BLAKE2B 972c0b5e456c6a654cd91c5f7fd8db0dba7d10348c16fec01f53c1f0d84a99ab676cf25951e66a3f150ea8cacdf4ee00db503711a7c97de490a314459f3125c4 SHA512 cc150b924fc4f1dac86b6c9ac7f2c2ec2c49248f5cd21d5de37553e96678eb0b318e40d1423becee7fa79679708555e7939cbe980c5595e0cd23a366db94a3b2 EBUILD nodejs-22.4.1-r1.ebuild 8589 BLAKE2B 4c06dded4d861d1184a9169f59aef42e4ad9d775dfd15dafae0d8c91205088a3d686f8bdc556046cfc4f0823076a036d9ddff591d1b142b8ec86bea0eabff1fd SHA512 9d3e4cbd98189c7182f774a662774747c0ed9b1e509a3041080f528441bb4e1f0591c549b8a8649a72335add2fced4236dc7aca75982a4a7dd821f180ba68301 EBUILD nodejs-22.7.0.ebuild 8674 BLAKE2B 715d5cd0f7822c29eefaca580cd5682c3c7a0488780f1778d2f712ef87427d7f0f1068245eaa21bc211dcc3bc9699f3afec6aaa5cf8c161f2b64b0b667e53b22 SHA512 607177121eec1c69bddb49c08ab3899cc279f318381be0f88c90ac9cae2c2318e0e8e266b1e92fe0880a808a6b74f1ac0a51745f899510a6b61ce7200612e1d6 diff --git a/net-libs/nodejs/files/nodejs-22.12.0-paxmarking.patch b/net-libs/nodejs/files/nodejs-22.12.0-paxmarking.patch new file mode 100644 index 000000000000..74de88873677 --- /dev/null +++ b/net-libs/nodejs/files/nodejs-22.12.0-paxmarking.patch @@ -0,0 +1,102 @@ +From baddb306d6bdafae1de8cdb2435bc57a0b881542 Mon Sep 17 00:00:00 2001 +From: William Hubbs <w.d.hubbs@gmail.com> +Date: Wed, 25 Dec 2024 21:14:26 -0600 +Subject: [PATCH] pax marking + +Signed-off-by: Guillaume Ceccarelli <guillaume@coentropic.com> +--- + node.gyp | 17 ++++++++++++++++- + tools/v8_gypfiles/v8.gyp | 24 +++++++++++++++++++++++- + 2 files changed, 39 insertions(+), 2 deletions(-) + +diff --git a/node.gyp b/node.gyp +index 195fe541bc..b806de81c9 100644 +--- a/node.gyp ++++ b/node.gyp +@@ -435,6 +435,7 @@ + 'test/cctest/test_inspector_socket_server.cc', + ], + 'node_mksnapshot_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)node_mksnapshot<(EXECUTABLE_SUFFIX)', ++ 'node_mksnapshot_u_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)node_mksnapshot_u<(EXECUTABLE_SUFFIX)', + 'node_js2c_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)node_js2c<(EXECUTABLE_SUFFIX)', + 'conditions': [ + ['GENERATOR == "ninja"', { +@@ -729,11 +730,25 @@ + ], + }, { + 'actions': [ ++ { ++ 'action_name': 'run_pax_mksnapshot', ++ 'inputs': [ ++ '<(node_mksnapshot_exec)', ++ ], ++ 'outputs': [ ++ '<(node_mksnapshot_u_exec)', ++ ], ++ 'action': [ ++ 'bash', ++ '-c', ++ 'mv <(node_mksnapshot_exec) <(node_mksnapshot_u_exec) && paxmark.sh m <(node_mksnapshot_u_exec)', ++ ], ++ }, + { + 'action_name': 'node_mksnapshot', + 'process_outputs_as_sources': 1, + 'inputs': [ +- '<(node_mksnapshot_exec)', ++ '<(node_mksnapshot_u_exec)', + ], + 'outputs': [ + '<(SHARED_INTERMEDIATE_DIR)/node_snapshot.cc', +diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp +index 0914746541..e5fb7d3aae 100644 +--- a/tools/v8_gypfiles/v8.gyp ++++ b/tools/v8_gypfiles/v8.gyp +@@ -9,6 +9,7 @@ + 'v8_vector_stores%': 0, + 'v8_embed_script%': "", + 'mksnapshot_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)', ++ 'mksnapshot_u_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot_u<(EXECUTABLE_SUFFIX)', + 'v8_os_page_size%': 0, + 'generate_bytecode_output_root': '<(SHARED_INTERMEDIATE_DIR)/generate-bytecode-output-root', + 'generate_bytecode_builtins_list_output': '<(generate_bytecode_output_root)/builtins-generated/bytecodes-builtins-list.h', +@@ -1693,7 +1694,7 @@ + ], + }, # bytecode_builtins_list_generator + { +- 'target_name': 'mksnapshot', ++ 'target_name': 'mksnapshot_u', + 'type': 'executable', + 'dependencies': [ + 'v8_base_without_compiler', +@@ -1719,6 +1720,27 @@ + 'ldflags': [ '-fno-lto' ], + }], + ], ++ }, # mksnapshot_u ++ { ++ 'target_name': 'mksnapshot', ++ 'type': 'none', ++ 'dependencies': ['mksnapshot_u'], ++ 'actions': [ ++ { ++ 'action_name': 'paxmark_mksnapshot', ++ 'inputs': [ ++ '<(mksnapshot_u_exec)', ++ ], ++ 'outputs': [ ++ '<(mksnapshot_exec)', ++ ], ++ 'action': [ ++ 'bash', ++ '-c', ++ 'cp <(mksnapshot_u_exec) <(mksnapshot_exec) && paxmark.sh m <(mksnapshot_exec)' ++ ], ++ }, ++ ], + }, # mksnapshot + { + 'target_name': 'torque', +-- +2.45.2 + diff --git a/net-libs/nodejs/nodejs-22.12.0-r1.ebuild b/net-libs/nodejs/nodejs-22.12.0-r1.ebuild new file mode 100644 index 000000000000..01bca3eaf966 --- /dev/null +++ b/net-libs/nodejs/nodejs-22.12.0-r1.ebuild @@ -0,0 +1,293 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CONFIG_CHECK="~ADVISE_SYSCALLS" +PYTHON_COMPAT=( python3_{10..13} ) +PYTHON_REQ_USE="threads(+)" + +inherit bash-completion-r1 check-reqs flag-o-matic linux-info ninja-utils pax-utils python-any-r1 toolchain-funcs xdg-utils + +DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine" +HOMEPAGE="https://nodejs.org/" +LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT npm? ( Artistic-2 )" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/nodejs/node" + SLOT="0" +else + SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz" + SLOT="0/$(ver_cut 1)" + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86 ~amd64-linux ~x64-macos" + S="${WORKDIR}/node-v${PV}" +fi + +IUSE="corepack cpu_flags_x86_sse2 debug doc +icu inspector lto npm pax-kernel +snapshot +ssl +system-icu +system-ssl test" +REQUIRED_USE="inspector? ( icu ssl ) + npm? ( ssl ) + system-icu? ( icu ) + system-ssl? ( ssl ) + x86? ( cpu_flags_x86_sse2 )" + +RESTRICT="!test? ( test )" + +RDEPEND=">=app-arch/brotli-1.0.9:= + dev-db/sqlite:3 + >=dev-libs/libuv-1.46.0:= + >=dev-libs/simdjson-3.9.1:= + >=net-dns/c-ares-1.18.1:= + >=net-libs/nghttp2-1.61.0:= + sys-libs/zlib + corepack? ( !sys-apps/yarn ) + system-icu? ( >=dev-libs/icu-73:= ) + system-ssl? ( + >=net-libs/ngtcp2-1.3.0:= + >=dev-libs/openssl-1.1.1:0= + ) + !system-ssl? ( >=net-libs/ngtcp2-1.3.0:=[-gnutls] ) + sys-devel/gcc:*" +BDEPEND="${PYTHON_DEPS} + app-alternatives/ninja + sys-apps/coreutils + virtual/pkgconfig + test? ( net-misc/curl ) + pax-kernel? ( sys-apps/elfix )" +DEPEND="${RDEPEND}" + +# These are measured on a loong machine with -ggdb on, and only checked +# if debugging flags are present in CFLAGS. +# +# The final link consumed a little more than 7GiB alone, so 8GiB is the lower +# limit for memory usage. Disk usage was 19.1GiB for the build directory and +# 1.2GiB for the installed image, so we leave some room for architectures with +# fatter binaries and set the disk requirement to 22GiB. +CHECKREQS_MEMORY="8G" +CHECKREQS_DISK_BUILD="22G" + +pkg_pretend() { + if [[ ${MERGE_TYPE} != "binary" ]]; then + if is-flagq "-g*" && ! is-flagq "-g*0" ; then + einfo "Checking for sufficient disk space and memory to build ${PN} with debugging CFLAGS" + check-reqs_pkg_pretend + fi + fi +} + +pkg_setup() { + python-any-r1_pkg_setup + linux-info_pkg_setup +} + +src_prepare() { + tc-export AR CC CXX PKG_CONFIG + export V=1 + export BUILDTYPE=Release + + # fix compilation on Darwin + # https://code.google.com/p/gyp/issues/detail?id=260 + sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die + + # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504 + local LIBDIR=$(get_libdir) + sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die + sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die + + # Avoid writing a depfile, not useful + sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die + + sed -i -e "/'-O3'/d" common.gypi node.gypi || die + + # debug builds. change install path, remove optimisations and override buildtype + if use debug; then + sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die + BUILDTYPE=Debug + fi + + # We need to disable mprotect on two files when it builds Bug 694100. + use pax-kernel && PATCHES+=( "${FILESDIR}"/${PN}-22.12.0-paxmarking.patch ) + + # bug 931256 + use riscv && PATCHES+=( "${FILESDIR}"/${PN}-22.2.0-riscv.patch ) + + default +} + +src_configure() { + xdg_environment_reset + + # LTO compiler flags are handled by configure.py itself + filter-lto + # GCC with -ftree-vectorize miscompiles node's exception handling code + # causing it to fail to catch exceptions sometimes + # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116057 + tc-is-gcc && append-cxxflags -fno-tree-vectorize + # https://bugs.gentoo.org/931514 + use arm64 && append-flags $(test-flags-CXX -mbranch-protection=none) + # nodejs unconditionally links to libatomic #869992 + # specifically it requires __atomic_is_lock_free which + # is not yet implemented by llvm-runtimes/compiler-rt (see + # https://reviews.llvm.org/D85044?id=287068), therefore + # we depend on gcc and force using libgcc as the support lib + tc-is-clang && append-ldflags "--rtlib=libgcc --unwindlib=libgcc" + + local myconf=( + --ninja + # ada is not packaged yet + # https://github.com/ada-url/ada + # --shared-ada + --shared-brotli + --shared-cares + --shared-libuv + --shared-nghttp2 + --shared-ngtcp2 + --shared-simdjson + # sindutf is not packaged yet + # https://github.com/simdutf/simdutf + # --shared-simdutf + --shared-sqlite + --shared-zlib + ) + use debug && myconf+=( --debug ) + use lto && myconf+=( --enable-lto ) + if use system-icu; then + myconf+=( --with-intl=system-icu ) + elif use icu; then + myconf+=( --with-intl=full-icu ) + else + myconf+=( --with-intl=none ) + fi + use corepack || myconf+=( --without-corepack ) + use inspector || myconf+=( --without-inspector ) + use npm || myconf+=( --without-npm ) + use snapshot || myconf+=( --without-node-snapshot ) + if use ssl; then + use system-ssl && myconf+=( --shared-openssl --openssl-use-def-ca-store ) + else + myconf+=( --without-ssl ) + fi + + local myarch="" + case "${ARCH}:${ABI}" in + *:amd64) myarch="x64";; + *:arm) myarch="arm";; + *:arm64) myarch="arm64";; + loong:lp64*) myarch="loong64";; + riscv:lp64*) myarch="riscv64";; + *:ppc64) myarch="ppc64";; + *:x32) myarch="x32";; + *:x86) myarch="ia32";; + *) myarch="${ABI}";; + esac + + GYP_DEFINES="linux_use_gold_flags=0 + linux_use_bundled_binutils=0 + linux_use_bundled_gold=0" \ + "${EPYTHON}" configure.py \ + --prefix="${EPREFIX}"/usr \ + --dest-cpu=${myarch} \ + "${myconf[@]}" || die +} + +src_compile() { + export NINJA_ARGS=" $(get_NINJAOPTS)" + emake -Onone +} + +src_install() { + local LIBDIR="${ED}/usr/$(get_libdir)" + default + + pax-mark -m "${ED}"/usr/bin/node + + # set up a symlink structure that node-gyp expects.. + dodir /usr/include/node/deps/{v8,uv} + dosym . /usr/include/node/src + for var in deps/{uv,v8}/include; do + dosym ../.. /usr/include/node/${var} + done + + if use doc; then + docinto html + dodoc -r "${S}"/doc/* + fi + + if use npm; then + keepdir /etc/npm + echo "NPM_CONFIG_GLOBALCONFIG=${EPREFIX}/etc/npm/npmrc" > "${T}"/50npm + doenvd "${T}"/50npm + + # Install bash completion for `npm` + local tmp_npm_completion_file="$(TMPDIR="${T}" mktemp -t npm.XXXXXXXXXX)" + "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}" + newbashcomp "${tmp_npm_completion_file}" npm + + # Move man pages + doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/* + + # Clean up + rm -f "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} + rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} + + local find_exp="-or -name" + local find_name=() + for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \ + ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \ + "*.md" "*.markdown" "*.bat" "*.cmd"; do + find_name+=( ${find_exp} "${match}" ) + done + + # Remove various development and/or inappropriate files and + # useless docs of dependend packages. + find "${LIBDIR}"/node_modules \ + \( -type d -name examples \) -or \( -type f \( \ + -iname "LICEN?E*" \ + "${find_name[@]}" \ + \) \) -exec rm -rf "{}" \; + fi + + use corepack && + "${D}"/usr/bin/corepack enable --install-directory "${D}"/usr/bin + + mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die +} + +src_test() { + local drop_tests=( + test/parallel/test-dns.js + test/parallel/test-dns-resolveany-bad-ancount.js + test/parallel/test-dns-setserver-when-querying.js + test/parallel/test-fs-mkdir.js + test/parallel/test-fs-read-stream.js + test/parallel/test-fs-utimes-y2K38.js + test/parallel/test-fs-watch-recursive-add-file.js + test/parallel/test-process-euid-egid.js + test/parallel/test-process-get-builtin.mjs + test/parallel/test-process-initgroups.js + test/parallel/test-process-setgroups.js + test/parallel/test-process-uid-gid.js + test/parallel/test-release-npm.js + test/parallel/test-socket-write-after-fin-error.js + test/parallel/test-strace-openat-openssl.js + test/sequential/test-util-debug.js + ) + [[ "$(nice)" -gt 10 ]] && drop_tests+=( "test/parallel/test-os.js" ) + use inspector || + drop_tests+=( + test/parallel/test-inspector-emit-protocol-event.js + test/parallel/test-inspector-network-domain.js + test/sequential/test-watch-mode.mjs + ) + rm -f "${drop_tests[@]}" || die "disabling tests failed" + + out/${BUILDTYPE}/cctest || die + "${EPYTHON}" tools/test.py --mode=${BUILDTYPE,,} --flaky-tests=dontcare -J message parallel sequential || die +} + +pkg_postinst() { + if use npm; then + ewarn "remember to run: source /etc/profile if you plan to use nodejs" + ewarn " in your current shell" + fi +} |