Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
From b16f6813011519ce247b0af9a4b78486daefad54 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Wed, 26 Aug 2020 22:54:50 +0200
|
||||
Subject: [PATCH] src/roxml_mem.h: add missing extern
|
||||
|
||||
Add missing extern to head_cell otherwise the build with gcc 10 (with
|
||||
-fno-common being default) will fail on:
|
||||
|
||||
/bin/bash ./libtool --tag=CC --mode=link /home/peko/autobuild/instance-0/output-1/host/bin/arm-buildroot-linux-gnueabihf-gcc -DIGNORE_EMPTY_TEXT_NODES -DCONFIG_XML_CONTENT -DCONFIG_XML_NAV -DCONFIG_XML_BUFF -DCONFIG_XML_COMMIT -DCONFIG_XML_EDIT -DCONFIG_XML_FILE -DCONFIG_XML_XPATH -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pthread -version-info 0:0:0 -o libroxml.la -rpath /usr/lib src/libroxml_la-roxml_core.lo src/libroxml_la-roxml_parser.lo src/libroxml_la-roxml_buff.lo src/libroxml_la-roxml_nav.lo src/libroxml_la-roxml_content.lo src/libroxml_la-roxml_mem.lo src/libroxml_la-roxml_stub.lo src/libroxml_la-roxml_commit.lo src/libroxml_la-roxml_edit.lo src/libroxml_la-roxml_file.lo src/libroxml_la-roxml_xpath.lo -pthread
|
||||
libtool: link: /home/peko/autobuild/instance-0/output-1/host/bin/arm-buildroot-linux-gnueabihf-gcc -shared -fPIC -DPIC src/.libs/libroxml_la-roxml_core.o src/.libs/libroxml_la-roxml_parser.o src/.libs/libroxml_la-roxml_buff.o src/.libs/libroxml_la-roxml_nav.o src/.libs/libroxml_la-roxml_content.o src/.libs/libroxml_la-roxml_mem.o src/.libs/libroxml_la-roxml_stub.o src/.libs/libroxml_la-roxml_commit.o src/.libs/libroxml_la-roxml_edit.o src/.libs/libroxml_la-roxml_file.o src/.libs/libroxml_la-roxml_xpath.o -O2 -pthread -pthread -pthread -Wl,-soname -Wl,libroxml.so.0 -o .libs/libroxml.so.0.0.0
|
||||
/home/peko/autobuild/instance-0/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: src/.libs/libroxml_la-roxml_mem.o:(.data+0x0): multiple definition of `head_cell'; src/.libs/libroxml_la-roxml_content.o:(.bss+0x0): first defined here
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/b6ac3664d61ad826515b57c4d057b6f001b5167d
|
||||
|
||||
Upstream: https://github.com/blunderer/libroxml/commit/34257124eefe0ca095ed54681c818381070ed549
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
src/roxml_mem.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/roxml_mem.h b/src/roxml_mem.h
|
||||
index aff6137..34a5070 100644
|
||||
--- a/src/roxml_mem.h
|
||||
+++ b/src/roxml_mem.h
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
#include "roxml_internal.h"
|
||||
|
||||
-memory_cell_t head_cell;
|
||||
+extern memory_cell_t head_cell;
|
||||
|
||||
/** \brief alloc memory function
|
||||
*
|
||||
--
|
||||
2.28.0
|
||||
|
||||
69
package/libroxml/0002-Fix-musl-build-errors.patch
Normal file
69
package/libroxml/0002-Fix-musl-build-errors.patch
Normal file
@@ -0,0 +1,69 @@
|
||||
From abf4404c6c0213666f3fce73cff6e51435eac923 Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Kuhls <bernd@kuhls.net>
|
||||
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 <bernd@kuhls.net>
|
||||
---
|
||||
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 <getopt.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
+#include <libgen.h>
|
||||
#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
|
||||
|
||||
12
package/libroxml/Config.in
Normal file
12
package/libroxml/Config.in
Normal file
@@ -0,0 +1,12 @@
|
||||
config BR2_PACKAGE_LIBROXML
|
||||
bool "roxml"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
help
|
||||
libroxml is a light and powerful xml parsing library with
|
||||
xpath handling. Roxml is a binary using libroxml to explore
|
||||
xml file from shell scripts.
|
||||
|
||||
http://www.libroxml.net
|
||||
|
||||
comment "libroxml needs a toolchain w/ threads"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
3
package/libroxml/libroxml.hash
Normal file
3
package/libroxml/libroxml.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 ed6d68d1bceabf98e5e76907411e2e4d93b2dbd48479ab41dede851f59dad6a3 libroxml-3.0.2.tar.gz
|
||||
sha256 fe11466c265ad0a6c3896ea113af9403c0a8372b1fdd78712db64f0f1bac6387 License.txt
|
||||
19
package/libroxml/libroxml.mk
Normal file
19
package/libroxml/libroxml.mk
Normal file
@@ -0,0 +1,19 @@
|
||||
################################################################################
|
||||
#
|
||||
# libroxml
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBROXML_VERSION = 3.0.2
|
||||
LIBROXML_SITE = http://download.libroxml.net/pool/v3.x
|
||||
LIBROXML_INSTALL_STAGING = YES
|
||||
LIBROXML_LICENSE = LGPL-2.1+ with static link exception
|
||||
LIBROXML_LICENSE_FILES = License.txt
|
||||
|
||||
LIBROXML_CONF_OPTS = --disable-silent-rules
|
||||
|
||||
# libroxml forgets to compile/link with -pthread, even though it uses
|
||||
# thread functions breaking static linking
|
||||
LIBROXML_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -pthread" LIBS="-pthread"
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user