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

Anatol Pomozov anatolik at nymeria.archlinux.org
Thu Feb 27 09:16:58 UTC 2014


    Date: Thursday, February 27, 2014 @ 10:16:57
  Author: anatolik
Revision: 206464

upgpkg: mod_perl 2.0.8-2

Upstream mod_perl does not support apache 2.4 yet. Use sourcetree maintained by Debian people that seems have working mod_perl.

Modified:
  mod_perl/trunk/PKGBUILD

----------+
 PKGBUILD |   26 ++++++++++++++++++--------
 1 file changed, 18 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-02-27 06:18:29 UTC (rev 206463)
+++ PKGBUILD	2014-02-27 09:16:57 UTC (rev 206464)
@@ -5,38 +5,48 @@
 
 pkgname=mod_perl
 pkgver=2.0.8
-pkgrel=1
+pkgrel=2
 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')
-source=(http://apache.org/dist/perl/$pkgname-$pkgver.tar.gz
+# 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
+# Debian developers ported mod_perl to apache 2.4 that seems works well
+source=(mod_perl::svn+http://svn.apache.org/repos/asf/perl/modperl/branches/httpd24/#revision=1572460
         mod_perl-2.0.6-nolfs.patch)
-sha256sums=('35dc1b7a40a90a395ce88bba2df84f22289975f34d1757de6d715560c20a20e6'
+sha256sums=('SKIP'
             '5d1b6a051d847108b23b5dc06ea5885c37dd81d3a9156b69d179d95b5cf92f08')
 
 prepare() {
-  cd "$srcdir/$pkgname-$pkgver"
+  cd $pkgname
 
   # Patch from openSUSE to fix segfaults on i686 (FS#25008):
   #   avoid a conflict between apache's LARGEFILE64_SOURCE and perl's
   #   FILE_OFFSET_BITS=64 because the conflict isn't real and causes the perl
   #   structures to be invalid if only the apache flags are used
-  patch -Np1 -i "$srcdir/mod_perl-2.0.6-nolfs.patch"
+  # patch -Np1 -i "$srcdir/mod_perl-2.0.6-nolfs.patch"
 }
 
 build() {
-  cd "$srcdir/$pkgname-$pkgver"
+  cd $pkgname
 
   # install module in vendor directories.
-  perl Makefile.PL INSTALLDIRS=vendor MP_APXS=/usr/sbin/apxs
+  perl Makefile.PL INSTALLDIRS=vendor MP_APXS=/usr/bin/apxs
   make
 }
 
+check() {
+  cd $pkgname
+  # tests are very flaky
+  # make test
+}
+
 package() {
-  cd  "$srcdir/$pkgname-$pkgver"
+  cd $pkgname
   make install DESTDIR="$pkgdir"
 }
 




More information about the arch-commits mailing list