patches/uClibc/0.9.30.2/180-Unbreak-build-for-sparc-on-some-config-s.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Aug 02 18:26:53 2011 +0200 (2011-08-02)
changeset 2592 4908eb2b6f17
permissions -rw-r--r--
scripts/functions: cvs retrieval first tries the mirror for tarballs

The cvs download helper looks for the local tarballs dir to see if it
can find a pre-downloaded tarball, and if it does not find it, does
the actual fetch to upstream via cvs.

In the process, it does not even try to get a tarball from the local
mirror, which can be useful if the mirror has been pre-populated
manually (or with a previously downloaded tree).

Fake a tarball get with the standard tarball-download helper, but
without specifying any upstream URL, which makes the helper directly
try the LAN mirror.

Of course, if no mirror is specified, no URL wil be available, and
the standard cvs retrieval will kick in.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
yann@1819
     1
From 7b964170536951a260f7d552db99b428d1ea5026 Mon Sep 17 00:00:00 2001
yann@1819
     2
From: Austin Foxley <austinf@cetoncorp.com>
yann@1819
     3
Date: Wed, 3 Feb 2010 12:12:10 -0800
yann@1819
     4
Subject: [PATCH 08/15] Unbreak build for sparc on some config's
yann@1819
     5
yann@1819
     6
Thanks to rob@landley.net
yann@1819
     7
yann@1819
     8
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
yann@1819
     9
---
yann@1819
    10
 libc/sysdeps/linux/sparc/sigaction.c |    9 ++++-----
yann@1819
    11
 1 files changed, 4 insertions(+), 5 deletions(-)
yann@1819
    12
yann@1819
    13
diff --git a/libc/sysdeps/linux/sparc/sigaction.c b/libc/sysdeps/linux/sparc/sigaction.c
yann@1819
    14
index a22ac40..7140fd3 100644
yann@1819
    15
--- a/libc/sysdeps/linux/sparc/sigaction.c
yann@1819
    16
+++ b/libc/sysdeps/linux/sparc/sigaction.c
yann@1819
    17
@@ -34,7 +34,8 @@ _syscall5(int, rt_sigaction, int, a, int, b, int, c, int, d, int, e);
yann@1819
    18
 static void __rt_sigreturn_stub(void);
yann@1819
    19
 static void __sigreturn_stub(void);
yann@1819
    20
 
yann@1819
    21
-int __libc_sigaction(int sig, const struct sigaction *act, struct sigaction *oact)
yann@1819
    22
+libc_hidden_proto(sigaction)
yann@1819
    23
+int sigaction(int sig, const struct sigaction *act, struct sigaction *oact)
yann@1819
    24
 {
yann@1819
    25
 	int ret;
yann@1819
    26
 	struct sigaction kact, koact;
yann@1819
    27
@@ -65,10 +66,8 @@ int __libc_sigaction(int sig, const struct sigaction *act, struct sigaction *oac
yann@1819
    28
 	return ret;
yann@1819
    29
 }
yann@1819
    30
 
yann@1819
    31
-#ifndef LIBC_SIGACTION
yann@1819
    32
-weak_alias(__libc_sigaction,sigaction)
yann@1819
    33
-libc_hidden_weak(sigaction)
yann@1819
    34
-#endif
yann@1819
    35
+libc_hidden_def(sigaction)
yann@1819
    36
+weak_alias(sigaction,__libc_sigaction)
yann@1819
    37
 
yann@1819
    38
 static void
yann@1819
    39
 __rt_sigreturn_stub(void)
yann@1819
    40
-- 
yann@1819
    41
1.6.6.1
yann@1819
    42