From 0a51a6b9633611e631a6ee27163c588764237d07e45ae1a439961eb397a9e3a5 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Fri, 27 Jul 2007 00:03:37 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pcre?expand=0&rev=8 --- pcre-7.1.tar.bz2 | 3 - ...ert_fix.patch => pcre-7.2.assert_fix.patch | 0 pcre-7.2.tar.bz2 | 3 + pcre.changes | 74 +++++++++++++++++++ pcre.spec | 58 ++++++++++++++- 5 files changed, 131 insertions(+), 7 deletions(-) delete mode 100644 pcre-7.1.tar.bz2 rename pcre-7.1.assert_fix.patch => pcre-7.2.assert_fix.patch (100%) create mode 100644 pcre-7.2.tar.bz2 diff --git a/pcre-7.1.tar.bz2 b/pcre-7.1.tar.bz2 deleted file mode 100644 index adfa2a8..0000000 --- a/pcre-7.1.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9182500abc517c833f054ad38e146776d5cc7e8976a8ad0c77432b790067f366 -size 729915 diff --git a/pcre-7.1.assert_fix.patch b/pcre-7.2.assert_fix.patch similarity index 100% rename from pcre-7.1.assert_fix.patch rename to pcre-7.2.assert_fix.patch diff --git a/pcre-7.2.tar.bz2 b/pcre-7.2.tar.bz2 new file mode 100644 index 0000000..beab8cb --- /dev/null +++ b/pcre-7.2.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:290a85d4d043eaf324821f5de4acf263ebc4bd232a34c8d348d6254ecbd3c520 +size 759104 diff --git a/pcre.changes b/pcre.changes index 734b1b3..6c1c37e 100644 --- a/pcre.changes +++ b/pcre.changes @@ -1,3 +1,77 @@ +------------------------------------------------------------------- +Mon Jul 23 15:22:40 CEST 2007 - ms@suse.de + +- update to version 7.2, fixes bug: (#293752) +- Changes from 7.1 to 7.2 + + 1. If the fr_FR locale cannot be found for test 3, try the "french" locale, + which is apparently normally available under Windows. + + 2. Re-jig the pcregrep tests with different newline settings in an attempt + to make them independent of the local environment's newline setting. + + 3. Add code to configure.ac to remove -g from the CFLAGS default settings. + + 4. Some of the "internals" tests were previously cut out when the link size + was not 2, because the output contained actual offsets. The recent new + "Z" feature of pcretest means that these can be cut out, making the tests + usable with all link sizes. + + 5. Implemented Stan Switzer's goto replacement for longjmp() when not using + stack recursion. This gives a massive performance boost under BSD, but just + a small improvement under Linux. However, it saves one field in the frame + in all cases. + + 6. Added more features from the forthcoming Perl 5.10: + + (a) (?-n) (where n is a string of digits) is a relative subroutine or + recursion call. It refers to the nth most recently opened parentheses. + + (b) (?+n) is also a relative subroutine call; it refers to the nth next + to be opened parentheses. + + (c) Conditions that refer to capturing parentheses can be specified + relatively, for example, (?(-2)... or (?(+3)... + + (d) \K resets the start of the current match so that everything before + is not part of it. + + (e) \k{name} is synonymous with \k and \k'name' (.NET compatible). + + (f) \g{name} is another synonym - part of Perl 5.10's unification of + reference syntax. + + (g) (?| introduces a group in which the numbering of parentheses in each + alternative starts with the same number. + + (h) \h, \H, \v, and \V match horizontal and vertical whitespace. + + 7. Added two new calls to pcre_fullinfo(): PCRE_INFO_OKPARTIAL and + PCRE_INFO_JCHANGED. + + 8. A pattern such as (.*(.)?)* caused pcre_exec() to fail by either not + terminating or by crashing. Diagnosed by Viktor Griph; it was in the code + for detecting groups that can match an empty string. + + 9. A pattern with a very large number of alternatives (more than several + hundred) was running out of internal workspace during the pre-compile + phase, where pcre_compile() figures out how much memory will be needed. A + bit of new cunning has reduced the workspace needed for groups with + alternatives. The 1000-alternative test pattern now uses 12 bytes of + workspace instead of running out of the 4096 that are available. + +10. Inserted some missing (unsigned int) casts to get rid of compiler warnings. + +11. Applied patch from Google to remove an optimization that didn't quite work. + The report of the bug said: + + pcrecpp::RE("a*").FullMatch("aaa") matches, while + pcrecpp::RE("a*?").FullMatch("aaa") does not, and + pcrecpp::RE("a*?\\z").FullMatch("aaa") does again. + +12. If \p or \P was used in non-UTF-8 mode on a character greater than 127 + it matched the wrong number of bytes. + ------------------------------------------------------------------- Tue May 1 11:02:54 CEST 2007 - ms@suse.de diff --git a/pcre.spec b/pcre.spec index 0284e12..f34c85a 100644 --- a/pcre.spec +++ b/pcre.spec @@ -1,5 +1,5 @@ # -# spec file for package pcre (Version 7.1) +# spec file for package pcre (Version 7.2) # # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine @@ -12,10 +12,10 @@ Name: pcre BuildRequires: gcc-c++ -Version: 7.1 -Release: 6 +Version: 7.2 +Release: 1 Summary: A library for Perl-compatible regular expressions -License: BSD License and BSD-like, Other uncritical OpenSource License +License: BSD 3-Clause, Other uncritical OpenSource License, PCRE LICENCE Group: System/Libraries Autoreqprov: on URL: ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ @@ -105,6 +105,56 @@ rm -rf $RPM_BUILD_ROOT %_mandir/man3/*.gz %changelog +* Mon Jul 23 2007 - ms@suse.de +- update to version 7.2, fixes bug: (#293752) +- Changes from 7.1 to 7.2 + 1. If the fr_FR locale cannot be found for test 3, try the "french" locale, + which is apparently normally available under Windows. + 2. Re-jig the pcregrep tests with different newline settings in an attempt + to make them independent of the local environment's newline setting. + 3. Add code to configure.ac to remove -g from the CFLAGS default settings. + 4. Some of the "internals" tests were previously cut out when the link size + was not 2, because the output contained actual offsets. The recent new + "Z" feature of pcretest means that these can be cut out, making the tests + usable with all link sizes. + 5. Implemented Stan Switzer's goto replacement for longjmp() when not using + stack recursion. This gives a massive performance boost under BSD, but just + a small improvement under Linux. However, it saves one field in the frame + in all cases. + 6. Added more features from the forthcoming Perl 5.10: + (a) (?-n) (where n is a string of digits) is a relative subroutine or + recursion call. It refers to the nth most recently opened parentheses. + (b) (?+n) is also a relative subroutine call; it refers to the nth next + to be opened parentheses. + (c) Conditions that refer to capturing parentheses can be specified + relatively, for example, (?(-2)... or (?(+3)... + (d) \K resets the start of the current match so that everything before + is not part of it. + (e) \k{name} is synonymous with \k and \k'name' (.NET compatible). + (f) \g{name} is another synonym - part of Perl 5.10's unification of + reference syntax. + (g) (?| introduces a group in which the numbering of parentheses in each + alternative starts with the same number. + (h) \h, \H, \v, and \V match horizontal and vertical whitespace. + 7. Added two new calls to pcre_fullinfo(): PCRE_INFO_OKPARTIAL and + PCRE_INFO_JCHANGED. + 8. A pattern such as (.*(.)?)* caused pcre_exec() to fail by either not + terminating or by crashing. Diagnosed by Viktor Griph; it was in the code + for detecting groups that can match an empty string. + 9. A pattern with a very large number of alternatives (more than several + hundred) was running out of internal workspace during the pre-compile + phase, where pcre_compile() figures out how much memory will be needed. A + bit of new cunning has reduced the workspace needed for groups with + alternatives. The 1000-alternative test pattern now uses 12 bytes of + workspace instead of running out of the 4096 that are available. + 10. Inserted some missing (unsigned int) casts to get rid of compiler warnings. + 11. Applied patch from Google to remove an optimization that didn't quite work. + The report of the bug said: + pcrecpp::RE("a*").FullMatch("aaa") matches, while + pcrecpp::RE("a*?").FullMatch("aaa") does not, and + pcrecpp::RE("a*?\\z").FullMatch("aaa") does again. + 12. If \p or \P was used in non-UTF-8 mode on a character greater than 127 + it matched the wrong number of bytes. * Tue May 01 2007 - ms@suse.de - added --enable-unicode-properties configure option to support UTF-8 character strings in \P, \p, and \X (#269749)