Hello community,

here is the log from the commit of package creduce for openSUSE:Factory checked 
in at 2015-09-17 09:21:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/creduce (Old)
 and      /work/SRC/openSUSE:Factory/.creduce.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "creduce"

Changes:
--------
--- /work/SRC/openSUSE:Factory/creduce/creduce.changes  2015-07-03 
00:02:48.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.creduce.new/creduce.changes     2015-09-17 
09:21:46.000000000 +0200
@@ -1,0 +2,8 @@
+Tue Sep 15 08:23:05 UTC 2015 - idon...@suse.com
+
+- Add llvm-3.7.patch to fix compilation with llvm 3.7
+- Require llvm >= 3.7
+- Add missing astyle/indent Requires
+- Move perl BuildRequires into Requires, they are needed at runtime
+
+-------------------------------------------------------------------

New:
----
  llvm-3.7.patch

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

Other differences:
------------------
++++++ creduce.spec ++++++
--- /var/tmp/diff_new_pack.7jdxZ9/_old  2015-09-17 09:21:47.000000000 +0200
+++ /var/tmp/diff_new_pack.7jdxZ9/_new  2015-09-17 09:21:47.000000000 +0200
@@ -24,18 +24,21 @@
 Group:          Development/Tools/Other
 Url:            https://github.com/csmith-project/creduce
 Source:         
https://github.com/csmith-project/%{name}/archive/creduce-%{version}.tar.gz
-BuildRequires:  delta
+Patch1:         llvm-3.7.patch
 BuildRequires:  flex
-BuildRequires:  llvm-clang-devel >= 3.6.0
-BuildRequires:  llvm-devel >= 3.6.0
+BuildRequires:  llvm-clang-devel >= 3.7.0
+BuildRequires:  llvm-devel >= 3.7.0
 BuildRequires:  ncurses-devel
-BuildRequires:  perl-Benchmark-Timer
-BuildRequires:  perl-Exporter-Lite
-BuildRequires:  perl-File-Which
-BuildRequires:  perl-Getopt-Tabular
-BuildRequires:  perl-Regexp-Common
-BuildRequires:  perl-Sys-CPU
 BuildRequires:  zlib-devel
+Requires:       astyle
+Requires:       delta
+Requires:       indent
+Requires:       perl-Benchmark-Timer
+Requires:       perl-Exporter-Lite
+Requires:       perl-File-Which
+Requires:       perl-Getopt-Tabular
+Requires:       perl-Regexp-Common
+Requires:       perl-Sys-CPU
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -48,6 +51,7 @@
 
 %prep
 %setup -q -n %{name}-%{name}-%{version}
+%patch1 -p1
 
 %build
 export CXX=clang++
@@ -59,7 +63,7 @@
 
 %files
 %defattr(-,root,root)
-%doc ChangeLog README COPYING
+%doc README COPYING
 %{_bindir}/creduce
 %{_bindir}/clang_delta
 %{_bindir}/clex

++++++ llvm-3.7.patch ++++++
diff --git a/clang_delta/RemoveNamespace.cpp b/clang_delta/RemoveNamespace.cpp
index 3e9ab98..c2559d7 100644
--- a/clang_delta/RemoveNamespace.cpp
+++ b/clang_delta/RemoveNamespace.cpp
@@ -742,7 +742,7 @@ bool RemoveNamespace::hasNameConflict(const NamedDecl *ND,
     return false;
 
   DeclarationName Name = ND->getDeclName();
-  DeclContext::lookup_const_result Result = ParentCtx->lookup(Name);
+  DeclContext::lookup_result Result = ParentCtx->lookup(Name);
   return !Result.empty();
 }
 
diff --git a/clang_delta/RemoveNestedFunction.cpp 
b/clang_delta/RemoveNestedFunction.cpp
index dd59b7d..411ac6b 100644
--- a/clang_delta/RemoveNestedFunction.cpp
+++ b/clang_delta/RemoveNestedFunction.cpp
@@ -427,7 +427,7 @@ bool RemoveNestedFunction::addNewTmpVariable(ASTContext 
&ASTCtx)
     return RewriteHelper->addLocalVarToFunc(VarStr, TheFuncDecl);
   }
   //  return writeNewIntTmpVariable(VarStr);
-  QT = TheCallExpr->getCallReturnType();
+  QT = TheCallExpr->getCallReturnType(ASTCtx);
   return writeNewTmpVariable(QT, VarStr);
 }
 
diff --git a/clang_delta/RemoveUnusedFunction.cpp 
b/clang_delta/RemoveUnusedFunction.cpp
index bfd83c2..41b7d6c 100644
--- a/clang_delta/RemoveUnusedFunction.cpp
+++ b/clang_delta/RemoveUnusedFunction.cpp
@@ -647,8 +647,8 @@ RemoveUnusedFunction::lookupFunctionDeclShallow(const 
DeclarationName &DName,
 {
   if (dyn_cast<LinkageSpecDecl>(Ctx))
     return NULL;
-  DeclContext::lookup_const_result Result = Ctx->lookup(DName);
-  for (DeclContext::lookup_const_iterator I = Result.begin(), E = Result.end();
+  DeclContext::lookup_result Result = Ctx->lookup(DName);
+  for (auto I = Result.begin(), E = Result.end();
        I != E; ++I) {
     if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(*I))
       return FD;
diff --git a/clang_delta/ReplaceCallExpr.cpp b/clang_delta/ReplaceCallExpr.cpp
index c274244..687313d 100644
--- a/clang_delta/ReplaceCallExpr.cpp
+++ b/clang_delta/ReplaceCallExpr.cpp
@@ -153,7 +153,7 @@ bool ReplaceCallExprVisitor::VisitCallExpr(CallExpr *CE)
   if (FD->getBuiltinID())
     T = FD->getReturnType().getTypePtr();
   else 
-    T = CE->getCallReturnType().getTypePtr();
+    T = CE->getCallReturnType(FD->getASTContext()).getTypePtr();
   if (T->isVoidType())
     return true;
 
diff --git a/clang_delta/SimpleInliner.cpp b/clang_delta/SimpleInliner.cpp
index 50bc5e4..05d5993 100644
--- a/clang_delta/SimpleInliner.cpp
+++ b/clang_delta/SimpleInliner.cpp
@@ -390,7 +390,7 @@ void SimpleInliner::createReturnVar(void)
 {
   const Type *FDType = CurrentFD->getReturnType().getTypePtr();
   const Type *CallExprType =
-    TheCallExpr->getCallReturnType().getTypePtr();
+    TheCallExpr->getCallReturnType(CurrentFD->getASTContext()).getTypePtr();
 
   // We don't need tmp var
   if (FDType->isVoidType() && CallExprType->isVoidType()) {
diff --git a/clang_delta/Transformation.cpp b/clang_delta/Transformation.cpp
index 077b53d..4ef8168 100644
--- a/clang_delta/Transformation.cpp
+++ b/clang_delta/Transformation.cpp
@@ -462,8 +462,8 @@ const Type* Transformation::getBaseType(const Type *T)
 const FunctionDecl *Transformation::lookupFunctionDeclInGlobal(
         DeclarationName &DName, const DeclContext *Ctx)
 {
-  DeclContext::lookup_const_result Result = Ctx->lookup(DName);
-  for (DeclContext::lookup_const_iterator I = Result.begin(), E = Result.end();
+  DeclContext::lookup_result Result = Ctx->lookup(DName);
+  for (auto I = Result.begin(), E = Result.end();
        I != E; ++I) {
     if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(*I)) {
       return FD;
@@ -534,8 +534,8 @@ const FunctionDecl 
*Transformation::lookupFunctionDeclFromCtx(
 {
   if (dyn_cast<LinkageSpecDecl>(Ctx))
     return NULL;
-  DeclContext::lookup_const_result Result = Ctx->lookup(DName);
-  for (DeclContext::lookup_const_iterator I = Result.begin(), E = Result.end();
+  DeclContext::lookup_result Result = Ctx->lookup(DName);
+  for (auto I = Result.begin(), E = Result.end();
        I != E; ++I) {
     if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(*I)) {
       return FD;

diff --git a/configure b/configure
index ac9b91c..f305439 100755
--- a/configure
+++ b/configure
@@ -15855,7 +15855,7 @@ fi
     as_fn_error $? "LLVM is required but program \`llvm-config' cannot be 
found in $with_llvm_path" "$LINENO" 5
   fi
 
-  if test -n "3.6"; then
+  if test -n "3.7"; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LLVM version" >&5
 $as_echo_n "checking for LLVM version... " >&6; }
     LLVM_VERSION=`$LLVM_CONFIG --version`
@@ -15880,7 +15880,7 @@ $as_echo "$LLVM_VERSION" >&6; }
                      -e 's/[^0-9]//g'`
 
 
-  ax_compare_version_B=`echo "3.6" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
+  ax_compare_version_B=`echo "3.7" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
@@ -15895,7 +15895,7 @@ x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed 
"s/x${ax_compare_version
     if test "$ax_compare_version" = "true" ; then
     :
     else
-        as_fn_error $? "LLVM version 3.6 or later is required" "$LINENO" 5
+        as_fn_error $? "LLVM version 3.7 or later is required" "$LINENO" 5
 
   fi
 
diff --git a/configure.ac b/configure.ac
index ca6b8a7..44cc53c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -37,7 +37,7 @@ AM_PROG_CC_C_O
 AC_PROG_CXX
 AC_PROG_LIBTOOL
 
-AX_LLVM([3.6],[engine])
+AX_LLVM([3.7],[engine])
 
 # Handle configure-time choice of assertion-checking method.
 #

Reply via email to