]> git.donarmstrong.com Git - lilypond.git/blob - debian/patches/0101-read_relocation_dir-in-lilypond_datadir-too.patch
Cherry-pick 6a73776004 with minor adaptions in d/control and d/rules
[lilypond.git] / debian / patches / 0101-read_relocation_dir-in-lilypond_datadir-too.patch
1 Description: Read relocation dir under lilypond_datadir too
2  This allows loading /usr/share/lilypond/2.18.2/etc/relocate/guile.reloc
3  to set our own private GUILE_LOAD_PATH at startup.
4 Author: Anthony Fok <foka@debian.org>
5 Origin: vendor
6 Bug-Debian: https://bugs.debian.org/746005
7 Forwarded: not-needed
8 Last-Update: 2017-01-24
9 ---
10 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
11 --- a/lily/relocate.cc
12 +++ b/lily/relocate.cc
13 @@ -148,8 +148,10 @@
14    debug_output (_f ("Relocation: framework_prefix=%s", prefix));
15  
16    sane_putenv ("INSTALLER_PREFIX", prefix, true);
17 +  sane_putenv ("LILYPOND_DATADIR", lilypond_datadir, true);
18  
19    read_relocation_dir (prefix + "/etc/relocate/");
20 +  read_relocation_dir (lilypond_datadir + "/etc/relocate/");
21  
22    string bindir = prefix + "/bin";
23