diff options
| author | Ross Burton <ross.burton@arm.com> | 2024-05-03 10:59:21 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-05-09 09:48:58 +0100 |
| commit | 2b963cb51e2daa17d2b091236da8c3e4d6a322eb (patch) | |
| tree | 3af5b0a7de1fffa3ac25af30f6e34513b2fdbb73 | |
| parent | de15b8908035e6b5eee1eeb42f7c417e2556984d (diff) | |
| download | poky-2b963cb51e2daa17d2b091236da8c3e4d6a322eb.tar.gz | |
openssl: fix pkgconfig path problems
OpenSSL 3.3.0 introduced new pkgconfig generators which interact badly
with our incorrect setting of --libdir, which is documented as being
the name of the directory _under $prefix_, not an absolute path. This
resulted in the pkgconfig files have libdir=/usr which mostly works as
the actual library directory is on the search path, but can break other
recipes (such as tpm2-openssl).
Pass the correct value for --libdir, and also remove the odd handling of
an empty ${prefix} which is very historical[1] and can't happen anymore
as all build variations have a prefix.
[1] Added in oe-classic f725a81c, 2009
(From OE-Core rev: f5e931c5e5932e35113d13ba053419283f472f43)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-connectivity/openssl/openssl_3.3.0.bb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl_3.3.0.bb b/meta/recipes-connectivity/openssl/openssl_3.3.0.bb index 66cb361baa..113ed4bf95 100644 --- a/meta/recipes-connectivity/openssl/openssl_3.3.0.bb +++ b/meta/recipes-connectivity/openssl/openssl_3.3.0.bb | |||
| @@ -136,16 +136,12 @@ do_configure () { | |||
| 136 | ;; | 136 | ;; |
| 137 | esac | 137 | esac |
| 138 | 138 | ||
| 139 | useprefix=${prefix} | ||
| 140 | if [ "x$useprefix" = "x" ]; then | ||
| 141 | useprefix=/ | ||
| 142 | fi | ||
| 143 | # WARNING: do not set compiler/linker flags (-I/-D etc.) in EXTRA_OECONF, as they will fully replace the | 139 | # WARNING: do not set compiler/linker flags (-I/-D etc.) in EXTRA_OECONF, as they will fully replace the |
| 144 | # environment variables set by bitbake. Adjust the environment variables instead. | 140 | # environment variables set by bitbake. Adjust the environment variables instead. |
| 145 | PERLEXTERNAL="$(realpath ${S}/external/perl/Text-Template-*/lib)" | 141 | PERLEXTERNAL="$(realpath ${S}/external/perl/Text-Template-*/lib)" |
| 146 | test -d "$PERLEXTERNAL" || bberror "PERLEXTERNAL '$PERLEXTERNAL' not found!" | 142 | test -d "$PERLEXTERNAL" || bberror "PERLEXTERNAL '$PERLEXTERNAL' not found!" |
| 147 | HASHBANGPERL="/usr/bin/env perl" PERL=perl PERL5LIB="$PERLEXTERNAL" \ | 143 | HASHBANGPERL="/usr/bin/env perl" PERL=perl PERL5LIB="$PERLEXTERNAL" \ |
| 148 | perl ${S}/Configure ${EXTRA_OECONF} ${PACKAGECONFIG_CONFARGS} ${DEPRECATED_CRYPTO_FLAGS} --prefix=$useprefix --openssldir=${libdir}/ssl-3 --libdir=${libdir} $target | 144 | perl ${S}/Configure ${EXTRA_OECONF} ${PACKAGECONFIG_CONFARGS} ${DEPRECATED_CRYPTO_FLAGS} --prefix=${prefix} --openssldir=${libdir}/ssl-3 --libdir=${baselib} $target |
| 149 | perl ${B}/configdata.pm --dump | 145 | perl ${B}/configdata.pm --dump |
| 150 | } | 146 | } |
| 151 | 147 | ||
