bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue 1028 in lilypond: Test failure when built without a controlli


From: lilypond
Subject: Re: Issue 1028 in lilypond: Test failure when built without a controlling tty
Date: Thu, 06 May 2010 05:37:19 +0000


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)))))






reply via email to

[Prev in Thread] Current Thread [Next in Thread]