GNU bug report logs -
#59725
[PATCH] gnu: paulxstretch: Fix paths
Previous Next
Reported by: Sughosha <Sughosha <at> proton.me>
Date: Wed, 30 Nov 2022 15:05:01 UTC
Severity: normal
Tags: patch
Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi Sughosha,
Apologies for the delay!
Sughosha <Sughosha <at> proton.me> skribis:
> * gnu/packages/music.scm (paulxstretch): Fix paths.
> [arguments]: Add phase fix-paths.
> [inputs]: Add dconf and glib:bin.
That’s a welcome fix.
> #~(modify-phases %standard-phases
> + (add-after 'unpack 'fix-paths
> + (lambda _
> + (substitute* "deps/juce/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_CodeBlocks.h"
> + (("/usr/include/freetype2")
> + (string-append #$freetype "/include/freetype")))
> + (substitute* "deps/juce/modules/juce_graphics/native/juce_linux_Fonts.cpp"
> + (("/etc/fonts")
> + (string-append #$fontconfig "/etc/fonts")))
> + (substitute* "deps/juce/modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp"
> + (("/usr/bin/dconf")
> + (string-append #$dconf "/bin/dconf"))
> + (("/usr/bin/gsettings")
> + (string-append (ungexp glib "bin")
> + "/bin/gsettings")))))
Could you avoid direct references to packages like #$freetype and
instead use ‘search-input-file’ and ‘search-input-directory’?
(search-input-directory inputs "/etc/fonts")
(search-input-file inputs "/bin/gsettings")
…
There are examples in the repo on how to use them.
Could you send a v2 of the patch to 59725 <at> debbugs.gnu.org?
Thanks in advance,
Ludo’.
This bug report was last modified 2 years and 62 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.