pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pnpm: update to 12.0.0-rc.3



Module Name:	pkgsrc-wip
Committed By:	Iku Iwasa <iku.iwasa%gmail.com@localhost>
Pushed By:	iquiw
Date:		Sun Aug 16 16:05:16 2026 +0900
Changeset:	b0650881cdae9bde5433d7ff4dfed45858bc3bc0

Modified Files:
	pnpm/Makefile
	pnpm/distinfo
Added Files:
	pnpm/patches/patch-pnpm_crates_cli_src_cli__args_repo.rs

Log Message:
pnpm: update to 12.0.0-rc.3

Pkgsrc changes:

* Use pre-release RC tag instead of release tag.
* One more patch for NetBSD support.

pnpm 12.0.0-rc.4 needs to wait for pkgsrc Rust updating to v1.97.1.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b0650881cdae9bde5433d7ff4dfed45858bc3bc0

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 pnpm/Makefile                                      |  7 +++----
 pnpm/distinfo                                      |  7 ++++---
 .../patch-pnpm_crates_cli_src_cli__args_repo.rs    | 24 ++++++++++++++++++++++
 3 files changed, 31 insertions(+), 7 deletions(-)

diffs:
diff --git a/pnpm/Makefile b/pnpm/Makefile
index cb26ec899f..b26f52b5e7 100644
--- a/pnpm/Makefile
+++ b/pnpm/Makefile
@@ -1,10 +1,10 @@
 # $NetBSD$
 
-PKGNAME=	pnpm-12.0.0rc2
-DISTNAME=	pnpm-11.21.0
+PKGNAME=	${DISTNAME:C/-rc\./rc/}
+DISTNAME=	pnpm-12.0.0-rc.3
 CATEGORIES=	devel
 MASTER_SITES=	${MASTER_SITE_GITHUB:=pnpm/}
-GITHUB_TAG=	refs/tags/v${DISTNAME:C/^.*-//}
+GITHUB_TAG=	refs/tags/v${DISTNAME:C/^[^-]*-//}
 
 MAINTAINER=	iquiw%NetBSD.org@localhost
 HOMEPAGE=	https://pnpm.io/
@@ -20,7 +20,6 @@ INSTALLATION_DIRS=	bin
 REPLACE_SH+=		pn pnx pnpx
 
 CARGO_ARGS=		build --release --bin pnpm ${DEFAULT_CARGO_ARGS}
-CARGO_INSTALL_ARGS=	install --path pnpm/crates/cli --root ${DESTDIR}${PREFIX} ${DEFAULT_CARGO_ARGS}
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/target/release/pnpm ${DESTDIR}${PREFIX}/bin
diff --git a/pnpm/distinfo b/pnpm/distinfo
index 75eb3f3aed..e1d1d48c67 100644
--- a/pnpm/distinfo
+++ b/pnpm/distinfo
@@ -1209,9 +1209,9 @@ Size (plotters-backend-0.3.7.crate) = 13709 bytes
 BLAKE2s (plotters-svg-0.3.7.crate) = 45ce997f301f84f7ef5810aa286bd004ce184d74f9837d23b4d768ef4707ae1b
 SHA512 (plotters-svg-0.3.7.crate) = 9a60e19026edfad359a7d042630b60825d7723855fc0c17881ac880c29160a81449ca672a3ae5cea4405293947ae0556f31cb37f519dad4cef56353248350cd6
 Size (plotters-svg-0.3.7.crate) = 6715 bytes
-BLAKE2s (pnpm-11.21.0.tar.gz) = a4fa24f8238b47f28e5e4bcd55317f15e456284c6b1a57ffe33fa09e295a581c
-SHA512 (pnpm-11.21.0.tar.gz) = 112c529498a96d45587d9d65ab648c923d51b72cd03d92e8994c565e0e72108ff32c398d68adcdb14466f8a461a3e0f77c71fb87b48f8b331dde35385689ba62
-Size (pnpm-11.21.0.tar.gz) = 7922929 bytes
+BLAKE2s (pnpm-12.0.0-rc.3.tar.gz) = c8307fbb7b3c86c7e565aaf1c95f60160371ecfadd5607d26cc849610c810f70
+SHA512 (pnpm-12.0.0-rc.3.tar.gz) = ba95e484648b5b68d3b8294443de85af8f54b4cc7bad8d3a00af6769757637a3984784a3c7982725589882b845e7b7bd0d7e2cc02e82f8764c945d440e75aada
+Size (pnpm-12.0.0-rc.3.tar.gz) = 7914684 bytes
 BLAKE2s (polyval-0.6.2.crate) = bd3a600f4b27c8e33ab640320ed3215e9abd62ff62b37e07768e17bdc3224c2f
 SHA512 (polyval-0.6.2.crate) = 113646edef3a7f60d59db3cf06c1796bf81305b66835c71bbce0fdc07345f41e23f2bbd7d5cebc50c72eac11c98f351bc793e2f568b5fc0bbf9fb2597eb44f0d
 Size (polyval-0.6.2.crate) = 18425 bytes
@@ -2164,4 +2164,5 @@ BLAKE2s (zune-inflate-0.2.54.crate) = c10d8be1628f8a0b68a2d35a2cc3ab5ca45461685e
 SHA512 (zune-inflate-0.2.54.crate) = 0de30f310121c1fed42612b7bcb50631d699195a77c7ce4094729f502e63d1ae38034d6054d95b6825e7e9a2afb7bb614ff123e12736163fee04a46ef1dc56bd
 Size (zune-inflate-0.2.54.crate) = 37973 bytes
 SHA1 (patch-pnpm_crates_cli_src_cli__args_docs.rs) = 6cc5d3fefb4567d24ccfce45ada22beafb5cc2df
+SHA1 (patch-pnpm_crates_cli_src_cli__args_repo.rs) = 59d7537c908fd9de77bb0e25ef1ee5f2a18e89c5
 SHA1 (patch-pnpm_crates_config_src_defaults.rs) = 49179187e48d1cf563d785554aaf29334b3be7b0
diff --git a/pnpm/patches/patch-pnpm_crates_cli_src_cli__args_repo.rs b/pnpm/patches/patch-pnpm_crates_cli_src_cli__args_repo.rs
new file mode 100644
index 0000000000..0a1bc3a80e
--- /dev/null
+++ b/pnpm/patches/patch-pnpm_crates_cli_src_cli__args_repo.rs
@@ -0,0 +1,24 @@
+$NetBSD$
+
+    Support NetBSD.
+
+--- pnpm/crates/cli/src/cli_args/repo.rs.orig	2026-08-16 06:53:49.097323613 +0000
++++ pnpm/crates/cli/src/cli_args/repo.rs
+@@ -393,7 +393,7 @@ fn open_url(url: &str) -> std::io::Result<()> {
+ }
+ 
+ fn open_url(url: &str) -> std::io::Result<()> {
+-    #[cfg(target_os = "linux")]
++    #[cfg(any(target_os = "linux", target_os = "netbsd"))]
+     {
+         let status = std::process::Command::new("xdg-open").arg(url).status()?;
+         if status.success() { Ok(()) } else { Err(std::io::Error::other("xdg-open failed")) }
+@@ -422,7 +422,7 @@ fn open_url(url: &str) -> std::io::Result<()> {
+         };
+         if (result as isize) > 32 { Ok(()) } else { Err(std::io::Error::last_os_error()) }
+     }
+-    #[cfg(not(any(target_os = "linux", target_os = "macos", target_os = "windows")))]
++    #[cfg(not(any(target_os = "linux", target_os = "macos", target_os = "windows", target_os = "netbsd")))]
+     {
+         Err(std::io::Error::new(std::io::ErrorKind::Unsupported, "unsupported platform"))
+     }


Home | Main Index | Thread Index | Old Index