From 61dabecd1f95240f6ae95e9a61b768c27b0aa72a Mon Sep 17 00:00:00 2001 From: Bernard Cafarelli Date: Sat, 7 Mar 2020 23:25:07 +0100 Subject: x11-misc/wmakerconf: fix compilation with glib 2.62 Closes: https://bugs.gentoo.org/711042 Package-Manager: Portage-2.3.92, Repoman-2.3.20 Signed-off-by: Bernard Cafarelli --- x11-misc/wmakerconf/files/wmakerconf-2.12-glib-2.62.patch | 14 ++++++++++++++ x11-misc/wmakerconf/wmakerconf-2.12-r3.ebuild | 3 ++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 x11-misc/wmakerconf/files/wmakerconf-2.12-glib-2.62.patch (limited to 'x11-misc/wmakerconf') 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 index 000000000000..422aa9e813a9 --- /dev/null +++ b/x11-misc/wmakerconf/files/wmakerconf-2.12-glib-2.62.patch @@ -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 diff --git a/x11-misc/wmakerconf/wmakerconf-2.12-r3.ebuild b/x11-misc/wmakerconf/wmakerconf-2.12-r3.ebuild index 57ed8fa294b4..dcb30653f053 100644 --- a/x11-misc/wmakerconf/wmakerconf-2.12-r3.ebuild +++ b/x11-misc/wmakerconf/wmakerconf-2.12-r3.ebuild @@ -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() { -- cgit v1.2.3-65-gdbad