Hello community,

here is the log from the commit of package nasc for openSUSE:Factory checked in 
at 2019-12-09 21:35:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nasc (Old)
 and      /work/SRC/openSUSE:Factory/.nasc.new.4691 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "nasc"

Mon Dec  9 21:35:11 2019 rev:7 rq:755076 version:0.5.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/nasc/nasc.changes        2019-06-12 
13:11:55.944965586 +0200
+++ /work/SRC/openSUSE:Factory/.nasc.new.4691/nasc.changes      2019-12-09 
21:35:22.854094431 +0100
@@ -1,0 +2,5 @@
+Sun Dec  8 10:55:09 UTC 2019 - Luigi Baldoni <[email protected]>
+
+- Added nasc-fix_gcc9_build.patch
+
+-------------------------------------------------------------------

New:
----
  nasc-fix_gcc9_build.patch

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

Other differences:
------------------
++++++ nasc.spec ++++++
--- /var/tmp/diff_new_pack.Ebu9KN/_old  2019-12-09 21:35:24.070093951 +0100
+++ /var/tmp/diff_new_pack.Ebu9KN/_new  2019-12-09 21:35:24.102093939 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package nasc
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,6 +24,8 @@
 Group:          Productivity/Scientific/Math
 URL:            http://parnold-x.github.io/nasc/
 Source:         
https://github.com/parnold-x/nasc/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM nasc-fix_gcc9_build.patch
+Patch0:         nasc-fix_gcc9_build.patch
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
 BuildRequires:  pkgconfig
@@ -50,7 +52,7 @@
 answer changes, so does the equations it is used in.
 
 %prep
-%setup -q
+%autosetup -p1
 
 %build
 %cmake \
@@ -62,8 +64,8 @@
 %install
 %cmake_install %{?_smp_mflags}
 
-%post
 %if 0%{?suse_version} < 1500
+%post
 %glib2_gsettings_schema_post
 %icon_theme_cache_post
 %desktop_database_post

++++++ nasc-fix_gcc9_build.patch ++++++
>From 46b9b80e228b6b86001bded45d85e073a9411549 Mon Sep 17 00:00:00 2001
From: Luigi Baldoni <[email protected]>
Date: Sun, 8 Dec 2019 12:03:01 +0100
Subject: [PATCH] Fix build with gcc9

---
 libqalculatenasc/QalculateNasc.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libqalculatenasc/QalculateNasc.cc 
b/libqalculatenasc/QalculateNasc.cc
index db0c09a..e6dc625 100644
--- a/libqalculatenasc/QalculateNasc.cc
+++ b/libqalculatenasc/QalculateNasc.cc
@@ -5,6 +5,7 @@
 #include <thread>
 #include <algorithm>
 
+using namespace std;
 std::shared_ptr<Calculator> calc;
 MathStructure *mstruct;
 
@@ -275,4 +276,4 @@ std::string intern_calc (std::string input) {
     std::string result_str = mstruct->print (printops);
 
     return result_str;//calc->localizeExpression (result_str);
-}
\ No newline at end of file
+}

Reply via email to