<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">The error is coming from <a href="http://pkg-generic.mk">pkg-generic.mk</a>, step_check_build_dir()</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">libp11 is trying to install a crypto engine for openssl. It uses pkg_config to get the path</div><div class="gmail_default"><font face="tahoma, sans-serif"><span style="white-space:pre">                </span>enginesexecdir="`$PKG_CONFIG --variable=enginesdir --silence-errors libcrypto`"</font><br></div><div class="gmail_default"><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default"><font face="tahoma, sans-serif">The path returned from pkg_config is </font><span style="font-family:tahoma,sans-serif">/usr/lib/engines-1.1</span></div><div class="gmail_default"><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default"><font face="tahoma, sans-serif">But then the buildroot build system is mangling the </font><span style="font-family:tahoma,sans-serif">enginesexecdir </span><span style="font-family:tahoma,sans-serif">path into...</span></div><div class="gmail_default"><font face="tahoma, sans-serif">/home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot/host/arm-buildroot-linux-gnueabi/sysroot//home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot/host/arm-buildroot-linux-gnueabi/sysroot/usr/lib/engines-1.1</font></div><div class="gmail_default"><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default"><font face="tahoma, sans-serif">So where does this path mangling happen? Why is it using a host path?</font></div><div class="gmail_default"><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default"><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 31, 2019 at 10:57 PM <a href="mailto:jonsmirl@gmail.com">jonsmirl@gmail.com</a> <<a href="mailto:jonsmirl@gmail.com">jonsmirl@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I made up a package file for libp11 based off from other posts to the list...<br>
<br>
LIBP11_VERSION = e1210903291b1de9eabcad26e740a4b2fbcca692<br>
LIBP11_SITE = $(call github,OpenSC,libp11,$(LIBP11_VERSION))<br>
LIBP11_DEPENDENCIES = openssl<br>
LIBP11_INSTALL_STAGING = YES<br>
LIBP11_LICENSE = LGPLv2.1<br>
LIBP11_LICENSE_FILES = COPYING<br>
LIBP11_AUTORECONF = YES<br>
<br>
LIBP11_CONF_OPTS += --with-enginesdir=/usr/lib<br>
ifeq ($(BR2_PACKAGE_P11_KIT),y)<br>
LIBP11_CONF_OPTS += --with-pkcs11-module=/usr/lib/p11-kit-proxy.so<br>
endif<br>
<br>
$(eval $(autotools-package))<br>
<br>
-----------------------------<br>
<br>
I'm getting an error with the path at the install stage...<br>
Can anyone give me a clue as to what is wrong?<br>
<br>
make[2]: Entering directory<br>
`/home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot/build/libp11-e1210903291b1de9eabcad26e740a4b2fbcca692'<br>
make[3]: Entering directory<br>
`/home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot/build/libp11-e1210903291b1de9eabcad26e740a4b2fbcca692'<br>
make[3]: Nothing to be done for `install-exec-am'.<br>
 /bin/mkdir -p '/home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot/host/arm-buildroot-linux-gnueabi/sysroot/usr/share/doc/libp11'<br>
 /usr/bin/install -c -m 644 NEWS<br>
'/home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot/host/arm-buildroot-linux-gnueabi/sysroot/usr/share/doc/libp11'<br>
make[3]: Leaving directory<br>
`/home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot/build/libp11-e1210903291b1de9eabcad26e740a4b2fbcca692'<br>
make[2]: Leaving directory<br>
`/home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot/build/libp11-e1210903291b1de9eabcad26e740a4b2fbcca692'<br>
make[1]: Leaving directory<br>
`/home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot/build/libp11-e1210903291b1de9eabcad26e740a4b2fbcca692'<br>
>>> libp11 e1210903291b1de9eabcad26e740a4b2fbcca692 Fixing libtool files<br>
for la in $(find<br>
/home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot/host/arm-buildroot-linux-gnueabi/sysroot/usr/lib*<br>
-name "*.la"); do \<br>
cp -a "${la}" "${la}.fixed" && \<br>
/bin/sed -i -e "s:/home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot:@BASE_DIR@:g"<br>
\<br>
-e "s:/home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot/host/arm-buildroot-linux-gnueabi/sysroot:@STAGING_DIR@:g"<br>
\<br>
-e "s:/home/jonsmirl/aosp/lindenis/out/external-toolchain/gcc-linaro-5.3.1-arm:@TOOLCHAIN_EXTERNAL_INSTALL_DIR@:g"<br>
\<br>
-e "s:\(['= ]\)/usr:\\1@STAGING_DIR@/usr:g" \<br>
-e "s:@TOOLCHAIN_EXTERNAL_INSTALL_DIR@:/home/jonsmirl/aosp/lindenis/out/external-toolchain/gcc-linaro-5.3.1-arm:g"<br>
\<br>
-e "s:@STAGING_DIR@:/home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot/host/arm-buildroot-linux-gnueabi/sysroot:g"<br>
\<br>
-e "s:@BASE_DIR@:/home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot:g"<br>
\<br>
"${la}.fixed" && \<br>
if cmp -s "${la}" "${la}.fixed"; then \<br>
rm -f "${la}.fixed"; \<br>
else \<br>
mv "${la}.fixed" "${la}"; \<br>
fi || exit 1; \<br>
done<br>
libp11: installs files in<br>
/home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot/host/arm-buildroot-linux-gnueabi/sysroot//home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot<br>
make: *** [/home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot/build/libp11-e1210903291b1de9eabcad26e740a4b2fbcca692/.stamp_staging_installed]<br>
Error 1<br>
make: Leaving directory `/home/jonsmirl/aosp/lindenis/buildroot'<br>
<br>
<br>
-- <br>
Jon Smirl<br>
<a href="mailto:jonsmirl@gmail.com" target="_blank">jonsmirl@gmail.com</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Jon Smirl<br><a href="mailto:jonsmirl@gmail.com" target="_blank">jonsmirl@gmail.com</a></div>