summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorSalvatore Bonaccorso <carnil@debian.org>2017-02-17 14:56:09 +0000
committerSalvatore Bonaccorso <carnil@debian.org>2017-02-17 14:56:09 +0000
commit8d5e97cbd510924d2ca139796d67f07695834612 (patch)
treeb9efad95437bd9ece7bf6d5e29a81a8544d5fa24 /debian
pcre3 (2:8.39-2.1) unstable; urgency=high
* Non-maintainer upload. * CVE-2017-6004: crafted regular expression may cause denial of service (Closes: #855405) # imported from the archive
Diffstat (limited to 'debian')
-rw-r--r--debian/README.Debian17
-rw-r--r--debian/README.Versioning.libtool29
-rw-r--r--debian/changelog816
-rw-r--r--debian/compat1
-rw-r--r--debian/control123
-rw-r--r--debian/copyright74
-rw-r--r--debian/dirs2
-rw-r--r--debian/jit-test8
-rw-r--r--debian/jit-test.c17
-rw-r--r--debian/libpcre16-3.install1
-rw-r--r--debian/libpcre16-3.symbols.in34
-rw-r--r--debian/libpcre3-dev.examples1
-rw-r--r--debian/libpcre3-dev.install6
-rw-r--r--debian/libpcre3-dev.manpages2
-rw-r--r--debian/libpcre3-udeb.install2
-rw-r--r--debian/libpcre3.docs2
-rw-r--r--debian/libpcre3.install3
-rw-r--r--debian/libpcre3.symbols.in39
-rw-r--r--debian/libpcre32-3.install1
-rw-r--r--debian/libpcre32-3.symbols.in34
-rw-r--r--debian/libpcrecpp0v5.docs2
-rw-r--r--debian/libpcrecpp0v5.install1
-rw-r--r--debian/libpcrecpp0v5.symbols88
-rw-r--r--debian/patches/CVE-2017-6004.patch19
-rw-r--r--debian/patches/Disable_JIT_on_sparc64.patch25
-rw-r--r--debian/patches/PCRE6_compatible_API.patch53
-rw-r--r--debian/patches/no_jit_x32_powerpcspe.patch38
-rw-r--r--debian/patches/pcre_info.patch394
-rw-r--r--debian/patches/pcregrep.1-patch30
-rw-r--r--debian/patches/pcreposix.patch36
-rw-r--r--debian/patches/series8
-rw-r--r--debian/patches/soname.patch28
-rw-r--r--debian/pcre-config.157
-rw-r--r--debian/pcregrep.files3
-rw-r--r--debian/pcregrep.install4
-rw-r--r--debian/pcregrep.links2
-rwxr-xr-xdebian/rules146
-rw-r--r--debian/source/format1
-rw-r--r--debian/source/options2
-rw-r--r--debian/watch2
-rw-r--r--debian/zpcregrep2
41 files changed, 2153 insertions, 0 deletions
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..7c2dab0
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,17 @@
+libpcre for debian
+------------------
+
+This is the older PCRE library (called "PCRE" upstream); you should
+use the pcre2 packages (called "PCRE2" upstream) for new projects, and
+aim to migrate existing projects to pcre2. Upstream is hoping to drop
+support for pcre3 in the near future.
+
+Upstream's library version is much lower than Debian's - PCRE_LIB_VERSION=0:1:0
+instead of 13:0:10 (soname libpcre.so.0 instead of libpcre.so.3)
+
+The other change I made is to prefix the names of the functions in libpcreposix
+with "pcreposix_". This is required so they don't clash with the ones in
+libc. Suitable #defines have been added to pcreposix.h so that the
+unprefixed names can be used.
+
+ -- Matthew Vernon <matthew@debian.org>, Thu, 28 Jul 2016 16:54:21 +0100
diff --git a/debian/README.Versioning.libtool b/debian/README.Versioning.libtool
new file mode 100644
index 0000000..e963b71
--- /dev/null
+++ b/debian/README.Versioning.libtool
@@ -0,0 +1,29 @@
+Debian release of PCRE 4.5 had
+
+PCRE_LIB_VERSION=13:0:10
+PCRE_POSIXLIB_VERSION=13:0:10
+
+which corresponds to latest debian-revision (soname libpcre.so.3,
+installed as libpcre.so.3.9.0) and followed the instructions about version
+numbering in the libtool manual:
+| 3. If the library source code has changed at all since the last
+| update, then increment REVISION (`C:R:A' becomes `C:r+1:A').
+
+13:1:10
+
+ 4. If any interfaces have been added, removed, or changed since the
+ last update, increment CURRENT, and set REVISION to 0.
+
+14:0:10
+
+ 5. If any interfaces have been added since the last public release,
+ then increment AGE.
+
+14:0:11
+
+ 6. If any interfaces have been removed since the last public release,
+ then set AGE to 0.
+
+n/a
+
+Therefore I'm using 14:0:11 for this release of PCRE 5.0
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..0c0a5dc
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,816 @@
+pcre3 (2:8.39-2.1) unstable; urgency=high
+
+ * Non-maintainer upload.
+ * CVE-2017-6004: crafted regular expression may cause denial of service
+ (Closes: #855405)
+
+ -- Salvatore Bonaccorso <carnil@debian.org> Fri, 17 Feb 2017 15:56:09 +0100
+
+pcre3 (2:8.39-2) unstable; urgency=low
+
+ * Update symbols file to reflect compilation with gcc6 (Closes: #811969)
+
+ -- Matthew Vernon <matthew@debian.org> Fri, 19 Aug 2016 09:04:15 +0100
+
+pcre3 (2:8.39-1) unstable; urgency=medium
+
+ [ Ian Jackson ]
+ * New upstream version (Closes: #832354).
+ - Drop CVE-2016-1283.patch (now in upstream).
+ - Adjusted sonames: bumped each minor number where upstream
+ bumped theirs.
+
+ [ Matthew Vernon ]
+ * Add notes encouraging people to move to pcre2
+
+ -- Matthew Vernon <matthew@debian.org> Thu, 28 Jul 2016 16:58:55 +0100
+
+pcre3 (2:8.38-3.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * CVE-2016-1283: heap buffer overflow in handling of duplicate named
+ groups (Closes: #809706)
+
+ -- Salvatore Bonaccorso <carnil@debian.org> Tue, 22 Mar 2016 21:05:13 +0100
+
+pcre3 (2:8.38-3) unstable; urgency=low
+
+ * Apply Ubuntu patch from Iain Lane (modified by Graham Inggs) to add
+ symbols files (Closes: #767374)
+
+ -- Matthew Vernon <matthew@debian.org> Sun, 28 Feb 2016 11:24:52 +0000
+
+pcre3 (2:8.38-2) unstable; urgency=low
+
+ * Apply upstream patch to fix workspace overflow for (*ACCEPT) with
+ deeply nested parentheses (Closes: #815921)
+
+ -- Matthew Vernon <matthew@debian.org> Sat, 27 Feb 2016 16:30:35 +0000
+
+pcre3 (2:8.38-1) unstable; urgency=low
+
+ * New upstream version
+
+ -- Matthew Vernon <matthew@debian.org> Tue, 22 Dec 2015 13:37:39 +0000
+
+pcre3 (2:8.35-8) unstable; urgency=low
+
+ * Remove conflicts with long-vanished pcre{1,2}-dev packages (so new PCRE2 packages can co-exist)
+
+ -- Matthew Vernon <matthew@debian.org> Sat, 21 Nov 2015 15:35:13 +0000
+
+pcre3 (2:8.35-7.4) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix copy-and-paste error in Disable_JIT_on_sparc64.patch.
+
+ -- John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Mon, 02 Nov 2015 18:51:13 +0100
+
+pcre3 (2:8.35-7.3) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Add Disable_JIT_on_sparc64.patch to disable JIT on sparc64. The patch
+ no_jit_x32_powerpcspe.patch to disable JIT on powerpcspe was already
+ added in 2:8.35-6 (Closes: #765079).
+
+ -- John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Mon, 02 Nov 2015 15:13:16 +0100
+
+pcre3 (2:8.35-7.2) unstable; urgency=low
+
+ * Non-maintainer upload (with maintainer's permission).
+ * Add Fix-compiler-crash-misbehaviour-for-zero-repeated-gr.patch.
+ Fixes "PCRE Library Stack Overflow Vulnerability" (Upstream bug 1503)
+ * Add Fix-compile-time-loop-for-recursive-reference-within.patch.
+ Fixes "PCRE Call Stack Overflow Vulnerability" (Upstream bug 1515)
+ * Add 794589-information-disclosure.patch.
+ Fixes "pcre_exec does not fill offsets for certain regexps" leading to
+ information disclosure. (Closes: #794589)
+ * Add Fix-bad-compile-for-groups-like-2-0-1999.patch.
+ CVE-2015-2325: heap buffer overflow in compile_branch(). (Closes: #781795)
+ * Add Fix-bad-compilation-for-patterns-like-1-1-with-forwa.patch.
+ CVE-2015-2326: heap buffer overflow in pcre_compile2(). (Closes: #783285)
+ * Add Fix-buffer-overflow-for-named-recursive-back-referen.patch.
+ CVE-2015-3210: heap buffer overflow in pcre_compile2() /
+ compile_regex(). (Closes: #787433)
+
+ -- Salvatore Bonaccorso <carnil@debian.org> Fri, 11 Sep 2015 20:04:19 +0200
+
+pcre3 (2:8.35-7.1) unstable; urgency=medium
+
+ * Rename libpcrecpp0 to libpcrecpp0v5. Addresses: #791236.
+ * Add Conflict/Replaces to the old library.
+ * Add libpcrecpp0v5 symbols file for GCC 5.
+
+ -- Matthias Klose <doko@debian.org> Tue, 04 Aug 2015 20:23:03 +0200
+
+pcre3 (2:8.35-7) unstable; urgency=medium
+
+ * Apply upstream patch to fix buffer overflow for forward reference
+ within backward assertion with excess closing parenthesis
+ (Closes: #790000)
+
+ -- Matthew Vernon <matthew@debian.org> Fri, 26 Jun 2015 08:08:55 +0100
+
+pcre3 (2:8.35-6) unstable; urgency=low
+
+ [ Thorsten Glaser ]
+ * Re-add patch disabling JIT on powerpcspe and x32 (Closes: #760327)
+ * Add back missing debian/changelog entries for 1:8.35-3.2 and 1:8.36-1
+
+ -- Matthew Vernon <matthew@debian.org> Sat, 13 Jun 2015 11:45:25 +0100
+
+pcre3 (2:8.35-5) unstable; urgency=low
+
+ * re-enable jit on ppc64el (by dropping the patch that disables it)
+ (Closes: #786530)
+ * patch from Frederic Bonnard to fix the watch file (Closes: #785726)
+
+ -- Matthew Vernon <matthew@debian.org> Tue, 26 May 2015 08:27:56 +0100
+
+pcre3 (2:8.35-4) experimental; urgency=medium
+
+ [ Mattia Rizzolo ]
+ * Add a libpcre16-3 package with the 16 bit pcre16 library (Closes: 748781).
+ * Add a libpcre32-3 package with the 32 bit pcre32 library.
+
+ [ Matthew Vernon ]
+ * Adopt this package (Closes: #772994)
+
+ -- Matthew Vernon <matthew@debian.org> Sat, 07 Mar 2015 19:27:34 +0000
+
+pcre3 (2:8.35-3.3) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Upstream patch for heap buffer overflow, CVE-2014-8964, taken from
+ 1:8.36-1 (Closes: #770478)
+ Thanks to Salvatore Bonaccorso for the reminder.
+
+ -- Ivo De Decker <ivodd@debian.org> Sat, 06 Dec 2014 19:58:19 +0100
+
+pcre3 (2:8.35-3.2) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Update shlibs dependency to 1:8.35 for new symbol introduced in upstream
+ version 8.35 (Closes: #767907)
+ * Revert upload of upstream version 8.36 to allow this upload to migrate to
+ jessie.
+
+ -- Ivo De Decker <ivodd@debian.org> Sat, 06 Dec 2014 19:21:39 +0100
+
+pcre3 (1:8.36-1) unstable; urgency=medium
+
+ * New upstream release
+ * Upped shlibs dependency to 8.35 (Closes: #767903)
+ * Upstream patch for heap buffer overflow, CVE-2014-8964 (Closes: #770478)
+
+ -- Mark Baker <mark@mnb.org.uk> Mon, 24 Nov 2014 22:41:12 +0000
+
+pcre3 (1:8.35-3.2) unstable; urgency=low
+
+ * Non-maintainer upload with maintainer permission.
+ * Disable JIT on x32 and powerpcspe (Closes: #760327).
+
+ -- Thorsten Glaser <tg@mirbsd.de> Wed, 12 Nov 2014 14:30:23 +0000
+
+pcre3 (1:8.35-3.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Enable build hardening flags (closes: #656008).
+
+ -- Michael Gilbert <mgilbert@debian.org> Fri, 19 Sep 2014 01:48:23 +0000
+
+pcre3 (1:8.35-3) unstable; urgency=medium
+
+ Thanks to Simon McVittie for all of the work on this:
+
+ * Run tests with VERBOSE=1 so we can see the logs for failing tests
+ (Closes: #755052)
+ * Apply part of upstream r1472 to fix undefined behaviour when parsing
+ {n} or {m,n} quantifiers, which causes mis-parsing and test failures
+ under gcc 4.9 (Closes: #751828)
+
+ -- Mark Baker <mark@mnb.org.uk> Wed, 23 Jul 2014 21:19:41 +0100
+
+pcre3 (1:8.35-2) unstable; urgency=medium
+
+ * Build-depends on auto-reconf (Closes: 754540)
+
+ -- Mark Baker <mark@mnb.org.uk> Sat, 12 Jul 2014 23:03:47 +0100
+
+pcre3 (1:8.35-1) unstable; urgency=medium
+
+ * New upstream release
+ * Use dh-autoreconf
+ * Disable JIT on ppc64el (Closes: 751390) (Thanks Erwan Prioul)
+
+ -- Mark Baker <mark@mnb.org.uk> Fri, 11 Jul 2014 19:54:51 +0100
+
+pcre3 (1:8.31-5) unstable; urgency=medium
+
+ * Previous attempt at detecting JIT support didn't work when cross
+ compiling. Now runs the host compiler, and doesn't try to run the
+ output (Closes: 745222)
+
+ -- Mark Baker <mark@mnb.org.uk> Wed, 23 Apr 2014 21:00:35 +0100
+
+pcre3 (1:8.31-4) unstable; urgency=medium
+
+ * Enable JIT compilation only on architectures where it is supported -
+ fixes FTBFS on ones where it isn't (Closes: 745114)
+ * Verbose build logs (Closes: 745069)
+
+ -- Mark Baker <mark@mnb.org.uk> Fri, 18 Apr 2014 10:06:31 +0100
+
+pcre3 (1:8.31-3) unstable; urgency=medium
+
+ * Enable JIT regex compilation (http://sljit.sourceforge.net/pcre).
+ Note that this has no effect by default so should not break anything;
+ to use it you need to pass a flag to pcre_compile_regex()
+ (Closes: 740954)
+ * Changed shlibs:Depends to 8.20 as pcre_free_study() is not in older
+ versions (Closes: 743164)
+
+ -- Mark Baker <mark@mnb.org.uk> Tue, 08 Apr 2014 22:37:58 +0100
+
+pcre3 (1:8.31-2) unstable; urgency=low
+
+ * Build -dev package as Multi-arch: same. Thanks Steve Langasek / Ubuntu
+ for the patch (Closes: 696217)
+
+ -- Mark Baker <mark@mnb.org.uk> Thu, 03 Jan 2013 20:30:05 +0000
+
+pcre3 (1:8.31-1) unstable; urgency=low
+
+ * New upstream release
+ * Applied patch from upstream bugzilla #1287 to fix bug where wrong
+ value is in re_nsub in some cases (Closes: #686495)
+
+ -- Mark Baker <mark@mnb.org.uk> Thu, 13 Sep 2012 19:58:45 +0100
+
+pcre3 (1:8.30-5) unstable; urgency=low
+
+ * There is no use in including debug information for the libraries from
+ the udeb in the debug package; more importantly, because the
+ installation system isn't multiarch, if they are included they result
+ in arch specific files in arch independent paths (debug package is
+ Multi-arch:same). Removed. (Closes: #670018)
+
+ -- Mark Baker <mark@mnb.org.uk> Tue, 01 May 2012 22:38:42 +0100
+
+pcre3 (1:8.30-4) unstable; urgency=low
+
+ * Reluctantly using an epoch, as it seems the funny version number with
+ extra dots causes problems
+ * Bumped standard version to 3.9.3. No changes needed
+ * Converted to use new source format / quilt
+ * Put back obsolete pcre_info() API that up
+ * Don't include pcregrep binary in debug package
+
+ Thanks to Elimar Riesebieter for the conversion to the new source format.
+
+ -- Mark Baker <mark@mnb.org.uk> Fri, 23 Mar 2012 22:34:54 +0000
+
+pcre3 (8.30..-3) unstable; urgency=low
+
+ * configure: fixed libpcreposix version (this is not the same bug as the
+ previous one, though it's in the same few lines)
+
+ -- Mark Baker <mark@mnb.org.uk> Thu, 22 Mar 2012 19:45:03 +0000
+
+pcre3 (8.30..-2) unstable; urgency=low
+
+ * configure: Correct library version so soname is libpcre.so.3 instead
+ of .2 (Closes: #664983)
+ * Horrible version number is because of NMU of "8.30.really8.12-1.1";
+ this will sort between that and 8.31-1
+
+ -- Mark Baker <mark@mnb.org.uk> Thu, 22 Mar 2012 17:52:35 +0000
+
+pcre3 (8.30-1) unstable; urgency=low
+
+ * New upstream release (Closes:#664166)
+
+ -- Mark Baker <mark@mnb.org.uk> Wed, 21 Mar 2012 21:03:39 +0000
+
+pcre3 (8.12-4) unstable; urgency=low
+
+ * Multi-arch support. Thanks Steve Langasek for patch (Closes: 634250)
+
+ -- Mark Baker <mark@mnb.org.uk> Mon, 18 Jul 2011 21:59:44 +0100
+
+pcre3 (8.12-3) unstable; urgency=low
+
+ * debian/rules: Increased shlib version to 8.10 (Closes: #612942,
+ #613227, #613469, #614012, #615019)
+
+ -- Mark Baker <mark@mnb.org.uk> Sun, 20 Feb 2011 12:46:44 +0000
+
+pcre3 (8.12-2) unstable; urgency=low
+
+ * Include changes from Stéphane's NMU (including fix for bug 581202)
+ that were accidentally omitted in previous release.
+ * debian/control: -dbg package should be section debug, priority extra
+
+ -- Mark Baker <mark@mnb.org.uk> Tue, 08 Feb 2011 20:38:49 +0000
+
+pcre3 (8.12-1) unstable; urgency=low
+
+ * New upstream release (Closes: #554242)
+
+ -- Mark Baker <mark@mnb.org.uk> Mon, 07 Feb 2011 23:53:42 +0000
+
+pcre3 (8.02-1.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Add explicit Breaks to applications using libpcre-ocaml, to allow
+ proper upgrades from lenny (Closes: #581202)
+ * Add debian/watch
+ * Add debian/source/format
+ * Remove duplicate fields spotted by Lintian
+ * Promote XC-Package-Type field to Package-Type
+
+ -- Stéphane Glondu <glondu@debian.org> Sat, 31 Jul 2010 16:05:27 -0400
+
+pcre3 (8.02-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Mark Baker <mark@mnb.org.uk> Fri, 07 May 2010 21:18:05 +0100
+
+pcre3 (7.8-3) unstable; urgency=low
+
+ * debian/rules: Install main library in /lib (Closes: 350468, #549608)
+ * debian/pcre-config.1: Minor formatting changes (thanks Alexander
+ Peslyak) (Closes: 338658)
+ * Makefile.am,Makefile.in: Added libpcre.la to LDADD for various things;
+ apparently this will make it cross-build successfully (Closes: 492565)
+ * debian/control: Added ${misc:Depends} to dependencies for all the
+ binary packages
+ * debian/rules: Don't ignore errors from make distclean
+
+ -- Mark Baker <mark@mnb.org.uk> Wed, 07 Oct 2009 00:05:25 +0100
+
+pcre3 (7.8-2) unstable; urgency=low
+
+ * debian/rules: Bumped shlib version to 7.7 because of new feature in
+ that version (Closes: #500987)
+
+ -- Mark Baker <mark@mnb.org.uk> Sun, 05 Oct 2008 17:06:46 +0100
+
+pcre3 (7.8-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Mark Baker <mark@mnb.org.uk> Sun, 21 Sep 2008 21:23:00 +0100
+
+pcre3 (7.6-2.1) unstable; urgency=high
+
+ * Non-maintainer upload.
+ * Fix heap overflow in the pcre compiler triggered by
+ patterns which contain options and multiple branches
+ (CVE-2008-2371; Closes: #488919).
+ * debian/rules (patch by Bryan Donlan): Update shlibdeps invocation for
+ libpcrecpp0 due to new symbols (Closes: #476925).
+ * debian/copyright: replace license information with the current license
+ information shipped with upstream sources (Closes: #489318).
+
+ -- Nico Golde <nion@debian.org> Mon, 14 Jul 2008 19:13:11 +0200
+
+pcre3 (7.6-2) unstable; urgency=low
+
+ * pcrecpp.cc: Applied patch from PCRE bugzilla (bug 664) to fix ABI
+ breakage (Closes: #463170, #463266, #463413, #464974)
+
+ -- Mark Baker <mark@mnb.org.uk> Wed, 13 Feb 2008 22:19:35 +0000
+
+pcre3 (7.6-1) unstable; urgency=low
+
+ * New upstream release
+ * Ship pcredemo.c in examples directory (Closes: #377587)
+
+ -- Mark Baker <mark@mnb.org.uk> Mon, 28 Jan 2008 23:01:05 +0000
+
+pcre3 (7.4-1) unstable; urgency=low
+
+ * Build a -dbg package with debug symbols
+
+ Thanks to Sebastian Dröge <slomo@debian.org>,for all of the following:
+
+ * New upstream release (Closes: #453372).
+ * debian/control,
+ debian/rules:
+ + Provide udeb (Closes: #443114). Build depend on debhelper (>= 5.0.22)
+ for this.
+ * debian/rules:
+ + Bump shlibs to >= 7.4 (Closes: #449289).
+ * debian/compat:
+ + Update debhelper compat level to 5.
+ * debian/control:
+ + Update Standards-Version to 3.7.3, no additional changes needed.
+ + Use ${binary:Version} instead of ${Source-Version} to make package
+ binNMU safe.
+ * debian/*.files,
+ debian/*.install,
+ debian/rules:
+ + Convert from dh_movefiles to dh_install.
+ * debian/*.dirs:
+ + Removed, not necessary.
+
+ -- Mark Baker <mark@mnb.org.uk> Mon, 7 Jan 2008 21:03:34 +0000
+
+pcre3 (7.3-2) unstable; urgency=low
+
+ * Overloaded RE::Init(), for compatibility with PCRE 6.x API (Closes
+ #436210). Thanks to Matthias Klose for the patch.
+ * Increased shlibdeps from 4.5 to 6.0. 6.0 introduced a new function
+ (pcre_compile2) to the API, so anything using that requires at least
+ 6.0. (Closes #441345)
+
+ -- Mark Baker <mark@mnb.org.uk> Mon, 7 Jan 2008 21:02:52 +0000
+
+pcre3 (7.3-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Mark Baker <mark@mnb.org.uk> Tue, 28 Aug 2007 20:53:39 +0100
+
+pcre3 (7.2-1) unstable; urgency=low
+
+ * New upstream release (Closes: #420280)
+ * debian/rules: dummy binary-indep target (Closes: #395730)
+
+ -- Mark Baker <mark@mnb.org.uk> Fri, 3 Aug 2007 23:06:28 +0100
+
+pcre3 (6.7-1) unstable; urgency=low
+
+ * New upstream release (Closes: #389305)
+
+ -- Mark Baker <mark@mnb.org.uk> Mon, 25 Sep 2006 23:24:55 +0100
+
+pcre3 (6.4-2) unstable; urgency=low
+
+ * Makefile.in: Install pcrepartial.3 (Closes: #362011)
+ * doc/pcreapi.3, doc/pcre_version.3: document pcre_version() as
+ returning a const char * not a char * (Closes: #278619)
+ * debian/libpcre3-dev.files: install libpcre.pc (Closes: #359662)
+ * doc/pcregrep.1: fixed typo (Closes: #310338)
+ * debian/control: drop dummy pgrep package (Closes: #247550)
+
+ -- Mark Baker <mark@mnb.org.uk> Thu, 27 Apr 2006 22:32:06 +0100
+
+pcre3 (6.4-1.1) unstable; urgency=low
+
+ * Split out the C++ library into it's own package libpcrecpp0, as
+ discussed in #339250. The C++ library was recently added, no
+ package references the C++ library yet.
+ Closes: #339250.
+ * debian/rules: Remove testsavedregex in clean target.
+
+ -- Matthias Klose <doko@debian.org> Fri, 25 Nov 2005 07:59:14 +0100
+
+pcre3 (6.4-1) unstable; urgency=low
+
+ * New upstream release (Closes: 333191)
+
+ -- Mark Baker <mark@mnb.org.uk> Mon, 10 Oct 2005 23:14:53 +0100
+
+pcre3 (6.3-1) unstable; urgency=low
+
+ * New upstream release (Closes: 323761).
+ * This includes fix to security issue CAN-2005-2491 (Closes: 324531)
+
+ -- Mark Baker <mark@mnb.org.uk> Sat, 27 Aug 2005 18:12:22 +0100
+
+pcre3 (5.0-1.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Correct an alignment error in the pcretest.c test case, which was
+ causing build failures on ia64 (closes: #309606).
+
+ -- Steve Langasek <vorlon@debian.org> Thu, 26 May 2005 05:15:34 +0000
+
+pcre3 (5.0-1) unstable; urgency=low
+
+ * New upstream release (Closes: #295287)
+ - compatible, so same soname and package name can be used.
+ * Compile with --enable-unicode-properties, a new feature of PCRE 5.0
+ * Removed . from description in control file
+ * Included patch from Niibe Yutaka for cross building (Closes: #285407)
+
+ Thanks Andreas for the NMU, which this is based on (Closes: #237644, #237265)
+
+ -- Mark Baker <mark@mnb.org.uk> Wed, 16 Feb 2005 21:47:14 +0000
+
+pcre3 (4.5-1.1) unstable; urgency=low
+
+ * NMU to fix rc-bugs.
+ * Update libtool related files to fix build-error on mips, keep original
+ config.in, as it is no generated file. (Closes: #237265)
+ * pcregrep replaces pgrep. (Closes: #237564)
+ * Bump shlibs, pcre 4.5 includes two new functions.
+ * Let pgrep's /usr/share/doc symlink point to the package it depends on,
+ pcregrep.
+
+ -- Andreas Metzler <ametzler@debian.org> Fri, 12 Mar 2004 13:23:02 +0100
+
+pcre3 (4.5-1) unstable; urgency=low
+
+ * New upstream release
+
+ Thanks to Andreas Metzler for patches for all the following:
+
+ * doc/pcregrep.1: added newline between synopsis for pcregrep and that
+ for zpcregrp (Closes: #197899)
+ * debian/control: Change package descriptions (Closes: #209904)
+ * debian/rules and others: Renamed pgrep package to pcregrep, to match
+ name of binary and avoid confusion with pgrep (which greps for
+ processes, and is in the procps package; a dummy pgrep package will
+ ease upgrades (Closes: #217076)
+
+ -- Mark Baker <mark@mnb.org.uk> Wed, 25 Feb 2004 20:49:33 +0000
+
+pcre3 (4.3-4) unstable; urgency=low
+
+ * debian/libpcre3.files: include pcrepattern(3) manpage in libpcre3
+ package instead of libpcre3-dev package. This means that anyone using
+ a PCRE based application will have the man page available.
+
+ -- Mark Baker <mark@mnb.org.uk> Thu, 8 Jan 2004 21:19:51 +0000
+
+pcre3 (4.3-3) unstable; urgency=low
+
+ * ltmain.sh: Replaced with standard version from debian libtool package,
+ but with Phil Hazel's patch applied (although I suspect his patch
+ isn't necessary on debian systems). (Closes: #198147, #198668) I hope.
+
+ -- Mark Baker <mark@mnb.org.uk> Wed, 25 Jun 2003 21:09:22 +0100
+
+pcre3 (4.3-2) unstable; urgency=low
+
+ * pcretest.c: Cheat at test! Always print 40 instead of the size,
+ because the size varies on different architectures, and we don't
+ really want to fail the test because of this.
+
+ -- Mark Baker <mark@mnb.org.uk> Thu, 19 Jun 2003 21:00:39 +0100
+
+pcre3 (4.3-1) unstable; urgency=low
+
+ This release is entirely the work of Andreas Metzler <ametzler@debian.org>.
+ Thanks Andreas.
+
+ * new upstream version (Closes: 182570)
+ * this version apparently fixes infinite loop bug (Closes: 161184)
+ * repacked using debhelper and upstream's Makefile. Switch to libtool's
+ versioning scheme, see debian/README.Versioning.libtool for details.
+ (Closes: #187371)
+ * (however, don't ship .la files, they only give libtool strange ideas, see
+ http://lists.debian.org/debian-devel/2003/debian-devel-200304/msg00827.html
+ for an example.)
+ * changed compile-options to really follow policy 3.5.7
+ * debian/control: changed description to say "Perl 5" as Perl 6, when it
+ eventually appears, will have yet another different regex syntax
+ (Closes: #166939)
+
+ -- Mark Baker <mark@mnb.org.uk> Mon, 16 Jun 2003 22:11:08 +0100
+
+pcre3 (3.9-1) unstable; urgency=low
+
+ * New upstream version (Closes: #119429, #161424)
+ * Added zpcregrep script by Samuel Tardieu (Closes: #36897)
+ * doc/pcregrep.1: mention zpcregrep
+ * debian/rules: use && in test rule rather than -a option to test, for
+ better POSIX compatibility (Closes: #158775)
+ * debian/Makefile: build pcretest once with -rpath for doing tests, and
+ once without, so that:
+ * debian/rules: install pcretest program (Closes: #162998)
+ * Don't create or remove /usr/doc/foo symlinks. This means that none of
+ the packages have prerms and only libpcre3 has a postinst
+ * debian/copyright: corrected to "Debian GNU/Linux"
+ * debian/control: standards version updated to 3.5.7.0
+ * debian/rules: strip comment and note sections from libraries
+ * The result of the last four changes is that it should now be
+ lintian-clean apart from one caused by a known bug in lintian (see
+ lintian bug #117260) (Closes: #162999)
+
+ -- Mark Baker <mark@mnb.org.uk> Sat, 26 Oct 2002 18:12:13 +0100
+
+pcre3 (3.4-1.1) unstable; urgency=high
+
+ * Non-maintainer upload.
+ * Rebuild with a version of libc6 without a broken atexit() symbol
+ (closes: #108597, critical).
+ * Add to LD_LIBRARY_PATH rather than clobbering it, to avoid fakeroot
+ dying (closes: #108661, #108891).
+
+ -- Colin Watson <cjwatson@debian.org> Sun, 19 Aug 2001 20:43:28 +0100
+
+pcre3 (3.4-1) unstable; urgency=low
+
+ * new upstream version (Closes: #93876)
+
+ -- Mark Baker <mark@mnb.org.uk> Sat, 28 Apr 2001 00:05:22 +0100
+
+pcre3 (3.3-5) unstable; urgency=low
+
+ * debian/rules: install pcregrep as that name (only) rather than as
+ pgrep with a symlink called pcregrep. This avoids a name clash with
+ the process table grepper also called pgrep.
+ * doc/pcregrep.1: change name of program being documented (back) to
+ pcregrep.
+
+ -- Mark Baker <mark@mnb.org.uk> Tue, 23 Jan 2001 23:54:08 +0000
+
+pcre3 (3.3-4) unstable; urgency=low
+
+ * debian/rules: only install config files that are meant to be installed
+ in libpcre3-dev package (Closes: #78354)
+ * debian/Makefile: distclean target clears up configure output
+
+ -- Mark Baker <mark@mnb.org.uk> Wed, 29 Nov 2000 23:59:19 +0000
+
+pcre3 (3.3-3) unstable; urgency=low
+
+ * debian/rules: make debian/Makefile executable before trying to run it
+ (Closes: #74316)
+
+ -- Mark Baker <mbaker@iee.org> Sun, 8 Oct 2000 21:18:15 +0100
+
+pcre3 (3.3-2) unstable; urgency=low
+
+ * debian/rules: pgrep should symlink to docs in /usr/doc/libpcre3, not
+ /usr/doc/libpcre2
+ * debian/rules: manpage pgrep.1.gz should not be installed as executable!
+ * debian/rules: pcregrep.1.gz is symlink to pgrep.1.gz
+ * doc/pcre-config.1: basic manpage for pcre-config written
+ * debian/rules: install pcre-config.1
+ * debian/rules: use -isp option to dpkg-gencontrol
+
+ -- Mark Baker <mbaker@iee.org> Tue, 22 Aug 2000 00:11:54 +0100
+
+pcre3 (3.3-1) unstable; urgency=low
+
+ * new package for pcre 3.x
+
+ -- Mark Baker <mbaker@iee.org> Sat, 19 Aug 2000 13:44:00 +0000
+
+pcre2 (2.08-1) unstable; urgency=low
+
+ What follows is the changelog from pcre2, up to the point where the pcre3
+ package was made.
+
+ * new upstream version (#50386)
+ * put -lc after -lpcre when linking libpcreposix (#50046)
+
+ -- Mark Baker <mbaker@iee.org> Thu, 18 Nov 1999 21:45:14 +0000
+
+pcre2 (2.07-2) unstable; urgency=low
+
+ * debian/rules: use /usr/share/doc and /usr/share/man, as mandated by
+ policy 3.1.0
+ * debian/postinst: create /usr/doc symlink; don't install library
+ * debian/postinst-lib (new file): create /usr/doc symlink and install library
+ * debian/prerm: remove /usr/doc symlink
+ * debian/rules: install postinst and prerm for all packages; but
+ postinst-lib for library package
+
+ -- Mark Baker <mbaker@iee.org> Sat, 13 Nov 1999 18:57:59 +0000
+
+pcre2 (2.07-1) unstable; urgency=low
+
+ * new upstream version
+ * pcre.c, pcre.h: new upstream version is incompatible with old one! I've
+ done a nasty hack so that old binaries will still work. Old source won't,
+ but at least it won't fail silently so this shouldn't be a major problem.
+ * debian/rules: /usr/doc/pgrep should be a link to libpcre2, not libpcre1
+ (#42450)
+
+ -- Mark Baker <mbaker@iee.org> Tue, 3 Aug 1999 23:58:35 +0100
+
+pcre2 (2.05-1) unstable; urgency=low
+
+ * new upstream version (#36776)
+
+ -- Mark Baker <mbaker@iee.org> Tue, 27 Apr 1999 23:00:25 +0100
+
+pcre2 (2.02-3) unstable; urgency=low
+
+ * pcre.3: removed description of regular expression syntax and semantics
+ * pcre.7: new file, containing material removed from above
+ (this is so it can be put in the libpcre2 package (#34087)
+
+ -- Mark Baker <mbaker@iee.org> Fri, 5 Mar 1999 01:08:47 +0000
+
+pcre2 (2.02-2) unstable; urgency=low
+
+ * debian/rules: install copyright in correct location in libpcre2-dev;
+ a typo before meant the package wouldn't install
+ * debian/shlibs: update to refer to libpcre2 instead of libpcre1
+
+ -- Mark Baker <mbaker@iee.org> Fri, 29 Jan 1999 00:12:00 +0000
+
+pcre2 (2.02-1) unstable; urgency=low
+
+ * first release of pcre2
+ * install source of pgrep (it's small) in /usr/doc/libpcre2-dev/examples
+
+ -- Mark Baker <mbaker@iee.org> Thu, 28 Jan 1999 00:45:00 +0000
+
+pcre (1.09-2) unstable; urgency=low
+
+ What follows is the changelog from pcre 1, up to the point where the pcre2
+ package was made.
+
+ The changes are not that large but the API, and therefore the ABI, are
+ changed so version 2 is not compatible.
+
+ * pcreposix.c,pcreposix.h: prefixed function names with pcreposix_
+ * pcreposix.h: #defines so un-prefixed names can be used
+ * These mean pcre routines will be used instead of the regex library
+ built into libc (#22525)
+ * debian/shlibs: pcreposix needs libpcre1 >=1.09-2 now
+ * debian/rules: it's not pcre 1.01 any more.
+
+ -- Mark Baker <mbaker@iee.org> Sat, 30 May 1998 16:54:31 +0100
+
+pcre (1.09-1) unstable; urgency=low
+
+ * New upstream version
+
+ -- Mark Baker <mbaker@iee.org> Sat, 28 Feb 1998 21:29:07 +0000
+
+pcre (1.08-1) unstable; urgency=low
+
+ * New upstream version (new features, so in unstable only)
+
+ -- Mark Baker <mbaker@iee.org> Sat, 28 Feb 1998 21:29:07 +0000
+
+pcre (1.06-3) unstable; urgency=low
+
+ * Strip pgrep
+
+ -- Mark Baker <mbaker@iee.org> Sat, 28 Feb 1998 21:29:07 +0000
+
+pcre (1.06-2) unstable; urgency=low
+
+ * Extended description for pgrep
+ * Compress manpage
+ * Updated standards-version to 2.4.0.0
+
+ -- Mark Baker <mbaker@iee.org> Mon, 9 Feb 1998 23:56:15 +0000
+
+pcre (1.06-1) unstable; urgency=low
+
+ * New upstream version (bug fixes)
+
+ -- Mark Baker <mbaker@iee.org> Sun, 25 Jan 1998 22:37:37 +0000
+
+pcre (1.05-2) unstable; urgency=low
+
+ * Remove debian/*~ in clean target
+ * Only run ldconfig on "configure"
+
+ -- Mark Baker <mbaker@iee.org> Wed, 7 Jan 1998 21:14:51 +0000
+
+pcre (1.05-1) unstable; urgency=low
+
+ * New upstream version (bug fixes)
+
+ -- Mark Baker <mbaker@iee.org> Sat, 27 Dec 1997 11:26:32 +0000
+
+pcre (1.02-1) unstable; urgency=low
+
+ * New upstream version
+
+ -- Mark Baker <mbaker@iee.org> Sat, 13 Dec 1997 22:01:48 +0000
+
+pcre (1.01-4) unstable; urgency=low
+
+ * Use -fPIC instead of -fpic (identical on i386, but different on other
+ architectures like m68k)
+ * Nasty trick so pgrep gets the right dependencies whether or not
+ libpcre1 is installed
+
+ -- Mark Baker <mbaker@iee.org> Tue, 2 Dec 1997 17:57:07 +0000
+
+pcre (1.01-3) unstable; urgency=low
+
+ * Apply patch to manpage from Karl Hegbloom
+ * Rewritten makefile (copy sent upstream)
+
+ -- Mark Baker <mbaker@iee.org> Tue, 25 Nov 1997 12:12:05 +0000
+
+pcre (1.01-2) unstable; urgency=low
+
+ * Correct typo (libprce) in debian/rules
+ * Use gcc instead of ld in makefile
+ * Build static libraries
+ * Use shlibdeps instead of hard-coding libc6
+ * Use --strip-unneeded when stripping
+
+ -- Mark Baker <mbaker@iee.org> Fri, 21 Nov 1997 23:52:06 +0000
+
+pcre (1.01-1) unstable; urgency=low
+
+ * Initial debian release
+
+ -- Mark Baker <mbaker@iee.org> Fri, 21 Nov 1997 20:36:13 +0000
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..cc27478
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,123 @@
+Source: pcre3
+Section: libs
+Priority: optional
+Maintainer: Matthew Vernon <matthew@debian.org>
+Standards-Version: 3.9.3
+Build-Depends: debhelper (>= 5.0.22), dpkg-dev (>= 1.16.0), dh-autoreconf
+
+Package: libpcre3
+Section: libs
+Architecture: any
+Priority: important
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Conflicts: libpcre3-dev (<= 4.3-3)
+Breaks:
+ libpcre-ocaml (<< 6.0.1~),
+ approx (<< 4.4-1~),
+ cmigrep (<< 1.5-7~),
+ ocsigen (<< 1.3.3-1~),
+ cduce (<< 0.5.3-2~),
+ galax (<< 1.1-7~),
+ liquidsoap (<< 0.9.2-3~)
+Multi-Arch: same
+Pre-Depends: multiarch-support
+Description: Old Perl 5 Compatible Regular Expression Library - runtime files
+ This is a library of functions to support regular expressions whose syntax
+ and semantics are as close as possible to those of the Perl 5 language.
+ .
+ New packages should use the newer pcre2 packages, and existing
+ packages should migrate to pcre2.
+ .
+ This package contains the runtime libraries.
+
+Package: libpcre3-udeb
+Section: debian-installer
+Package-Type: udeb
+Architecture: any
+Priority: important
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Conflicts: libpcre3-dev (<= 4.3-3)
+Description: Old Perl 5 Compatible Regular Expression Library - runtime files (udeb)
+ This is a library of functions to support regular expressions whose syntax
+ and semantics are as close as possible to those of the Perl 5 language.
+ .
+ This package contains the runtime libraries for the Debian Installer (udeb).
+
+Package: libpcrecpp0v5
+Section: libs
+Architecture: any
+Priority: optional
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Conflicts: libpcre3 (<< 6.4-1.1), libpcrecpp0
+Replaces: libpcre3 (<< 6.4-1.1), libpcrecpp0
+Multi-Arch: same
+Pre-Depends: multiarch-support
+Description: Old Perl 5 Compatible Regular Expression Library - C++ runtime files
+ This is a C++ library of functions to support regular expressions whose syntax
+ and semantics are as close as possible to those of the Perl 5 language.
+ .
+ This package contains the C++ runtime library.
+
+Package: libpcre3-dev
+Section: libdevel
+Architecture: any
+Multi-Arch: same
+Depends: libc6-dev, libpcre3 (= ${binary:Version}), libpcre16-3 (= ${binary:Version}), libpcre32-3 (= ${binary:Version}), libpcrecpp0v5 (= ${binary:Version}), ${misc:Depends}
+Description: Old Perl 5 Compatible Regular Expression Library - development files
+ This is a library of functions to support regular expressions whose syntax
+ and semantics are as close as possible to those of the Perl 5 language.
+ .
+ New packages should use the newer pcre2 packages, and existing
+ packages should migrate to pcre2.
+ .
+ This package contains the development files, including headers, static
+ libraries, and documentation.
+
+Package: libpcre3-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: libpcre3 (= ${binary:Version}), libpcrecpp0v5 (= ${binary:Version}), ${misc:Depends}
+Multi-Arch: same
+Description: Old Perl 5 Compatible Regular Expression Library - debug symbols
+ This is a library of functions to support regular expressions whose syntax
+ and semantics are as close as possible to those of the Perl 5 language.
+ .
+ This package contains the debug symbols,
+
+Package: pcregrep
+Section: utils
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Replaces: pgrep (<<4.5)
+Description: grep utility that uses perl 5 compatible regexes.
+ Perl-style regexps have many useful features that the standard POSIX ones
+ don't; this is basically the same as grep but with the different
+ regexp syntax.
+ .
+ The other reason for the existence of pcregrep is that its source code is an
+ example of programming with libpcre.
+
+Package: libpcre16-3
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Description: Old Perl 5 Compatible Regular Expression Library - 16 bit runtime files
+ This is a library of functions to support regular expressions whose syntax
+ and semantics are as close as possible to those of the Perl 5 language.
+ .
+ This package contains the 16 bit runtime library.
+
+Package: libpcre32-3
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Description: Old Perl 5 Compatible Regular Expression Library - 32 bit runtime files
+ This is a library of functions to support regular expressions whose syntax
+ and semantics are as close as possible to those of the Perl 5 language.
+ .
+ This package contains the 32 bit runtime library.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..c589cd8
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,74 @@
+This is Debian GNU/Linux's prepackaged version of the PCRE regular
+expression library and associated pgrep utility.
+
+This package was put together by me, Mark Baker <mbaker@iee.org> from the
+original sources obtained from ftp.csx.cam.ac.uk:/pub/software/programming/pcre.
+
+PCRE LICENCE
+------------
+
+PCRE is a library of functions to support regular expressions whose syntax
+and semantics are as close as possible to those of the Perl 5 language.
+
+Release 7 of PCRE is distributed under the terms of the "BSD" licence, as
+specified below. The documentation for PCRE, supplied in the "doc"
+directory, is distributed under the same terms as the software itself.
+
+The basic library functions are written in C and are freestanding. Also
+included in the distribution is a set of C++ wrapper functions.
+
+
+THE BASIC LIBRARY FUNCTIONS
+---------------------------
+
+Written by: Philip Hazel
+Email local part: ph10
+Email domain: cam.ac.uk
+
+University of Cambridge Computing Service,
+Cambridge, England.
+
+Copyright (c) 1997-2007 University of Cambridge
+All rights reserved.
+
+
+THE C++ WRAPPER FUNCTIONS
+-------------------------
+
+Contributed by: Google Inc.
+
+Copyright (c) 2007, Google Inc.
+All rights reserved.
+
+
+THE "BSD" LICENCE
+-----------------
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ * Neither the name of the University of Cambridge nor the name of Google
+ Inc. nor the names of their contributors may be used to endorse or
+ promote products derived from this software without specific prior
+ written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
+
+End
diff --git a/debian/dirs b/debian/dirs
new file mode 100644
index 0000000..ca882bb
--- /dev/null
+++ b/debian/dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin
diff --git a/debian/jit-test b/debian/jit-test
new file mode 100644
index 0000000..f133c26
--- /dev/null
+++ b/debian/jit-test
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+arch=$(dpkg-architecture -qDEB_HOST_GNU_TYPE)
+
+$arch-gcc debian/jit-test.c -o/dev/null
+if [ $? -eq 0 ]; then
+ echo "--enable-jit"
+fi
diff --git a/debian/jit-test.c b/debian/jit-test.c
new file mode 100644
index 0000000..e476e08
--- /dev/null
+++ b/debian/jit-test.c
@@ -0,0 +1,17 @@
+// This little program runs the macros in the SLJIT header file
+// which auto-detect architecture. This enables us to only attempt
+// to use SLJIT on architectures that support it
+//
+#define SLJIT_CONFIG_AUTO 1
+#include "../sljit/sljitConfigInternal.h"
+
+#ifndef SLJIT_CONFIG_UNSUPPORTED
+ #warning JIT enabled
+#else
+ #error JIT not supported
+#endif
+
+int main(void)
+{
+ return 0;
+}
diff --git a/debian/libpcre16-3.install b/debian/libpcre16-3.install
new file mode 100644
index 0000000..df85ecf
--- /dev/null
+++ b/debian/libpcre16-3.install
@@ -0,0 +1 @@
+debian/tmp/usr/lib/*/libpcre16.so.*
diff --git a/debian/libpcre16-3.symbols.in b/debian/libpcre16-3.symbols.in
new file mode 100644
index 0000000..551389b
--- /dev/null
+++ b/debian/libpcre16-3.symbols.in
@@ -0,0 +1,34 @@
+libpcre16.so.3 libpcre16-3 #MINVER#
+ pcre16_assign_jit_stack@Base 2:8.35-4
+ pcre16_callout@Base 2:8.35-4
+ pcre16_compile2@Base 2:8.35-4
+ pcre16_compile@Base 2:8.35-4
+ pcre16_config@Base 2:8.35-4
+ pcre16_copy_named_substring@Base 2:8.35-4
+ pcre16_copy_substring@Base 2:8.35-4
+ pcre16_dfa_exec@Base 2:8.35-4
+ pcre16_exec@Base 2:8.35-4
+ pcre16_free@Base 2:8.35-4
+ pcre16_free_study@Base 2:8.35-4
+ pcre16_free_substring@Base 2:8.35-4
+ pcre16_free_substring_list@Base 2:8.35-4
+ pcre16_fullinfo@Base 2:8.35-4
+ pcre16_get_named_substring@Base 2:8.35-4
+ pcre16_get_stringnumber@Base 2:8.35-4
+ pcre16_get_stringtable_entries@Base 2:8.35-4
+ pcre16_get_substring@Base 2:8.35-4
+ pcre16_get_substring_list@Base 2:8.35-4
+JIT pcre16_jit_exec@Base 2:8.35-4
+ pcre16_jit_free_unused_memory@Base 2:8.35-4
+ pcre16_jit_stack_alloc@Base 2:8.35-4
+ pcre16_jit_stack_free@Base 2:8.35-4
+ pcre16_maketables@Base 2:8.35-4
+ pcre16_malloc@Base 2:8.35-4
+ pcre16_pattern_to_host_byte_order@Base 2:8.35-4
+ pcre16_refcount@Base 2:8.35-4
+ pcre16_stack_free@Base 2:8.35-4
+ pcre16_stack_guard@Base 2:8.35-4
+ pcre16_stack_malloc@Base 2:8.35-4
+ pcre16_study@Base 2:8.35-4
+ pcre16_utf16_to_host_byte_order@Base 2:8.35-4
+ pcre16_version@Base 2:8.35-4
diff --git a/debian/libpcre3-dev.examples b/debian/libpcre3-dev.examples
new file mode 100644
index 0000000..8b2d8a9
--- /dev/null
+++ b/debian/libpcre3-dev.examples
@@ -0,0 +1 @@
+pcredemo.c
diff --git a/debian/libpcre3-dev.install b/debian/libpcre3-dev.install
new file mode 100644
index 0000000..52ce644
--- /dev/null
+++ b/debian/libpcre3-dev.install
@@ -0,0 +1,6 @@
+debian/tmp/usr/include/*
+debian/tmp/usr/lib/*/lib*.a
+debian/tmp/usr/lib/*/lib*.so
+debian/tmp/usr/lib/*/pkgconfig/*
+debian/tmp/usr/bin/*-config
+debian/tmp/usr/share/man/man3/*
diff --git a/debian/libpcre3-dev.manpages b/debian/libpcre3-dev.manpages
new file mode 100644
index 0000000..eee7a81
--- /dev/null
+++ b/debian/libpcre3-dev.manpages
@@ -0,0 +1,2 @@
+debian/pcre-config.1
+
diff --git a/debian/libpcre3-udeb.install b/debian/libpcre3-udeb.install
new file mode 100644
index 0000000..d46404c
--- /dev/null
+++ b/debian/libpcre3-udeb.install
@@ -0,0 +1,2 @@
+debian/tmp/usr/lib/*/libpcre.so.* usr/lib
+debian/tmp/usr/lib/*/libpcreposix.so.* usr/lib
diff --git a/debian/libpcre3.docs b/debian/libpcre3.docs
new file mode 100644
index 0000000..9920811
--- /dev/null
+++ b/debian/libpcre3.docs
@@ -0,0 +1,2 @@
+README AUTHORS NEWS
+
diff --git a/debian/libpcre3.install b/debian/libpcre3.install
new file mode 100644
index 0000000..2166583
--- /dev/null
+++ b/debian/libpcre3.install
@@ -0,0 +1,3 @@
+debian/tmp/usr/lib/*/libpcre.so.*
+debian/tmp/usr/lib/*/libpcreposix.so.*
+debian/tmp/usr/share/man/man3/pcrepattern.3
diff --git a/debian/libpcre3.symbols.in b/debian/libpcre3.symbols.in
new file mode 100644
index 0000000..29968c8
--- /dev/null
+++ b/debian/libpcre3.symbols.in
@@ -0,0 +1,39 @@
+libpcre.so.3 libpcre3
+ pcre_assign_jit_stack@Base 8.10
+ pcre_callout@Base 8.10
+ pcre_compile2@Base 8.10
+ pcre_compile@Base 8.10
+ pcre_config@Base 8.10
+ pcre_copy_named_substring@Base 8.10
+ pcre_copy_substring@Base 8.10
+ pcre_dfa_exec@Base 8.10
+ pcre_exec@Base 8.10
+ pcre_free@Base 8.10
+ pcre_free_study@Base 8.20
+ pcre_free_substring@Base 8.10
+ pcre_free_substring_list@Base 8.10
+ pcre_fullinfo@Base 8.10
+ pcre_get_named_substring@Base 8.10
+ pcre_get_stringnumber@Base 8.10
+ pcre_get_stringtable_entries@Base 8.10
+ pcre_get_substring@Base 8.10
+ pcre_get_substring_list@Base 8.10
+ pcre_info@Base 8.10
+JIT pcre_jit_exec@Base 1:8.35
+ pcre_jit_free_unused_memory@Base 1:8.35
+ pcre_jit_stack_alloc@Base 8.10
+ pcre_jit_stack_free@Base 8.10
+ pcre_maketables@Base 8.10
+ pcre_malloc@Base 8.10
+ pcre_pattern_to_host_byte_order@Base 8.10
+ pcre_refcount@Base 8.10
+ pcre_stack_free@Base 8.10
+ pcre_stack_guard@Base 1:8.35
+ pcre_stack_malloc@Base 8.10
+ pcre_study@Base 8.10
+ pcre_version@Base 8.10
+libpcreposix.so.3 libpcre3
+ pcreposix_regcomp@Base 8.10
+ pcreposix_regerror@Base 8.10
+ pcreposix_regexec@Base 8.10
+ pcreposix_regfree@Base 8.10
diff --git a/debian/libpcre32-3.install b/debian/libpcre32-3.install
new file mode 100644
index 0000000..f91755e
--- /dev/null
+++ b/debian/libpcre32-3.install
@@ -0,0 +1 @@
+debian/tmp/usr/lib/*/libpcre32.so.*
diff --git a/debian/libpcre32-3.symbols.in b/debian/libpcre32-3.symbols.in
new file mode 100644
index 0000000..1ab979f
--- /dev/null
+++ b/debian/libpcre32-3.symbols.in
@@ -0,0 +1,34 @@
+libpcre32.so.3 libpcre32-3 #MINVER#
+ pcre32_assign_jit_stack@Base 2:8.35-4
+ pcre32_callout@Base 2:8.35-4
+ pcre32_compile2@Base 2:8.35-4
+ pcre32_compile@Base 2:8.35-4
+ pcre32_config@Base 2:8.35-4
+ pcre32_copy_named_substring@Base 2:8.35-4
+ pcre32_copy_substring@Base 2:8.35-4
+ pcre32_dfa_exec@Base 2:8.35-4
+ pcre32_exec@Base 2:8.35-4
+ pcre32_free@Base 2:8.35-4
+ pcre32_free_study@Base 2:8.35-4
+ pcre32_free_substring@Base 2:8.35-4
+ pcre32_free_substring_list@Base 2:8.35-4
+ pcre32_fullinfo@Base 2:8.35-4
+ pcre32_get_named_substring@Base 2:8.35-4
+ pcre32_get_stringnumber@Base 2:8.35-4
+ pcre32_get_stringtable_entries@Base 2:8.35-4
+ pcre32_get_substring@Base 2:8.35-4
+ pcre32_get_substring_list@Base 2:8.35-4
+JIT pcre32_jit_exec@Base 2:8.35-4
+ pcre32_jit_free_unused_memory@Base 2:8.35-4
+ pcre32_jit_stack_alloc@Base 2:8.35-4
+ pcre32_jit_stack_free@Base 2:8.35-4
+ pcre32_maketables@Base 2:8.35-4
+ pcre32_malloc@Base 2:8.35-4
+ pcre32_pattern_to_host_byte_order@Base 2:8.35-4
+ pcre32_refcount@Base 2:8.35-4
+ pcre32_stack_free@Base 2:8.35-4
+ pcre32_stack_guard@Base 2:8.35-4
+ pcre32_stack_malloc@Base 2:8.35-4
+ pcre32_study@Base 2:8.35-4
+ pcre32_utf32_to_host_byte_order@Base 2:8.35-4
+ pcre32_version@Base 2:8.35-4
diff --git a/debian/libpcrecpp0v5.docs b/debian/libpcrecpp0v5.docs
new file mode 100644
index 0000000..9920811
--- /dev/null
+++ b/debian/libpcrecpp0v5.docs
@@ -0,0 +1,2 @@
+README AUTHORS NEWS
+
diff --git a/debian/libpcrecpp0v5.install b/debian/libpcrecpp0v5.install
new file mode 100644
index 0000000..6b2eb62
--- /dev/null
+++ b/debian/libpcrecpp0v5.install
@@ -0,0 +1 @@
+debian/tmp/usr/lib/*/libpcrecpp.so.*
diff --git a/debian/libpcrecpp0v5.symbols b/debian/libpcrecpp0v5.symbols
new file mode 100644
index 0000000..c14337d
--- /dev/null
+++ b/debian/libpcrecpp0v5.symbols
@@ -0,0 +1,88 @@
+libpcrecpp.so.0 libpcrecpp0v5 #MINVER#
+ (c++)"void std::vector<pcrecpp::StringPiece, std::allocator<pcrecpp::StringPiece> >::_M_emplace_back_aux<pcrecpp::StringPiece>(pcrecpp::StringPiece&&)@Base" 2:8.39-2
+ (c++)"operator<<(std::basic_ostream<char, std::char_traits<char> >&, pcrecpp::StringPiece const&)@Base" 8.38
+ (c++)"pcrecpp::Arg::parse_char(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_double(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_float(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_int(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_int_cradix(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_int_hex(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_int_octal(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_int_radix(char const*, int, void*, int)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_long(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_long_cradix(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_long_hex(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_longlong(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_longlong_cradix(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_longlong_hex(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_longlong_octal(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_longlong_radix(char const*, int, void*, int)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_long_octal(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_long_radix(char const*, int, void*, int)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_null(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_short(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_short_cradix(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_short_hex(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_short_octal(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_short_radix(char const*, int, void*, int)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_string(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_stringpiece(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_uchar(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_uint(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_uint_cradix(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_uint_hex(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_uint_octal(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_uint_radix(char const*, int, void*, int)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_ulong(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_ulong_cradix(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_ulong_hex(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_ulonglong(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_ulonglong_cradix(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_ulonglong_hex(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_ulonglong_octal(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_ulonglong_radix(char const*, int, void*, int)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_ulong_octal(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_ulong_radix(char const*, int, void*, int)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_ushort(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_ushort_cradix(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_ushort_hex(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_ushort_octal(char const*, int, void*)@Base" 7.7
+ (c++)"pcrecpp::Arg::parse_ushort_radix(char const*, int, void*, int)@Base" 7.7
+ (c++)"pcrecpp::RE::Cleanup()@Base" 7.7
+ (c++)"pcrecpp::RE::Compile(pcrecpp::RE::Anchor)@Base" 7.7
+ (c++)"pcrecpp::RE::Consume(pcrecpp::StringPiece*, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&) const@Base" 7.7
+ (c++)"pcrecpp::Scanner::Consume(pcrecpp::RE const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&)@Base" 7.7
+ (c++)"pcrecpp::RE::DoMatchImpl(pcrecpp::StringPiece const&, pcrecpp::RE::Anchor, int*, pcrecpp::Arg const* const*, int, int*, int) const@Base" 7.7
+ (c++)"pcrecpp::RE::DoMatch(pcrecpp::StringPiece const&, pcrecpp::RE::Anchor, int*, pcrecpp::Arg const* const*, int) const@Base" 7.7
+ (c++)"pcrecpp::RE::Extract(pcrecpp::StringPiece const&, pcrecpp::StringPiece const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) const@Base" 7.7
+ (c++)"pcrecpp::RE::FindAndConsume(pcrecpp::StringPiece*, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&) const@Base" 7.7
+ (c++)"pcrecpp::RE::FullMatch(pcrecpp::StringPiece const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&) const@Base" 7.7
+ (c++)"pcrecpp::RE::GlobalReplace(pcrecpp::StringPiece const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) const@Base" 7.7
+ (c++)"pcrecpp::RE::Init(char const*, pcrecpp::RE_Options const*)@Base" 7.7
+ (c++)"pcrecpp::RE::Init(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, pcrecpp::RE_Options const*)@Base" 7.7
+ (c++)"pcrecpp::RE::no_arg@Base" 7.7
+ (c++)"pcrecpp::RE::NumberOfCapturingGroups() const@Base" 7.7
+ (c++)"pcrecpp::RE::PartialMatch(pcrecpp::StringPiece const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&) const@Base" 7.7
+ (c++)"pcrecpp::RE::QuoteMeta[abi:cxx11](pcrecpp::StringPiece const&)@Base" 7.7
+ (c++)"pcrecpp::RE::~RE()@Base" 7.7
+ (c++)"pcrecpp::RE::~RE()@Base" 7.7
+ (c++)"pcrecpp::RE::Replace(pcrecpp::StringPiece const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) const@Base" 7.7
+ (c++)"pcrecpp::RE::Rewrite(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, pcrecpp::StringPiece const&, pcrecpp::StringPiece const&, int*, int) const@Base" 7.7
+ (c++)"pcrecpp::RE::TryMatch(pcrecpp::StringPiece const&, int, pcrecpp::RE::Anchor, bool, int*, int) const@Base" 7.7
+ (c++)"pcrecpp::Scanner::ConsumeSkip()@Base" 7.7
+ (c++)"pcrecpp::Scanner::DisableSkip()@Base" 7.7
+ (c++)"pcrecpp::Scanner::EnableSkip()@Base" 7.7
+ (c++)"pcrecpp::Scanner::GetComments(int, int, std::vector<pcrecpp::StringPiece, std::allocator<pcrecpp::StringPiece> >*)@Base" 7.7
+ (c++)"pcrecpp::Scanner::GetNextComments(std::vector<pcrecpp::StringPiece, std::allocator<pcrecpp::StringPiece> >*)@Base" 7.7
+ (c++)"pcrecpp::Scanner::LineNumber() const@Base" 7.7
+ (c++)"pcrecpp::Scanner::LookingAt(pcrecpp::RE const&) const@Base" 7.7
+ (c++)"pcrecpp::Scanner::Offset() const@Base" 7.7
+ (c++)"pcrecpp::Scanner::~Scanner()@Base" 7.7
+ (c++)"pcrecpp::Scanner::~Scanner()@Base" 7.7
+ (c++)"pcrecpp::Scanner::Scanner()@Base" 7.7
+ (c++)"pcrecpp::Scanner::Scanner()@Base" 7.7
+ (c++)"pcrecpp::Scanner::Scanner(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@Base" 7.7
+ (c++)"pcrecpp::Scanner::Scanner(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@Base" 7.7
+ (c++)"pcrecpp::Scanner::SetSkipExpression(char const*)@Base" 7.7
+ (c++)"pcrecpp::Scanner::Skip(char const*)@Base" 7.7
+#MISSING: 2:8.39-2# (c++)"std::vector<pcrecpp::StringPiece, std::allocator<pcrecpp::StringPiece> >::_M_insert_aux(__gnu_cxx::__normal_iterator<pcrecpp::StringPiece*, std::vector<pcrecpp::StringPiece, std::allocator<pcrecpp::StringPiece> > >, pcrecpp::StringPiece const&)@Base" 7.7
diff --git a/debian/patches/CVE-2017-6004.patch b/debian/patches/CVE-2017-6004.patch
new file mode 100644
index 0000000..afec3f8
--- /dev/null
+++ b/debian/patches/CVE-2017-6004.patch
@@ -0,0 +1,19 @@
+Description: CVE-2017-6004: crafted regular expression may cause denial of service
+Origin: upstream, https://vcs.pcre.org/pcre/code/trunk/pcre_jit_compile.c?r1=1676&r2=1680&view=patch
+Bug: https://bugs.exim.org/show_bug.cgi?id=2035
+Bug-Debian: https://bugs.debian.org/855405
+Forwarded: not-needed
+Author: Salvatore Bonaccorso <carnil@debian.org>
+Last-Update: 2017-02-17
+
+--- a/pcre_jit_compile.c
++++ b/pcre_jit_compile.c
+@@ -8111,7 +8111,7 @@ if (opcode == OP_COND || opcode == OP_SC
+
+ if (*matchingpath == OP_FAIL)
+ stacksize = 0;
+- if (*matchingpath == OP_RREF)
++ else if (*matchingpath == OP_RREF)
+ {
+ stacksize = GET2(matchingpath, 1);
+ if (common->currententry == NULL)
diff --git a/debian/patches/Disable_JIT_on_sparc64.patch b/debian/patches/Disable_JIT_on_sparc64.patch
new file mode 100644
index 0000000..7583e4d
--- /dev/null
+++ b/debian/patches/Disable_JIT_on_sparc64.patch
@@ -0,0 +1,25 @@
+From: Matthew Vernon <matthew@debian.org>
+Date: Wed, 13 Jul 2016 21:20:13 +0100
+Subject: Disable_JIT_on_sparc64
+
+---
+ sljit/sljitConfigInternal.h | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/sljit/sljitConfigInternal.h b/sljit/sljitConfigInternal.h
+index b2bc80a..2d031f5 100644
+--- a/sljit/sljitConfigInternal.h
++++ b/sljit/sljitConfigInternal.h
+@@ -145,7 +145,11 @@
+ #elif defined(__mips64)
+ #define SLJIT_CONFIG_MIPS_64 1
+ #elif defined(__sparc__) || defined(__sparc)
+-#define SLJIT_CONFIG_SPARC_32 1
++# if defined(__arch64__)
++# define SLJIT_CONFIG_UNSUPPORTED 1
++# else
++# define SLJIT_CONFIG_SPARC_32 1
++# endif
+ #elif defined(__tilegx__)
+ #define SLJIT_CONFIG_TILEGX 1
+ #else
diff --git a/debian/patches/PCRE6_compatible_API.patch b/debian/patches/PCRE6_compatible_API.patch
new file mode 100644
index 0000000..e2d1d83
--- /dev/null
+++ b/debian/patches/PCRE6_compatible_API.patch
@@ -0,0 +1,53 @@
+From: Mark Baker <mark@mnb.org.uk>
+Date: Wed, 13 Jul 2016 21:20:13 +0100
+Subject: PCRE6_compatible_API
+
+---
+ pcrecpp.cc | 6 ++++++
+ pcrecpp.h | 2 ++
+ pcretest.c | 2 +-
+ 3 files changed, 9 insertions(+), 1 deletion(-)
+
+diff --git a/pcrecpp.cc b/pcrecpp.cc
+index d09c9ab..728b074 100644
+--- a/pcrecpp.cc
++++ b/pcrecpp.cc
+@@ -80,6 +80,12 @@ static const string empty_string;
+ // If the user doesn't ask for any options, we just use this one
+ static RE_Options default_options;
+
++// PCRE6.x compatible API
++void RE::Init(const char *c_pat, const RE_Options* options) {
++ const string cxx_pat(c_pat);
++ Init(cxx_pat, options);
++}
++
+ void RE::Init(const string& pat, const RE_Options* options) {
+ pattern_ = pat;
+ if (options == NULL) {
+diff --git a/pcrecpp.h b/pcrecpp.h
+index 3e594b0..a520057 100644
+--- a/pcrecpp.h
++++ b/pcrecpp.h
+@@ -658,6 +658,8 @@ class PCRECPP_EXP_DEFN RE {
+ private:
+
+ void Init(const string& pattern, const RE_Options* options);
++ // Old version from PCRE 6.x, for compatibility
++ void Init(const char *pattern, const RE_Options* options);
+ void Cleanup();
+
+ // Match against "text", filling in "vec" (up to "vecsize" * 2/3) with
+diff --git a/pcretest.c b/pcretest.c
+index 78ef517..f42f0a3 100644
+--- a/pcretest.c
++++ b/pcretest.c
+@@ -2984,7 +2984,7 @@ int main(int argc, char **argv)
+ {
+ FILE *infile = stdin;
+ const char *version;
+-int options = 0;
++long int options = 0;
+ int study_options = 0;
+ int default_find_match_limit = FALSE;
+ pcre_uint32 default_options = 0;
diff --git a/debian/patches/no_jit_x32_powerpcspe.patch b/debian/patches/no_jit_x32_powerpcspe.patch
new file mode 100644
index 0000000..af4fcdc
--- /dev/null
+++ b/debian/patches/no_jit_x32_powerpcspe.patch
@@ -0,0 +1,38 @@
+From: Matthew Vernon <matthew@debian.org>
+Date: Wed, 13 Jul 2016 21:20:13 +0100
+Subject: no_jit_x32_powerpcspe
+
+---
+ sljit/sljitConfigInternal.h | 12 ++++++++++--
+ 1 file changed, 10 insertions(+), 2 deletions(-)
+
+diff --git a/sljit/sljitConfigInternal.h b/sljit/sljitConfigInternal.h
+index 9275b14..b2bc80a 100644
+--- a/sljit/sljitConfigInternal.h
++++ b/sljit/sljitConfigInternal.h
+@@ -117,7 +117,11 @@
+ #if defined(__i386__) || defined(__i386)
+ #define SLJIT_CONFIG_X86_32 1
+ #elif defined(__x86_64__)
+-#define SLJIT_CONFIG_X86_64 1
++# if defined(__ILP32__)
++# define SLJIT_CONFIG_UNSUPPORTED 1
++# else
++# define SLJIT_CONFIG_X86_64 1
++# endif
+ #elif defined(__arm__) || defined(__ARM__)
+ #ifdef __thumb2__
+ #define SLJIT_CONFIG_ARM_THUMB2 1
+@@ -131,7 +135,11 @@
+ #elif defined(__ppc64__) || defined(__powerpc64__) || defined(_ARCH_PPC64) || (defined(_POWER) && defined(__64BIT__))
+ #define SLJIT_CONFIG_PPC_64 1
+ #elif defined(__ppc__) || defined(__powerpc__) || defined(_ARCH_PPC) || defined(_ARCH_PWR) || defined(_ARCH_PWR2) || defined(_POWER)
+-#define SLJIT_CONFIG_PPC_32 1
++# ifndef __NO_FPRS__
++# define SLJIT_CONFIG_PPC_32 1
++# else
++# define SLJIT_CONFIG_UNSUPPORTED 1
++# endif
+ #elif defined(__mips__) && !defined(_LP64)
+ #define SLJIT_CONFIG_MIPS_32 1
+ #elif defined(__mips64)
diff --git a/debian/patches/pcre_info.patch b/debian/patches/pcre_info.patch
new file mode 100644
index 0000000..f913353
--- /dev/null
+++ b/debian/patches/pcre_info.patch
@@ -0,0 +1,394 @@
+From: Mark Baker <mark@mnb.org.uk>
+Date: Wed, 13 Jul 2016 21:20:13 +0100
+Subject: pcre_info
+
+---
+ Makefile.am | 3 ++-
+ Makefile.in | 79 ++++++++++++++++++++++++++++-------------------------
+ pcre_info.c | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 3 files changed, 134 insertions(+), 38 deletions(-)
+ create mode 100644 pcre_info.c
+
+diff --git a/Makefile.am b/Makefile.am
+index 22b6947..59c564a 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -233,6 +233,7 @@ libpcre_la_SOURCES = \
+ pcre_fullinfo.c \
+ pcre_get.c \
+ pcre_globals.c \
++ pcre_info.c \
+ pcre_internal.h \
+ pcre_jit_compile.c \
+ pcre_maketables.c \
+@@ -648,7 +649,7 @@ test: check ;
+ # nice DLL for Windows use". (It is used by the pcre.dll target.)
+ DLL_OBJS= pcre_byte_order.o pcre_compile.o pcre_config.o \
+ pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \
+- pcre_globals.o pcre_jit_compile.o pcre_maketables.o \
++ pcre_globals.o pcre_info.o pcre_jit_compile.o pcre_maketables.o \
+ pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
+ pcre_study.o pcre_tables.o pcre_ucd.o \
+ pcre_valid_utf8.o pcre_version.o pcre_chartables.o \
+diff --git a/Makefile.in b/Makefile.in
+index 6d03912..22c1ae9 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -218,11 +218,11 @@ LTLIBRARIES = $(lib_LTLIBRARIES)
+ libpcre_la_DEPENDENCIES =
+ am__libpcre_la_SOURCES_DIST = pcre_byte_order.c pcre_compile.c \
+ pcre_config.c pcre_dfa_exec.c pcre_exec.c pcre_fullinfo.c \
+- pcre_get.c pcre_globals.c pcre_internal.h pcre_jit_compile.c \
+- pcre_maketables.c pcre_newline.c pcre_ord2utf8.c \
+- pcre_refcount.c pcre_string_utils.c pcre_study.c pcre_tables.c \
+- pcre_ucd.c pcre_valid_utf8.c pcre_version.c pcre_xclass.c \
+- ucp.h
++ pcre_get.c pcre_globals.c pcre_info.c pcre_internal.h \
++ pcre_jit_compile.c pcre_maketables.c pcre_newline.c \
++ pcre_ord2utf8.c pcre_refcount.c pcre_string_utils.c \
++ pcre_study.c pcre_tables.c pcre_ucd.c pcre_valid_utf8.c \
++ pcre_version.c pcre_xclass.c ucp.h
+ @WITH_PCRE8_TRUE@am_libpcre_la_OBJECTS = \
+ @WITH_PCRE8_TRUE@ libpcre_la-pcre_byte_order.lo \
+ @WITH_PCRE8_TRUE@ libpcre_la-pcre_compile.lo \
+@@ -232,6 +232,7 @@ am__libpcre_la_SOURCES_DIST = pcre_byte_order.c pcre_compile.c \
+ @WITH_PCRE8_TRUE@ libpcre_la-pcre_fullinfo.lo \
+ @WITH_PCRE8_TRUE@ libpcre_la-pcre_get.lo \
+ @WITH_PCRE8_TRUE@ libpcre_la-pcre_globals.lo \
++@WITH_PCRE8_TRUE@ libpcre_la-pcre_info.lo \
+ @WITH_PCRE8_TRUE@ libpcre_la-pcre_jit_compile.lo \
+ @WITH_PCRE8_TRUE@ libpcre_la-pcre_maketables.lo \
+ @WITH_PCRE8_TRUE@ libpcre_la-pcre_newline.lo \
+@@ -251,7 +252,7 @@ libpcre_la_OBJECTS = $(am_libpcre_la_OBJECTS) \
+ AM_V_lt = $(am__v_lt_@AM_V@)
+ am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
+ am__v_lt_0 = --silent
+-am__v_lt_1 =
++am__v_lt_1 =
+ libpcre_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libpcre_la_CFLAGS) \
+ $(CFLAGS) $(libpcre_la_LDFLAGS) $(LDFLAGS) -o $@
+@@ -449,11 +450,11 @@ am__v_P_1 = :
+ AM_V_GEN = $(am__v_GEN_@AM_V@)
+ am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
+ am__v_GEN_0 = @echo " GEN " $@;
+-am__v_GEN_1 =
++am__v_GEN_1 =
+ AM_V_at = $(am__v_at_@AM_V@)
+ am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
+ am__v_at_0 = @
+-am__v_at_1 =
++am__v_at_1 =
+ DEFAULT_INCLUDES = -I.@am__isrc@
+ depcomp = $(SHELL) $(top_srcdir)/depcomp
+ am__depfiles_maybe = depfiles
+@@ -467,7 +468,7 @@ LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ AM_V_CC = $(am__v_CC_@AM_V@)
+ am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
+ am__v_CC_0 = @echo " CC " $@;
+-am__v_CC_1 =
++am__v_CC_1 =
+ CCLD = $(CC)
+ LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+@@ -475,7 +476,7 @@ LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ AM_V_CCLD = $(am__v_CCLD_@AM_V@)
+ am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
+ am__v_CCLD_0 = @echo " CCLD " $@;
+-am__v_CCLD_1 =
++am__v_CCLD_1 =
+ CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
+ LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
+@@ -485,7 +486,7 @@ LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
+ AM_V_CXX = $(am__v_CXX_@AM_V@)
+ am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@)
+ am__v_CXX_0 = @echo " CXX " $@;
+-am__v_CXX_1 =
++am__v_CXX_1 =
+ CXXLD = $(CXX)
+ CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
+@@ -493,7 +494,7 @@ CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
+ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
+ am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
+ am__v_CXXLD_0 = @echo " CXXLD " $@;
+-am__v_CXXLD_1 =
++am__v_CXXLD_1 =
+ SOURCES = $(libpcre_la_SOURCES) $(nodist_libpcre_la_SOURCES) \
+ $(libpcre16_la_SOURCES) $(nodist_libpcre16_la_SOURCES) \
+ $(libpcre32_la_SOURCES) $(nodist_libpcre32_la_SOURCES) \
+@@ -832,9 +833,6 @@ PCRE_MAJOR = @PCRE_MAJOR@
+ PCRE_MINOR = @PCRE_MINOR@
+ PCRE_PRERELEASE = @PCRE_PRERELEASE@
+ PCRE_STATIC_CFLAG = @PCRE_STATIC_CFLAG@
+-PKG_CONFIG = @PKG_CONFIG@
+-PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+-PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+ PTHREAD_CC = @PTHREAD_CC@
+ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
+ PTHREAD_LIBS = @PTHREAD_LIBS@
+@@ -844,8 +842,6 @@ SET_MAKE = @SET_MAKE@
+ SHELL = @SHELL@
+ SHTOOL = @SHTOOL@
+ STRIP = @STRIP@
+-VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
+-VALGRIND_LIBS = @VALGRIND_LIBS@
+ VERSION = @VERSION@
+ VISIBILITY_CFLAGS = @VISIBILITY_CFLAGS@
+ VISIBILITY_CXXFLAGS = @VISIBILITY_CXXFLAGS@
+@@ -988,7 +984,7 @@ dist_noinst_DATA = $(pcrecpp_html)
+ # The Libtool libraries to install. We'll add to this later.
+ lib_LTLIBRARIES = $(am__append_4) $(am__append_5) $(am__append_6) \
+ $(am__append_20) $(am__append_22)
+-check_SCRIPTS =
++check_SCRIPTS =
+ dist_noinst_SCRIPTS = RunTest $(am__append_39)
+
+ # Additional files to delete on 'make clean' and 'make maintainer-clean'.
+@@ -1093,6 +1089,7 @@ BUILT_SOURCES = pcre_chartables.c
+ @WITH_PCRE8_TRUE@ pcre_fullinfo.c \
+ @WITH_PCRE8_TRUE@ pcre_get.c \
+ @WITH_PCRE8_TRUE@ pcre_globals.c \
++@WITH_PCRE8_TRUE@ pcre_info.c \
+ @WITH_PCRE8_TRUE@ pcre_internal.h \
+ @WITH_PCRE8_TRUE@ pcre_jit_compile.c \
+ @WITH_PCRE8_TRUE@ pcre_maketables.c \
+@@ -1110,7 +1107,7 @@ BUILT_SOURCES = pcre_chartables.c
+
+ @WITH_PCRE8_TRUE@libpcre_la_CFLAGS = $(VISIBILITY_CFLAGS) $(AM_CFLAGS) \
+ @WITH_PCRE8_TRUE@ $(am__append_7) $(am__append_10)
+-@WITH_PCRE8_TRUE@libpcre_la_LIBADD =
++@WITH_PCRE8_TRUE@libpcre_la_LIBADD =
+ @WITH_PCRE8_TRUE@nodist_libpcre_la_SOURCES = \
+ @WITH_PCRE8_TRUE@ pcre_chartables.c
+
+@@ -1141,7 +1138,7 @@ BUILT_SOURCES = pcre_chartables.c
+ @WITH_PCRE16_TRUE@libpcre16_la_CFLAGS = $(VISIBILITY_CFLAGS) \
+ @WITH_PCRE16_TRUE@ $(AM_CFLAGS) $(am__append_8) \
+ @WITH_PCRE16_TRUE@ $(am__append_11)
+-@WITH_PCRE16_TRUE@libpcre16_la_LIBADD =
++@WITH_PCRE16_TRUE@libpcre16_la_LIBADD =
+ @WITH_PCRE16_TRUE@nodist_libpcre16_la_SOURCES = \
+ @WITH_PCRE16_TRUE@ pcre_chartables.c
+
+@@ -1172,7 +1169,7 @@ BUILT_SOURCES = pcre_chartables.c
+ @WITH_PCRE32_TRUE@libpcre32_la_CFLAGS = $(VISIBILITY_CFLAGS) \
+ @WITH_PCRE32_TRUE@ $(AM_CFLAGS) $(am__append_9) \
+ @WITH_PCRE32_TRUE@ $(am__append_12)
+-@WITH_PCRE32_TRUE@libpcre32_la_LIBADD =
++@WITH_PCRE32_TRUE@libpcre32_la_LIBADD =
+ @WITH_PCRE32_TRUE@nodist_libpcre32_la_SOURCES = \
+ @WITH_PCRE32_TRUE@ pcre_chartables.c
+
+@@ -1227,7 +1224,7 @@ pcretest_LDADD = $(LIBREADLINE) $(am__append_30) $(am__append_32) \
+ # nice DLL for Windows use". (It is used by the pcre.dll target.)
+ DLL_OBJS = pcre_byte_order.o pcre_compile.o pcre_config.o \
+ pcre_dfa_exec.o pcre_exec.o pcre_fullinfo.o pcre_get.o \
+- pcre_globals.o pcre_jit_compile.o pcre_maketables.o \
++ pcre_globals.o pcre_info.o pcre_jit_compile.o pcre_maketables.o \
+ pcre_newline.o pcre_ord2utf8.o pcre_refcount.o \
+ pcre_study.o pcre_tables.o pcre_ucd.o \
+ pcre_valid_utf8.o pcre_version.o pcre_chartables.o \
+@@ -1313,8 +1310,8 @@ pcrecpp_man = doc/pcrecpp.3
+ @WITH_GCOV_TRUE@COVERAGE_NAME = $(PACKAGE)-$(VERSION)
+ @WITH_GCOV_TRUE@COVERAGE_OUTPUT_FILE = $(COVERAGE_NAME)-coverage.info
+ @WITH_GCOV_TRUE@COVERAGE_OUTPUT_DIR = $(COVERAGE_NAME)-coverage
+-@WITH_GCOV_TRUE@COVERAGE_LCOV_EXTRA_FLAGS =
+-@WITH_GCOV_TRUE@COVERAGE_GENHTML_EXTRA_FLAGS =
++@WITH_GCOV_TRUE@COVERAGE_LCOV_EXTRA_FLAGS =
++@WITH_GCOV_TRUE@COVERAGE_GENHTML_EXTRA_FLAGS =
+ @WITH_GCOV_TRUE@coverage_quiet = $(coverage_quiet_$(V))
+ @WITH_GCOV_TRUE@coverage_quiet_ = $(coverage_quiet_$(AM_DEFAULT_VERBOSITY))
+ @WITH_GCOV_TRUE@coverage_quiet_0 = --quiet
+@@ -1364,7 +1361,7 @@ config.h: stamp-h1
+ stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
+ @rm -f stamp-h1
+ cd $(top_builddir) && $(SHELL) ./config.status config.h
+-$(srcdir)/config.h.in: $(am__configure_deps)
++$(srcdir)/config.h.in: $(am__configure_deps)
+ ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
+ rm -f stamp-h1
+ touch $@
+@@ -1425,19 +1422,19 @@ clean-libLTLIBRARIES:
+ rm -f $${locs}; \
+ }
+
+-libpcre.la: $(libpcre_la_OBJECTS) $(libpcre_la_DEPENDENCIES) $(EXTRA_libpcre_la_DEPENDENCIES)
++libpcre.la: $(libpcre_la_OBJECTS) $(libpcre_la_DEPENDENCIES) $(EXTRA_libpcre_la_DEPENDENCIES)
+ $(AM_V_CCLD)$(libpcre_la_LINK) $(am_libpcre_la_rpath) $(libpcre_la_OBJECTS) $(libpcre_la_LIBADD) $(LIBS)
+
+-libpcre16.la: $(libpcre16_la_OBJECTS) $(libpcre16_la_DEPENDENCIES) $(EXTRA_libpcre16_la_DEPENDENCIES)
++libpcre16.la: $(libpcre16_la_OBJECTS) $(libpcre16_la_DEPENDENCIES) $(EXTRA_libpcre16_la_DEPENDENCIES)
+ $(AM_V_CCLD)$(libpcre16_la_LINK) $(am_libpcre16_la_rpath) $(libpcre16_la_OBJECTS) $(libpcre16_la_LIBADD) $(LIBS)
+
+-libpcre32.la: $(libpcre32_la_OBJECTS) $(libpcre32_la_DEPENDENCIES) $(EXTRA_libpcre32_la_DEPENDENCIES)
++libpcre32.la: $(libpcre32_la_OBJECTS) $(libpcre32_la_DEPENDENCIES) $(EXTRA_libpcre32_la_DEPENDENCIES)
+ $(AM_V_CCLD)$(libpcre32_la_LINK) $(am_libpcre32_la_rpath) $(libpcre32_la_OBJECTS) $(libpcre32_la_LIBADD) $(LIBS)
+
+-libpcrecpp.la: $(libpcrecpp_la_OBJECTS) $(libpcrecpp_la_DEPENDENCIES) $(EXTRA_libpcrecpp_la_DEPENDENCIES)
++libpcrecpp.la: $(libpcrecpp_la_OBJECTS) $(libpcrecpp_la_DEPENDENCIES) $(EXTRA_libpcrecpp_la_DEPENDENCIES)
+ $(AM_V_CXXLD)$(libpcrecpp_la_LINK) $(am_libpcrecpp_la_rpath) $(libpcrecpp_la_OBJECTS) $(libpcrecpp_la_LIBADD) $(LIBS)
+
+-libpcreposix.la: $(libpcreposix_la_OBJECTS) $(libpcreposix_la_DEPENDENCIES) $(EXTRA_libpcreposix_la_DEPENDENCIES)
++libpcreposix.la: $(libpcreposix_la_OBJECTS) $(libpcreposix_la_DEPENDENCIES) $(EXTRA_libpcreposix_la_DEPENDENCIES)
+ $(AM_V_CCLD)$(libpcreposix_la_LINK) $(am_libpcreposix_la_rpath) $(libpcreposix_la_OBJECTS) $(libpcreposix_la_LIBADD) $(LIBS)
+ install-binPROGRAMS: $(bin_PROGRAMS)
+ @$(NORMAL_INSTALL)
+@@ -1498,31 +1495,31 @@ clean-noinstPROGRAMS:
+ echo " rm -f" $$list; \
+ rm -f $$list
+
+-dftables$(EXEEXT): $(dftables_OBJECTS) $(dftables_DEPENDENCIES) $(EXTRA_dftables_DEPENDENCIES)
++dftables$(EXEEXT): $(dftables_OBJECTS) $(dftables_DEPENDENCIES) $(EXTRA_dftables_DEPENDENCIES)
+ @rm -f dftables$(EXEEXT)
+ $(AM_V_CCLD)$(LINK) $(dftables_OBJECTS) $(dftables_LDADD) $(LIBS)
+
+-pcre_jit_test$(EXEEXT): $(pcre_jit_test_OBJECTS) $(pcre_jit_test_DEPENDENCIES) $(EXTRA_pcre_jit_test_DEPENDENCIES)
++pcre_jit_test$(EXEEXT): $(pcre_jit_test_OBJECTS) $(pcre_jit_test_DEPENDENCIES) $(EXTRA_pcre_jit_test_DEPENDENCIES)
+ @rm -f pcre_jit_test$(EXEEXT)
+ $(AM_V_CCLD)$(pcre_jit_test_LINK) $(pcre_jit_test_OBJECTS) $(pcre_jit_test_LDADD) $(LIBS)
+
+-pcre_scanner_unittest$(EXEEXT): $(pcre_scanner_unittest_OBJECTS) $(pcre_scanner_unittest_DEPENDENCIES) $(EXTRA_pcre_scanner_unittest_DEPENDENCIES)
++pcre_scanner_unittest$(EXEEXT): $(pcre_scanner_unittest_OBJECTS) $(pcre_scanner_unittest_DEPENDENCIES) $(EXTRA_pcre_scanner_unittest_DEPENDENCIES)
+ @rm -f pcre_scanner_unittest$(EXEEXT)
+ $(AM_V_CXXLD)$(pcre_scanner_unittest_LINK) $(pcre_scanner_unittest_OBJECTS) $(pcre_scanner_unittest_LDADD) $(LIBS)
+
+-pcre_stringpiece_unittest$(EXEEXT): $(pcre_stringpiece_unittest_OBJECTS) $(pcre_stringpiece_unittest_DEPENDENCIES) $(EXTRA_pcre_stringpiece_unittest_DEPENDENCIES)
++pcre_stringpiece_unittest$(EXEEXT): $(pcre_stringpiece_unittest_OBJECTS) $(pcre_stringpiece_unittest_DEPENDENCIES) $(EXTRA_pcre_stringpiece_unittest_DEPENDENCIES)
+ @rm -f pcre_stringpiece_unittest$(EXEEXT)
+ $(AM_V_CXXLD)$(pcre_stringpiece_unittest_LINK) $(pcre_stringpiece_unittest_OBJECTS) $(pcre_stringpiece_unittest_LDADD) $(LIBS)
+
+-pcrecpp_unittest$(EXEEXT): $(pcrecpp_unittest_OBJECTS) $(pcrecpp_unittest_DEPENDENCIES) $(EXTRA_pcrecpp_unittest_DEPENDENCIES)
++pcrecpp_unittest$(EXEEXT): $(pcrecpp_unittest_OBJECTS) $(pcrecpp_unittest_DEPENDENCIES) $(EXTRA_pcrecpp_unittest_DEPENDENCIES)
+ @rm -f pcrecpp_unittest$(EXEEXT)
+ $(AM_V_CXXLD)$(pcrecpp_unittest_LINK) $(pcrecpp_unittest_OBJECTS) $(pcrecpp_unittest_LDADD) $(LIBS)
+
+-pcregrep$(EXEEXT): $(pcregrep_OBJECTS) $(pcregrep_DEPENDENCIES) $(EXTRA_pcregrep_DEPENDENCIES)
++pcregrep$(EXEEXT): $(pcregrep_OBJECTS) $(pcregrep_DEPENDENCIES) $(EXTRA_pcregrep_DEPENDENCIES)
+ @rm -f pcregrep$(EXEEXT)
+ $(AM_V_CCLD)$(pcregrep_LINK) $(pcregrep_OBJECTS) $(pcregrep_LDADD) $(LIBS)
+
+-pcretest$(EXEEXT): $(pcretest_OBJECTS) $(pcretest_DEPENDENCIES) $(EXTRA_pcretest_DEPENDENCIES)
++pcretest$(EXEEXT): $(pcretest_OBJECTS) $(pcretest_DEPENDENCIES) $(EXTRA_pcretest_DEPENDENCIES)
+ @rm -f pcretest$(EXEEXT)
+ $(AM_V_CCLD)$(pcretest_LINK) $(pcretest_OBJECTS) $(pcretest_LDADD) $(LIBS)
+ install-binSCRIPTS: $(bin_SCRIPTS)
+@@ -1623,6 +1620,7 @@ distclean-compile:
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpcre_la-pcre_fullinfo.Plo@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpcre_la-pcre_get.Plo@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpcre_la-pcre_globals.Plo@am__quote@
++@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpcre_la-pcre_info.Plo@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpcre_la-pcre_jit_compile.Plo@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpcre_la-pcre_maketables.Plo@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpcre_la-pcre_newline.Plo@am__quote@
+@@ -1726,6 +1724,13 @@ libpcre_la-pcre_globals.lo: pcre_globals.c
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpcre_la_CFLAGS) $(CFLAGS) -c -o libpcre_la-pcre_globals.lo `test -f 'pcre_globals.c' || echo '$(srcdir)/'`pcre_globals.c
+
++libpcre_la-pcre_info.lo: pcre_info.c
++@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpcre_la_CFLAGS) $(CFLAGS) -MT libpcre_la-pcre_info.lo -MD -MP -MF $(DEPDIR)/libpcre_la-pcre_info.Tpo -c -o libpcre_la-pcre_info.lo `test -f 'pcre_info.c' || echo '$(srcdir)/'`pcre_info.c
++@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libpcre_la-pcre_info.Tpo $(DEPDIR)/libpcre_la-pcre_info.Plo
++@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pcre_info.c' object='libpcre_la-pcre_info.lo' libtool=yes @AMDEPBACKSLASH@
++@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
++@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpcre_la_CFLAGS) $(CFLAGS) -c -o libpcre_la-pcre_info.lo `test -f 'pcre_info.c' || echo '$(srcdir)/'`pcre_info.c
++
+ libpcre_la-pcre_jit_compile.lo: pcre_jit_compile.c
+ @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libpcre_la_CFLAGS) $(CFLAGS) -MT libpcre_la-pcre_jit_compile.lo -MD -MP -MF $(DEPDIR)/libpcre_la-pcre_jit_compile.Tpo -c -o libpcre_la-pcre_jit_compile.lo `test -f 'pcre_jit_compile.c' || echo '$(srcdir)/'`pcre_jit_compile.c
+ @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libpcre_la-pcre_jit_compile.Tpo $(DEPDIR)/libpcre_la-pcre_jit_compile.Plo
+diff --git a/pcre_info.c b/pcre_info.c
+new file mode 100644
+index 0000000..17dafea
+--- /dev/null
++++ b/pcre_info.c
+@@ -0,0 +1,90 @@
++/*************************************************
++* Perl-Compatible Regular Expressions *
++*************************************************/
++
++/* PCRE is a library of functions to support regular expressions whose syntax
++and semantics are as close as possible to those of the Perl 5 language.
++
++ Written by Philip Hazel
++ Copyright (c) 1997-2009 University of Cambridge
++
++-----------------------------------------------------------------------------
++Redistribution and use in source and binary forms, with or without
++modification, are permitted provided that the following conditions are met:
++
++ * Redistributions of source code must retain the above copyright notice,
++ this list of conditions and the following disclaimer.
++
++ * Redistributions in binary form must reproduce the above copyright
++ notice, this list of conditions and the following disclaimer in the
++ documentation and/or other materials provided with the distribution.
++
++ * Neither the name of the University of Cambridge nor the names of its
++ contributors may be used to endorse or promote products derived from
++ this software without specific prior written permission.
++
++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
++AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
++IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
++ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
++LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
++CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
++SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
++INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
++CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
++ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
++POSSIBILITY OF SUCH DAMAGE.
++-----------------------------------------------------------------------------
++*/
++
++
++/* This module contains the external function pcre_info(), which gives some
++information about a compiled pattern. However, use of this function is now
++deprecated, as it has been superseded by pcre_fullinfo(). */
++
++
++#ifdef HAVE_CONFIG_H
++#include "config.h"
++#endif
++
++#include "pcre_internal.h"
++
++
++/*************************************************
++* (Obsolete) Return info about compiled pattern *
++*************************************************/
++
++/* This is the original "info" function. It picks potentially useful data out
++of the private structure, but its interface was too rigid. It remains for
++backwards compatibility. The public options are passed back in an int - though
++the re->options field has been expanded to a long int, all the public options
++at the low end of it, and so even on 16-bit systems this will still be OK.
++Therefore, I haven't changed the API for pcre_info().
++
++Arguments:
++ argument_re points to compiled code
++ optptr where to pass back the options
++ first_byte where to pass back the first character,
++ or -1 if multiline and all branches start ^,
++ or -2 otherwise
++
++Returns: number of capturing subpatterns
++ or negative values on error
++*/
++
++PCRE_EXP_DEFN int PCRE_CALL_CONVENTION
++pcre_info(const pcre *argument_re, int *optptr, int *first_byte)
++{
++const real_pcre *re = (const real_pcre *)argument_re;
++if (re == NULL) return PCRE_ERROR_NULL;
++if (re->magic_number != MAGIC_NUMBER)
++ return PCRE_ERROR_BADMAGIC;
++
++if (optptr != NULL) *optptr = (int)(re->options & PUBLIC_COMPILE_OPTIONS);
++if (first_byte != NULL)
++ *first_byte = ((re->flags & PCRE_FIRSTSET) != 0)? re->first_char :
++ ((re->flags & PCRE_STARTLINE) != 0)? -1 : -2;
++return re->top_bracket;
++}
++
++/* End of pcre_info.c */
diff --git a/debian/patches/pcregrep.1-patch b/debian/patches/pcregrep.1-patch
new file mode 100644
index 0000000..4ecab6f
--- /dev/null
+++ b/debian/patches/pcregrep.1-patch
@@ -0,0 +1,30 @@
+From: Mark Baker <mark@mnb.org.uk>
+Date: Wed, 13 Jul 2016 21:20:13 +0100
+Subject: pcregrep.1-patch
+
+---
+ doc/pcregrep.1 | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/doc/pcregrep.1 b/doc/pcregrep.1
+index 9886675..07b8f57 100644
+--- a/doc/pcregrep.1
++++ b/doc/pcregrep.1
+@@ -3,6 +3,7 @@
+ pcregrep - a grep with Perl-compatible regular expressions.
+ .SH SYNOPSIS
+ .B pcregrep [options] [long options] [pattern] [path1 path2 ...]
++.B zpcregrep [options] [long options] [pattern] [file1 file2 ...]
+ .
+ .SH DESCRIPTION
+ .rs
+@@ -87,6 +88,9 @@ the matching substrings are being shown.
+ If the \fBLC_ALL\fP or \fBLC_CTYPE\fP environment variable is set,
+ \fBpcregrep\fP uses the value to set a locale when calling the PCRE library.
+ The \fB--locale\fP option can be used to override this.
++.P
++\fBzpcregrep\fR is a wrapper script that allows pcregrep to work on
++gzip compressed files.
+ .
+ .
+ .SH "SUPPORT FOR COMPRESSED FILES"
diff --git a/debian/patches/pcreposix.patch b/debian/patches/pcreposix.patch
new file mode 100644
index 0000000..c2bbacb
--- /dev/null
+++ b/debian/patches/pcreposix.patch
@@ -0,0 +1,36 @@
+From: Mark Baker <mark@mnb.org.uk>
+Date: Wed, 13 Jul 2016 21:20:13 +0100
+Subject: pcreposix
+
+---
+ pcreposix.h | 13 +++++++++----
+ 1 file changed, 9 insertions(+), 4 deletions(-)
+
+diff --git a/pcreposix.h b/pcreposix.h
+index c77c0b0..4527f78 100644
+--- a/pcreposix.h
++++ b/pcreposix.h
+@@ -133,14 +133,19 @@ file. */
+
+ /* The functions */
+
+-PCREPOSIX_EXP_DECL int regcomp(regex_t *, const char *, int);
+-PCREPOSIX_EXP_DECL int regexec(const regex_t *, const char *, size_t,
++PCREPOSIX_EXP_DECL int pcreposix_regcomp(regex_t *, const char *, int);
++PCREPOSIX_EXP_DECL int pcreposix_regexec(const regex_t *, const char *, size_t,
+ regmatch_t *, int);
+-PCREPOSIX_EXP_DECL size_t regerror(int, const regex_t *, char *, size_t);
+-PCREPOSIX_EXP_DECL void regfree(regex_t *);
++PCREPOSIX_EXP_DECL size_t pcreposix_regerror(int, const regex_t *, char *, size_t);
++PCREPOSIX_EXP_DECL void pcreposix_regfree(regex_t *);
+
+ #ifdef __cplusplus
+ } /* extern "C" */
+ #endif
+
++#define regcomp pcreposix_regcomp
++#define regexec pcreposix_regexec
++#define regerror pcreposix_regerror
++#define regfree pcreposix_regfree
++
+ #endif /* End of pcreposix.h */
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d0ac423
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,8 @@
+PCRE6_compatible_API.patch
+pcreposix.patch
+pcre_info.patch
+pcregrep.1-patch
+soname.patch
+no_jit_x32_powerpcspe.patch
+Disable_JIT_on_sparc64.patch
+CVE-2017-6004.patch
diff --git a/debian/patches/soname.patch b/debian/patches/soname.patch
new file mode 100644
index 0000000..fb9a11d
--- /dev/null
+++ b/debian/patches/soname.patch
@@ -0,0 +1,28 @@
+From: Mark Baker <mark@mnb.org.uk>
+Date: Wed, 13 Jul 2016 21:20:13 +0100
+Subject: soname
+
+===================================================================
+---
+ configure.ac | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 3cefaf1..6077ad5 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -17,10 +17,10 @@ m4_define(pcre_date, [2016-06-14])
+ # 50 lines of this file. Please update that if the variables above are moved.
+
+ # Libtool shared library interface versions (current:revision:age)
+-m4_define(libpcre_version, [3:7:2])
+-m4_define(libpcre16_version, [2:7:2])
+-m4_define(libpcre32_version, [0:7:0])
+-m4_define(libpcreposix_version, [0:4:0])
++m4_define(libpcre_version, [16:3:13])
++m4_define(libpcre16_version, [16:3:13])
++m4_define(libpcre32_version, [16:3:13])
++m4_define(libpcreposix_version, [16:3:13])
+ m4_define(libpcrecpp_version, [0:1:0])
+
+ AC_PREREQ(2.57)
diff --git a/debian/pcre-config.1 b/debian/pcre-config.1
new file mode 100644
index 0000000..fbcd559
--- /dev/null
+++ b/debian/pcre-config.1
@@ -0,0 +1,57 @@
+.TH PCRE-CONFIG 1
+.SH NAME
+pcre-config \- program to return PCRE configuration
+.SH SYNOPSIS
+.B pcre-config
+.RB [ --prefix ]
+.RB [ --exec-prefix ]
+.RB [ --version ]
+.RB [ --libs ]
+.RB [ --libs-posix ]
+.RB [ --cflags ]
+.RB [ --cflags-posix ]
+
+.SH DESCRIPTION
+\fBpcre-config\fR returns the configuration of the installed PCRE
+libraries: the options required to compile a program to use them.
+
+.SH OPTIONS
+.TP 10
+\fB--prefix\fR
+Writes the directory prefix used in the PCRE installation for
+architecture independent files (e.g. \fI/usr\fR) to standard output.
+.TP
+\fB--exec-prefix\fR
+Writes the directory prefix used in the PCRE installation for
+architecture dependent files (normally the same as \fB--prefix\fR)
+to standard output.
+.TP
+\fB--version\fR
+Writes the version of PCRE installed to standard output.
+.TP
+\fB--libs\fR
+Writes to standard output the command line options required to link
+with PCRE (e.g. \fI-lpcre\fR).
+.TP
+\fB--libs-posix\fR
+Writes to standard output the command line options required to link
+with the PCRE POSIX emulation library (e.g. \fI-lpcreposix -lpcre\fR).
+.TP
+\fB--cflags\fR
+Writes to standard output the command line options required to compile
+files that use PCRE (this often includes some \fI-I\fR options, but is blank
+on debian systems).
+.TP
+\fB--cflags-posix\fR
+Writes to standard output the command line options required to compile
+files that use the PCRE POSIX emulation library (this often includes
+some -I options, but is blank on debian systems). Suppress printing of
+filenames when searching multiple files.
+.TP
+
+.SH AUTHOR
+This manual page was written by Mark Baker <mark@mnb.org.uk>,
+for the Debian GNU/Linux system (but may be used by others).
+
+.SH SEE ALSO
+\fBpcre(3)
diff --git a/debian/pcregrep.files b/debian/pcregrep.files
new file mode 100644
index 0000000..69e99f6
--- /dev/null
+++ b/debian/pcregrep.files
@@ -0,0 +1,3 @@
+usr/bin/pcregrep
+usr/share/man/man1/pcregrep.1
+
diff --git a/debian/pcregrep.install b/debian/pcregrep.install
new file mode 100644
index 0000000..b0d181b
--- /dev/null
+++ b/debian/pcregrep.install
@@ -0,0 +1,4 @@
+debian/tmp/usr/bin/pcregrep
+debian/tmp/usr/share/man/man1/pcregrep.1
+debian/zpcregrep /usr/bin/
+
diff --git a/debian/pcregrep.links b/debian/pcregrep.links
new file mode 100644
index 0000000..5a10140
--- /dev/null
+++ b/debian/pcregrep.links
@@ -0,0 +1,2 @@
+usr/share/doc/libpcre3 usr/share/doc/pcregrep
+usr/share/man/man1/pcregrep.1.gz usr/share/man/man1/zpcregrep.1.gz
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..7e53492
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,146 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+INSTALL = install
+INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644
+INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755
+INSTALL_SCRIPT = $(INSTALL) -p -o root -g root -m 755
+INSTALL_DIR = $(INSTALL) -p -d -o root -g root -m 755
+
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+INSTALL_PROGRAM += -s
+endif
+
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+ NJOBS = -j$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+endif
+
+ENABLE_JIT=$(shell . debian/jit-test)
+
+configure-stamp:
+ dh_testdir
+ # Add here commands to configure the package.
+ dh_autoreconf
+ CC_FOR_BUILD=cc ./configure \
+ --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
+ --prefix=/usr --mandir=\$${prefix}/share/man \
+ --infodir=\$${prefix}/share/info \
+ --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
+ --enable-utf8 --enable-unicode-properties \
+ --disable-silent-rules \
+ $(ENABLE_JIT) \
+ --enable-pcre16 \
+ --enable-pcre32 \
+ $(shell DEB_CFLAGS_MAINT_APPEND=-Wall DEB_BUILD_MAINT_OPTIONS=hardening=+all dpkg-buildflags --export=configure)
+ touch configure-stamp
+
+build: build-arch build-indep
+build-arch: build-stamp
+build-indep: build-stamp
+build-stamp: configure-stamp
+ dh_testdir
+
+ # Add here commands to compile the package.
+ $(MAKE) $(NJOBS)
+ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
+ $(MAKE) check VERBOSE=1
+endif
+
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f configure-stamp build-stamp
+ # Add here commands to clean up after the build process.
+ [ ! -f Makefile ] || $(MAKE) distclean
+### -test -r /usr/share/misc/config.sub && \
+### cp -f /usr/share/misc/config.sub config.sub
+### -test -r /usr/share/misc/config.guess && \
+### cp -f /usr/share/misc/config.guess config.guess
+ rm -f dftables testsavedregex
+ rm -f debian/libpcre3.symbols
+ rm -f debian/libpcre16-3.symbols
+ rm -f debian/libpcre32-3.symbols
+ dh_autoreconf_clean
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ # Add here commands to install the package into debian/tmp
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir -a
+ dh_testroot -a
+ dh_install -a
+ # This man page is in the main package, don't want it in -dev
+ rm debian/libpcre3-dev/usr/share/man/man3/pcrepattern.3
+ # Move actual library to /lib
+ mkdir -p debian/libpcre3/lib/$(DEB_HOST_MULTIARCH)
+ mv debian/libpcre3/usr/lib/$(DEB_HOST_MULTIARCH)/libpcre.so.* debian/libpcre3/lib/$(DEB_HOST_MULTIARCH)
+ ln -sf /lib/$(DEB_HOST_MULTIARCH)/libpcre.so.3 debian/libpcre3-dev/usr/lib/$(DEB_HOST_MULTIARCH)/libpcre.so
+ # we never need to reference the library path in pcre-config on
+ # Debian, so clip it out so that the script will be multiarch-safe.
+ sed -i -e"s,/$(DEB_HOST_MULTIARCH),,g" debian/libpcre3-dev/usr/bin/pcre-config
+
+ dh_link -a
+
+# dh_installdebconf -a
+ dh_installdocs -a
+ dh_installexamples -a
+# dh_installmenu -a
+# dh_installlogrotate -a
+# dh_installemacsen -a
+# dh_installpam -a
+# dh_installmime -a
+# dh_installinit -a
+# dh_installcron -a
+ dh_installman -a
+ dh_installinfo -a
+# dh_undocumented -a
+ dh_installchangelogs -a ChangeLog
+ dh_strip -a --dbg-package=libpcre3-dbg
+ # Don't include pcregrep or libraries from udeb in debug package
+ rm -r debian/libpcre3-dbg/usr/lib/debug/usr/bin
+ rm debian/libpcre3-dbg/usr/lib/debug/usr/lib/libpcre*
+ dh_compress -a
+ dh_fixperms -a
+ifneq (,$(ENABLE_JIT))
+ sed -e 's/JIT//' debian/libpcre3.symbols.in > debian/libpcre3.symbols
+ sed -e 's/JIT//' debian/libpcre16-3.symbols.in > debian/libpcre16-3.symbols
+ sed -e 's/JIT//' debian/libpcre32-3.symbols.in > debian/libpcre32-3.symbols
+else
+ sed -e 's/JIT/#/' debian/libpcre3.symbols.in > debian/libpcre3.symbols
+ sed -e 's/JIT/#/' debian/libpcre16-3.symbols.in > debian/libpcre16-3.symbols
+ sed -e 's/JIT/#/' debian/libpcre32-3.symbols.in > debian/libpcre32-3.symbols
+endif
+ dh_makeshlibs -plibpcre3 --add-udeb="libpcre3-udeb" -V 'libpcre3 (>= 1:8.35)' -- -c4
+ dh_makeshlibs -plibpcrecpp0v5 -V 'libpcrecpp0v5 (>= 7.7)' -- -c4
+ dh_makeshlibs -plibpcre16-3 -plibpcre32-3 -- -c4
+ dh_installdeb -a
+# dh_perl -a
+ dh_shlibdeps -a -ldebian/libpcre3/usr/lib/$(DEB_HOST_MULTIARCH)
+ dh_gencontrol -a
+ dh_md5sums -a
+ dh_builddeb -a
+
+binary-indep:
+
+binary: binary-arch binary-indep
+.PHONY: build clean binary-arch binary install
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..1017a30
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1,2 @@
+compression = "gzip"
+compression-level = 9
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..3209506
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-([\d\.]+)\.zip
diff --git a/debian/zpcregrep b/debian/zpcregrep
new file mode 100644
index 0000000..34e1c60
--- /dev/null
+++ b/debian/zpcregrep
@@ -0,0 +1,2 @@
+#!/bin/sh
+GREP=pcregrep zgrep "$@"