diff options
author | Sam James <sam@gentoo.org> | 2022-02-23 01:16:13 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-02-23 01:16:13 +0000 |
commit | aec95f5d31e5e85246f4532a882d8fc4213e4465 (patch) | |
tree | 938c6f7c97bc18d9e1fb0d9b3c7dddd3ab126e05 /app-crypt/tpm2-tss | |
parent | app-crypt/tpm2-tss: Remove broken old (diff) | |
download | gentoo-aec95f5d31e5e85246f4532a882d8fc4213e4465.tar.gz gentoo-aec95f5d31e5e85246f4532a882d8fc4213e4465.tar.bz2 gentoo-aec95f5d31e5e85246f4532a882d8fc4213e4465.zip |
app-crypt/tpm2-tss: add safeguard for bad .pc file version
Bug: https://bugs.gentoo.org/833887
Bug: https://bugs.gentoo.org/833907
Bug: https://bugs.gentoo.org/833884
Bug: https://bugs.gentoo.org/833388
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-crypt/tpm2-tss')
-rw-r--r-- | app-crypt/tpm2-tss/tpm2-tss-3.2.0-r1.ebuild | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app-crypt/tpm2-tss/tpm2-tss-3.2.0-r1.ebuild b/app-crypt/tpm2-tss/tpm2-tss-3.2.0-r1.ebuild index 4f8e544d9a79..bc7284c68a56 100644 --- a/app-crypt/tpm2-tss/tpm2-tss-3.2.0-r1.ebuild +++ b/app-crypt/tpm2-tss/tpm2-tss-3.2.0-r1.ebuild @@ -49,9 +49,12 @@ pkg_setup() { src_prepare() { default + + # See bug #833887 (and similar); eautoreconf means .pc file gets wrong version. sed -i \ "s/m4_esyscmd_s(\[git describe --tags --always --dirty\])/${PV}/" \ "configure.ac" || die + eautoreconf } @@ -77,6 +80,12 @@ src_configure() { src_install() { default + + if [[ ${PV} != $(sed -n -e 's/^Version: //p' "${ED}/usr/$(get_libdir)/pkgconfig/tss2-sys.pc" || die) ]] ; then + # Safeguard for bug #833887 + die "pkg-config file version doesn't match ${PV}! Please report a bug!" + fi + find "${D}" -name '*.la' -delete || die } |