Skip to contentSkip to conversation

xmlstarlet: fix host package build errors.

PATCH New Adam Duskett 3 participants 3 messages Aug 4, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xmlstarlet: fix host package build errors.

The host version of xmlstarlet doesn't have any conf opts. As such, if the host PC doesn't have libxml header files installed, a build error will occure because host-xmlstarlet won't be able to find libxml/xmlstring.h: No such file or directory.

Add HOST_XMLSTARLET_CONF_OPTS to fix this issue.

---
 package/xmlstarlet/xmlstarlet.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/xmlstarlet/xmlstarlet.mk +5 -0
index 9920dcfc7..54ed36bc8 100644
@@ -17,6 +17,11 @@ XMLSTARLET_CONF_OPTS += \
 	--with-libxslt-prefix=$(STAGING_DIR)/usr \
 	--with-libiconv-prefix=$(STAGING_DIR)/usr
 
+HOST_XMLSTARLET_CONF_OPTS += \
+	--with-libxml-prefix=$(HOST_DIR)/usr \
+	--with-libxslt-prefix=$(HOST_DIR)/usr \
+	--with-libiconv-prefix=$(HOST_DIR)/usr
+
 ifeq ($(BR2_STATIC_LIBS),y)
 XMLSTARLET_CONF_OPTS += --enable-static-libs
 XMLSTARLET_CONF_ENV = LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs libxml-2.0 libexslt`"
Signature · 1 line
2.13.3
#1 lore raw

PATCH 1/1 xmlstarlet: fix host package build errors.

Quoted 4 lines · Adam Duskett

The host version of xmlstarlet doesn't have any conf opts. As such, if the host PC doesn't have libxml header files installed, a build error will occure because host-xmlstarlet won't be able to find libxml/xmlstring.h: No such file or directory.

Weird that the autobuilders didn't catch this. Ah, of course, it's only a
dependency of kodi and kodi never gets built because of the dependency on .py files...

Quoted 12 lines

Add HOST_XMLSTARLET_CONF_OPTS to fix this issue.

---
 package/xmlstarlet/xmlstarlet.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/xmlstarlet/xmlstarlet.mk +0 -0
index 9920dcfc7..54ed36bc8 100644

package/xmlstarlet/xmlstarlet.mk XMLSTARLET_CONF_OPTS += \ · line 23

Quoted 7 lines
package/xmlstarlet/xmlstarlet.mk +4 -0
@@ -17,6 +17,11 @@ XMLSTARLET_CONF_OPTS += \
 	--with-libxslt-prefix=$(STAGING_DIR)/usr \
 	--with-libiconv-prefix=$(STAGING_DIR)/usr
 
+HOST_XMLSTARLET_CONF_OPTS += \
+	--with-libxml-prefix=$(HOST_DIR)/usr \
+	--with-libxslt-prefix=$(HOST_DIR)/usr \
+	--with-libiconv-prefix=$(HOST_DIR)/usr

Since $(HOST_DIR)/usr was recently removed, this can't be right...

However, I can't reproduce this issue. Without this patch, config.log says

configure:4407: checking for xml2-config configure:4425: found .../output/host/bin/xml2-config configure:4437: result: .../output/host/bin/xml2-config configure:4466: using libxml-2.9.4 configure:4548: checking for xslt-config configure:4566: found .../output/host/bin/xslt-config configure:4578: result: .../output/host/bin/xslt-config

and further on I can see that it's using the correct paths. Indeed, during the build I get a warning:

.../output/host/include/libxml2/libxml/xmlstring.h:35:18: warning: pointer targets in passing argument 3 of ?xmlStrPrintf? differ in signedness [-Wpointer-sign]

so it is *definitely* using the correct libxml2.

Could you investigate a little further what's going on on your end?

Regards,
Arnout

Quoted 5 lines
package/xmlstarlet/xmlstarlet.mk +1 -0
+
 ifeq ($(BR2_STATIC_LIBS),y)
 XMLSTARLET_CONF_OPTS += --enable-static-libs
 XMLSTARLET_CONF_ENV = LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs libxml-2.0 libexslt`"
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#2 lore raw

PATCH 1/1 xmlstarlet: fix host package build errors.

Hi Arnout,

Am Fri, 04 Aug 2017 17:36:00 +0200 schrieb Arnout Vandecappelle:

Quoted 3 lines

Weird that the autobuilders didn't catch this. Ah, of course, it's only a dependency of kodi and kodi never gets built because of the dependency on .py files...

this should not be the case anymore after https://git.buildroot.net/
buildroot-test/commit/?id=c0de21d9530af53eae5588d99d90c7e0cb87c543 unless the patch is not enough...

Regards, Bernd