From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0RZ6-0004bM-DE for guix-patches@gnu.org; Fri, 06 Oct 2017 08:17:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0RZ5-0004IJ-1f for guix-patches@gnu.org; Fri, 06 Oct 2017 08:17:16 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:43701) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e0RZ4-0004HU-L6 for guix-patches@gnu.org; Fri, 06 Oct 2017 08:17:14 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e0RZ4-00078o-DY for guix-patches@gnu.org; Fri, 06 Oct 2017 08:17:14 -0400 Subject: [bug#28720] [PATCH 22/23] gnu: ktexteditor: Symlink some files referred to by different names. Resent-Message-ID: From: Hartmut Goebel Date: Fri, 6 Oct 2017 14:16:35 +0200 Message-Id: <20171006121636.30904-23-h.goebel@crazy-compilers.com> In-Reply-To: <20171006121636.30904-1-h.goebel@crazy-compilers.com> References: <20171006121636.30904-1-h.goebel@crazy-compilers.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 28720@debbugs.gnu.org * gnu/package/kde-frameworks.scm (ktexteditor)[arguments] <#:phases>'add-symlinks': New phase. --- gnu/packages/kde-frameworks.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm index 5a4fe2ff0..8c0a33677 100644 --- a/gnu/packages/kde-frameworks.scm +++ b/gnu/packages/kde-frameworks.scm @@ -2848,7 +2848,16 @@ types or handled by application specific code.") (setenv "HOME" (getcwd)) ;; make Qt render "offscreen", required for tests (setenv "QT_QPA_PLATFORM" "offscreen") - #t))))) + #t)) + (add-after 'install 'add-symlinks + ;; Some package(s) (e.g. plasma-sdk) refer to these service types + ;; by the wrong name. I would prefer to patch those packages, but + ;; I cannot find the files! + (lambda* (#:key outputs #:allow-other-keys) + (let ((kst5 (string-append (assoc-ref outputs "out") + "/share/kservicetypes5/"))) + (symlink (string-append kst5 "ktexteditorplugin.desktop") + (string-append kst5 "ktexteditor-plugin.desktop")))))))) (home-page "https://community.kde.org/Frameworks") (synopsis "Full text editor component") (description "KTextEditor provides a powerful text editor component that you -- 2.13.5