summaryrefslogtreecommitdiff
path: root/core/pcre
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-09-05 11:13:43 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-09-05 11:13:43 -0300
commit58d6937e71aea203f6693a68146018f950922fbc (patch)
tree3b53b76f930f60717debca5e0d612eeab0279b39 /core/pcre
parentd07d53d7af1e9694d9558783841bc2df3124a90f (diff)
parentf651180e6b1ac9508ec0d1d9b94972de776020a9 (diff)
I don't understand gcc/PKGBUILD.mips64el
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el Conflicts: community/addresses/PKGBUILD community/chmsee/PKGBUILD community/coin/PKGBUILD community/critterding/PKGBUILD community/distcc/PKGBUILD community/djview4/PKGBUILD community/freedroid/PKGBUILD community/gnumail/PKGBUILD community/gyachi/PKGBUILD community/java-oracle/PKGBUILD community/liboop/PKGBUILD community/ltris/PKGBUILD community/nepim/PKGBUILD community/pantomime/PKGBUILD community/pyxattr/PKGBUILD community/soqt/PKGBUILD community/tilda/PKGBUILD community/unrealircd/PKGBUILD community/uqm/PKGBUILD core/dnsutils/PKGBUILD core/gcc/PKGBUILD.mips64el core/vpnc/PKGBUILD extra/apache/PKGBUILD extra/bind/PKGBUILD extra/bzflag/PKGBUILD extra/ccache/PKGBUILD extra/claws-mail-extra-plugins/PKGBUILD extra/clutter-gst/PKGBUILD extra/cups/PKGBUILD extra/doxygen/PKGBUILD extra/fam/PKGBUILD extra/fcitx/PKGBUILD extra/gdk-pixbuf2/PKGBUILD extra/geoip/PKGBUILD extra/gtk2/PKGBUILD extra/icedtea-web/PKGBUILD extra/libffi/PKGBUILD extra/libfwbuilder/PKGBUILD extra/libmpd/PKGBUILD extra/libreoffice/PKGBUILD extra/mesa/PKGBUILD extra/pygobject2/PKGBUILD extra/qt/PKGBUILD extra/samba/PKGBUILD extra/wireshark/PKGBUILD extra/xulrunner/PKGBUILD multilib-testing/lib32-keyutils/PKGBUILD multilib-testing/lib32-udev/PKGBUILD multilib/lib32-gtk2/PKGBUILD multilib/lib32-keyutils/PKGBUILD multilib/lib32-libcups/PKGBUILD multilib/lib32-qt/PKGBUILD multilib/wine/PKGBUILD multilib/wine_gecko/PKGBUILD testing/dash/PKGBUILD testing/libssh2/PKGBUILD
Diffstat (limited to 'core/pcre')
-rw-r--r--core/pcre/PKGBUILD21
-rw-r--r--core/pcre/r661.diff26
2 files changed, 42 insertions, 5 deletions
diff --git a/core/pcre/PKGBUILD b/core/pcre/PKGBUILD
index 0c1f768fc..00b5cc450 100644
--- a/core/pcre/PKGBUILD
+++ b/core/pcre/PKGBUILD
@@ -1,28 +1,39 @@
-# $Id: PKGBUILD 135715 2011-08-18 02:10:20Z allan $
+# $Id: PKGBUILD 136192 2011-08-24 03:36:11Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: Eric Belanger <eric@archlinux.org>
# Contributor: John Proctor <jproctor@prium.net>
pkgname=pcre
pkgver=8.13
-pkgrel=1
+pkgrel=2
pkgdesc="A library that implements Perl 5-style regular expressions"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.pcre.org/"
license=('BSD')
depends=('gcc-libs')
options=('!libtool')
-source=(ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${pkgname}-${pkgver}.tar.bz2)
-md5sums=('5e595edbcded141813fa1a10dbce05cb')
-
+source=(ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${pkgname}-${pkgver}.tar.bz2
+ r661.diff)
+md5sums=('5e595edbcded141813fa1a10dbce05cb'
+ '70e2725b46ff6f3f114ce5067fd03405')
build() {
cd "${srcdir}"/${pkgname}-${pkgver}
+
+ # http://bugs.exim.org/show_bug.cgi?id=1136
+ patch -Np2 -i "${srcdir}"/r661.diff
+ sed -i '12140d' testdata/testoutput2
+
[ "${CARCH}" = "x86_64" ] && export CFLAGS="${CFLAGS} -fPIC"
./configure --prefix=/usr --enable-utf8 --enable-unicode-properties
make
}
+check() {
+ cd "${srcdir}"/${pkgname}-${pkgver}
+ make check
+}
+
package() {
cd "${srcdir}"/${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
diff --git a/core/pcre/r661.diff b/core/pcre/r661.diff
new file mode 100644
index 000000000..7bed4ce2e
--- /dev/null
+++ b/core/pcre/r661.diff
@@ -0,0 +1,26 @@
+--- code/trunk/pcre_compile.c 2011/08/02 11:00:40 654
++++ code/trunk/pcre_compile.c 2011/08/21 09:00:54 661
+@@ -2295,8 +2295,13 @@
+ A user pointed out that PCRE was rejecting [:a[:digit:]] whereas Perl was not.
+ It seems that the appearance of a nested POSIX class supersedes an apparent
+ external class. For example, [:a[:digit:]b:] matches "a", "b", ":", or
+-a digit. Also, unescaped square brackets may also appear as part of class
+-names. For example, [:a[:abc]b:] gives unknown class "[:abc]b:]"in Perl.
++a digit.
++
++In Perl, unescaped square brackets may also appear as part of class names. For
++example, [:a[:abc]b:] gives unknown POSIX class "[:abc]b:]". However, for
++[:a[:abc]b][b:] it gives unknown POSIX class "[:abc]b][b:]", which does not
++seem right at all. PCRE does not allow closing square brackets in POSIX class
++names.
+
+ Arguments:
+ ptr pointer to the initial [
+@@ -2314,6 +2319,7 @@
+ {
+ if (*ptr == CHAR_BACKSLASH && ptr[1] == CHAR_RIGHT_SQUARE_BRACKET)
+ ptr++;
++ else if (*ptr == CHAR_RIGHT_SQUARE_BRACKET) return FALSE;
+ else
+ {
+ if (*ptr == terminator && ptr[1] == CHAR_RIGHT_SQUARE_BRACKET)