NetBSD Problem Report #59900

From diogo@mpb.localdomain  Fri Jan  9 12:42:41 2026
Return-Path: <diogo@mpb.localdomain>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.netbsd.org", Issuer "R13" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id D474E1A923C
	for <gnats-bugs@gnats.netbsd.org>; Fri,  9 Jan 2026 12:42:41 +0000 (UTC)
Message-Id: <20260109123717.7A3526BCAA61@mpb.localdomain>
Date: Fri,  9 Jan 2026 13:37:17 +0100 (CET)
From: db7@sdf.org
Reply-To:
To: gnats-bugs@gnats.netbsd.org
Cc: db7@sdf.org
Subject: devel/vatomic: update to 2.4.1
X-Send-Pr-Version: 3.113.1
X-GNATS-Notify:
X-From4GNATS: "db7@sdf.org via gnats" <gnats-admin@NetBSD.org>

>Number:         59900
>Category:       pkg
>Synopsis:       update vatomic to version 2.4.1
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 09 12:45:00 +0000 2026
>Closed-Date:    Sun Feb 01 22:04:32 +0000 2026
>Last-Modified:  Sun Feb 01 22:04:32 +0000 2026
>Originator:     db7
>Release:        Darwin 24.6.0
>Organization:
>Environment:
System: Darwin mpb 24.6.0 Darwin Kernel Version 24.6.0: Wed Oct 15 21:12:21 PDT 2025; root:xnu-11417.140.69.703.14~1/RELEASE_X86_64 x86_64

>Description:
	Below is a patch that updates devel/vatomic (verified atomic
	operations). The new version fixes annoying warnings with C99,
	has C++ support, and man pages.

>How-To-Repeat:

>Fix:

devel/vatomic: update to 2.4.1

Changes since 2.3.1:
- ARM-V8 and RISC-V verification by completed
- Added vsync::atomic C++ interface
- C interface compliant to C99 with -Wpendantic
- Added manual pages

Index: devel/vatomic/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/vatomic/Makefile,v
retrieving revision 1.1
diff -u -p -r1.1 Makefile
--- devel/vatomic/Makefile	30 Mar 2025 07:57:10 -0000	1.1
+++ devel/vatomic/Makefile	9 Jan 2026 12:19:43 -0000
@@ -1,6 +1,6 @@
 # $NetBSD: Makefile,v 1.1 2025/03/30 07:57:10 wiz Exp $

-DISTNAME=	vatomic-2.3.1
+DISTNAME=	vatomic-2.4.1
 CATEGORIES=	devel
 MASTER_SITES=	${MASTER_SITE_GITHUB:=open-s4c/}
 GITHUB_TAG=	v${PKGVERSION_NOREV}
@@ -13,5 +13,11 @@ LICENSE=	mit
 USE_LANGUAGES=		c c++
 CMAKE_CONFIGURE_ARGS=	-DVATOMIC_DEV=off

+# vatomic memory model is only safe for the following architectures
+ONLY_FOR_PLATFORM+=	x86_64-*-*
+ONLY_FOR_PLATFORM+=	riscv64-*-*
+ONLY_FOR_PLATFORM+=	aarch64-*-*
+ONLY_FOR_PLATFORM+=	arm-*-*
+
 .include "../../devel/cmake/build.mk"
 .include "../../mk/bsd.pkg.mk"
Index: devel/vatomic/PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/devel/vatomic/PLIST,v
retrieving revision 1.1
diff -u -p -r1.1 PLIST
--- devel/vatomic/PLIST	30 Mar 2025 07:57:10 -0000	1.1
+++ devel/vatomic/PLIST	9 Jan 2026 12:19:43 -0000
@@ -1,18 +1,29 @@
-@comment $NetBSD: PLIST,v 1.1 2025/03/30 07:57:10 wiz Exp $
+@comment $NetBSD$
 include/vsync/atomic.h
+include/vsync/atomic.hpp
 include/vsync/atomic/await.h
 include/vsync/atomic/await_ptr.h
 include/vsync/atomic/await_u32.h
 include/vsync/atomic/await_u64.h
-include/vsync/atomic/compat.h
 include/vsync/atomic/config.h
 include/vsync/atomic/core.h
+include/vsync/atomic/core_bool.hpp
 include/vsync/atomic/core_ptr.h
+include/vsync/atomic/core_ptr.hpp
+include/vsync/atomic/core_s16.hpp
+include/vsync/atomic/core_s32.hpp
+include/vsync/atomic/core_s64.hpp
+include/vsync/atomic/core_s8.hpp
 include/vsync/atomic/core_sz.h
+include/vsync/atomic/core_sz.hpp
 include/vsync/atomic/core_u16.h
+include/vsync/atomic/core_u16.hpp
 include/vsync/atomic/core_u32.h
+include/vsync/atomic/core_u32.hpp
 include/vsync/atomic/core_u64.h
+include/vsync/atomic/core_u64.hpp
 include/vsync/atomic/core_u8.h
+include/vsync/atomic/core_u8.hpp
 include/vsync/atomic/dispatch.h
 include/vsync/atomic/doc.h
 include/vsync/atomic/internal/arm32_v7.h
@@ -21,25 +32,24 @@ include/vsync/atomic/internal/arm64.h
 include/vsync/atomic/internal/arm64_llsc.h
 include/vsync/atomic/internal/arm64_lse.h
 include/vsync/atomic/internal/arm64_lxe.h
-include/vsync/atomic/internal/atomic_rlx.h
 include/vsync/atomic/internal/builtins.h
-include/vsync/atomic/internal/config/fnc_rlx.h
-include/vsync/atomic/internal/config/fnc_sc.h
-include/vsync/atomic/internal/config/ptr_rlx.h
-include/vsync/atomic/internal/config/ptr_sc.h
-include/vsync/atomic/internal/config/sz_rlx.h
-include/vsync/atomic/internal/config/sz_sc.h
-include/vsync/atomic/internal/config/u16_rlx.h
-include/vsync/atomic/internal/config/u16_sc.h
-include/vsync/atomic/internal/config/u32_rlx.h
-include/vsync/atomic/internal/config/u32_sc.h
-include/vsync/atomic/internal/config/u64_rlx.h
-include/vsync/atomic/internal/config/u64_sc.h
-include/vsync/atomic/internal/config/u8_rlx.h
-include/vsync/atomic/internal/config/u8_sc.h
 include/vsync/atomic/internal/dispatch.h
 include/vsync/atomic/internal/fallback.h
 include/vsync/atomic/internal/macros.h
+include/vsync/atomic/internal/remap_fnc_rlx.h
+include/vsync/atomic/internal/remap_fnc_sc.h
+include/vsync/atomic/internal/remap_ptr_rlx.h
+include/vsync/atomic/internal/remap_ptr_sc.h
+include/vsync/atomic/internal/remap_sz_rlx.h
+include/vsync/atomic/internal/remap_sz_sc.h
+include/vsync/atomic/internal/remap_u16_rlx.h
+include/vsync/atomic/internal/remap_u16_sc.h
+include/vsync/atomic/internal/remap_u32_rlx.h
+include/vsync/atomic/internal/remap_u32_sc.h
+include/vsync/atomic/internal/remap_u64_rlx.h
+include/vsync/atomic/internal/remap_u64_sc.h
+include/vsync/atomic/internal/remap_u8_rlx.h
+include/vsync/atomic/internal/remap_u8_sc.h
 include/vsync/atomic/internal/types.h
 include/vsync/atomic/internal/undef.h
 include/vsync/atomic/internal/x86.h
@@ -52,4 +62,24 @@ include/vsync/vtypes.h
 lib/cmake/vatomic/vatomicConfig.cmake
 lib/cmake/vatomic/vatomicConfigVersion.cmake
 lib/cmake/vatomic/vatomicTargets.cmake
+man/man3/vatomic_add.3
+man/man3/vatomic_and.3
+man/man3/vatomic_arith.3
+man/man3/vatomic_await.3
+man/man3/vatomic_await_op.3
+man/man3/vatomic_basic.3
+man/man3/vatomic_bitwise.3
+man/man3/vatomic_cmpxchg.3
+man/man3/vatomic_dec.3
+man/man3/vatomic_fence.3
+man/man3/vatomic_inc.3
+man/man3/vatomic_init.3
+man/man3/vatomic_max.3
+man/man3/vatomic_or.3
+man/man3/vatomic_read.3
+man/man3/vatomic_sub.3
+man/man3/vatomic_write.3
+man/man3/vatomic_xchg.3
+man/man3/vatomic_xor.3
+man/man7/vatomic.7
 share/vsync/vmm.cat
Index: devel/vatomic/distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/devel/vatomic/distinfo,v
retrieving revision 1.1
diff -u -p -r1.1 distinfo
--- devel/vatomic/distinfo	30 Mar 2025 07:57:10 -0000	1.1
+++ devel/vatomic/distinfo	9 Jan 2026 12:19:43 -0000
@@ -1,5 +1,5 @@
 $NetBSD: distinfo,v 1.1 2025/03/30 07:57:10 wiz Exp $

-BLAKE2s (vatomic-2.3.1.tar.gz) = 66f2feeb15aecde9d615f500c3aced54c31823a5919e077da472c33aa9d4fc97
-SHA512 (vatomic-2.3.1.tar.gz) = 4ba325634c7f83941216735ff039aed52b4a2b8c34322715a5b390d91893d5ed7ffe83b5608c6514efe26fc026d50efa7acbb0bf49ffb482eb6fd46a3ffa6fce
-Size (vatomic-2.3.1.tar.gz) = 175309 bytes
+BLAKE2s (vatomic-2.4.1.tar.gz) = 3198af960fadb8428a9b00cf49aa7f127698d7c66c3e31158955bdeac4bf3371
+SHA512 (vatomic-2.4.1.tar.gz) = 28192c69a16e385270c73440b6b668e84dea301e53f0582954fb5af38a113a412854da1192250ce26ef7e0e16f7a47dabe675eaed58b8fde016e4fbef7b623da
+Size (vatomic-2.4.1.tar.gz) = 251795 bytes

>Release-Note:

>Audit-Trail:
From: "Maya Rashish" <maya@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/59900 CVS commit: pkgsrc/devel/vatomic
Date: Sun, 1 Feb 2026 21:53:25 +0000

 Module Name:	pkgsrc
 Committed By:	maya
 Date:		Sun Feb  1 21:53:25 UTC 2026

 Modified Files:
 	pkgsrc/devel/vatomic: Makefile PLIST distinfo

 Log Message:
 devel/vatomic: update to 2.4.1

 Changes since 2.3.1:
 - ARM-V8 and RISC-V verification by completed
 - Added vsync::atomic C++ interface
 - C interface compliant to C99 with -Wpendantic
 - Added manual pages`

 from db7 in PR pkg/59900


 To generate a diff of this commit:
 cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/vatomic/Makefile \
     pkgsrc/devel/vatomic/PLIST pkgsrc/devel/vatomic/distinfo

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

State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sun, 01 Feb 2026 22:04:32 +0000
State-Changed-Why:
Applied, thanks! I corrected the ONLY_FOR_PLATFORM pattern . For my own builds I had to disable -Werror but I didn't make that part of the package. 


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.