[arch-commits] Commit in kalzium/trunk (PKGBUILD kalzium-openbabel3.patch)

Antonio Rojas arojas at archlinux.org
Thu Dec 12 17:14:14 UTC 2019


    Date: Thursday, December 12, 2019 @ 17:14:13
  Author: arojas
Revision: 371303

Fix crash caused by openbabel3 patch (FS#64819)

Modified:
  kalzium/trunk/PKGBUILD
  kalzium/trunk/kalzium-openbabel3.patch

--------------------------+
 PKGBUILD                 |    4 ++--
 kalzium-openbabel3.patch |    6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-12 16:01:03 UTC (rev 371302)
+++ PKGBUILD	2019-12-12 17:14:13 UTC (rev 371303)
@@ -3,7 +3,7 @@
 
 pkgname=kalzium
 pkgver=19.12.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Periodic Table of Elements"
 url="https://kde.org/applications/education/kalzium/"
 arch=(x86_64)
@@ -15,7 +15,7 @@
         kalzium-openbabel3.patch)
 sha256sums=('0d2a2db4dac5e0ef70b296cf621b42e50322b57500fd8aa7a001a0436ad3de33'
             'SKIP'
-            '010f10640fb80834f13556e6cf03f594118081d610701a82aeec043b7a44f1e8')
+            '820550c6443cec572b28338899d2be871acc42fc02654a0df48a306b7cce09d5')
 validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7  # Albert Astals Cid <aacid at kde.org>
               F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87) # Christoph Feck <cfeck at kde.org>
 

Modified: kalzium-openbabel3.patch
===================================================================
--- kalzium-openbabel3.patch	2019-12-12 16:01:03 UTC (rev 371302)
+++ kalzium-openbabel3.patch	2019-12-12 17:14:13 UTC (rev 371303)
@@ -17,9 +17,9 @@
  
 -    std::vector<double> color = OpenBabel::etab.GetRGB(el);
 -    c.setRgbF(color[0], color[1], color[2]);
-+    double *red, *green, *blue;
-+    OpenBabel::OBElements::GetRGB(el, red, green, blue);
-+    c.setRgbF(*red, *green, *blue);
++    double red, green, blue;
++    OpenBabel::OBElements::GetRGB(el, &red, &green, &blue);
++    c.setRgbF(red, green, blue);
  
      return QBrush(c);
  }



More information about the arch-commits mailing list