pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/meta-pkgs/boost Fix patches... again. At some point t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2e05c06901df
branches:  trunk
changeset: 542075:2e05c06901df
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Thu May 01 09:23:49 2008 +0000

description:
Fix patches... again.  At some point they got corrupted and, even though
they applied correctly, broke the build of boost-libs later on.

diffstat:

 meta-pkgs/boost/distinfo             |   6 +-
 meta-pkgs/boost/patches/patch-r42674 |  86 ++++++++++++++++-------------------
 meta-pkgs/boost/patches/patch-r42745 |  18 +++----
 3 files changed, 50 insertions(+), 60 deletions(-)

diffs (172 lines):

diff -r 51795073d33f -r 2e05c06901df meta-pkgs/boost/distinfo
--- a/meta-pkgs/boost/distinfo  Wed Apr 30 21:39:43 2008 +0000
+++ b/meta-pkgs/boost/distinfo  Thu May 01 09:23:49 2008 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.13 2008/04/30 07:13:26 jmmv Exp $
+$NetBSD: distinfo,v 1.14 2008/05/01 09:23:49 jmmv Exp $
 
 SHA1 (boost_1_34_1.tar.bz2) = b771271d5cbd3bdb0f119dd66dfd36bad7a66866
 RMD160 (boost_1_34_1.tar.bz2) = 303327ff852bc19dd7a94657fdef3c56f5882e06
@@ -12,5 +12,5 @@
 SHA1 (patch-am) = 07f1e1e15d4129c7a8762ad2e81632fdd24e9515
 SHA1 (patch-an) = 91887a9a37e9d891252e0556ee40b58a1c6bc6cf
 SHA1 (patch-ao) = a8499a326f72c9fbfd31f0b0f23014729a2a0dae
-SHA1 (patch-r42674) = c2b56a93f6a6d7fb71f1d639d5cfb2884b6e025e
-SHA1 (patch-r42745) = b1659fd244b1d8182b6d64923f112dc72c5ab5f3
+SHA1 (patch-r42674) = 1b35084bedbc64307efc6f1c831c611c1167e6bd
+SHA1 (patch-r42745) = a3d5024e90446535bdc521060986f352b4401079
diff -r 51795073d33f -r 2e05c06901df meta-pkgs/boost/patches/patch-r42674
--- a/meta-pkgs/boost/patches/patch-r42674      Wed Apr 30 21:39:43 2008 +0000
+++ b/meta-pkgs/boost/patches/patch-r42674      Thu May 01 09:23:49 2008 +0000
@@ -1,58 +1,50 @@
-$NetBSD: patch-r42674,v 1.2 2008/04/30 07:13:26 jmmv Exp $
+$NetBSD: patch-r42674,v 1.3 2008/05/01 09:23:49 jmmv Exp $
 
 Fix for CVE-2008-0171.  Patch from Boost's svn repository, r42674.
 
---- boost/regex/v4/basic_regex_parser.hpp.orig 2008-04-30 09:00:21.000000000 +0200
-+++ boost/regex/v4/basic_regex_parser.hpp      2008-04-30 09:01:13.000000000 +0200
-@@ -784,6 +784,7 @@ bool basic_regex_parser<charT, traits>::
-          // do nothing...
-          break;
-       }
-+      case syntax_element_backstep:

-       insert_point = this->getoffset(this->m_last_state);
-    }
-    //
-@@ -1869,6 +1870,7 @@ bool basic_regex_parser<charT, traits>::
-       }
-       else if(this->getaddress(static_cast<re_alt*>(b)->alt.i, b)->type == syntax_element_alt)
+--- boost/regex/v4/basic_regex_parser.hpp (revision 38864)
++++ boost/regex/v4/basic_regex_parser.hpp (revision 42674)
+@@ -785,4 +785,5 @@
+       case syntax_element_jump:
+       case syntax_element_startmark:
++      case syntax_element_backstep:
+          // can't legally repeat any of the above:
+          fail(regex_constants::error_badrepeat, m_position - m_base);
+@@ -1870,4 +1871,5 @@
+    {
+       re_syntax_base* b = this->getaddress(expected_alt_point);
++      // Make sure we have exactly one alternative following this state:
+       if(b->type != syntax_element_alt)
        {
-+      // Make sure we have exactly one alternative following this state:

+@@ -1878,4 +1880,13 @@
+       {
           fail(regex_constants::error_bad_pattern, m_position - m_base);
++         return false;
++      }
++      // check for invalid repetition of next state:
++      b = this->getaddress(expected_alt_point);
++      b = this->getaddress(static_cast<re_alt*>(b)->next.i, b);
++      if((b->type != syntax_element_assert_backref)
++         && (b->type != syntax_element_startmark))
++      {
++         fail(regex_constants::error_badrepeat, m_position - m_base);
           return false;
        }
-@@ -1877,6 +1879,15 @@ bool basic_regex_parser<charT, traits>::
-    // append closing parenthesis state:
-    //
-    pb = static_cast<re_brace*>(this->append_state(syntax_element_endmark, sizeof(re_brace)));
-+         return false;

-+      }

-+      // check for invalid repetition of next state:

-+      b = this->getaddress(expected_alt_point);

-+      b = this->getaddress(static_cast<re_alt*>(b)->next.i, b);

-+      if((b->type != syntax_element_assert_backref)

-+         && (b->type != syntax_element_startmark))

-+      {

-+         fail(regex_constants::error_badrepeat, m_position - m_base);

-    pb->index = markid;
-    this->m_paren_start = last_paren_start;
-    //
---- libs/regex/test/regress/test_perl_ex.cpp.orig      2008-04-30 09:00:21.000000000 +0200
-+++ libs/regex/test/regress/test_perl_ex.cpp   2008-04-30 09:01:13.000000000 +0200
-@@ -121,6 +121,17 @@ void test_conditionals()
-    TEST_INVALID_REGEX("(?:(a)|b)(?(?:", perl);
+--- libs/regex/test/regress/test_perl_ex.cpp (revision 30980)
++++ libs/regex/test/regress/test_perl_ex.cpp (revision 42674)
+@@ -122,4 +122,15 @@
     TEST_INVALID_REGEX("(?:(a)|b)(?(?<", perl);
     TEST_INVALID_REGEX("(?:(a)|b)(?(?<a", perl);
-+

-+   TEST_INVALID_REGEX("(?(?!#?)+)", perl);

-+   TEST_INVALID_REGEX("(?(?=:-){0})", perl);

-+   TEST_INVALID_REGEX("(?(123){1})", perl);

-+   TEST_INVALID_REGEX("(?(?<=A)*)", perl);

-+   TEST_INVALID_REGEX("(?(?<=A)+)", perl);

-+

-+   TEST_INVALID_REGEX("(?<!*|^)", perl);

-+   TEST_INVALID_REGEX("(?<!*|A)", perl);

-+   TEST_INVALID_REGEX("(?<=?|A)", perl);

-+   TEST_INVALID_REGEX("(?<=*|\B)", perl);

++
++   TEST_INVALID_REGEX("(?(?!#?)+)", perl);
++   TEST_INVALID_REGEX("(?(?=:-){0})", perl);
++   TEST_INVALID_REGEX("(?(123){1})", perl);
++   TEST_INVALID_REGEX("(?(?<=A)*)", perl);
++   TEST_INVALID_REGEX("(?(?<=A)+)", perl);
++
++   TEST_INVALID_REGEX("(?<!*|^)", perl);
++   TEST_INVALID_REGEX("(?<!*|A)", perl);
++   TEST_INVALID_REGEX("(?<=?|A)", perl);
++   TEST_INVALID_REGEX("(?<=*|\B)", perl);
  }
  
- void test_options()
diff -r 51795073d33f -r 2e05c06901df meta-pkgs/boost/patches/patch-r42745
--- a/meta-pkgs/boost/patches/patch-r42745      Wed Apr 30 21:39:43 2008 +0000
+++ b/meta-pkgs/boost/patches/patch-r42745      Thu May 01 09:23:49 2008 +0000
@@ -1,15 +1,13 @@
-$NetBSD: patch-r42745,v 1.2 2008/04/30 07:13:26 jmmv Exp $
+$NetBSD: patch-r42745,v 1.3 2008/05/01 09:23:49 jmmv Exp $
 
 Fix for CVE-2008-0171.  Patch from Boost's svn repository, r42745.
 
---- libs/regex/test/regress/test_perl_ex.cpp.orig      2008-04-30 09:01:13.000000000 +0200
-+++ libs/regex/test/regress/test_perl_ex.cpp   2008-04-30 09:03:04.000000000 +0200
-@@ -131,7 +131,7 @@ void test_conditionals()
-    TEST_INVALID_REGEX("(?<!*|^)", perl);

-    TEST_INVALID_REGEX("(?<!*|A)", perl);

-    TEST_INVALID_REGEX("(?<=?|A)", perl);

--   TEST_INVALID_REGEX("(?<=*|\B)", perl);

-+   TEST_INVALID_REGEX("(?<=*|\\B)", perl);

+--- libs/regex/test/regress/test_perl_ex.cpp (revision 42674)
++++ libs/regex/test/regress/test_perl_ex.cpp (revision 42745)
+@@ -132,5 +132,5 @@
+    TEST_INVALID_REGEX("(?<!*|A)", perl);
+    TEST_INVALID_REGEX("(?<=?|A)", perl);
+-   TEST_INVALID_REGEX("(?<=*|\B)", perl);
++   TEST_INVALID_REGEX("(?<=*|\\B)", perl);
  }
  
- void test_options()



Home | Main Index | Thread Index | Old Index