Skip to contentSkip to conversation

Mini-XML: new package

PATCH New Baruch Siach 2 participants 3 messages Jul 13, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Mini-XML: new package

The added patch is a workaround for cross build as follows:

* disable run of a test binary at build time
* disable generation of documentation using the mxmldoc binary
* remove now non-existent entries from the install target
* disable strip when running install

---
 package/Config.in                                  |    1 +
 package/mxml/Config.in                             |    6 ++++
 .../mxml-2.6-fix-cross-target-installation.patch   |   32 ++++++++++++++++++++
 package/mxml/mxml.mk                               |   17 ++++++++++
 4 files changed, 56 insertions(+), 0 deletions(-)
 create mode 100644 package/mxml/Config.in
 create mode 100644 package/mxml/mxml-2.6-fix-cross-target-installation.patch
 create mode 100644 package/mxml/mxml.mk
package/Config.in +1 -0
index d073a1b..44f5b76 100644
@@ -367,6 +367,7 @@ source "package/libroxml/Config.in"
 source "package/libxml-parser-perl/Config.in"
 source "package/libxml2/Config.in"
 source "package/libxslt/Config.in"
+source "package/mxml/Config.in"
 source "package/xerces/Config.in"
 source "package/yajl/Config.in"
 endmenu
package/mxml/Config.in new file +6 -0
new file mode 100644
index 0000000..d3202b4
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_MXML
+	bool "Mini-XML"
+	help
+	  Lightweight XML Library
+
+	  http://www.minixml.org
package/mxml/mxml-2.6-fix-cross-target-installation.patch new file +32 -0
new file mode 100644
index 0000000..f56efdc
@@ -0,0 +1,32 @@
+diff -Nuar mxml-2.6-dist//Makefile.in mxml-2.6/Makefile.in
+--- mxml-2.6-dist//Makefile.in	2008-12-06 06:20:38.000000000 +0200
++++ mxml-2.6/Makefile.in	2011-07-13 07:25:36.615999491 +0300
+@@ -59,7 +59,7 @@
+ # Install commands...
+ #
+ 
+-INSTALL_BIN	=	$(LIBTOOL) $(INSTALL) -m 755 -s
++INSTALL_BIN	=	$(LIBTOOL) $(INSTALL) -m 755
+ INSTALL_DATA	=	$(INSTALL) -m 644
+ INSTALL_DIR	=	$(INSTALL) -d
+ INSTALL_LIB	=	$(LIBTOOL) $(INSTALL) -m 755
+@@ -88,7 +88,7 @@
+ 			mxml-node.o mxml-search.o mxml-set.o
+ LIBOBJS		=	$(PUBLIBOBJS) mxml-private.o mxml-string.o
+ OBJS		=	mxmldoc.o testmxml.o $(LIBOBJS)
+-TARGETS		=	$(LIBMXML) mxmldoc testmxml mxml.xml doc/mxml.man
++TARGETS		=	$(LIBMXML) mxmldoc libmxml.a
+ 
+ 
+ #
+@@ -144,10 +144,6 @@
+ 	$(INSTALL_DATA) mxml.h $(BUILDROOT)$(includedir)
+ 	$(INSTALL_DIR) $(BUILDROOT)$(libdir)/pkgconfig
+ 	$(INSTALL_DATA) mxml.pc $(BUILDROOT)$(libdir)/pkgconfig
+-	$(INSTALL_DIR) $(BUILDROOT)$(mandir)/man1
+-	$(INSTALL_MAN) doc/mxmldoc.man $(BUILDROOT)$(mandir)/man1/mxmldoc.1
+-	$(INSTALL_DIR) $(BUILDROOT)$(mandir)/man3
+-	$(INSTALL_MAN) doc/mxml.man $(BUILDROOT)$(mandir)/man3/mxml.3
+ 
+ install-libmxml.a:
+ 	$(INSTALL_DIR) $(BUILDROOT)$(libdir)
package/mxml/mxml.mk new file +17 -0
new file mode 100644
index 0000000..a55d01d
@@ -0,0 +1,17 @@
+#############################################################
+#
+# mxml
+#
+#############################################################
+MXML_VERSION = 2.6
+MXML_SOURCE = mxml-$(MXML_VERSION).tar.gz
+MXML_SITE = http://ftp.easysw.com/pub/mxml/2.6
+MXML_INSTALL_STAGING = YES
+MXML_INSTALL_TARGET = YES
+MXML_CONF_OPT = --enable-shared
+MXML_INSTALL_STAGING_OPT = DSTROOT=$(TARGET_DIR) install
+MXML_INSTALL_TARGET_OPT = DSTROOT=$(TARGET_DIR) install
+MXML_UNINSTALL_STAGING_OPT = DSTROOT=$(TARGET_DIR) uninstall
+MXML_UNINSTALL_TARGET_OPT = DSTROOT=$(TARGET_DIR) uninstall
+
+$(eval $(call AUTOTARGETS,package,mxml))
Signature · 1 line
1.7.5.4
#1 lore raw

PATCH 1/1 Mini-XML: new package

Le Wed, 13 Jul 2011 16:40:46 +0300,
Baruch Siach <[email protected]> a ?crit :

Quoted 6 lines

The added patch is a workaround for cross build as follows:

* disable run of a test binary at build time
* disable generation of documentation using the mxmldoc binary
* remove now non-existent entries from the install target
* disable strip when running install

Can you put these explanations in the header of the patch + add your Signed-off-by line to this patch ?

Just curious, what is this library useful for compared to expat, libxml2 or roxml ?

Quoted 1 line

+MXML_CONF_OPT = --enable-shared

This is not needed, it is passed automatically by Buildroot.

Regards,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#2 lore raw

PATCH 1/1 Mini-XML: new package

Hi Thomas,

Quoted 11 lines · Thomas Petazzoni

Le Wed, 13 Jul 2011 16:40:46 +0300,
Baruch Siach <[email protected]> a ?crit :

Quoted 6 lines

The added patch is a workaround for cross build as follows:

* disable run of a test binary at build time
* disable generation of documentation using the mxmldoc binary
* remove now non-existent entries from the install target
* disable strip when running install

Can you put these explanations in the header of the patch + add your Signed-off-by line to this patch ?

OK.

Quoted 2 lines

Just curious, what is this library useful for compared to expat, libxml2 or roxml ?

I don't know. It's quite small, ~40KB on PowerPC, thus suitable for embedded applications. We use mini-xml here internally, so it's convenient to have it in Buildroot.

Quoted 2 lines
Quoted 1 line

+MXML_CONF_OPT = --enable-shared

This is not needed, it is passed automatically by Buildroot.

OK. I'll remove it.

Thanks for reviewing.

baruch

Signature · 3 lines
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -