GUB: Patch for t1utils with glibc 2.10

View: New views
4 Messages — Rating Filter:   Alert me  

GUB: Patch for t1utils with glibc 2.10

by Patrick McCarty-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <pnorcks@...>
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@...
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Re: GUB: Patch for t1utils with glibc 2.10

by Jan Nieuwenhuizen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On vr, 2009-07-03 at 16:48 -0700, Patrick McCarty wrote:
> Hello,
>
> I need this patch to compile t1utils with GUB.  I also bumped the
> package.

Thanks.  Will this build with glibc < 2.10?

Jan.

--
Jan Nieuwenhuizen <janneke@...> | GNU LilyPond - The music typesetter
AvatarĀ®: http://AvatarAcademy.nl    | http://lilypond.org



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

Re: GUB: Patch for t1utils with glibc 2.10

by Patrick McCarty-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Jul 06, 2009 at 10:28:21AM +0200, Jan Nieuwenhuizen wrote:
> On vr, 2009-07-03 at 16:48 -0700, Patrick McCarty wrote:
> > Hello,
> >
> > I need this patch to compile t1utils with GUB.  I also bumped the
> > package.
>
> Thanks.  Will this build with glibc < 2.10?

Hmm.  I don't know.  I'll see if I can test this soon.

Thanks,
Patrick


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

Re: GUB: Patch for t1utils with glibc 2.10

by Jan Nieuwenhuizen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On ma, 2009-07-06 at 10:28 +0200, Jan Nieuwenhuizen wrote:
> On vr, 2009-07-03 at 16:48 -0700, Patrick McCarty wrote:
> > Hello,
> >
> > I need this patch to compile t1utils with GUB.  I also bumped the
> > package.
>
> Thanks.  Will this build with glibc < 2.10?

Yes it does.  Applied.

Thanks!
Jan.

--
Jan Nieuwenhuizen <janneke@...> | GNU LilyPond - The music typesetter
AvatarĀ®: http://AvatarAcademy.nl    | http://lilypond.org



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