[packages/guitarix] fix build with glib2 >= 2.68 (from gentoo)

atler atler at pld-linux.org
Mon Aug 16 20:38:27 CEST 2021


commit b5878a85ccbdf272a3014288fa31cda9c04882b9
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Aug 16 20:38:09 2021 +0200

    fix build with glib2 >= 2.68 (from gentoo)

 glib2.68.patch | 13 +++++++++++++
 guitarix.spec  |  2 ++
 2 files changed, 15 insertions(+)
---
diff --git a/guitarix.spec b/guitarix.spec
index b78fd9e..c42472b 100644
--- a/guitarix.spec
+++ b/guitarix.spec
@@ -6,6 +6,7 @@ License:	GPL v2+, GPL v3+ (abgate plugin)
 Group:		Applications/Multimedia
 Source0:	http://downloads.sourceforge.net/guitarix/%{name}2-%{version}.tar.xz
 # Source0-md5:	4fd6babdf42881d8b99837647049661f
+Patch0:		glib2.68.patch
 URL:		https://guitarix.org/
 BuildRequires:	avahi-gobject-devel
 BuildRequires:	bluez-libs-devel
@@ -47,6 +48,7 @@ use the feedback and feedforward sliders.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 CC="%{__cc}" \
diff --git a/glib2.68.patch b/glib2.68.patch
new file mode 100644
index 0000000..345f5e9
--- /dev/null
+++ b/glib2.68.patch
@@ -0,0 +1,13 @@
+diff --git a/src/headers/gx_system.h b/src/headers/gx_system.h
+index d334ecfc..88d97567 100644
+--- a/src/headers/gx_system.h
++++ b/src/headers/gx_system.h
+@@ -132,7 +132,7 @@ inline T *atomic_get(T*& p) {
+ 
+ template <class T>
+ inline bool atomic_compare_and_exchange(T **p, T *oldv, T *newv) {
+-    return g_atomic_pointer_compare_and_exchange(reinterpret_cast<void* volatile*>(p), static_cast<void*>(oldv), newv);
++    return g_atomic_pointer_compare_and_exchange(reinterpret_cast<void**>(p), static_cast<void*>(oldv), newv);
+ }
+ 
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/guitarix.git/commitdiff/b5878a85ccbdf272a3014288fa31cda9c04882b9



More information about the pld-cvs-commit mailing list