packages: dietlibc/dietlibc-diet-m.patch - simpler and more general
tommat
tommat at pld-linux.org
Fri Jul 10 11:56:03 CEST 2009
Author: tommat Date: Fri Jul 10 09:56:02 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- simpler and more general
---- Files affected:
packages/dietlibc:
dietlibc-diet-m.patch (1.3 -> 1.4)
---- Diffs:
================================================================
Index: packages/dietlibc/dietlibc-diet-m.patch
diff -u packages/dietlibc/dietlibc-diet-m.patch:1.3 packages/dietlibc/dietlibc-diet-m.patch:1.4
--- packages/dietlibc/dietlibc-diet-m.patch:1.3 Sat May 30 00:45:54 2009
+++ packages/dietlibc/dietlibc-diet-m.patch Fri Jul 10 11:55:56 2009
@@ -1,15 +1,13 @@
--- dietlibc-0.30/diet.c.orig 2006-12-31 12:01:17.000000000 +0000
+++ dietlibc-0.30/diet.c 2006-12-31 12:02:59.000000000 +0000
-@@ -146,22 +146,32 @@
+@@ -146,22 +146,30 @@
else if (!strncmp(shortplatform, "pentium3", 8)) strcpy(shortplatform, "i386");
else if (!strncmp(shortplatform, "athlon", 6)) strcpy(shortplatform, "i386");
else if (!strncmp(shortplatform, "amd64", 5)) strcpy(shortplatform, "x86_64");
+ if (!strncmp(shortplatform, "x86_64", 6) && (m==32)) strcpy(shortplatform, "i386");
+ else if (!strncmp(shortplatform, "i386", 4) && (m==64)) strcpy(shortplatform, "x86_64");
-+ else if (!strncmp(shortplatform, "sparc64", 7) && (m==32)) strcpy(shortplatform, "sparc");
++ else if (!strncmp(shortplatform, "sparc", 5) && (m==32)) strcpy(shortplatform, "sparc");
+ else if (!strncmp(shortplatform, "sparc", 5) && (m==64)) strcpy(shortplatform, "sparc64");
-+ else if (!strncmp(shortplatform, "sparcv9", 7) && (m==32)) strcpy(shortplatform, "sparc");
-+ else if (!strncmp(shortplatform, "sparcv9", 7) && (m==64)) strcpy(shortplatform, "sparc64");
+ else if (!strncmp(shortplatform, "ppc64", 5) && (m==32)) strcpy(shortplatform, "ppc");
+ else if (!strncmp(shortplatform, "ppc", 3) && (m==64)) strcpy(shortplatform, "ppc64");
+ else if (!strncmp(shortplatform, "s390x", 5) && (m==32)) strcpy(shortplatform, "s390");
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/dietlibc/dietlibc-diet-m.patch?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list