GNU bug report logs - #51120
[PATCH] gnu: emacs-org-roam: Reference dot with absolute path.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Arun Isaac <arunisaac@HIDDEN>; Keywords: patch; dated Sun, 10 Oct 2021 19:18:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 51120 <at> debbugs.gnu.org:


Received: (at 51120) by debbugs.gnu.org; 13 Oct 2021 19:30:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 13 15:30:04 2021
Received: from localhost ([127.0.0.1]:33523 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1majwy-000052-16
	for submit <at> debbugs.gnu.org; Wed, 13 Oct 2021 15:30:04 -0400
Received: from relay9-d.mail.gandi.net ([217.70.183.199]:37517)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1majwv-0008U7-TJ
 for 51120 <at> debbugs.gnu.org; Wed, 13 Oct 2021 15:30:02 -0400
Received: (Authenticated sender: admin@HIDDEN)
 by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id D3693FF807;
 Wed, 13 Oct 2021 19:29:55 +0000 (UTC)
From: Nicolas Goaziou <mail@HIDDEN>
To: Arun Isaac <arunisaac@HIDDEN>
Subject: Re: [bug#51120] [PATCH] gnu: emacs-org-roam: Reference dot with
 absolute path.
References: <20211010191712.13507-1-arunisaac@HIDDEN>
Date: Wed, 13 Oct 2021 21:29:54 +0200
In-Reply-To: <20211010191712.13507-1-arunisaac@HIDDEN> (Arun Isaac's
 message of "Mon, 11 Oct 2021 00:47:12 +0530")
Message-ID: <87ily07mfh.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 51120
Cc: 51120 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Hello,

Arun Isaac <arunisaac@HIDDEN> writes:

> * gnu/packages/emacs-xyz.scm (emacs-org-roam)[inputs]: Add graphviz.
> [arguments]: Add patch-exec-paths phase substituting absolute store path to
> dot.

LGTM!

Regards,
-- 
Nicolas Goaziou




Information forwarded to guix-patches@HIDDEN:
bug#51120; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Oct 2021 19:17:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 10 15:17:40 2021
Received: from localhost ([127.0.0.1]:55867 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mZeKJ-0006c2-Qr
	for submit <at> debbugs.gnu.org; Sun, 10 Oct 2021 15:17:40 -0400
Received: from lists.gnu.org ([209.51.188.17]:35996)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <arunisaac@HIDDEN>) id 1mZeKF-0006br-If
 for submit <at> debbugs.gnu.org; Sun, 10 Oct 2021 15:17:38 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:34056)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <arunisaac@HIDDEN>)
 id 1mZeKD-0003rH-Q3
 for guix-patches@HIDDEN; Sun, 10 Oct 2021 15:17:34 -0400
Received: from mugam.systemreboot.net ([139.59.75.54]:54382)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <arunisaac@HIDDEN>)
 id 1mZeKA-0001bt-Ej
 for guix-patches@HIDDEN; Sun, 10 Oct 2021 15:17:33 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=systemreboot.net; s=default; h=Content-Transfer-Encoding:MIME-Version:
 Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=WHVlhidEd1MNHGVFFzyY2wPCyg8nSGHuGqis4emBSB4=; b=TBFOvb84dZd33uhf9dSYnmtqpg
 1fUw0AGGDw6bmMJhOyu3AnOdq+dM8wvtWFIqOQ3z8XtqWoQuNS2NMEdzMcwjA0czvJvnlzxSFanWR
 1nsbFXWl9/8jNbHFgyLA+0b+kc+QOeye8X4kO/c2KeFGtf7cTXqHx0TpR5l9Xq9CQEIPfnpGvC1T6
 kSAV3z239ptnXx7DhjkWcQqCiSRXZ54vfxTWwDuXFoWfxpvypQXg9vl6Mb0Trcyszn00QaPn+tSih
 NFleSXiWEMbf/r5wpFGHe5r5+2Auocl/atsE8CPllmx/Ctp9O1EnTzjmsgGZAq7gd9tqNgA0VS4iI
 OOkfyI7Q==;
Received: from [192.168.2.1] (port=47992 helo=localhost.localdomain)
 by systemreboot.net with esmtpsa (TLS1.3) tls
 TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2)
 (envelope-from <arunisaac@HIDDEN>)
 id 1mZeK2-000Nik-37; Mon, 11 Oct 2021 00:47:22 +0530
From: Arun Isaac <arunisaac@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] gnu: emacs-org-roam: Reference dot with absolute path.
Date: Mon, 11 Oct 2021 00:47:12 +0530
Message-Id: <20211010191712.13507-1-arunisaac@HIDDEN>
X-Mailer: git-send-email 2.33.0
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=139.59.75.54;
 envelope-from=arunisaac@HIDDEN; helo=mugam.systemreboot.net
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
Cc: Arun Isaac <arunisaac@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

* gnu/packages/emacs-xyz.scm (emacs-org-roam)[inputs]: Add graphviz.
[arguments]: Add patch-exec-paths phase substituting absolute store path to
dot.
---
 gnu/packages/emacs-xyz.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 582cfe4552..b12f861376 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -153,6 +153,7 @@
   #:use-module (gnu packages guile)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages gnome)
+  #:use-module (gnu packages graphviz)
   #:use-module (gnu packages haskell-apps)
   #:use-module (gnu packages ibus)
   #:use-module (gnu packages java)
@@ -28370,6 +28371,13 @@ snippets for Emacs.")
                            (rename-file f (basename f)))
                          el-files))
              #t))
+         (add-after 'move-source-files 'patch-exec-paths
+           (lambda* (#:key inputs #:allow-other-keys)
+             (make-file-writable "org-roam-graph.el")
+             (emacs-substitute-variables "org-roam-graph.el"
+               ("org-roam-graph-executable"
+                (string-append (assoc-ref inputs "graphviz")
+                               "/bin/dot")))))
          (add-after 'install 'install-image
            (lambda* (#:key outputs #:allow-other-keys)
              (let ((out (assoc-ref outputs "out")))
@@ -28382,6 +28390,8 @@ snippets for Emacs.")
                  (invoke "makeinfo" "-o" "org-roam.info" "org-roam.texi")
                  (install-file "org-roam.info"
                                (string-append out "/share/info")))))))))
+       (inputs
+        `(("graphviz" ,graphviz)))
        (native-inputs
         `(("texinfo" ,texinfo)))
        (propagated-inputs
-- 
2.33.0





Acknowledgement sent to Arun Isaac <arunisaac@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#51120; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 13 Oct 2021 19:30:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.