From 1bea134bbab31d6fc319b33eaa526cd60f3e521e Mon Sep 17 00:00:00 2001 From: Nikita Shubin Date: Tue, 7 Sep 2021 06:52:11 +0000 Subject: [PATCH 1/1] app-crypt/gpgme-1.16: crossdev export PKG_CONFIG_SYSROOT_DIR app-crypt/gpgme doesn't use pkgconfig for finding libassuan paths. Instead it uses script called gpgrt-config from dev-libs/libgpg-error. The quick solution is to provide PKG_CONFIG_SYSROOT_DIR=${SYSROOT}, as gpgrt-config honors PKG_CONFIG_SYSROOT_DIR and prepends it to extracted from libasssuan.pc libs and cflags. Signed-off-by: Nikita Shubin --- app-crypt/gpgme/gpgme-1.16.0.ebuild | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app-crypt/gpgme/gpgme-1.16.0.ebuild b/app-crypt/gpgme/gpgme-1.16.0.ebuild index ed9a1cc7e57a..722710f579ca 100644 --- a/app-crypt/gpgme/gpgme-1.16.0.ebuild +++ b/app-crypt/gpgme/gpgme-1.16.0.ebuild @@ -68,6 +68,10 @@ src_configure() { export MOC="$(qt5_get_bindir)/moc" fi + if tc-is-cross-compiler ; then + export PKG_CONFIG_SYSROOT_DIR="${SYSROOT}" + fi + econf \ $([[ -n "${SKIP_TESTS}" ]] && echo "--disable-gpg-test --disable-gpgsm-test") \ --enable-languages="${languages[*]}" \ -- 2.31.1