Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B7F6AD111A8 for ; Thu, 27 Nov 2025 20:08:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 8DC1761B0F; Thu, 27 Nov 2025 20:08:26 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 0qdDWTtM9anL; Thu, 27 Nov 2025 20:08:25 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 88A1E61B22 Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp3.osuosl.org (Postfix) with ESMTP id 88A1E61B22; Thu, 27 Nov 2025 20:08:25 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists1.osuosl.org (Postfix) with ESMTP id 204F92A9 for ; Thu, 27 Nov 2025 20:08:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 78E1684416 for ; Thu, 27 Nov 2025 20:07:58 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id TBo8PpkaCrrJ for ; Thu, 27 Nov 2025 20:07:57 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.167.122; helo=busybox.osuosl.org; envelope-from=buildroot-git-push@osuosl.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org BA89C84421 Received: from busybox.osuosl.org (busybox.osuosl.org [140.211.167.122]) by smtp1.osuosl.org (Postfix) with ESMTP id BA89C84421 for ; Thu, 27 Nov 2025 20:07:56 +0000 (UTC) Received: by busybox.osuosl.org (Postfix, from userid 4053) id B8EEE85FCB; Thu, 27 Nov 2025 20:07:56 +0000 (UTC) To: buildroot@buildroot.org Date: Wed, 26 Nov 2025 09:26:11 +0100 X-Git-Refname: refs/heads/2025.02.x X-Git-Oldrev: 0c2f8b1cab8b63c2852c374ab97b1556e13c0443 X-Git-Newrev: 7fa84318c8de23b74769ae50b148c5af8f5c5fa9 X-Patchwork-Hint: ignore Message-Id: <20251127200756.B8EEE85FCB@busybox.osuosl.org> Subject: [Buildroot] [git commit branch/2025.02.x] package/libroxml: fix musl build errors X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Thomas Perale via buildroot Reply-To: Thomas Perale MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" commit: https://git.buildroot.net/buildroot/commit/?id=7fa84318c8de23b74769ae50b148c5af8f5c5fa9 branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2025.02.x Fixes: https://autobuild.buildroot.net/results/0ff/0ff4394319d2014884328c347ef495da327a562e/ Added Upstream tag to patch 0001. Signed-off-by: Bernd Kuhls Signed-off-by: Peter Korsgaard (cherry picked from commit 1f973844d10d0d840409a964227aa0777f3b3f4c) Signed-off-by: Thomas Perale --- .checkpackageignore | 1 - .../0001-src-roxml_mem.h-add-missing-extern.patch | 3 +- package/libroxml/0002-Fix-musl-build-errors.patch | 69 ++++++++++++++++++++++ 3 files changed, 71 insertions(+), 2 deletions(-) diff --git a/.checkpackageignore b/.checkpackageignore index 5e5b11883b..575fd415dc 100644 --- a/.checkpackageignore +++ b/.checkpackageignore @@ -637,7 +637,6 @@ package/libp11/0001-src-p11_attr.c-fix-build-with-gcc-4.8.patch lib_patch.Upstre package/libplatform/0001-cmake-require-c-11-as-the-minimum-standard.patch lib_patch.Upstream package/libpthsem/0001-fix-build-on-linux-3.x-host.patch lib_patch.Upstream package/libressl/0001-always-expose-SSL_OP_NO_TLSv1_3.patch lib_patch.Upstream -package/libroxml/0001-src-roxml_mem.h-add-missing-extern.patch lib_patch.Upstream package/librsvg/0001-gdk-pixbuf-loader-Makefile.am-set-GDK_PIXBUF_MODULED.patch lib_patch.Upstream package/librtlsdr/0001-Makefile.am-respect-DESTDIR-with-install-udev-rules.patch lib_patch.Upstream package/libselinux/0001-Do-not-use-PYCEXT-and-rely-on-the-installed-file-nam.patch lib_patch.Upstream diff --git a/package/libroxml/0001-src-roxml_mem.h-add-missing-extern.patch b/package/libroxml/0001-src-roxml_mem.h-add-missing-extern.patch index 6f63d7b546..12e67f9c91 100644 --- a/package/libroxml/0001-src-roxml_mem.h-add-missing-extern.patch +++ b/package/libroxml/0001-src-roxml_mem.h-add-missing-extern.patch @@ -13,8 +13,9 @@ libtool: link: /home/peko/autobuild/instance-0/output-1/host/bin/arm-buildroot-l Fixes: - http://autobuild.buildroot.org/results/b6ac3664d61ad826515b57c4d057b6f001b5167d +Upstream: https://github.com/blunderer/libroxml/commit/34257124eefe0ca095ed54681c818381070ed549 + Signed-off-by: Fabrice Fontaine -[Upstream status: https://github.com/blunderer/libroxml/pull/79] --- src/roxml_mem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/libroxml/0002-Fix-musl-build-errors.patch b/package/libroxml/0002-Fix-musl-build-errors.patch new file mode 100644 index 0000000000..4931f12d5b --- /dev/null +++ b/package/libroxml/0002-Fix-musl-build-errors.patch @@ -0,0 +1,69 @@ +From abf4404c6c0213666f3fce73cff6e51435eac923 Mon Sep 17 00:00:00 2001 +From: Bernd Kuhls +Date: Sat, 15 Nov 2025 12:29:33 +0100 +Subject: [PATCH] Fix musl build errors + +src/roxml_cat.c: In function 'display_usage': +src/roxml_cat.c:21:22: error: implicit declaration of function 'basename'; did you mean 'rename'? [-Wimplicit-function-declaration] + 21 | char *name = basename(prgname); + | ^~~~~~~~ + | rename +src/roxml_cat.c:21:22: error: initialization of 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] + +src/roxml_mem.c: In function 'roxml_malloc': +src/roxml_mem.c:138:18: error: assignment to 'long unsigned int' from 'pthread_t' {aka 'struct __pthread *'} makes integer from pointer without a cast [-Wint-conversion] + 138 | cell->id = pthread_self(); + +src/roxml_utils.h:51:16: error: returning 'pthread_t' {aka 'struct __pthread *'} from a function with return type 'long unsigned int' makes integer from pointer without a cast [-Wint-conversion] + 51 | return pthread_self(); + +Upstream: https://github.com/blunderer/libroxml/pull/86 + +Signed-off-by: Bernd Kuhls +--- + src/roxml_cat.c | 1 + + src/roxml_mem.c | 2 +- + src/roxml_utils.h | 2 +- + 3 files changed, 3 insertions(+), 2 deletions(-) + +diff --git a/src/roxml_cat.c b/src/roxml_cat.c +index 11e42d9..4320efd 100644 +--- a/src/roxml_cat.c ++++ b/src/roxml_cat.c +@@ -5,6 +5,7 @@ + #include + #include + #include ++#include + #include "roxml.h" + + static struct option long_options[] = +diff --git a/src/roxml_mem.c b/src/roxml_mem.c +index 91b5db2..bf757bb 100644 +--- a/src/roxml_mem.c ++++ b/src/roxml_mem.c +@@ -135,7 +135,7 @@ ROXML_INT void *roxml_malloc(int size, int num, int type) + cell->next->prev = cell; + cell = cell->next; + cell->type = type; +- cell->id = pthread_self(); ++ cell->id = (unsigned long)pthread_self(); + cell->occ = size; + cell->ptr = calloc(num, size); + head_cell.prev = cell; +diff --git a/src/roxml_utils.h b/src/roxml_utils.h +index 3f50976..f5fc582 100644 +--- a/src/roxml_utils.h ++++ b/src/roxml_utils.h +@@ -48,7 +48,7 @@ ROXML_STATIC_INLINE ROXML_INT int roxml_unlock(node_t *n) + #else /* CONFIG_XML_THREAD_SAFE==1 */ + ROXML_STATIC_INLINE ROXML_INT unsigned long int roxml_thread_id(node_t *n) + { +- return pthread_self(); ++ return (unsigned long)pthread_self(); + } + + ROXML_STATIC_INLINE ROXML_INT int roxml_lock_init(node_t *n) +-- +2.47.3 + _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot