This patch allows me to build ghostscript in gub on Ubuntu 11.10. The
problem is that ghostscript only looks for sys/types.h in /usr/include,
whereas Ubuntu 11.10 has it in /usr/include/x86_64-linux-gnu. This patch
just assumes that sys/types.h is always present... is there any modern
system where it isn't?

Cheers,
Joe
From fea85af4b47bae0031e9efc858cda60dc5ce6e06 Mon Sep 17 00:00:00 2001
From: Joe Neeman <joenee...@gmail.com>
Date: Sun, 26 Feb 2012 18:45:55 +1100
Subject: [PATCH] Work around ghostscript's broken sys/types check.

---
 gub/specs/ghostscript.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/gub/specs/ghostscript.py b/gub/specs/ghostscript.py
index 09f5029..a3b834a 100644
--- a/gub/specs/ghostscript.py
+++ b/gub/specs/ghostscript.py
@@ -52,7 +52,8 @@ models.'''
                 + ' mandir=%(prefix_dir)s/share/man/ '
                 + ' docdir=%(prefix_dir)s/share/doc/ghostscript/doc '
                 + ' exdir=%(prefix_dir)s/share/doc/ghostscript/examples ')
-    make_flags = target.AutoBuild.make_flags + ' TARGET=%(target_os)s'
+    # Ghostscript's check for sys/time.h is buggy: it only looks in /usr/include.
+    make_flags = target.AutoBuild.make_flags + ' TARGET=%(target_os)s CFLAGS+="-DHAVE_SYS_TIME_H=1"'
     obj = 'obj'
     @staticmethod
     def static_version ():
-- 
1.7.5.4

_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to