diff options
author | Fabian Groffen <grobian@gentoo.org> | 2017-11-15 15:58:27 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2017-11-15 16:01:47 +0100 |
commit | e0cb5603dcd642128351cf1f2a63a6f65064a4da (patch) | |
tree | 1d3410e99d0bd3278eb6ba6bbc6fbde53ec75f75 /app-crypt | |
parent | media-tv/kodi: fix app-pda/libplist dependency regarding python (diff) | |
download | gentoo-e0cb5603dcd642128351cf1f2a63a6f65064a4da.tar.gz gentoo-e0cb5603dcd642128351cf1f2a63a6f65064a4da.tar.bz2 gentoo-e0cb5603dcd642128351cf1f2a63a6f65064a4da.zip |
app-crypt/p11-kit: marked *-solaris, bug #383453
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'app-crypt')
-rw-r--r-- | app-crypt/p11-kit/p11-kit-0.23.9.ebuild | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/app-crypt/p11-kit/p11-kit-0.23.9.ebuild b/app-crypt/p11-kit/p11-kit-0.23.9.ebuild index 2844a9889097..4bcaa5230ad2 100644 --- a/app-crypt/p11-kit/p11-kit-0.23.9.ebuild +++ b/app-crypt/p11-kit/p11-kit-0.23.9.ebuild @@ -11,7 +11,7 @@ SRC_URI="https://github.com/p11-glue/${PN}/releases/download/${PV}/${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" IUSE="+asn1 debug +libffi +trust" REQUIRED_USE="trust? ( asn1 )" @@ -26,6 +26,20 @@ pkg_setup() { export FAKED_MODE=1 } +src_prepare() { + if [[ ${CHOST} == *-solaris2.* && ${CHOST##*-solaris2.} -lt 11 ]] ; then + # Solaris 10 and before doesn't know about XPG7 (XOPEN_SOURCE=700) + # drop to XPG6 to make feature_tests.h happy + sed -i -e '/define _XOPEN_SOURCE/s/700/600/' common/compat.c || die + # paths.h isn't available, oddly enough also not used albeit included + sed -i -e '/#include <paths.h>/d' trust/test-trust.c || die + # we don't have SUN_LEN here + sed -i -e 's/SUN_LEN \(([^)]\+)\)/strlen (\1->sun_path)/' \ + p11-kit/server.c || die + fi + default +} + multilib_src_configure() { ECONF_SOURCE="${S}" econf \ $(use_enable trust trust-module) \ |