[Buildroot] [PATCH] package/xmlstarlet: fix host build
Romain Naour
romain.naour at gmail.com
Fri Sep 1 19:36:27 UTC 2017
Hi Thomas,
Le 31/08/2017 à 21:33, Thomas Petazzoni a écrit :
> Hello,
>
> On Thu, 31 Aug 2017 20:42:10 +0200, Romain Naour wrote:
>
>> checking for xml2-config... /bin/xml2-config
>> configure: using libxml-2.9.4
>> checking for xslt-config...
>> /home/naourr/buildroot-test/test/arete-glibc2.26/host/bin/xslt-config
>> configure: using libxslt-1.1.29
>
> Is HOST_DIR/bin in the PATH when calling configure? Why does it
> use /bin/xml2-config and not the one in HOST_DIR/bin ?
HOST_DIR/bin is in the first place in the PATH used when calling configure
PATH="[...]/host/bin:...
And the content is:
ls -1 [...]/host/bin/
[...]
xml
xml2-config
xmlcatalog
xmllint
xslt-config
xsltproc
So all is ok
Let's take a look at the configure.ac:
XSTAR_LIB_CHECK([LIBXML], [xml2-config])
XSTAR_LIB_CHECK come from a local m4 file m4/xstar-check-libs.m4 where it use
AC_PATH_PROG(LIBXXX()_CONFIG, xxx_config(),
[], [$LIBXXX()_PREFIX/bin$PATH_SEPARATOR$PATH]
Since no prefix seems to be defined, AC_PATH_PROG look by itself at /bin/ for
xml2-config... (bad)
Either we have to define a prefix like this patch is doing or override
ac_cv_path_LIBXML_CONFIG
HOST_XMLSTARLET_CONF_ENV += \
ac_cv_path_LIBXML_CONFIG=$(HOST_DIR)/bin/xml2-config \
ac_cv_path_LIBXSLT_CONFIG=$(HOST_DIR)/bin/xslt-config
For some reason, I have this issue only on my machine at home...
(Fedora 25) but not at work (debian 8).
On my machine
ls -l /
bin -> usr/bin
Maybe on debian /bin and /usr/bin is not the same directory...
That's why this issue is not triged by autobuilders.
XSTAR_LIB_CHECK behavior looks dubious... why no prefix is set by default ??
Best regards,
Romain
>
> Thomas
>
More information about the buildroot
mailing list