Hello community,

here is the log from the commit of package swig for openSUSE:Factory checked in 
at 2014-08-29 17:42:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/swig (Old)
 and      /work/SRC/openSUSE:Factory/.swig.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "swig"

Changes:
--------
--- /work/SRC/openSUSE:Factory/swig/swig.changes        2014-06-19 
13:20:06.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.swig.new/swig.changes   2014-08-29 
17:42:56.000000000 +0200
@@ -1,0 +2,6 @@
+Mon Aug 25 14:17:29 CEST 2014 - [email protected]
+
+- support nested classes in ruby [bnc#892480]
+  new patch: nested_classes.diff
+
+-------------------------------------------------------------------

New:
----
  nested_classes.diff

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ swig.spec ++++++
--- /var/tmp/diff_new_pack.UUFuHd/_old  2014-08-29 17:42:59.000000000 +0200
+++ /var/tmp/diff_new_pack.UUFuHd/_new  2014-08-29 17:42:59.000000000 +0200
@@ -25,6 +25,7 @@
 Url:            http://www.swig.org/
 Source:         
http://sourceforge.net/projects/swig/files/swig/%{name}-%{version}/%{name}-%{version}.tar.gz
 Source1:        %{name}.rpmlintrc
+Patch:          nested_classes.diff
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  boost-devel
@@ -119,6 +120,7 @@
 
 %prep
 %setup -q
+%patch
 
 %build
 %configure --disable-ccache

++++++ nested_classes.diff ++++++
--- ./Source/CParse/parser.c.orig       2014-08-26 12:24:53.381788068 +0000
+++ ./Source/CParse/parser.c    2014-08-26 12:36:45.700287073 +0000
@@ -1065,7 +1065,7 @@ static Node *nested_forward_declaration(
     }
   }
 
-  if (!GetFlag(currentOuterClass, "nested")) {
+  if (!currentOuterClass || !GetFlag(currentOuterClass, "nested")) {
     if (nn && Equal(nodeType(nn), "classforward")) {
       Node *n = nn;
       SWIG_WARN_NODE_BEGIN(n);
@@ -7562,6 +7562,8 @@ yyreduce:
                   } else if (nscope_inner) {
                     /* this is tricky */
                     /* we add the declaration in the original namespace */
+                    if (Strcmp(nodeType(nscope_inner), "class") == 0 && 
cparse_cplusplus && ignore_nested_classes && !GetFlag((yyval.node), 
"feature:flatnested"))
+                      (yyval.node) = nested_forward_declaration((yyvsp[(1) - 
(9)].id), (yyvsp[(2) - (9)].id), (yyvsp[(3) - (9)].str), Copy((yyvsp[(3) - 
(9)].str)), (yyvsp[(9) - (9)].node));
                     appendChild(nscope_inner, (yyval.node));
                     Swig_symbol_setscope(Getattr(nscope_inner, "symtab"));
                     Delete(Namespaceprefix);
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to