[arch-commits] Commit in mod_perl/trunk (PKGBUILD)

Anatol Pomozov anatolik at archlinux.org
Sun Jun 21 02:57:30 UTC 2015


    Date: Sunday, June 21, 2015 @ 04:57:30
  Author: anatolik
Revision: 135647

upgpkg: mod_perl 2.0.9-1

Modified:
  mod_perl/trunk/PKGBUILD

----------+
 PKGBUILD |   37 +++++++++++++++++--------------------
 1 file changed, 17 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-06-20 15:45:02 UTC (rev 135646)
+++ PKGBUILD	2015-06-21 02:57:30 UTC (rev 135647)
@@ -4,43 +4,40 @@
 # Contributor: Tom K <tomk at runbox.com>
 
 pkgname=mod_perl
-pkgver=2.0.8
-pkgrel=5
+pkgver=2.0.9
+pkgrel=1
 pkgdesc='Apache module that embeds the Perl interpreter within the server'
 arch=(i686 x86_64)
 url='http://perl.apache.org/'
 license=(APACHE)
 depends=(perl apache db apr-util perl-linux-pid)
-makedepends=(subversion)
 options=(!emptydirs)
-# upstream from http://apache.org/dist/perl/$pkgname-$pkgver.tar.gz is not ready for apache 2.4 yet
-# See the discussion http://mail-archives.apache.org/mod_mbox/perl-modperl/201402.mbox/thread
-# But trunk seems almost ready for Apache 2.4
-# http://mail-archives.apache.org/mod_mbox/perl-modperl/201408.mbox/browser
-source=(mod_perl::svn+http://svn.apache.org/repos/asf/perl/modperl/trunk#revision=1654615)
-sha256sums=('SKIP')
+source=(http://apache.org/dist/perl/mod_perl-2.0.9.tar.gz{,.asc}
+        undefined_symbol.patch::http://pkgs.fedoraproject.org/cgit/mod_perl.git/plain/mod_perl-2.0.4-inline.patch?h=f22)
+validpgpkeys=(2026E6A4A6A4483E61BA6F3FAB34BA0040E92ECE)
+sha256sums=('0260f26ab771c1c95fadc67544b3400e420bb30b8a77565d2d02ad05498ef52b'
+            'SKIP'
+            '08cd008e25d3eee44f477c744f50e574e2cb9853556d268ba06e8b3cb33341e4')
 
+prepare() {
+  cd mod_perl-$pkgver
+  # FS#45392
+  patch -p1 < ../undefined_symbol.patch
+}
+
 build() {
-  cd mod_perl
+  cd mod_perl-$pkgver
   perl Makefile.PL INSTALLDIRS=vendor MP_APXS=/usr/bin/apxs
   make
 }
 
 check() {
-  cd mod_perl
+  cd mod_perl-$pkgver
   # tests are very flaky
   # make test
 }
 
 package() {
-  cd mod_perl
+  cd mod_perl-$pkgver
   make install DESTDIR="$pkgdir"
-
-# template start; name=perl-binary-module-dependency; version=1;
-if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then
-	_perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);')
-	_perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);')
-	depends+=("perl>=$_perlver_min" "perl<$_perlver_max")
-fi
-# template end;
 }



More information about the arch-commits mailing list