Comment #1 on issue 1028 by pnorcks: Test failure when built without a controlling tty
http://code.google.com/p/lilypond/issues/detail?id=1028

Debian's maintainer committed a fix, but apparently it's broken on certain architectures?

I'm really suspicious, since their current fix seems correct. Here is their solution:

diff --git a/scm/lily.scm b/scm/lily.scm
index 8cfebbd..0f96b1b 100644
--- a/scm/lily.scm
+++ b/scm/lily.scm
@@ -685,7 +685,9 @@ PIDs or the number of the process."
          (if separate-logs
              (open-file (if (string-or-symbol? (ly:get-option 'log-file))
                             (format "~a.log" (ly:get-option 'log-file))
-                            "/dev/tty") "a") #f))
+                            (if (access? "/dev/tty" W_OK)
+                                "/dev/tty"
+                                "/dev/null")) "a") #f))
         (do-measurements (ly:get-option 'dump-profile))
         (handler (lambda (key failed-file)
                    (set! failed (append (list failed-file) failed)))))




_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to