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
--- ./make/generic-rules.make	2007/02/06 16:58:25	1.1
+++ ./make/generic-rules.make	2007/02/06 17:00:11
@@ -7,7 +7,7 @@ $(outdir)/%.ly: %.lym4
 
 $(outdir)/%: %.in
 	rm -f $@
-	cat $< | sed $(sed-atfiles) $(sed-atvariables) > $@
+	cat $< | sed $(sed-atfiles) | sed $(sed-atvariables) > $@
 
 
 
--- ./stepmake/stepmake/python-module-rules.make	2007/02/06 16:58:29	1.1
+++ ./stepmake/stepmake/python-module-rules.make	2007/02/06 17:00:20
@@ -9,6 +9,6 @@ $(outdir)/%.pyo: $(outdir)/%.py
 	$(PYTHON) -O -c 'import py_compile; py_compile.compile ("$<")'
 
 $(outdir)/%.py: %.py $(config_make)
-	cat $< | sed $(sed-atfiles) $(sed-atvariables) > $@
+	cat $< | sed $(sed-atfiles) | sed $(sed-atvariables) > $@
 	chmod 755 $@
 
--- ./stepmake/stepmake/script-rules.make	2007/02/06 16:58:29	1.1
+++ ./stepmake/stepmake/script-rules.make	2007/02/06 17:00:54
@@ -1,25 +1,25 @@
 
 $(outdir)/%: %.pl $(config_make)  $(depth)/VERSION
-	cat $< | sed $(sed-atfiles) $(sed-atvariables) > $@
+	cat $< | sed $(sed-atfiles) | sed $(sed-atvariables) > $@
 	chmod 755 $@
 
 $(outdir)/%: %.bash $(config_make) $(depth)/VERSION
-	cat $< | sed $(sed-atfiles) $(sed-atvariables) > $@
+	cat $< | sed $(sed-atfiles) | sed $(sed-atvariables) > $@
 	chmod 755 $@
 
 $(outdir)/%: %.scm $(config_make) $(depth)/VERSION
-	cat $< | sed $(sed-atfiles) $(sed-atvariables) > $@
+	cat $< | sed $(sed-atfiles) | sed $(sed-atvariables) > $@
 	chmod 755 $@
 
 $(outdir)/%: %.expect $(config_make) $(depth)/VERSION
-	cat $< | sed $(sed-atfiles) $(sed-atvariables) > $@
+	cat $< | sed $(sed-atfiles) | sed $(sed-atvariables) > $@
 	chmod 755 $@
 
 $(outdir)/%: %.sh $(config_make) $(depth)/VERSION
-	cat $< | sed $(sed-atfiles)$(sed-atvariables) > $@
+	cat $< | sed $(sed-atfiles) | sed $(sed-atvariables) > $@
 	chmod 755 $@
 
 $(outdir)/%: %.py $(config_make) $(depth)/VERSION
-	cat $< | sed $(sed-atfiles) $(sed-atvariables) > $@
+	cat $< | sed $(sed-atfiles) | sed $(sed-atvariables) > $@
 	chmod 755 $@
 
--- ./stepmake/stepmake/substitute-rules.make	2007/02/06 16:58:29	1.1
+++ ./stepmake/stepmake/substitute-rules.make	2007/02/06 17:01:01
@@ -2,6 +2,6 @@
 # config_make dep isn't working. Why?
 $(outdir)/%: %.in $(config_make) $(depth)/VERSION
 	rm -f $@
-	cat $< | sed $(sed-atfiles) $(sed-atvariables) > $@
+	cat $< | sed $(sed-atfiles) | sed $(sed-atvariables) > $@
 
 
_______________________________________________
lilypond-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to