unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Tomas Volf <~@wolfsden.cz>
To: 75317@debbugs.gnu.org
Cc: Tomas Volf <~@wolfsden.cz>
Subject: [bug#75317] [PATCH 1/6] gnu: gnucash: Fix locating perl binary.
Date: Fri,  3 Jan 2025 15:24:26 +0100	[thread overview]
Message-ID: <88e287c3695ef74837fbf106b49019ce75b73e11.1735912713.git.~@wolfsden.cz> (raw)
In-Reply-To: <cover.1735912713.git.~@wolfsden.cz>

It tried to search in the $PATH, that does not really work for Guix.

* gnu/packages/gnucash.scm (gnucash)[arguments]<#:phases>: Add set-perl-path.

Change-Id: I93468c201de8af3ad76cce945483b76f28ea2749
---
 gnu/packages/gnucash.scm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gnu/packages/gnucash.scm b/gnu/packages/gnucash.scm
index 71a49b75d6..6df2b76505 100644
--- a/gnu/packages/gnucash.scm
+++ b/gnu/packages/gnucash.scm
@@ -102,6 +102,11 @@ (define-public gnucash
               (substitute* "CMakeLists.txt"
                 (("set\\(SHELL /bin/bash\\)")
                  (string-append "set(SHELL " (which "bash") ")")))))
+          (add-after 'unpack 'set-perl-path
+            (lambda _
+              (substitute* "libgnucash/app-utils/gnc-quotes.cpp"
+                (("c_cmd\\{bp::search_path\\(\"perl\"\\)\\}")
+                 (format #f "c_cmd{~s}" #$(file-append perl "/bin/perl"))))))
           ;; The qof test requires the en_US, en_GB, and fr_FR locales.
           (add-before 'check 'install-locales
             (lambda _
-- 
2.46.0





  reply	other threads:[~2025-01-03 14:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-03 14:14 [bug#75317] [PATCH 0/6] gnu: gnucash: Fix getting quotes Tomas Volf
2025-01-03 14:24 ` Tomas Volf [this message]
2025-01-03 14:24 ` [bug#75317] [PATCH 2/6] gnu: gnucash: Do not install gnc-fq-update Tomas Volf
2025-01-03 14:24 ` [bug#75317] [PATCH 3/6] gnu: gnucash: Drop special case for gnc-fq-helper Tomas Volf
2025-01-03 14:24 ` [bug#75317] [PATCH 4/6] gnu: gnucash: Do not wrap finance-quote-wrapper Tomas Volf
2025-01-03 14:24 ` [bug#75317] [PATCH 5/6] gnu: perl-finance-quote: Update to 1.64 Tomas Volf
2025-01-03 14:24 ` [bug#75317] [PATCH 6/6] gnu: gnucash: Update to 5.10 Tomas Volf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='88e287c3695ef74837fbf106b49019ce75b73e11.1735912713.git.~@wolfsden.cz' \
    --to=~@wolfsden.cz \
    --cc=75317@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).