From patchwork Fri Jan 4 22:36:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Gesthuizen X-Patchwork-Id: 661 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4FFC516A1F; Fri, 4 Jan 2019 22:50:23 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from listsout.gnu.org (listsout.gnu.org [208.118.235.17]) by mira.cbaines.net (Postfix) with ESMTP id C47A316A1C for ; Fri, 4 Jan 2019 22:50:22 +0000 (GMT) Received: from localhost ([127.0.0.1]:60580 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfYII-0000Uj-5Z for patchwork@mira.cbaines.net; Fri, 04 Jan 2019 17:50:22 -0500 Received: from eggsout.gnu.org ([209.51.188.92]:56310 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfY5U-0001kg-3q for guix-patches@gnu.org; Fri, 04 Jan 2019 17:37:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfY5P-0000MM-Rl for guix-patches@gnu.org; Fri, 04 Jan 2019 17:37:08 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:57876) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gfY5O-0000Fw-3w for guix-patches@gnu.org; Fri, 04 Jan 2019 17:37:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gfY5N-00055v-Ug for guix-patches@gnu.org; Fri, 04 Jan 2019 17:37:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#33981] emacs-ggtags relies on GNU Global in path Resent-From: Tim Gesthuizen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 04 Jan 2019 22:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33981 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 33981@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.154664141219566 (code B ref -1); Fri, 04 Jan 2019 22:37:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Jan 2019 22:36:52 +0000 Received: from localhost ([127.0.0.1]:47097 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gfY5E-00055V-Bo for submit@debbugs.gnu.org; Fri, 04 Jan 2019 17:36:52 -0500 Received: from eggs.gnu.org ([208.118.235.92]:42811) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gfY5C-00055O-EQ for submit@debbugs.gnu.org; Fri, 04 Jan 2019 17:36:50 -0500 Received: from listsout.gnu.org ([208.118.235.17]:57523) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gfY5C-0008MH-4u for submit@debbugs.gnu.org; Fri, 04 Jan 2019 17:36:50 -0500 Received: from eggsout.gnu.org ([209.51.188.92]:56219 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfY5A-0001Es-VR for guix-patches@gnu.org; Fri, 04 Jan 2019 17:36:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfY57-00089v-QU for guix-patches@gnu.org; Fri, 04 Jan 2019 17:36:48 -0500 Received: from sonic303-21.consmr.mail.ir2.yahoo.com ([77.238.178.202]:35752) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gfY56-00081R-9H for guix-patches@gnu.org; Fri, 04 Jan 2019 17:36:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s2048; t=1546641402; bh=rNcEZgjclltnfYqJ37JDxxKhAqeyHNILOKxmAwkvVk0=; h=To:From:Subject:Date:From:Subject; b=HxP2dfXXD7/JRv5j0uypS4ypBkGpzi13Tmwp7cDN05yV2HRd8tDGxrHwLdGiZ52lfCa3cgBqPS070nPOB47jAdcIWYD9DlMrJlYveTY3HauFxVFL0yIGkUkAe5vEs01YWcrTk0+NjaZy5jBHI6EULwQJxtUgiCvsxKyUjSKw2VyJsHiAKIUOxAFfisYMg76zJV7G4RtkzJ2JKezf3FstYXeLQa0UKVgGAv9o4YC+83T850feicXreJxI0fWHGhE5/ncRy9HBRPgwXXgboPWC6tuvvUHPzmWkDeHlBtkWDWiqs8eWNrDyYSoZd9qOkx/xHpYGUGr9atHCCHPOhMxGUQ== X-YMail-OSG: 0J_OZHUVM1lvIa5CAyAqThLEEif0o3uoh_OgRJZtxNaAfwQhDd.eviGdOFeWuXN omULtmNkrk9wWRFqXDgwMH5wYxdhCcb2yafEig_QXWnQqGPr6BQd_5tH_HpGCMS.c99EHtn_Jt1h aTjZZE_g4iE.vi6Y7XVN5KLqU83l9riRIFi4Zx1uarPU1H0SYEDV4pPRGHTVd_w0pAB7qTVC3Fcm tTWAYOo1Kvx610ucx8IEFIbTFN8UxdlzglbpyB7ssAYCihGoH5GW1RszX7sICBorTqPGd6ka7h1s AaZ9Qs.O5WOG4zdWSUD1gnK5IKjszotKN85PYJ9JFA_59jSCmfm2XN54d6GCbiifN9JVQC4y9MbM xd2f7zjDkDnTUjmphsW8dLPqaTZy16azm1Wmw3hjEY60WRY3_4_asal1L0Q6bcFlden68rzv_MYf XCCD_mKyzsaAGK22qvC_hA5cqtS.X5ssGw_pqO30P.8VhIatpVknjMYOEnr93gIPJEyRoIM.ZN4. OR0KviwS87H4lTt2WD3cc8Vfoxy19IX9jrt4p_3.3L7mx28yjMrlfSFLV5K2AYI0Ee_kRI067jGg ASYjFUmZnwD95qlIyptcdyci3K_mkklOjuHh9iSLf8VyyFZkjoB2Vq0Sb2nMi8_ncAWmMoTb_ps. .uyckzuZfklNTelNrsbsZ59U146netnGYF16BXlCjtl9CHIM1IKW0Cz70oHSISh.g6s5iDPIR7K8 DbjyZxudXPcwPXIkggvpVznQMKIxghgDIlUCGg1eTvdS0qG5pEVmHgaELnDFNocxN3vXWBtHP.L7 Zn89K.cVG_3G12DHYxFwNyypNwYsRjmdMSsgxNjeVJAaIXfyxotD45GR5u.HS1vlDAyYrcIjOjEt m2jXpc5GheFTa5uS83VZsIUJKgDdZruixWUp7CLYlW3nkgo8jUJv3AoVUEgF.U4qysUGne_vqFeM aAwkhn0K8cWHShl8.JI1N7KVdxOJYSZFeqGjWmrdRFrr958UNyDe6XenS75QJrgHMmr.1cnHS7MZ sXrtJ32qTS8bDJfWWo3uTbNCFkLXhddCG7Yu1sZN8ejfJgVliNKiNyC3wUv9EB4o4hS5FaEPmDpM - Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.ir2.yahoo.com with HTTP; Fri, 4 Jan 2019 22:36:42 +0000 Received: from p5B221793.dip0.t-ipconnect.de (EHLO [192.168.178.27]) ([91.34.23.147]) by smtp403.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID f7812914668ee1eafec4f08f1b4f2a83 for ; Fri, 04 Jan 2019 22:36:39 +0000 (UTC) From: Tim Gesthuizen Message-ID: Date: Fri, 4 Jan 2019 23:36:38 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hi, emacs-ggtags relies on GNU Global binaries to be available in the path. The attached patch lets it search the binaries in the store item of GNU Global. Tim. From 86881737428991cc905e41b635b81025a1068254 Mon Sep 17 00:00:00 2001 From: Tim Gesthuizen Date: Tue, 25 Dec 2018 11:22:19 +0100 Subject: [PATCH] gnu: emacs-ggtags: Don't require GNU Global in path emacs-ggtags relies on the GNU Global tools (global and gtags) to be available in the path. This way it will grab some random executable if it will find executables at all. This is fixed by setting the prefix to GNU Global in the store. This way emacs-ggtags will use specific deterministic executables. * gnu/packages/emacs.scm (emacs-ggtags): [inputs]: Add GNU Global to the inputs [arguments]: Add a phase for substituting the right path to the executables --- gnu/packages/emacs.scm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 7fdcfb1a3..3d7ab6b33 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -1438,6 +1438,18 @@ environment set through Direnv.") (base32 "1qa7lcrcmf76sf6dy8sxbg4adq7rg59fm0n5848w3qxgsr0h45fg")))) (build-system emacs-build-system) + (inputs + `(("global" ,global))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'configure + (lambda* (#:key inputs #:allow-other-keys) + (chmod "ggtags.el" #o644) + (emacs-substitute-variables "ggtags.el" + ("ggtags-executable-directory" + (string-append (assoc-ref inputs "global") "/bin"))) + #t))))) (home-page "https://github.com/leoliu/ggtags") (synopsis "Frontend to the GNU Global source code tagging system") (description "@code{ggtags} provides a frontend to the GNU Global source -- 2.20.1