[Buildroot] Help making package file for libp11

jonsmirl at gmail.com jonsmirl at gmail.com
Sat Apr 13 14:11:30 UTC 2019


On Sat, Apr 13, 2019 at 8:59 AM Arnout Vandecappelle <arnout at mind.be> wrote:
>
>
>
> On 01/04/2019 22:03, jonsmirl at gmail.com wrote:
> > The error is coming from pkg-generic.mk, step_check_build_dir()
> >
> > libp11 is trying to install a crypto engine for openssl. It uses pkg_config
> > to get the path
> > enginesexecdir="`$PKG_CONFIG --variable=enginesdir --silence-errors
> > libcrypto`"
> >
> > The path returned from pkg_config is /usr/lib/engines-1.1
> >
> > But then the buildroot build system is mangling the enginesexecdir path
> > into...
> > /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
> >
> > So where does this path mangling happen? Why is it using a host path?
>
>  It's not using a host path; it's using the staging path (everything up to
> sysroot), but the path is printed twice.
>
>  However, I don't have that issue:

A complete rebuild of my system fixed the error. libp11 is checked in
on git master now,
but it needs a version bump to support ECC.


>
> $ output/host/bin/pkg-config --variable=enginesdir --silence-errors libcrypto
> output/host/bin/../arm-buildroot-linux-gnueabihf/sysroot/usr/lib/engines-1.1
>
>  Is it possible that you're using some outdated Buildroot version that doesn't
> have 7125fc5c1a8a96ff8eee057789358702e1b55835 applied yet?
>
>
>  Regards,
>  Arnout
>
>
> > On Sun, Mar 31, 2019 at 10:57 PM jonsmirl at gmail.com <jonsmirl at gmail.com>
> > wrote:
> >
> >> I made up a package file for libp11 based off from other posts to the
> >> list...
> >>
> >> LIBP11_VERSION = e1210903291b1de9eabcad26e740a4b2fbcca692
> >> LIBP11_SITE = $(call github,OpenSC,libp11,$(LIBP11_VERSION))
> >> LIBP11_DEPENDENCIES = openssl
> >> LIBP11_INSTALL_STAGING = YES
> >> LIBP11_LICENSE = LGPLv2.1
> >> LIBP11_LICENSE_FILES = COPYING
> >> LIBP11_AUTORECONF = YES
> >>
> >> LIBP11_CONF_OPTS += --with-enginesdir=/usr/lib
> >> ifeq ($(BR2_PACKAGE_P11_KIT),y)
> >> LIBP11_CONF_OPTS += --with-pkcs11-module=/usr/lib/p11-kit-proxy.so
> >> endif
> >>
> >> $(eval $(autotools-package))
> >>
> >> -----------------------------
> >>
> >> I'm getting an error with the path at the install stage...
> >> Can anyone give me a clue as to what is wrong?
> >>
> >> make[2]: Entering directory
> >>
> >> `/home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot/build/libp11-e1210903291b1de9eabcad26e740a4b2fbcca692'
> >> make[3]: Entering directory
> >>
> >> `/home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot/build/libp11-e1210903291b1de9eabcad26e740a4b2fbcca692'
> >> make[3]: Nothing to be done for `install-exec-am'.
> >>  /bin/mkdir -p
> >> '/home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot/host/arm-buildroot-linux-gnueabi/sysroot/usr/share/doc/libp11'
> >>  /usr/bin/install -c -m 644 NEWS
> >>
> >> '/home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot/host/arm-buildroot-linux-gnueabi/sysroot/usr/share/doc/libp11'
> >> make[3]: Leaving directory
> >>
> >> `/home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot/build/libp11-e1210903291b1de9eabcad26e740a4b2fbcca692'
> >> make[2]: Leaving directory
> >>
> >> `/home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot/build/libp11-e1210903291b1de9eabcad26e740a4b2fbcca692'
> >> make[1]: Leaving directory
> >>
> >> `/home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot/build/libp11-e1210903291b1de9eabcad26e740a4b2fbcca692'
> >>>>> libp11 e1210903291b1de9eabcad26e740a4b2fbcca692 Fixing libtool files
> >> for la in $(find
> >>
> >> /home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot/host/arm-buildroot-linux-gnueabi/sysroot/usr/lib*
> >> -name "*.la"); do \
> >> cp -a "${la}" "${la}.fixed" && \
> >> /bin/sed -i -e
> >> "s:/home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot:@BASE_DIR
> >> @:g"
> >> \
> >> -e
> >> "s:/home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot/host/arm-buildroot-linux-gnueabi/sysroot:@STAGING_DIR
> >> @:g"
> >> \
> >> -e
> >> "s:/home/jonsmirl/aosp/lindenis/out/external-toolchain/gcc-linaro-5.3.1-arm:@TOOLCHAIN_EXTERNAL_INSTALL_DIR
> >> @:g"
> >> \
> >> -e "s:\(['= ]\)/usr:\\1 at STAGING_DIR@/usr:g" \
> >> -e "s:@TOOLCHAIN_EXTERNAL_INSTALL_DIR
> >> @:/home/jonsmirl/aosp/lindenis/out/external-toolchain/gcc-linaro-5.3.1-arm:g"
> >> \
> >> -e "s:@STAGING_DIR
> >> @:/home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot/host/arm-buildroot-linux-gnueabi/sysroot:g"
> >> \
> >> -e "s:@BASE_DIR
> >> @:/home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot:g"
> >> \
> >> "${la}.fixed" && \
> >> if cmp -s "${la}" "${la}.fixed"; then \
> >> rm -f "${la}.fixed"; \
> >> else \
> >> mv "${la}.fixed" "${la}"; \
> >> fi || exit 1; \
> >> done
> >> libp11: installs files in
> >>
> >> /home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot/host/arm-buildroot-linux-gnueabi/sysroot//home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot
> >> make: ***
> >> [/home/jonsmirl/aosp/lindenis/out/eagle/lindeni-v5/buildroot/build/libp11-e1210903291b1de9eabcad26e740a4b2fbcca692/.stamp_staging_installed]
> >> Error 1
> >> make: Leaving directory `/home/jonsmirl/aosp/lindenis/buildroot'
> >>
> >>
> >> --
> >> Jon Smirl
> >> jonsmirl at gmail.com
> >>
> >
> >
> >
> > _______________________________________________
> > buildroot mailing list
> > buildroot at busybox.net
> > http://lists.busybox.net/mailman/listinfo/buildroot
> >



-- 
Jon Smirl
jonsmirl at gmail.com



More information about the buildroot mailing list