Point libxslt to the correct location of libxml2
PATCH 1/1 Point libxslt to the correct location of libxml2
Currently libxslt configure finds native /usr/bin/xml2-config.
--- package/libxslt/libxslt.mk | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
package/libxslt/libxslt.mk +7 -2
@@ -13,7 +13,8 @@ LIBXSLT_LICENSE_FILES = COPYING LIBXSLT_CONF_OPTS = \ --with-gnu-ld \ --without-debug \ - --without-python + --without-python \ + --with-libxml-prefix=$(STAGING_DIR)/usr LIBXSLT_CONFIG_SCRIPTS = xslt-config LIBXSLT_DEPENDENCIES = host-pkgconf libxml2
@@ -25,7 +26,11 @@ else LIBXSLT_CONF_OPTS += --without-crypto endif -HOST_LIBXSLT_CONF_OPTS = --without-debug --without-python --without-crypto +HOST_LIBXSLT_CONF_OPTS = \ + --without-debug \ + --without-python \ + --without-crypto \ + --with-libxml-prefix=$(HOST_DIR)/usr HOST_LIBXSLT_DEPENDENCIES = host-pkgconf host-libxml2
Signature · 1 line
2.19.0
PATCH 1/1 Point libxslt to the correct location of libxml2
Hello,
Quoted 3 lines · Ferdinand van Aartsen
Currently libxslt configure finds native
/usr/bin/xml2-config.Signed-off-by Ferdinand van Aartsen <[email protected]>
Thanks for this contribution! The commit title should always follow the format:
<package>: <description>
so, something like:
libxslt: point to the correct location of xml2-config
Quoted 15 lines
package/libxslt/libxslt.mk +2
-1@@ -13,7 +13,8 @@ LIBXSLT_LICENSE_FILES = COPYING LIBXSLT_CONF_OPTS = \ --with-gnu-ld \ --without-debug \ - --without-python + --without-python \ + --with-libxml-prefix=$(STAGING_DIR)/usr LIBXSLT_CONFIG_SCRIPTS = xslt-config LIBXSLT_DEPENDENCIES = host-pkgconf libxml2
package/libxslt/libxslt.mk else · line 33
Quoted 9 lines
package/libxslt/libxslt.mk +5
-1@@ -25,7 +26,11 @@ else LIBXSLT_CONF_OPTS += --without-crypto endif -HOST_LIBXSLT_CONF_OPTS = --without-debug --without-python --without-crypto +HOST_LIBXSLT_CONF_OPTS = \ + --without-debug \ + --without-python \ + --without-crypto \ + --with-libxml-prefix=$(HOST_DIR)/usr
This should be just $(HOST_DIR), and not $(HOST_DIR)/usr.
Those two minor comments can be fixed when applying the patch, no need to resend just for that.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 1/1 Point libxslt to the correct location of libxml2
Thomas Petazzoni schreef op 2018-09-21 13:43:
Quoted 8 lines
Hello,
Quoted 3 lines · Ferdinand van Aartsen
Currently libxslt configure finds native
/usr/bin/xml2-config.Signed-off-by Ferdinand van Aartsen <[email protected]>
Quoted 9 lines
Thanks for this contribution! The commit title should always follow the format:
<package>: <description>
so, something like:
libxslt: point to the correct location of xml2-config
Yes, got it right for my second patch, where I then proceeded to forget to add a deleted file to the commit. Ah, some days... But, I'll get there.
Quoted 28 lines
Quoted 18 lines
package/libxslt/libxslt.mk +2
-3@@ -13,7 +13,8 @@ LIBXSLT_LICENSE_FILES = COPYING LIBXSLT_CONF_OPTS = \ --with-gnu-ld \ --without-debug \ - --without-python + --without-python \ + --with-libxml-prefix=$(STAGING_DIR)/usr
LIBXSLT_CONFIG_SCRIPTS= xslt-configLIBXSLT_DEPENDENCIES= host-pkgconf libxml2package/libxslt/libxslt.mk +0
-0@@ -25,7 +26,11 @@ else
LIBXSLT_CONF_OPTS+= --without-crypto
endifpackage/libxslt/libxslt.mk else · line 33
Quoted 7 lines
package/libxslt/libxslt.mk +5
-2-HOST_LIBXSLT_CONF_OPTS = --without-debug --without-python --without-crypto +HOST_LIBXSLT_CONF_OPTS = \ + --without-debug \ + --without-python \ + --without-crypto \ + --with-libxml-prefix=$(HOST_DIR)/usrThis should be just $(HOST_DIR), and not $(HOST_DIR)/usr.
Quoted 6 lines
Those two minor comments can be fixed when applying the patch, no need to resend just for that.
Thanks!
Thomas
I copied behaviour I saw in other .mk files. But I double-checked and saw that host-libxslt configure detects the right xml2-config without --with-libxml-prefix anyway. So the host part can be left as it was.
Ferdinand
PATCH 1/1 Point libxslt to the correct location of libxml2
Hello,
Quoted 4 lines · Ferdinand van Aartsen
Quoted 2 lines
Those two minor comments can be fixed when applying the patch, no need to resend just for that.
I copied behaviour I saw in other .mk files.
If you see other places with $(HOST_DIR)/usr, they should be fixed.
Quoted 3 lines
But I double-checked and saw that host-libxslt configure detects the right xml2-config without --with-libxml-prefix anyway. So the host part can be left as it was.
Indeed, for host packages, $(HOST_DIR)/bin is in the PATH before /bin and /usr/bin, so it's going to pickup the xml2-config from Buildroot prior to the system-installed one.
With those two things to fix, perhaps you could send an updated version of your patch ?
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com