1 |
commit: d927829b165fe2da80e501861e1ac0326d5baf7c |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 2 11:25:33 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 2 11:42:11 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d927829b |
7 |
|
8 |
dev-libs/apr: Setting a subslot is needed (#525222) |
9 |
|
10 |
Package-Manager: Portage-2.3.27, Repoman-2.3.9 |
11 |
|
12 |
dev-libs/apr/apr-1.6.3-r1.ebuild | 147 +++++++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 147 insertions(+) |
14 |
|
15 |
diff --git a/dev-libs/apr/apr-1.6.3-r1.ebuild b/dev-libs/apr/apr-1.6.3-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..ba7eb74e48b |
18 |
--- /dev/null |
19 |
+++ b/dev-libs/apr/apr-1.6.3-r1.ebuild |
20 |
@@ -0,0 +1,147 @@ |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+ |
26 |
+inherit autotools libtool ltprune multilib toolchain-funcs |
27 |
+ |
28 |
+DESCRIPTION="Apache Portable Runtime Library" |
29 |
+HOMEPAGE="https://apr.apache.org/" |
30 |
+SRC_URI="mirror://apache/apr/${P}.tar.bz2" |
31 |
+ |
32 |
+LICENSE="Apache-2.0" |
33 |
+SLOT="1/${PV%.*}" |
34 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
35 |
+IUSE="doc elibc_FreeBSD older-kernels-compatibility selinux static-libs +urandom" |
36 |
+ |
37 |
+CDEPEND="elibc_glibc? ( >=sys-apps/util-linux-2.16 ) |
38 |
+ elibc_mintlib? ( >=sys-apps/util-linux-2.18 )" |
39 |
+RDEPEND="${CDEPEND} |
40 |
+ selinux? ( sec-policy/selinux-apache )" |
41 |
+DEPEND="${CDEPEND} |
42 |
+ >=sys-devel/libtool-2.4.2 |
43 |
+ doc? ( app-doc/doxygen )" |
44 |
+ |
45 |
+DOCS=( CHANGES NOTICE README ) |
46 |
+ |
47 |
+PATCHES=( |
48 |
+ "${FILESDIR}"/${PN}-1.5.0-mint.patch |
49 |
+ "${FILESDIR}"/${PN}-1.5.0-libtool.patch |
50 |
+ "${FILESDIR}"/${PN}-1.5.0-cross-types.patch |
51 |
+ "${FILESDIR}"/${PN}-1.5.0-sysroot.patch #385775 |
52 |
+) |
53 |
+ |
54 |
+src_prepare() { |
55 |
+ default |
56 |
+ |
57 |
+ mv configure.in configure.ac || die |
58 |
+ AT_M4DIR="build" eautoreconf |
59 |
+ elibtoolize |
60 |
+ |
61 |
+ eapply "${FILESDIR}/config.layout.patch" |
62 |
+} |
63 |
+ |
64 |
+src_configure() { |
65 |
+ local myconf=( |
66 |
+ --enable-layout=gentoo |
67 |
+ --enable-nonportable-atomics |
68 |
+ --enable-posix-shm |
69 |
+ --enable-threads |
70 |
+ $(use_enable static-libs static) |
71 |
+ ) |
72 |
+ |
73 |
+ [[ ${CHOST} == *-mint* ]] && export ac_cv_func_poll=no |
74 |
+ |
75 |
+ if use older-kernels-compatibility; then |
76 |
+ local apr_cv_accept4 apr_cv_dup3 apr_cv_epoll_create1 apr_cv_sock_cloexec |
77 |
+ export apr_cv_accept4="no" |
78 |
+ export apr_cv_dup3="no" |
79 |
+ export apr_cv_epoll_create1="no" |
80 |
+ export apr_cv_sock_cloexec="no" |
81 |
+ fi |
82 |
+ if tc-is-cross-compiler; then |
83 |
+ # The apache project relies heavily on AC_TRY_RUN and doesn't |
84 |
+ # have any sane cross-compiling fallback logic. |
85 |
+ export \ |
86 |
+ ac_cv_file__dev_zero="yes" \ |
87 |
+ ac_cv_func_sem_open="yes" \ |
88 |
+ ac_cv_negative_eai="yes" \ |
89 |
+ ac_cv_o_nonblock_inherited="no" \ |
90 |
+ ac_cv_struct_rlimit="yes" \ |
91 |
+ ap_cv_atomic_builtins="yes" \ |
92 |
+ apr_cv_accept4="yes" \ |
93 |
+ apr_cv_dup3="yes" \ |
94 |
+ apr_cv_epoll="yes" \ |
95 |
+ apr_cv_epoll_create1="yes" \ |
96 |
+ apr_cv_gai_addrconfig="yes" \ |
97 |
+ apr_cv_mutex_recursive="yes" \ |
98 |
+ apr_cv_mutex_robust_shared="yes" \ |
99 |
+ apr_cv_process_shared_works="yes" \ |
100 |
+ apr_cv_pthreads_lib="-pthread" \ |
101 |
+ apr_cv_sock_cloexec="yes" \ |
102 |
+ apr_cv_tcp_nodelay_with_cork="yes" |
103 |
+ fi |
104 |
+ |
105 |
+ if use urandom; then |
106 |
+ myconf+=( --with-devrandom=/dev/urandom ) |
107 |
+ elif (( ${CHOST#*-hpux11.} <= 11 )); then |
108 |
+ : # no /dev/*random on hpux11.11 and before, $PN detects this. |
109 |
+ else |
110 |
+ myconf+=( --with-devrandom=/dev/random ) |
111 |
+ fi |
112 |
+ |
113 |
+ tc-is-static-only && myconf+=( --disable-dso ) |
114 |
+ |
115 |
+ # shl_load does not search runpath, but hpux11 supports dlopen |
116 |
+ [[ ${CHOST} == *-hpux11* ]] && myconf+=( --enable-dso=dlfcn ) |
117 |
+ |
118 |
+ if [[ ${CHOST} == *-solaris2.10 ]]; then |
119 |
+ case $(<$([[ ${CHOST} != ${CBUILD} ]] && echo "${EPREFIX}/usr/${CHOST}")/usr/include/atomic.h) in |
120 |
+ *atomic_cas_ptr*) ;; |
121 |
+ *) |
122 |
+ elog "You do not have Solaris Patch ID "$( |
123 |
+ [[ ${CHOST} == sparc* ]] && echo 118884 || echo 118885 |
124 |
+ )" (Problem 4954703) installed on your host ($(hostname))," |
125 |
+ elog "using generic atomic operations instead." |
126 |
+ myconf+=( --disable-nonportable-atomics ) |
127 |
+ ;; |
128 |
+ esac |
129 |
+ fi |
130 |
+ |
131 |
+ econf "${myconf[@]}" |
132 |
+} |
133 |
+ |
134 |
+src_compile() { |
135 |
+ if tc-is-cross-compiler; then |
136 |
+ # This header is the same across targets, so use the build compiler. |
137 |
+ emake tools/gen_test_char |
138 |
+ tc-export_build_env BUILD_CC |
139 |
+ ${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_CPPFLAGS} ${BUILD_LDFLAGS} \ |
140 |
+ tools/gen_test_char.c -o tools/gen_test_char || die |
141 |
+ fi |
142 |
+ |
143 |
+ emake |
144 |
+ |
145 |
+ if use doc; then |
146 |
+ emake dox |
147 |
+ fi |
148 |
+} |
149 |
+ |
150 |
+src_install() { |
151 |
+ default |
152 |
+ |
153 |
+ # Prallel install breaks since apr-1.5.1 |
154 |
+ #make -j1 DESTDIR="${D}" install || die |
155 |
+ |
156 |
+ prune_libtool_files --all |
157 |
+ |
158 |
+ if use doc; then |
159 |
+ docinto html |
160 |
+ dodoc -r docs/dox/html/* |
161 |
+ fi |
162 |
+ |
163 |
+ # This file is only used on AIX systems, which Gentoo is not, |
164 |
+ # and causes collisions between the SLOTs, so remove it. |
165 |
+ # Even in Prefix, we don't need this on AIX. |
166 |
+ rm -f "${ED%/}/usr/$(get_libdir)/apr.exp" |
167 |
+} |