1 |
idl0r 12/06/06 18:22:02 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mod_perl-2.0.7.ebuild |
5 |
Log: |
6 |
Version bump, bug 419839 |
7 |
|
8 |
(Portage version: 2.2.0_alpha110/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.96 www-apache/mod_perl/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_perl/ChangeLog?rev=1.96&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_perl/ChangeLog?rev=1.96&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_perl/ChangeLog?r1=1.95&r2=1.96 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-apache/mod_perl/ChangeLog,v |
20 |
retrieving revision 1.95 |
21 |
retrieving revision 1.96 |
22 |
diff -u -r1.95 -r1.96 |
23 |
--- ChangeLog 3 Apr 2012 20:23:27 -0000 1.95 |
24 |
+++ ChangeLog 6 Jun 2012 18:22:02 -0000 1.96 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for www-apache/mod_perl |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_perl/ChangeLog,v 1.95 2012/04/03 20:23:27 idl0r Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_perl/ChangeLog,v 1.96 2012/06/06 18:22:02 idl0r Exp $ |
30 |
+ |
31 |
+*mod_perl-2.0.7 (06 Jun 2012) |
32 |
+ |
33 |
+ 06 Jun 2012; Christian Ruppert <idl0r@g.o> +mod_perl-2.0.7.ebuild, |
34 |
+ +files/mod_perl-2.0.7-bundled-Apache-Test.patch: |
35 |
+ Version bump, bug 419839 |
36 |
|
37 |
03 Apr 2012; Christian Ruppert <idl0r@g.o> mod_perl-2.0.4-r1.ebuild, |
38 |
mod_perl-2.0.5.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 www-apache/mod_perl/mod_perl-2.0.7.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_perl/mod_perl-2.0.7.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_perl/mod_perl-2.0.7.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: mod_perl-2.0.7.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2012 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_perl/mod_perl-2.0.7.ebuild,v 1.1 2012/06/06 18:22:02 idl0r Exp $ |
52 |
|
53 |
EAPI="3" |
54 |
|
55 |
inherit apache-module perl-module eutils |
56 |
|
57 |
DESCRIPTION="An embedded Perl interpreter for Apache2" |
58 |
SRC_URI="mirror://apache/perl/${P}.tar.gz" |
59 |
HOMEPAGE="http://perl.apache.org/" |
60 |
|
61 |
LICENSE="GPL-2" |
62 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
63 |
IUSE="debug" |
64 |
SLOT="1" |
65 |
|
66 |
# Make sure we always use the latest Apache-Test version or even check the |
67 |
# version of the bundled Apache-Test! |
68 |
# |
69 |
# We need both, apache and perl but either apache without threads or perl with |
70 |
# ithreads, bug 373943 |
71 |
DEPEND=">=dev-perl/Apache-Test-1.360 |
72 |
>=virtual/perl-CGI-3.08 |
73 |
dev-lang/perl |
74 |
www-servers/apache |
75 |
|| ( www-servers/apache[-threads] dev-lang/perl[ithreads] )" |
76 |
RDEPEND="${DEPEND}" |
77 |
PDEPEND=">=dev-perl/Apache-Reload-0.11 |
78 |
>=dev-perl/Apache-SizeLimit-0.95" |
79 |
|
80 |
APACHE2_MOD_FILE="${S}/src/modules/perl/mod_perl.so" |
81 |
APACHE2_MOD_CONF="2.0.3/75_${PN}" |
82 |
APACHE2_MOD_DEFINE="PERL" |
83 |
|
84 |
SRC_TEST="do" |
85 |
|
86 |
DOCFILES="Changes INSTALL README STATUS" |
87 |
|
88 |
need_apache2 |
89 |
|
90 |
src_prepare() { |
91 |
perl-module_src_prepare |
92 |
|
93 |
# I am not entirely happy with this solution, but here's what's |
94 |
# going on here if someone wants to take a stab at another |
95 |
# approach. When userpriv compilation is off, then the make |
96 |
# process drops to user "nobody" to run the test servers. This |
97 |
# server is closed, and then the socket is rebound using |
98 |
# SO_REUSEADDR. If the same user does this, there is no problem, |
99 |
# and the socket may be rebound immediately. If a different user |
100 |
# (yes, in my testing, even root) attempts to rebind, it fails. |
101 |
# Since the "is the socket available yet" code and the |
102 |
# second-batch bind call both run as root, this will fail. |
103 |
|
104 |
# The upstream settings on my test machine cause the second batch |
105 |
# of tests to fail, believing the socket to still be in use. I |
106 |
# tried patching various parts to make them run as the user |
107 |
# specified in $config->{vars}{user} using getpwnam, but found |
108 |
# this patch to be fairly intrusive, because the userid must be |
109 |
# restored and the patch must be applied to multiple places. |
110 |
|
111 |
# For now, we will simply extend the timeout in hopes that in the |
112 |
# non-userpriv case, the socket will clear from the kernel tables |
113 |
# normally, and the tests will proceed. |
114 |
|
115 |
# If anybody is still having problems, then commenting out "make |
116 |
# test" below should allow the software to build properly. |
117 |
|
118 |
# Robert Coie <rac@g.o> 2003.05.06 |
119 |
# sed -i -e "s/sleep \$_/sleep \$_ << 2/" \ |
120 |
# "${S}"/Apache-Test/lib/Apache/TestServer.pm \ |
121 |
# || die "problem editing TestServer.pm" |
122 |
|
123 |
# rendhalver - this got redone for 2.0.1 and seems to fix the make test problems |
124 |
epatch "${FILESDIR}"/mod_perl-2.0.1-sneak-tmpdir.patch |
125 |
|
126 |
# bug 352724 |
127 |
epatch "${FILESDIR}/${P}-bundled-Apache-Test.patch" |
128 |
rm -rf Apache-{Test,Reload,SizeLimit}/ lib/Bundle/ |
129 |
sed -i -e 's:^Apache-\(Reload\|SizeLimit\|Test\).*::' \ |
130 |
-e 's:^lib/Bundle/Apache2.pm::' MANIFEST || die |
131 |
} |
132 |
|
133 |
src_configure() { |
134 |
local myargs= |
135 |
|
136 |
if use debug; then |
137 |
myargs="MP_TRACE=1 MP_DEBUG=1" |
138 |
else |
139 |
myargs="MP_TRACE=0 MP_DEBUG=0" |
140 |
fi |
141 |
|
142 |
perl Makefile.PL \ |
143 |
PREFIX="${EPREFIX}"/usr \ |
144 |
INSTALLDIRS=vendor \ |
145 |
MP_USE_DSO=1 \ |
146 |
MP_APXS=${APXS} \ |
147 |
${myargs} || die |
148 |
} |
149 |
|
150 |
src_test() { |
151 |
# make test notes whether it is running as root, and drops |
152 |
# privileges all the way to "nobody" if so, so we must adjust |
153 |
# write permissions accordingly in this case. |
154 |
|
155 |
# IF YOU SUDO TO EMERGE AND HAVE !env_reset set testing will fail! |
156 |
if [[ "$(id -u)" == "0" ]]; then |
157 |
chown nobody:nobody "${WORKDIR}" |
158 |
chown nobody:nobody "${T}" |
159 |
fi |
160 |
|
161 |
# this does not || die because of bug 21325. kudos to smark for |
162 |
# the idea of setting HOME. |
163 |
TMPDIR="${T}" HOME="${T}/" perl-module_src_test |
164 |
} |
165 |
|
166 |
src_install() { |
167 |
apache-module_src_install |
168 |
|
169 |
emake DESTDIR="${D}" install || die |
170 |
|
171 |
# TODO: add some stuff from docs/ back? |
172 |
|
173 |
# rendhalver - fix the perllocal.pod that gets installed |
174 |
# it seems to me that this has been getting installed for ages |
175 |
fixlocalpod |
176 |
# Remove empty .bs files as well |
177 |
perl_delete_packlist |
178 |
|
179 |
insinto "${APACHE_MODULES_CONFDIR}" |
180 |
doins "${FILESDIR}"/2.0.3/apache2-mod_perl-startup.pl || die |
181 |
|
182 |
# this is an attempt to get @INC in line with /usr/bin/perl. |
183 |
# there is blib garbage in the mainstream one that can only be |
184 |
# useful during internal testing, so we wait until here and then |
185 |
# just go with a clean slate. should be much easier to see what's |
186 |
# happening and revert if problematic. |
187 |
|
188 |
# Sorry for this evil hack... |
189 |
perlinfo # just to be sure... |
190 |
sed -i -e "s,-I${S}/[^[:space:]\"\']\+[[:space:]]\?,,g" \ |
191 |
-e "s,-typemap[[:space:]]${S}/[^[:space:]\"\']\+[[:space:]]\?,,g" \ |
192 |
-e "s,${S}\(/[^[:space:]\"\']\+\)\?,/,g" "${D}/${VENDOR_ARCH}/Apache2/BuildConfig.pm" || die |
193 |
|
194 |
for fname in $(find "${D}" -type f -not -name '*.so'); do |
195 |
grep -q "\(${D}\|${S}\)" "${fname}" && ewarn "QA: File contains a temporary path ${fname}" |
196 |
sed -i -e "s:\(${D}\|${S}\):/:g" ${fname} |
197 |
done |
198 |
# All the rest |
199 |
perl_remove_temppath |
200 |
} |
201 |
|
202 |
pkg_postinst() { |
203 |
perl-module_pkg_postinst |
204 |
apache-module_pkg_postinst |
205 |
} |