x11-misc/wmakerconf: fix compilation with glib 2.62
authorBernard Cafarelli <voyageur@gentoo.org>
Sat, 7 Mar 2020 22:25:07 +0000 (23:25 +0100)
committerBernard Cafarelli <voyageur@gentoo.org>
Sat, 7 Mar 2020 22:28:48 +0000 (23:28 +0100)
Closes: https://bugs.gentoo.org/711042
Package-Manager: Portage-2.3.92, Repoman-2.3.20
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
x11-misc/wmakerconf/files/wmakerconf-2.12-glib-2.62.patch [new file with mode: 0644]
x11-misc/wmakerconf/wmakerconf-2.12-r3.ebuild

diff --git a/x11-misc/wmakerconf/files/wmakerconf-2.12-glib-2.62.patch b/x11-misc/wmakerconf/files/wmakerconf-2.12-glib-2.62.patch
new file mode 100644 (file)
index 0000000..422aa9e
--- /dev/null
@@ -0,0 +1,14 @@
+diff -Naur wmakerconf-2.12.orig/src/error.h wmakerconf-2.12/src/error.h
+--- wmakerconf-2.12.orig/src/error.h   2001-04-18 23:13:33.000000000 +0200
++++ wmakerconf-2.12/src/error.h        2020-03-07 23:21:51.336443663 +0100
+@@ -37,8 +37,8 @@
+ #define  N_(string)   (string)
+ /* I18n */
+-#define error     error_line=__LINE__,error_file=__FILE__,_error
+-#define warning   error_line=__LINE__,error_file=__FILE__,_warning
++#define error     _error
++#define warning   _warning
+ #define MAXSTRLEN 1024
+ #undef NO
index 57ed8fa294b43fa972a29c853d49b34da48a7ae9..dcb30653f05377ce5ba525a694df9fd50dc40154 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -27,6 +27,7 @@ PATCHES=(
        "${FILESDIR}"/${P}-desktop.patch
        "${FILESDIR}"/${P}-format-security.patch
        "${FILESDIR}"/${P}-wmaker-0.95_support.patch
+       "${FILESDIR}"/${P}-glib-2.62.patch
 )
 
 src_prepare() {