Hello,

I need this patch to compile t1utils with GUB.  I also bumped the
package.

Source:
http://packages.gentoo.org/package/app-text/t1utils

Thanks,
Patrick
>From 7d90a8a2e2407bd2dc91c63b06501019d4981e4b Mon Sep 17 00:00:00 2001
From: Patrick McCarty <pnor...@gmail.com>
Date: Mon, 29 Jun 2009 23:45:41 -0700
Subject: [PATCH] Bump t1utils, and fix build with glibc 2.10

---
 gub/specs/t1utils.py                    |    3 ++-
 patches/t1utils-1.34-glibc-compat.patch |   30 ++++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+), 1 deletions(-)
 create mode 100644 patches/t1utils-1.34-glibc-compat.patch

diff --git a/gub/specs/t1utils.py b/gub/specs/t1utils.py
index 8fe57db..73f55ec 100644
--- a/gub/specs/t1utils.py
+++ b/gub/specs/t1utils.py
@@ -1,5 +1,6 @@
 from gub import tools
 
 class T1utils__tools (tools.AutoBuild):
-    source = 'http://www.lcdf.org/type/t1utils-1.33.tar.gz'
+    source = 'http://www.lcdf.org/type/t1utils-1.34.tar.gz'
+    patches = ['t1utils-1.34-glibc-compat.patch']
 
diff --git a/patches/t1utils-1.34-glibc-compat.patch 
b/patches/t1utils-1.34-glibc-compat.patch
new file mode 100644
index 0000000..f7c5fa4
--- /dev/null
+++ b/patches/t1utils-1.34-glibc-compat.patch
@@ -0,0 +1,30 @@
+--- t1utils-1.34/t1asm.c       2008-03-01 17:59:11.000000000 +0000
++++ t1utils-1.34/t1asm.c       2009-05-21 07:47:28.489113686 +0000
+@@ -280,7 +280,7 @@
+    the newline is put into line[]. When terminated by '{', the '{' is not put
+    into line[], and the flag start_charstring is set to 1. */
+ 
+-static void getline()
++static void t_getline()
+ {
+   int c;
+   char *p = line;
+@@ -721,7 +721,7 @@
+      without /Subrs sections and provided a patch. */
+   
+   while (!feof(ifp) && !ferror(ifp)) {
+-    getline();
++    t_getline();
+     
+     if (!ever_active) {
+       if (strncmp(line, "currentfile eexec", 17) == 0 && isspace(line[17])) {
+@@ -792,7 +792,7 @@
+   
+   /* There may be additional code. */
+   while (!feof(ifp) && !ferror(ifp)) {
+-    getline();
++    t_getline();
+     eexec_string(line);
+   }
+   
+
-- 
1.6.3.3

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

Reply via email to