summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortastytea <tastytea@tastytea.de>2018-12-15 16:55:05 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2018-12-22 12:43:25 +0100
commit5451d4f23ca8838892763b30471a5d3a9479e6b2 (patch)
tree945b4a82c2d096f3fb0b1716c0cc93a3faa875f9 /media-gfx/viewnior/files
parentmedia-gfx/viewnior: Added Ronny Gutbrod as proxy-maintainer (diff)
downloadgentoo-5451d4f23ca8838892763b30471a5d3a9479e6b2.tar.gz
gentoo-5451d4f23ca8838892763b30471a5d3a9479e6b2.tar.bz2
gentoo-5451d4f23ca8838892763b30471a5d3a9479e6b2.zip
media-gfx/viewnior: Bump to version 1.7-r1
Signed-off-by: Ronny Gutbrod <gentoo@tastytea.de> Package-Manager: Portage-2.3.51, Repoman-2.3.11 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-gfx/viewnior/files')
-rw-r--r--media-gfx/viewnior/files/0.17-Replace-calls-to-getenv-with-g_getenv.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/media-gfx/viewnior/files/0.17-Replace-calls-to-getenv-with-g_getenv.patch b/media-gfx/viewnior/files/0.17-Replace-calls-to-getenv-with-g_getenv.patch
new file mode 100644
index 000000000000..fc7fc119359a
--- /dev/null
+++ b/media-gfx/viewnior/files/0.17-Replace-calls-to-getenv-with-g_getenv.patch
@@ -0,0 +1,28 @@
+Using getenv() triggers compile errors in Open Build Service.
+Thanks to Axel Köllhofer for the patch.
+---
+ src/uni-utils.c | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/uni-utils.c b/src/uni-utils.c
+index 8152848..1b4992a 100755
+--- a/src/uni-utils.c
++++ b/src/uni-utils.c
+@@ -106,10 +106,10 @@ uni_detect_desktop_environment ()
+ {
+ VnrPrefsDesktop environment = VNR_PREFS_DESKTOP_GNOME3;
+
+- gchar *xdg_current_desktop = g_ascii_strup(getenv("XDG_CURRENT_DESKTOP"), -1);
+- gchar *xdg_session_desktop = g_ascii_strup(getenv("XDG_SESSION_DESKTOP"), -1);
+- gchar *desktop_session = g_ascii_strdown(getenv("DESKTOP_SESSION"), -1);
+- gchar *gdmsession = g_ascii_strdown(getenv("GDMSESSION"), -1);
++ gchar *xdg_current_desktop = g_ascii_strup(g_getenv("XDG_CURRENT_DESKTOP"), -1);
++ gchar *xdg_session_desktop = g_ascii_strup(g_getenv("XDG_SESSION_DESKTOP"), -1);
++ gchar *desktop_session = g_ascii_strdown(g_getenv("DESKTOP_SESSION"), -1);
++ gchar *gdmsession = g_ascii_strdown(g_getenv("GDMSESSION"), -1);
+
+ if (!g_strcmp0(xdg_current_desktop, "GNOME") || !g_strcmp0(xdg_session_desktop, "GNOME"))
+ {
+--
+2.18.1
+