On Wed, 2007-02-07 at 01:32 +0100, Han-Wen Nienhuys wrote: > Ed Catmur escreveu: > > http://bugs.gentoo.org/show_bug.cgi?id=132706#c64 > >> lilypond and lilypond-invoke-editor seem to work. > >> all other executables give me an error: abc2ly, convert-ly, etf2ly, > >> lilypond-book, and musicxml2ly complain about missing import lilylib: > >> > >> Traceback (most recent call last): > >> File "/usr/bin/convert-ly", line 41, in ? > >> import lilylib as ly > >> ImportError: No module named lilylib > >> > >> midi2ly complains about missing import midi: > >> > >> Traceback (most recent call last): > >> File "/usr/bin/midi2ly", line 51, in ? > >> import midi > >> ImportError: No module named midi > >> > >> > >> i can fix the errors concerning the lilylib import by creating a > > symlink > >> /usr/share/lilypond/current that points > > to /usr/share/lilypond/2.10.16. this > >> doesn't fix the missing "midi" import, though. > > > > Problem is the chained sed in ./make/generic-rules.make etc: > > > > $(outdir)/%: %.in > > rm -f $@ > > cat $< | sed $(sed-atfiles) $(sed-atvariables) > $@ > > > > It appears that the variable sed doesn't apply to the results of the > > file interpolation sed, so the insertion relocate-preamble.py.in doesn't > > get the variables processed and we end up with: > > > > for d in ['@lilypond_datadir@', > > '@lilypond_libdir@']: > > sys.path.insert (0, os.path.join (d, 'python')) > > > > in /usr/bin/convert-ly etc. > > > > Most obvious fix is to use a chained sed; patch attached. > > > > Please respond; we need this fixed for Gentoo. > > > > Ed Catmur > > patch looks fine; Could you send a patch made with git-format-patch? > See http://lilypond.org/web/devel/participating/ for instructions
Here. Thanks. Ed
0001-fix-interpolate-lilypond_datadir-in-convert-ly-etc.txt
Description: application/mbox
_______________________________________________ lilypond-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/lilypond-devel
