unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#58448] [PATCH] gnu: helm: fix not finding Factory Presets
@ 2022-10-11 18:34 Sughosha via Guix-patches via
  2022-10-29 21:53 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Sughosha via Guix-patches via @ 2022-10-11 18:34 UTC (permalink / raw)
  To: 58448

* gnu/packages/music.scm (helm): Fix not finding Factory Presets.
  This change fixes hardcoded paths so that Factory Presets can be found.
---
 gnu/packages/music.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index 6b37c79389..000b372303 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -6144,6 +6144,13 @@ (define-public helm
              (substitute* "Makefile"
                (("/usr") ""))
              #t))
+         (add-after 'unpack 'fix-hardcoded-paths
+           (lambda* (#:key outputs #:allow-other-keys)
+             (substitute* "src/common/load_save.cpp"
+               (("/usr") (assoc-ref outputs "out")))
+             (substitute* "src/editor_sections/patch_browser.cpp"
+               (("/usr") (assoc-ref outputs "out")))
+             #t))
          (delete 'configure))))
     (inputs
      `(("alsa-lib" ,alsa-lib)
-- 
2.38.0





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [bug#58448] [PATCH] gnu: helm: fix not finding Factory Presets
  2022-10-11 18:34 [bug#58448] [PATCH] gnu: helm: fix not finding Factory Presets Sughosha via Guix-patches via
@ 2022-10-29 21:53 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2022-10-29 21:53 UTC (permalink / raw)
  To: 58448; +Cc: Sughosha, 58448-done

Hello,

Sughosha via Guix-patches via <guix-patches@gnu.org> writes:

> * gnu/packages/music.scm (helm): Fix not finding Factory Presets.
>   This change fixes hardcoded paths so that Factory Presets can be
>   found.

Thank you.  Applied with the following changes:

> +         (add-after 'unpack 'fix-hardcoded-paths
> +           (lambda* (#:key outputs #:allow-other-keys)
> +             (substitute* "src/common/load_save.cpp"
> +               (("/usr") (assoc-ref outputs "out")))
> +             (substitute* "src/editor_sections/patch_browser.cpp"
> +               (("/usr") (assoc-ref outputs "out")))
> +             #t))

I removed trailing #t, and merged both substitute* calls.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-29 21:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-11 18:34 [bug#58448] [PATCH] gnu: helm: fix not finding Factory Presets Sughosha via Guix-patches via
2022-10-29 21:53 ` Nicolas Goaziou

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).