GNU bug report logs -
#75317
[PATCH 0/6] gnu: gnucash: Fix getting quotes
Previous Next
Reported by: Tomas Volf <~@wolfsden.cz>
Date: Fri, 3 Jan 2025 14:16:01 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
The file needs no special wrapping. Even before, it was wrapped just by
accident (via the glib-or-gtk-wrap phase). Wrapping changes it from perl
script to shell script and gnucash cannot deal with that. So stop wrapping
it.
* gnu/packages/gnucash.scm (gnucash)[arguments]<#:phases>: Add 'unwrap-some.
Wrap gnucash-cli in 'wrap-programs.
Change-Id: I60e7ac5cf40fb00f9620b9ee9d725770009721d2
---
gnu/packages/gnucash.scm | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/gnucash.scm b/gnu/packages/gnucash.scm
index 12a168d6fd..3f4967b2ef 100644
--- a/gnu/packages/gnucash.scm
+++ b/gnu/packages/gnucash.scm
@@ -151,8 +151,10 @@ (define-public gnucash
'inputs
(map (lambda (l)
(assoc l (package-inputs this-package)))
- '("perl-finance-quote"))))))))
- '("gnucash"))))
+ '("perl-json-parse"
+ "perl-finance-quote"))))))))
+ '("gnucash"
+ "gnucash-cli"))))
(add-after 'install 'glib-or-gtk-compile-schemas
(assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-compile-schemas))
(add-after 'install 'glib-or-gtk-wrap
@@ -161,7 +163,18 @@ (define-public gnucash
(lambda _
;; We are not updating Finance::Quote from CPAN. There is no
;; reason to install this binary.
- (delete-file (string-append #$output "/bin/gnc-fq-update")))))))
+ (delete-file (string-append #$output "/bin/gnc-fq-update"))))
+ (add-after 'glib-or-gtk-wrap 'unwrap-some
+ (lambda _
+ (for-each
+ (lambda (prog)
+ (delete-file (string-append #$output "/bin/" prog))
+ (rename-file (string-append #$output "/bin/." prog "-real")
+ (string-append #$output "/bin/" prog)))
+ ;; Sadly glib-or-gtk-wrap does not allow excluding individual
+ ;; files. Being wrapped breaks the finance-quote-wrapper (it
+ ;; is expected to be a perl script, not a shell one).
+ '("finance-quote-wrapper")))))))
(native-inputs
(list gmp
`(,glib "bin") ;glib-compile-schemas, etc.
--
2.46.0
This bug report was last modified 173 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.