1 |
commit: e0cb5603dcd642128351cf1f2a63a6f65064a4da |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 15 14:58:27 2017 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 15 15:01:47 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0cb5603 |
7 |
|
8 |
app-crypt/p11-kit: marked *-solaris, bug #383453 |
9 |
|
10 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
11 |
|
12 |
app-crypt/p11-kit/p11-kit-0.23.9.ebuild | 16 +++++++++++++++- |
13 |
1 file changed, 15 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/app-crypt/p11-kit/p11-kit-0.23.9.ebuild b/app-crypt/p11-kit/p11-kit-0.23.9.ebuild |
16 |
index 2844a988909..4bcaa5230ad 100644 |
17 |
--- a/app-crypt/p11-kit/p11-kit-0.23.9.ebuild |
18 |
+++ b/app-crypt/p11-kit/p11-kit-0.23.9.ebuild |
19 |
@@ -11,7 +11,7 @@ SRC_URI="https://github.com/p11-glue/${PN}/releases/download/${PV}/${P}.tar.gz" |
20 |
|
21 |
LICENSE="MIT" |
22 |
SLOT="0" |
23 |
-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" |
24 |
+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" |
25 |
IUSE="+asn1 debug +libffi +trust" |
26 |
REQUIRED_USE="trust? ( asn1 )" |
27 |
|
28 |
@@ -26,6 +26,20 @@ pkg_setup() { |
29 |
export FAKED_MODE=1 |
30 |
} |
31 |
|
32 |
+src_prepare() { |
33 |
+ if [[ ${CHOST} == *-solaris2.* && ${CHOST##*-solaris2.} -lt 11 ]] ; then |
34 |
+ # Solaris 10 and before doesn't know about XPG7 (XOPEN_SOURCE=700) |
35 |
+ # drop to XPG6 to make feature_tests.h happy |
36 |
+ sed -i -e '/define _XOPEN_SOURCE/s/700/600/' common/compat.c || die |
37 |
+ # paths.h isn't available, oddly enough also not used albeit included |
38 |
+ sed -i -e '/#include <paths.h>/d' trust/test-trust.c || die |
39 |
+ # we don't have SUN_LEN here |
40 |
+ sed -i -e 's/SUN_LEN \(([^)]\+)\)/strlen (\1->sun_path)/' \ |
41 |
+ p11-kit/server.c || die |
42 |
+ fi |
43 |
+ default |
44 |
+} |
45 |
+ |
46 |
multilib_src_configure() { |
47 |
ECONF_SOURCE="${S}" econf \ |
48 |
$(use_enable trust trust-module) \ |