[packages/dietlibc] - updated patches for git updates

baggins baggins at pld-linux.org
Sat Jan 3 18:32:10 CET 2015


commit 7f75a361d431172a033c6a5bbdd095f20b590db0
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Jan 3 17:31:52 2015 +0000

    - updated patches for git updates

 dietlibc-arm.patch    | 13 +------------
 dietlibc-diet-m.patch | 19 +++++--------------
 2 files changed, 6 insertions(+), 26 deletions(-)
---
diff --git a/dietlibc-arm.patch b/dietlibc-arm.patch
index 06cd195..a2d26f9 100644
--- a/dietlibc-arm.patch
+++ b/dietlibc-arm.patch
@@ -1,14 +1,3 @@
---- dietlibc-0.30/Makefile.orig	2006-10-06 12:20:29.533089750 +0200
-+++ dietlibc-0.30/Makefile	2006-10-06 12:20:50.878423750 +0200
-@@ -8,7 +8,7 @@
- BINDIR=${prefix}/bin
- MAN1DIR=${prefix}/man/man1
- 
--MYARCH:=$(shell uname -m | sed -e 's/i[4-9]86/i386/' -e 's/armv[3-6]t\?e\?[lb]/arm/')
-+MYARCH:=$(shell uname -m | sed -e 's/i[4-9]86/i386/' -e 's/armv[3-6]t\?e\?j\?[lb]/arm/')
- 
- # This extra-ugly cruft is here so make will not run uname and sed each
- # time it looks at $(OBJDIR).  This alone sped up running make when
 diff -Nur dietlibc-0.32.orig/libpthread/Makefile dietlibc-0.32/libpthread/Makefile
 --- dietlibc-0.32.orig/libpthread/Makefile	2003-08-18 13:32:52.000000000 -0400
 +++ dietlibc-0.32/libpthread/Makefile	2010-06-21 09:42:08.000000000 -0400
@@ -17,7 +6,7 @@ diff -Nur dietlibc-0.32.orig/libpthread/Makefile dietlibc-0.32/libpthread/Makefi
  M=$(shell ../findcflags.sh $(CC))
  
 -ARCH=$(shell uname -m | sed 's/i[4-9]86/i386/')
-+ARCH=$(shell uname -m | sed -e 's/i[4-9]86/i386/' -e 's/armv[3-6]t\?e\?j\?[lb]/arm/')
++ARCH=$(shell uname -m | sed -e 's/i[4-9]86/i386/' -e 's/armv[3-7]t\?[eh]\?j\?[lb]/arm/')
  
  CFLAGS= -g #-pipe -O -march=k6
  CFLAGS= -pipe
diff --git a/dietlibc-diet-m.patch b/dietlibc-diet-m.patch
index 9444d99..515e71f 100644
--- a/dietlibc-diet-m.patch
+++ b/dietlibc-diet-m.patch
@@ -1,6 +1,6 @@
 --- 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,30 @@
+@@ -146,26 +146,34 @@
        else if (!strncmp(shortplatform, "athlon", 6)) strcpy(shortplatform, "i386");
        else if (!strncmp(shortplatform, "amd64", 5)) strcpy(shortplatform, "x86_64");
        else if (!strncmp(shortplatform, "sparcv", 6)) strcpy(shortplatform, "sparc");
@@ -12,6 +12,10 @@
 +      else if (!strncmp(shortplatform, "ppc", 3) && (m==64)) strcpy(shortplatform, "ppc64");
 +      else if (!strncmp(shortplatform, "s390x", 5) && (m==32)) strcpy(shortplatform, "s390");
 +      else if (!strncmp(shortplatform, "s390", 4) && (m==64)) strcpy(shortplatform, "s390x");
+       else if (strcmp(shortplatform, "powerpc") == 0)
+         strcpy(shortplatform, "ppc");
+       else if (strcmp(shortplatform, "powerpc64") == 0)
+         strcpy(shortplatform, "ppc64");
      } else {
  #ifdef __sparc__
  #ifdef __arch64__
@@ -36,16 +40,3 @@
  #endif
  #ifdef __alpha__
        shortplatform="alpha";
-@@ -173,10 +181,10 @@
-       shortplatform="mips";
- #endif
- #ifdef __s390x__
--      shortplatform="s390x";
-+      shortplatform=(m==32?"s390":"s390x");
- #else
- #ifdef __s390__
--      shortplatform="s390";
-+      shortplatform=(m==64?"s390x":"s390");
- #endif
- #endif
- #ifdef __sh__
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dietlibc.git/commitdiff/7f75a361d431172a033c6a5bbdd095f20b590db0



More information about the pld-cvs-commit mailing list