From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] libp11: Add new package for OpenSSL PKCS#11 engine
Date: Fri, 5 Apr 2019 09:49:19 +0200 [thread overview]
Message-ID: <20190405094919.40f655c2@windsurf> (raw)
In-Reply-To: <1554412249.27243.12.camel@impinj.com>
Hello Trent,
On Thu, 4 Apr 2019 21:10:50 +0000
Trent Piepho <tpiepho@impinj.com> wrote:
> > It also needs host-pkgconf, because pkg-config is used to detect
> > OpenSSL.
>
> I had assumed this was implicit in an autotools-package, but I see that
> it is not.
Indeed, host-pkgconf is not in the default dependencies added by
autotools-package, based on the fact that using autotools does not
necessarily implies using host-pkgconf (though admittedly, this is more
and more often the case).
> > Then, even with this fixed, the package didn't build because it was
> > installing its OpenSSL modules in the wrong folder, as pkg-config
> > --variable enginesdir libcrypto returned a bogus value. I fixed that by
> > passing --with-enginesdir.
>
> This is interesting, as when I made this patch for an older buildroot,
> pkgconfig would return the correct value. It was not prefixed with the
> stage. This is a new behavior.
>
> And it looks like this already hit a bunch of packages with things like
> the x11 app-defaults dir. Since "libdir" is in the whitelist of paths
> to prefix, it also hits enginesdir since the latter is based on libdir.
>
> Maybe that pkg-config whitelist should not affect variables that use
> libdir and only prefix libdir itself?
We have bumped pkg-config not long ago, and indeed its behavior
changed. When you have something like this:
prefix=/usr
libdir=${prefix}/lib
enginesdir=${libdir}/engines
and "libdir" was part of the special list of variables that we want to
prefix with the sysroot, then the old pkg-config would return libdir
prefixed with the sysroot, but not enginesdir.
With the new pkg-config version, the behavior changed, and because
enginesdir is derived from libdir, enginesdir is going to be
sysroot-prefixed.
Overall, the issue is that there is no concept in pkg-config for "the
value of this variable is going to be used at build time" vs "the
value of this variable is going to be used at run time".
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2019-04-05 7:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-07 18:13 [Buildroot] [PATCH v2] libp11: Add new package for OpenSSL PKCS#11 engine Trent Piepho
2018-12-29 5:36 ` Frank Hunleth
2018-12-31 20:10 ` Trent Piepho
2019-04-04 19:45 ` Thomas Petazzoni
2019-04-04 21:10 ` Trent Piepho
2019-04-05 7:49 ` Thomas Petazzoni [this message]
2019-04-05 17:57 ` Trent Piepho
2019-04-05 19:29 ` jonsmirl at gmail.com
2019-04-06 11:57 ` Thomas Petazzoni
2019-04-06 14:39 ` jonsmirl at gmail.com
2019-04-26 8:12 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190405094919.40f655c2@windsurf \
--to=thomas.petazzoni@bootlin.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox