Gentoo Archives: gentoo-commits

From: "Benedikt Boehm (hollow)" <hollow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apache/mod_perl: ChangeLog mod_perl-2.0.3-r2.ebuild
Date: Sun, 06 Jan 2008 21:02:14
Message-Id: E1JBcdG-0000fd-Ku@stork.gentoo.org
1 hollow 08/01/06 21:02:10
2
3 Modified: ChangeLog
4 Added: mod_perl-2.0.3-r2.ebuild
5 Log:
6 fix #182235, #199183
7 (Portage version: 2.1.4_rc11)
8
9 Revision Changes Path
10 1.53 www-apache/mod_perl/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/mod_perl/ChangeLog?rev=1.53&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/mod_perl/ChangeLog?rev=1.53&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/mod_perl/ChangeLog?r1=1.52&r2=1.53
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-apache/mod_perl/ChangeLog,v
19 retrieving revision 1.52
20 retrieving revision 1.53
21 diff -u -r1.52 -r1.53
22 --- ChangeLog 13 Jun 2007 12:49:28 -0000 1.52
23 +++ ChangeLog 6 Jan 2008 21:02:10 -0000 1.53
24 @@ -1,6 +1,12 @@
25 # ChangeLog for www-apache/mod_perl
26 -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_perl/ChangeLog,v 1.52 2007/06/13 12:49:28 chtekk Exp $
28 +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_perl/ChangeLog,v 1.53 2008/01/06 21:02:10 hollow Exp $
30 +
31 +*mod_perl-2.0.3-r2 (06 Jan 2008)
32 +
33 + 06 Jan 2008; Benedikt Böhm <hollow@g.o>
34 + files/2.0.3/75_mod_perl.conf, +mod_perl-2.0.3-r2.ebuild:
35 + fix #182235, #199183
36
37 13 Jun 2007; Luca Longinotti <chtekk@g.o>
38 -files/1.29/75_mod_perl.conf, -files/1.30/75_mod_perl.conf,
39
40
41
42 1.1 www-apache/mod_perl/mod_perl-2.0.3-r2.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/mod_perl/mod_perl-2.0.3-r2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/mod_perl/mod_perl-2.0.3-r2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: mod_perl-2.0.3-r2.ebuild
48 ===================================================================
49 # Copyright 1999-2008 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.3-r2.ebuild,v 1.1 2008/01/06 21:02:10 hollow Exp $
52
53 inherit apache-module perl-module eutils multilib
54
55 DESCRIPTION="An embedded Perl interpreter for Apache2"
56 SRC_URI="mirror://cpan/authors/id/P/PG/PGOLLUCCI/${P}.tar.gz"
57 HOMEPAGE="http://perl.apache.org/"
58
59 LICENSE="GPL-2"
60 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
61 IUSE=""
62 SLOT="1"
63
64 # see bug 30087 for why sudo is in here
65 DEPEND=">=dev-perl/Apache-Test-1.27
66 >=virtual/perl-CGI-3.08
67 >=dev-perl/Compress-Zlib-1.09
68 app-admin/sudo"
69 RDEPEND="${DEPEND}"
70
71 APACHE2_MOD_FILE="${S}/src/modules/perl/mod_perl.so"
72 APACHE2_MOD_CONF="${PV}/75_${PN}"
73 APACHE2_MOD_DEFINE="PERL"
74
75 DOCFILES="Changes INSTALL LICENSE README STATUS"
76
77 need_apache2
78
79 pkg_setup() {
80 if built_with_use dev-lang/perl ithreads; then
81 APACHE2_SAFE_MPMS="event worker"
82 else
83 APACHE2_SAFE_MPMS="prefork itk peruser"
84 fi
85 apache-module_pkg_setup
86 }
87
88 src_unpack() {
89 unpack ${A}
90 cd "${S}"
91
92 # I am not entirely happy with this solution, but here's what's
93 # going on here if someone wants to take a stab at another
94 # approach. When userpriv compilation is off, then the make
95 # process drops to user "nobody" to run the test servers. This
96 # server is closed, and then the socket is rebound using
97 # SO_REUSEADDR. If the same user does this, there is no problem,
98 # and the socket may be rebound immediately. If a different user
99 # (yes, in my testing, even root) attempts to rebind, it fails.
100 # Since the "is the socket available yet" code and the
101 # second-batch bind call both run as root, this will fail.
102
103 # The upstream settings on my test machine cause the second batch
104 # of tests to fail, believing the socket to still be in use. I
105 # tried patching various parts to make them run as the user
106 # specified in $config->{vars}{user} using getpwnam, but found
107 # this patch to be fairly intrusive, because the userid must be
108 # restored and the patch must be applied to multiple places.
109
110 # For now, we will simply extend the timeout in hopes that in the
111 # non-userpriv case, the socket will clear from the kernel tables
112 # normally, and the tests will proceed.
113
114 # If anybody is still having problems, then commenting out "make
115 # test" below should allow the software to build properly.
116
117 # Robert Coie <rac@g.o> 2003.05.06
118
119 sed -i -e "s/sleep \$_/sleep \$_ << 2/" "${S}"/Apache-Test/lib/Apache/TestServer.pm || die "problem editing TestServer.pm"
120
121 # i wonder if this is the same sandbox issue, but TMPDIR is not
122 # getting through via SetEnv. sneak it through here. Bug 172676
123 epatch "${FILESDIR}"/RegistryCooker.patch
124
125 # rendhalver - this got redone for 2.0.1 and seems to fix the make test problems
126 epatch "${FILESDIR}"/mod_perl-2.0.1-sneak-tmpdir.patch
127 }
128
129 src_compile() {
130 perl Makefile.PL \
131 PREFIX="${D}"/usr \
132 MP_TRACE=1 \
133 MP_DEBUG=1 \
134 MP_USE_DSO=1 \
135 MP_APXS=${APXS2} \
136 INSTALLDIRS=vendor </dev/null || die
137
138 # reported that parallel make is broken in bug 30257
139 emake -j1 || die
140 }
141
142 src_test() {
143 # make test notes whether it is running as root, and drops
144 # privileges all the way to "nobody" if so, so we must adjust
145 # write permissions accordingly in this case.
146
147 # IF YOU SUDO TO EMERGE AND HAVE !env_reset set testing will fail!
148 if [[ "$(id -u)" == "0" ]]; then
149 chown nobody:nobody "${WORKDIR}"
150 chown nobody:nobody "${T}"
151 fi
152
153 # this does not || die because of bug 21325. kudos to smark for
154 # the idea of setting HOME.
155 TMPDIR="${T}" HOME="${T}/" make test
156 }
157
158 src_install() {
159 apache-module_src_install
160
161 dodir "${APACHE2_MODULESDIR}"
162 make install \
163 MODPERL_AP_LIBEXECDIR="${D}${APACHE2_MODULESDIR}" \
164 MODPERL_AP_INCLUDEDIR="${D}/usr/include/apache2" \
165 MP_INST_APACHE2=1 \
166 INSTALLDIRS=vendor || die
167
168 # rendhalver - fix the perllocal.pod that gets installed
169 # it seems to me that this has been getting installed for ages
170 fixlocalpod
171
172 insinto "${APACHE2_MODULES_CONFDIR}"
173 doins "${FILESDIR}"/${PV}/apache2-mod_perl-startup.pl
174 cp -pPR docs "${D}"/usr/share/doc/${PF}
175 cp -pPR todo "${D}"/usr/share/doc/${PF}
176
177 # this is an attempt to get @INC in line with /usr/bin/perl.
178 # there is blib garbage in the mainstream one that can only be
179 # useful during internal testing, so we wait until here and then
180 # just go with a clean slate. should be much easier to see what's
181 # happening and revert if problematic.
182 for FILE in $(grep -lr portage "${D}"/*|grep -v ".so"); do
183 sed -i -e "s:${D}:/:g" ${FILE}
184 done
185 }
186
187
188
189 --
190 gentoo-commits@l.g.o mailing list