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