Hello community,

here is the log from the commit of package libalkimia for openSUSE:Factory 
checked in at 2017-07-04 09:12:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libalkimia (Old)
 and      /work/SRC/openSUSE:Factory/.libalkimia.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libalkimia"

Tue Jul  4 09:12:06 2017 rev:9 rq:507918 version:5.0.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/libalkimia/libalkimia.changes    2012-01-25 
12:18:55.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.libalkimia.new/libalkimia.changes       
2017-07-04 09:12:17.942538104 +0200
@@ -1,0 +2,10 @@
+Sat Jul  1 13:36:08 UTC 2017 - wba...@tmo.at
+
+- Update to version 5.0.0:
+  * add support for newer versions of cmake (>=2.8.7)
+  * use implicit sharing in AlkValue
+- Add Fix-AlkValue-operator-QString-w-valueRef.patch to fix
+  AlkValue::operator=(QString)
+- Adjust Urls and file lists
+
+-------------------------------------------------------------------

Old:
----
  137323-libalkimia-4.3.2.tar.bz2

New:
----
  Fix-AlkValue-operator-QString-w-valueRef.patch
  libalkimia-5.0.0.tar.xz

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

Other differences:
------------------
++++++ libalkimia.spec ++++++
--- /var/tmp/diff_new_pack.WCu1yJ/_old  2017-07-04 09:12:18.522456551 +0200
+++ /var/tmp/diff_new_pack.WCu1yJ/_new  2017-07-04 09:12:18.526455988 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package libalkimia
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,13 +17,15 @@
 
 
 Name:           libalkimia
-Version:        4.3.2
+Version:        5.0.0
 Release:        0
 Summary:        Library with common classes and functionality used by finance 
applications
 License:        LGPL-2.1+
 Group:          System/Libraries
-Url:            http://kde-apps.org/content/show.php/libalkimia?content=137323
-Source0:        
http://kde-apps.org/CONTENT/content-files/137323-%{name}-%{version}.tar.bz2
+Url:            https://kmymoney.org/
+Source0:        
https://download.kde.org/stable/alkimia/%{version}/src/%{name}-%{version}.tar.xz
+# PATCH-FIX-UPSTREAM Fix-AlkValue-operator-QString-w-valueRef.patch -- fix 
AlkValue::operator=(QString)
+Patch:          Fix-AlkValue-operator-QString-w-valueRef.patch
 BuildRequires:  doxygen
 BuildRequires:  gmp-devel
 BuildRequires:  libkde4-devel
@@ -36,21 +38,22 @@
 %package devel
 Summary:        Development Files for libalkimia
 Group:          Development/Languages/C and C++
-Requires:       libalkimia4 = %{version}
+Requires:       libalkimia5 = %{version}
 
 %description devel
 The development files for libalkimia.
 
-%package -n libalkimia4
+%package -n libalkimia5
 Summary:        Library with common classes and functionality used by finance 
applications
 Group:          System/Libraries
 
-%description -n libalkimia4
+%description -n libalkimia5
 libalkimia is a library with common classes and functionality used by finance
 applications for the KDE SC.
 
 %prep
 %setup -q
+%patch -p1
 
 %build
 %cmake_kde4 -d build
@@ -61,20 +64,19 @@
 %kde4_makeinstall
 cd ..
 
-%post -n libalkimia4 -p /sbin/ldconfig
+%post -n libalkimia5 -p /sbin/ldconfig
 
-%postun -n libalkimia4 -p /sbin/ldconfig
+%postun -n libalkimia5 -p /sbin/ldconfig
 
 %files devel
 %defattr(-,root,root,-)
-%doc libalkimia/{ChangeLog,ReleaseLog}
-%{_kde4_appsdir}/cmake/modules/FindLibAlkimia.cmake
 %{_kde4_includedir}/alkimia/
+%{_kde4_libdir}/cmake/LibAlkimia/
 %{_kde4_libdir}/libalkimia.so
 %{_libdir}/pkgconfig/libalkimia.pc
 
-%files -n libalkimia4
+%files -n libalkimia5
 %defattr(-,root,root,-)
-%{_kde4_libdir}/libalkimia.so.4*
+%{_kde4_libdir}/libalkimia.so.5*
 
 %changelog

++++++ Fix-AlkValue-operator-QString-w-valueRef.patch ++++++
>From 2e6172a7d723d53ff62fc3eaf2ea7208db0fd0a7 Mon Sep 17 00:00:00 2001
From: Pino Toscano <p...@kde.org>
Date: Mon, 20 Jun 2016 22:01:04 +0200
Subject: Fix AlkValue::operator=(QString) w/ valueRef()

Do not set a new Private directly, since it will destroy the old one
and invalidate the references to the internal m_val -- indeed, valgrind
complains about that, and AlkValueTest::valueRef() fails on any
architecture different than x86/x86_64.

Instead, copy m_val from a new temporary AlkValue.
---
 libalkimia/alkvalue.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libalkimia/alkvalue.cpp b/libalkimia/alkvalue.cpp
index 295ac06..9a52c1a 100644
--- a/libalkimia/alkvalue.cpp
+++ b/libalkimia/alkvalue.cpp
@@ -462,7 +462,8 @@ const AlkValue & AlkValue::operator=(double right)
 
 const AlkValue & AlkValue::operator=(const QString & right)
 {
-  d = AlkValue(right, QLatin1Char('.')).d;
+  AlkValue other(right, QLatin1Char('.'));
+  d->m_val = other.d->m_val;
   return *this;
 }
 
-- 
cgit v0.11.2


Reply via email to