aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Popov <arrowd@FreeBSD.org>2023-10-26 08:14:45 +0000
committerGleb Popov <arrowd@FreeBSD.org>2023-10-26 08:14:45 +0000
commitb8f914b93f0ace81f87298cbd320de117a2a25ac (patch)
tree77df49a142bd668bb4e5672ef8cf8b96e5d982fd
parent7d64b5be38bcd214877bfd9d4290a1baef6da9db (diff)
downloadports-b8f914b93f0ace81f87298cbd320de117a2a25ac.tar.gz
ports-b8f914b93f0ace81f87298cbd320de117a2a25ac.zip
x11/plasma5-plasma-workspace: Add a patch fixing Region&Language KCM (again).
Reported by: tcberner
-rw-r--r--x11/plasma5-plasma-workspace/Makefile1
-rw-r--r--x11/plasma5-plasma-workspace/files/patch-kcms_region_language25
2 files changed, 26 insertions, 0 deletions
diff --git a/x11/plasma5-plasma-workspace/Makefile b/x11/plasma5-plasma-workspace/Makefile
index 9aa36690f833..4945812470d6 100644
--- a/x11/plasma5-plasma-workspace/Makefile
+++ b/x11/plasma5-plasma-workspace/Makefile
@@ -1,5 +1,6 @@
PORTNAME= plasma-workspace
DISTVERSION= ${KDE_PLASMA_VERSION}
+PORTREVISION= 1
CATEGORIES= x11 kde kde-plasma
MAINTAINER= kde@FreeBSD.org
diff --git a/x11/plasma5-plasma-workspace/files/patch-kcms_region_language b/x11/plasma5-plasma-workspace/files/patch-kcms_region_language
new file mode 100644
index 000000000000..ec9122268cf3
--- /dev/null
+++ b/x11/plasma5-plasma-workspace/files/patch-kcms_region_language
@@ -0,0 +1,25 @@
+From 196966b02bf40a971bdf8888a2fa8ba7db0106f1 Mon Sep 17 00:00:00 2001
+From: Gleb Popov <6yearold@gmail.com>
+Date: Tue, 24 Oct 2023 22:03:20 +0300
+Subject: [PATCH] kcms/region_language: Fix check for GLIBC_LOCALE.
+
+The GLIBC_LOCALE_AUTO is created by the #cmakedefine01 directive and thus is
+always defined.
+---
+ config-workspace.h.cmake | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/config-workspace.h.cmake b/config-workspace.h.cmake
+index b10d8bc4ae..5e252be071 100644
+--- config-workspace.h.cmake
++++ config-workspace.h.cmake
+@@ -18,6 +18,6 @@
+ #cmakedefine01 GLIBC_LOCALE_AUTO
+ #cmakedefine01 GLIBC_LOCALE_GENERATED
+
+-#if defined(GLIBC_LOCALE_AUTO) || defined(GLIBC_LOCALE_GENERATED)
++#if GLIBC_LOCALE_AUTO == 1 || GLIBC_LOCALE_GENERATED == 1
+ #define GLIBC_LOCALE
+ #endif
+--
+GitLab