Commit Graph

29 Commits

Author SHA1 Message Date
Josef Schlehofer 38d5b8b344 pcre: drop package
This package is no longer actively maintained as it reached
End-of-Life. [1] All new projects should use PCRE2.

OpenWrt wants to be minimalistic and we migrated many packages
from PCRE to PCRE2 huge thanks belong to @Ansuel (Christian Marangi),
who worked with several open-source projects to migrate it to PCRE2 [2].
This means that on routers, we don't need to have installed two libraries
(pcre and pcre2) side by side.

[1] https://www.pcre.org/
[2] https://github.com/openwrt/packages/issues/22006

Fixes: https://github.com/openwrt/packages/issues/22006
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2024-05-11 20:58:08 +02:00
Nick Hainke c7aba534f0 pcre: move pcre from base repository to packages feed
pcre is no longer needed in the base repository. However, some packages
still rely on it in the packages and telephony feed.

Cross-reference to base repository:
e3e6652a550d ("pcre: move package to packages feed")

While working on it remove AUTORELEASE.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2023-05-18 10:20:59 +02:00
Daniel Golle 6f5412e6be
pcre: move package to core
libpcre is required for libselinux which was added to core recently.
Move it to the core so core builds without the packages feed.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-08-13 11:26:35 +01:00
Alex Kirhenshtein 748891dddd
pcre: 32 bit character support enabled (libpcre32)
Signed-off-by: Alex Kirhenshtein <alk@netxms.org>
2020-07-13 12:41:35 +03:00
Rosen Penev 4be05398d9
pcre: update to 8.4.4
Add PKG_BUILD_PARALLEL for faster compilation.

Remove autoreconf as nothing is being patched.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-06-06 21:04:14 -07:00
Christian Lachner 6c40db7e9f pcre: Add JIT-support for select architectures
- This commit adds a config-option for JIT in libpcre(1).

  According to research published on
  https://rust-leipzig.github.io/regex/2017/03/28/comparison-of-regex-engines/
  this should give a 10x performance increase on JIT operations
  which can be desireable for high performance Apache mod_rewrite
  or haproxy reqrep operations.

  This option is available on all officially supported architecutres
  which are listed on https://pcre.org/original/doc/html/pcrejit.html#SEC3.
  Furthermore, it is enabled by default on the following
  architectures: arm, i686, x86_64.

Signed-off-by: Christian Lachner <gladiac@gmail.com>
2019-11-22 09:08:33 +01:00
Jan Pavlinec 299e5b0a9b
treewide: add PKG_CPE_ID for better cvescanner coverage
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-09-17 12:40:26 +02:00
DENG Qingfang 41814de0fc pcre: remove unnecessary dependency on C++ lib
Add libpcrecpp to PKG_CONFIG_DEPENDS to properly trigger
reconfiguration, avoiding unnecessary dependency.

This reverts commit 17090fecf1.
This reverts commit ec138f51ab.

Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
2019-07-23 14:01:29 +08:00
Daniel Engberg 7028634ca1 libs/pcre: Update to 8.43
Update pcre to 8.43

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
2019-05-06 08:32:30 +00:00
Bjørn Mork ec138f51ab pcre: Depending on C++ now
Must depend on cpp for the unconditional --enable-cpp, or the build can
fail when CONFIG_PACKAGE_libpcrecpp is unset and nothing else has built
the c++ toolchain:

 configure: error: Invalid C++ compiler or C++ compiler flags
 Makefile:97: recipe for target '/usr/local/src/lede/build_dir/target-mipsel_24kc_musl/pcre-8.42/.configured_68b329da9893e34099c7d8ad5cb9c940' failed
 make[3]: *** [/usr/local/src/lede/build_dir/target-mipsel_24kc_musl/pcre-8.42/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 1
 make[3]: Leaving directory '/usr/local/src/lede/feeds/packages/libs/pcre'
 time: package/feeds/packages/pcre/compile#4.48#0.30#6.88
 package/Makefile:107: recipe for target 'package/feeds/packages/pcre/compile' failed

Fixes: 17090fecf1 ("pcre: Fix compile of libpcrecpp")
Signed-off-by: Bjørn Mork <bjorn@mork.no>
2019-04-05 16:29:45 +02:00
Jan Kardell 17090fecf1 pcre: Fix compile of libpcrecpp
If the cpp lib is added after pcre is first compiled, pcre will
not be reconfigured and the build will fail.
Fix this by always building the cpp parts.

Signed-off-by: Jan Kardell <jan.kardell@telliq.com>
2019-03-10 18:00:20 +01:00
Rosen Penev d75631a75a
libpcre: Allow building with uclibc++
This makes the libc++ adjustable

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-12-26 12:27:35 -08:00
Rosen Penev 18c3fbcc9f
pcre: Update to 8.42
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-06-08 18:45:07 -07:00
Daniel Engberg 88bba6b1eb libs/pcre: Switch to Sourceforge mirrors
Switch to Sourceforge for better availability and HTTP

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
2017-09-04 17:27:15 +02:00
Thomas Heil 110b619b38 pcre: Added fix for CVE-2017-11164 by adding stack recursion limit
Signed-off-by: Thomas Heil <heil@terminal-consulting.de>
2017-09-03 15:03:56 +02:00
Etienne Champetier 4006865ae8 treewide: run "make check FIXUP=1"
fix Makefile chmod (644)
replace MD5SUM with HASH
add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git

(PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2017-08-29 21:41:14 -07:00
Thomas Heil 806e116dbf pcre: upgrade to version 8.41
- fixes security issues

Signed-off-by: Thomas Heil <heil@terminal-consulting.de>
2017-08-17 01:18:45 +02:00
Thomas Heil db1a4ab49a [libs/pcre]: fix CVE-2017-7186
Fix CVE-2017-7186 mentioned in https://bugs.exim.org/show_bug.cgi?id=2052

Signed-off-by: Thomas Heil <heil@terminal-consulting.de>
2017-03-27 10:03:16 +02:00
heil 7c374fa372 package: pcre bump to version 8.40
Signed-off-by: heil <heil@terminal-consulting.de>
2017-01-22 21:09:54 +01:00
heil c0c1f314ef pcre: bump to version 8.39
Signed-off-by: heil <heil@terminal-consulting.de>
2016-06-21 00:56:41 +02:00
heil cb6418bec4 pcre: Integrate pending patches for next upstream version 8.39
- Fix auto-callout
    (http://vcs.pcre.org/viewvc?view=rev&revision=1611)
 -  Fix negated POSIX class within negated overall class UCP
    (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1612 2f5784b3-3f2a-0410-8824-cb99058d5e15)
 - Fix bug for isolated \E between an item and its qualifier when auto callout is set.
    (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1613 2f5784b3-3f2a-0410-8824-cb99058d5e15)
 - Give error for regexec with pmatch=NULL and REG_STARTEND set
    (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1614 2f5784b3-3f2a-0410-8824-cb99058d5e15)
 - Fix \Q\E before qualifier bug when auto callouts are
   (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1616 2f5784b3-3f2a-0410-8824-cb99058d5e15)
 - Fix /x bug when pattern starts with white space and (?-x)
   (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1617 2f5784b3-3f2a-0410-8824-cb99058d5e15)
 - Fix copy named substring bug.
   (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1618 2f5784b3-3f2a-0410-8824-cb99058d5e15)
 - Fix (by hacking) another length computation issue.
   (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1619 2f5784b3-3f2a-0410-8824-cb99058d5e15

 - Fix get_substring_list() bug when \K is used in an assertion.
   (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1620 2f5784b3-3f2a-0410-8824-cb99058d5e15

 - Fix pcretest bad behaviour for callout in lookbehind.
   (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1625 2f5784b3-3f2a-0410-8824-cb99058d5e15

 - Fix workspace overflow for (*ACCEPT) with deeply nested
   (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1631 2f5784b3-3f2a-0410-8824-cb99058d5e15
   fixes CVE-2016-3191

 - Fix Yet another duplicate name bugfix by overestimating the memory needed (i.e. another hack - PCRE2 has this "properly" fixed).
   (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1636 2f5784b3-3f2a-0410-8824-cb99058d5e15

 - Fix pcretest loop for global matching with an ovector size
   (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1637 2f5784b3-3f2a-0410-8824-cb99058d5e15

Signed-off-by: heil <heil@terminal-consulting.de>
2016-03-29 13:02:34 +02:00
heil 1d3a098bb9 pcre: upgrade to 0.8.38
fixes:
  * CVE 2015-2327 CVE 2015-2328 CVE 2015-8380 CVE 2015-8381 CVE
  * 2015-8382
  * CVE 2015-8383 CVE 2015-8384 CVE 2015-8385 CVE 2015-8386 CVE
  * 2015-8387
  * CVE 2015-8388 CVE 2015-8389 CVE 2015-8390 CVE 2015-8391 CVE
  * 2015-8392
  * CVE 2015-8393 CVE 2015-8394 CVE 2015-8395

Signed-off-by: heil <heil@terminal-consulting.de>
2016-01-25 14:05:02 +01:00
heil 183ec8af2e pcre: fix CVE-2015-3210
- should fix eap buffer overflow in pcre_compile2() / compile_regex()

Signed-off-by: heil <heil@terminal-consulting.de>
2015-06-08 18:14:46 +02:00
heil c2f5b6fac4 pcre: update to 8.37
- fixes CVE-2015-2325, CVE-2015-2326, CVE-2008-2371

Signed-off-by: heil <heil@terminal-consulting.de>
2015-05-04 18:07:17 +02:00
Mirko Vogt d6b7702640 [pcre] also package 16bit variant 2015-03-23 20:59:08 +01:00
Thomas Heil 7e28e54418 pcre: update to version 8.36
Signed-off-by: Thomas Heil <heil@terminal-consulting.de>
2015-01-04 20:52:11 +01:00
Michael Heimpold bd02c168cd pcre: small makefile fixes
- make license tag spdx conform
- drop duplicate copy commands (previous lines with asterisk match already)
- minor whitespace cleanup

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2014-09-05 23:34:43 +02:00
Thomas Heil 931f161e27 pcre: #16729: cant load library libpcre
Some people complain about missing libpcre.so, so better include it.

Signed-off-by: Thomas Heil <heil@terminal-consulting.de>
2014-07-07 11:23:46 +02:00
Thomas Heil eeab7d20fc libpcre: import from packages, add myself as the maintainer
This adds the pcre, aka libpcre package from the old svn tree. Ive
updated the package to the last version end checked that it builds with
various plattforms. The patch 750-pcre_config_cross.patch is not longer
necessary, so I removed him.

The old package needs to be removed from the svn package tree.

Signed-off-by: Thomas Heil <heil@terminal-consulting.de>
2014-06-30 18:59:31 +02:00