Am Mittwoch, den 08.04.2020, 13:33 +0100 schrieb Phil Holmes:
> Merged master and restarted the build.  Got a different but apparently 
> related error:
> 
> 
> cp: omitting directory 
> '/home/gub/NewGub/gub/target/mingw/install/lilypond-2.21.0-root/usr/share/lilypond/current/python/__pycache__'
> Command barfed: cp 
> /home/gub/NewGub/gub/target/mingw/install/lilypond-2.21.0-root/usr/share/lilypond/*/python/*
>  
> /home/gub/NewGub/gub/target/mingw/install/lilypond-2.21.0-root/usr/bin
> Traceback (most recent call last):
> File "bin/gub", line 231, in exceptional_build
> build (settings, options, files)
> File "bin/gub", line 227, in build
> b.build_source_packages (names)
> File "bin/../gub/buildrunner.py", line 334, in build_source_packages
> self.spec_build (spec_name)
> File "bin/../gub/buildrunner.py", line 262, in spec_build
> deferred_runner.execute_deferred_commands ()
> File "bin/../gub/runner.py", line 167, in execute_deferred_commands
> cmd.execute (self.logger)
> File "bin/../gub/commands.py", line 75, in execute
> ignore_errors=self.ignore_errors)
> File "bin/../gub/loggedos.py", line 93, in system
> raise misc.SystemFailed (m)
> SystemFailed: Command barfed: cp 
> /home/gub/NewGub/gub/target/mingw/install/lilypond-2.21.0-root/usr/share/lilypond/*/python/*
>  
> /home/gub/NewGub/gub/target/mingw/install/lilypond-2.21.0-root/usr/bin

Grr, did I ever mention that I love GUB? I think doing a "cp -r" is the
right solution, see attached patch. I don't have time to test right
now; if it happens to work please just apply...

Jonas
diff --git a/gub/specs/lilypond.py b/gub/specs/lilypond.py
index 48b0c04a..abacacd7 100644
--- a/gub/specs/lilypond.py
+++ b/gub/specs/lilypond.py
@@ -194,7 +194,7 @@ cd %(builddir)s/lily && touch out/lilypond
 rm -f %(install_prefix)s/bin/lilypond
 install -m755 %(builddir)s/lily/out/lilypond-windows %(install_prefix)s/bin/lilypond-windows.exe
 install -m755 %(builddir)s/lily/out/lilypond-console %(install_prefix)s/bin/lilypond.exe
-cp %(install_prefix)s/share/lilypond/*/python/* %(install_prefix)s/bin
+cp -r %(install_prefix)s/share/lilypond/*/python/* %(install_prefix)s/bin
 ''')
         def rename (logger, name):
             header = open (name).readline ().strip ()

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to