commit:     6aae3342a2b4735778c95c35ba1d8cc39bb3b936
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Wed Jul  8 15:04:15 2020 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Wed Jul  8 15:07:51 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6aae3342

x11-apps/radeon-profile: Revbump for new daemon socket location.

Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 .../files/radeon-profile-20200504-run_subdir.patch | 30 ++++++++++++++++++++++
 ...04.ebuild => radeon-profile-20200504-r1.ebuild} |  8 +++++-
 2 files changed, 37 insertions(+), 1 deletion(-)

diff --git 
a/x11-apps/radeon-profile/files/radeon-profile-20200504-run_subdir.patch 
b/x11-apps/radeon-profile/files/radeon-profile-20200504-run_subdir.patch
new file mode 100644
index 00000000000..052a143e793
--- /dev/null
+++ b/x11-apps/radeon-profile/files/radeon-profile-20200504-run_subdir.patch
@@ -0,0 +1,30 @@
+From 576d03da0e33cdc31535cd724daaf1cdde3ac902 Mon Sep 17 00:00:00 2001
+From: Lars Wendler <[email protected]>
+Date: Wed, 8 Jul 2020 16:33:38 +0200
+Subject: [PATCH] Read radeon-profile-daemon-server socket from
+ /run/radeon-profile-daemon/
+
+Gentoo has moved the radeon-profile-daemon-server socket file into that
+subdir in order to provide secure access permissions.
+
+Signed-off-by: Lars Wendler <[email protected]>
+---
+ radeon-profile/daemonComm.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/radeon-profile/daemonComm.cpp b/radeon-profile/daemonComm.cpp
+index 21ec38f..dff00a0 100644
+--- a/radeon-profile/daemonComm.cpp
++++ b/radeon-profile/daemonComm.cpp
+@@ -34,7 +34,7 @@ void DaemonComm::sendConnectionConfirmation() {
+ void DaemonComm::connectToDaemon() {
+     qDebug() << "Connecting to daemon...";
+     signalSender->abort();
+-    signalSender->connectToServer("/run/radeon-profile-daemon-server");
++    
signalSender->connectToServer("/run/radeon-profile-daemon/radeon-profile-daemon-server");
+ }
+ 
+ void DaemonComm::disconnectDaemon() {
+-- 
+2.27.0
+

diff --git a/x11-apps/radeon-profile/radeon-profile-20200504.ebuild 
b/x11-apps/radeon-profile/radeon-profile-20200504-r1.ebuild
similarity index 88%
rename from x11-apps/radeon-profile/radeon-profile-20200504.ebuild
rename to x11-apps/radeon-profile/radeon-profile-20200504-r1.ebuild
index 830f17504e3..d836b3ad1f8 100644
--- a/x11-apps/radeon-profile/radeon-profile-20200504.ebuild
+++ b/x11-apps/radeon-profile/radeon-profile-20200504-r1.ebuild
@@ -22,6 +22,7 @@ IUSE=""
 S="${WORKDIR}/${P}/${PN}"
 
 RDEPEND="
+       !<x11-apps/radeon-profile-daemon-20190603-r1
        dev-qt/qtcharts:5
        dev-qt/qtcore:5
        dev-qt/qtgui:5
@@ -38,8 +39,13 @@ DEPEND="
        x11-libs/libdrm
 "
 
+PATCHES=(
+       "${FILESDIR}/${PN}-20200504-run_subdir.patch"
+)
+
 src_prepare() {
-       default
+       eapply -p2 "${PATCHES[@]}"
+       eapply_user
        sed 's@TrayIcon;@@' -i extra/${PN}.desktop || die
 }
 

Reply via email to