public inbox for buildroot@busybox.net
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v3] package/rwmem: bump to version 2.0
@ 2026-03-27 11:25 Vincent Cruz
  2026-03-27 21:18 ` Julien Olivain via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Vincent Cruz @ 2026-03-27 11:25 UTC (permalink / raw)
  To: buildroot; +Cc: Vincent Cruz

For more details, see:
https://github.com/tomba/rwmem/compare/c89bc9ad9...2.0

Signed-off-by: Vincent Cruz <mooz@blockos.org>
---
Changes v2 -> v3:
  - Add details and missing upstream informations to patch.

Changes v1 -> v2:
  - Add patch to fix compilation failure with musl libc.

 ...001-Fix-build-failure-with-musl-libc.patch | 50 +++++++++++++++++++
 package/rwmem/rwmem.hash                      |  3 +-
 package/rwmem/rwmem.mk                        |  3 +-
 3 files changed, 53 insertions(+), 3 deletions(-)
 create mode 100644 package/rwmem/0001-Fix-build-failure-with-musl-libc.patch

diff --git a/package/rwmem/0001-Fix-build-failure-with-musl-libc.patch b/package/rwmem/0001-Fix-build-failure-with-musl-libc.patch
new file mode 100644
index 0000000000..9d7c9adbf9
--- /dev/null
+++ b/package/rwmem/0001-Fix-build-failure-with-musl-libc.patch
@@ -0,0 +1,50 @@
+From 3730c3028a494536571c30d4d44df347e0886651 Mon Sep 17 00:00:00 2001
+From: Vincent Cruz <mooz@blockos.org>
+Date: Fri, 27 Mar 2026 11:16:36 +0100
+Subject: [PATCH] Fix build failure with musl libc.
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Fixes the following build failure when using musl libc:
+
+../tests/test_data_generator.cpp: In lambda function:
+../tests/test_data_generator.cpp:104:27: error: ‘htobe32’ was not declared in this scope; did you mean ‘htobe’?
+  104 |         uint32_t be_val = htobe32(val);
+      |                           ^~~~~~~
+      |                           htobe
+../tests/test_data_generator.cpp: In lambda function:
+../tests/test_data_generator.cpp:109:27: error: ‘htobe64’ was not declared in this scope; did you mean ‘htobe’?
+  109 |         uint64_t be_val = htobe64(val);
+      |                           ^~~~~~~
+      |                           htobe
+
+Upstream: N/A. The impacted file does not exist upstream.
+
+Signed-off-by: Vincent Cruz <mooz@blockos.org>
+---
+ tests/test_data_generator.cpp | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/tests/test_data_generator.cpp b/tests/test_data_generator.cpp
+index 39e1322..3676f19 100644
+--- a/tests/test_data_generator.cpp
++++ b/tests/test_data_generator.cpp
+@@ -2,6 +2,7 @@
+ 
+ #include <algorithm>
+ #include <cstring>
++#include <endian.h>
+ 
+ // Constants from regfiledata.h
+ static const uint32_t RWMEM_MAGIC = 0x00e11554;
+@@ -169,4 +170,4 @@ std::vector<uint8_t> TestRegisterFileBuilder::build() {
+     }
+ 
+     return data;
+-}
+\ No newline at end of file
++}
+-- 
+2.51.0
+
diff --git a/package/rwmem/rwmem.hash b/package/rwmem/rwmem.hash
index da74002cb4..8b73f662ea 100644
--- a/package/rwmem/rwmem.hash
+++ b/package/rwmem/rwmem.hash
@@ -1,2 +1,3 @@
-sha256  e6cb76b77869aef9ec4a2c31d0d80af0182a5f9c9c3ae06225c8fb2f8266379f  rwmem-c89bc9ad9a8f2359f358c510db57b7678eb156d1.tar.gz
+# Locally calculated
+sha256  d10639f563100c819202337c4d4df57db11c2fcd59a19b0c68e34b8eb9aa1d01  rwmem-2.0.tar.gz
 sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  LICENSE
diff --git a/package/rwmem/rwmem.mk b/package/rwmem/rwmem.mk
index d6ef05193b..1259b5503f 100644
--- a/package/rwmem/rwmem.mk
+++ b/package/rwmem/rwmem.mk
@@ -4,11 +4,10 @@
 #
 ################################################################################
 
-RWMEM_VERSION = c89bc9ad9a8f2359f358c510db57b7678eb156d1
+RWMEM_VERSION = 2.0
 RWMEM_SITE = $(call github,tomba,rwmem,$(RWMEM_VERSION))
 RWMEM_LICENSE = GPL-2.0
 RWMEM_LICENSE_FILES = LICENSE
-RWMEM_CONF_OPTS = -Dpyrwmem=disabled
 RWMEM_DEPENDENCIES = host-pkgconf fmt inih
 
 $(eval $(meson-package))
-- 
2.51.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH v3] package/rwmem: bump to version 2.0
  2026-03-27 11:25 [Buildroot] [PATCH v3] package/rwmem: bump to version 2.0 Vincent Cruz
@ 2026-03-27 21:18 ` Julien Olivain via buildroot
  0 siblings, 0 replies; 2+ messages in thread
From: Julien Olivain via buildroot @ 2026-03-27 21:18 UTC (permalink / raw)
  To: Vincent Cruz; +Cc: buildroot

On 27/03/2026 12:25, Vincent Cruz wrote:
> For more details, see:
> https://github.com/tomba/rwmem/compare/c89bc9ad9...2.0
> 
> Signed-off-by: Vincent Cruz <mooz@blockos.org>

Applied to master, thanks.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-03-27 21:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-27 11:25 [Buildroot] [PATCH v3] package/rwmem: bump to version 2.0 Vincent Cruz
2026-03-27 21:18 ` Julien Olivain via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox