Accepting request 588488 from KDE:Frameworks5
OBS-URL: https://build.opensuse.org/request/show/588488 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kdesu?expand=0&rev=51
This commit is contained in:
commit
3c02246b73
31
0001-Unset-QT_QPA_PLATFORM-to-get-xcb.patch
Normal file
31
0001-Unset-QT_QPA_PLATFORM-to-get-xcb.patch
Normal file
@ -0,0 +1,31 @@
|
||||
From 42b0b5adb9154519a2eda7da81a993c17a536f0a Mon Sep 17 00:00:00 2001
|
||||
From: Fabian Vogt <fabian@ritter-vogt.de>
|
||||
Date: Sat, 17 Mar 2018 17:02:39 +0100
|
||||
Subject: [PATCH] Unset QT_QPA_PLATFORM to get xcb
|
||||
|
||||
Currently we can't get wayland applications to work, as they rely on
|
||||
XDG_RUNTIME_DIR being set.
|
||||
With wayland 1.15, WAYLAND_DISPLAY can be an absolute path though, so this
|
||||
can be replaced by setting WAYLAND_DISPLAY=$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY
|
||||
before unsetting XDG_RUNTIME_DIR and removing the unsetenv of QT_QPA_PLATFORM.
|
||||
---
|
||||
src/kdesu_stub.c | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/src/kdesu_stub.c b/src/kdesu_stub.c
|
||||
index 49db577..5038628 100644
|
||||
--- a/src/kdesu_stub.c
|
||||
+++ b/src/kdesu_stub.c
|
||||
@@ -315,6 +315,9 @@ int main()
|
||||
/* Handle display */
|
||||
|
||||
if (strcmp(params[P_DISPLAY].value, "no")) {
|
||||
+ /* We only handle X11 - so unset QT_QPA_PLATFORM to get xcb. */
|
||||
+ unsetenv("QT_QPA_PLATFORM");
|
||||
+
|
||||
xsetenv("DISPLAY", params[P_DISPLAY].value);
|
||||
if (params[P_DISPLAY_AUTH].value[0]) {
|
||||
int fd2;
|
||||
--
|
||||
2.16.2
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a69169d7de137f2810f287c49aa0281038c53b6bd8c879298967fea22b0a94d6
|
||||
size 45016
|
3
kdesu-5.44.0.tar.xz
Normal file
3
kdesu-5.44.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e2e38bf4bf7cc0f2ffb16d2f677f36b930a32ced452a53379d983f6bd999cbdc
|
||||
size 45008
|
@ -1,3 +1,19 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 19 09:59:40 UTC 2018 - fabian@ritter-vogt.de
|
||||
|
||||
- Add patch to allow kdesu to be used on wayland:
|
||||
* 0001-Unset-QT_QPA_PLATFORM-to-get-xcb.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 12 23:29:41 CET 2018 - lbeltrame@kde.org
|
||||
|
||||
- Update to 5.44.0
|
||||
* New feature release
|
||||
* For more details please see:
|
||||
* https://www.kde.org/announcements/kde-frameworks-5.44.0.php
|
||||
- Changes since 5.43.0:
|
||||
* None
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 12 23:42:08 CET 2018 - lbeltrame@kde.org
|
||||
|
||||
|
10
kdesu.spec
10
kdesu.spec
@ -18,13 +18,13 @@
|
||||
|
||||
%bcond_without lang
|
||||
%define lname libKF5Su5
|
||||
%define _tar_path 5.43
|
||||
%define _tar_path 5.44
|
||||
# Full KF5 version (e.g. 5.33.0)
|
||||
%{!?_kf5_version: %global _kf5_version %{version}}
|
||||
# Last major and minor KF5 version (e.g. 5.33)
|
||||
%{!?_kf5_bugfix_version: %global _kf5_bugfix_version %(echo %{_kf5_version} | awk -F. '{print $1"."$2}')}
|
||||
Name: kdesu
|
||||
Version: 5.43.0
|
||||
Version: 5.44.0
|
||||
Release: 0
|
||||
%define kf5_version %{version}
|
||||
BuildRequires: cmake >= 3.0
|
||||
@ -38,13 +38,15 @@ BuildRequires: kservice-devel >= %{_kf5_bugfix_version}
|
||||
BuildRequires: cmake(Qt5Core) >= 5.6.0
|
||||
BuildRequires: pkgconfig(x11)
|
||||
Summary: User interface for running shell commands with root privileges
|
||||
License: LGPL-2.1+
|
||||
License: LGPL-2.1-or-later
|
||||
Group: System/GUI/KDE
|
||||
Url: http://www.kde.org
|
||||
Source: http://download.kde.org/stable/frameworks/%{_tar_path}/%{name}-%{version}.tar.xz
|
||||
Source1: baselibs.conf
|
||||
# PATCH-FIX-OPENSUSE fpie.patch -- make kdesud compile/link with -(f)pie flags
|
||||
Patch0: fpie.patch
|
||||
# PATCH-FIX-OPENSUSE
|
||||
Patch1: 0001-Unset-QT_QPA_PLATFORM-to-get-xcb.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@ -86,7 +88,7 @@ Development files.
|
||||
%lang_package -n %lname
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%autopatch -p1
|
||||
|
||||
%build
|
||||
%cmake_kf5 -d build
|
||||
|
Loading…
Reference in New Issue
Block a user