scripts/functions: Fix CT_ExtractGit function.
Change CT_ExtractGit so that it clones the repository, instead of just
symlinking it. After cloning, any given ref is checked out, or if no
ref is given, the HEAD of the repository is checked out.
This makes CT_Extract behave similar for git repositories as it does
for tarballs, so that it for example can be used for passing glibc-ports
as a git repository.
Signed-off-by: "Esben Haabendal" <esben.haabendal@prevas.dk>
[yann.morin.1998@anciens.enib.fr: fix incomplete var rename]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
1 diff -ur uClibc-0.9.29/libc/sysdeps/linux/common/sched_getaffinity.c uClibc-0.9.29-patched/libc/sysdeps/linux/common/sched_getaffinity.c
2 --- uClibc-0.9.29/libc/sysdeps/linux/common/sched_getaffinity.c 2007-02-12 16:52:32.000000000 -0600
3 +++ uClibc-0.9.29-patched/libc/sysdeps/linux/common/sched_getaffinity.c 2007-05-09 18:05:09.397411811 -0500
8 +#ifdef __NR_sched_getaffinity
9 libc_hidden_proto(memset)
11 #define __NR___syscall_sched_getaffinity __NR_sched_getaffinity
18 +int sched_getaffinity(pid_t pid, size_t cpusetsize, cpu_set_t *cpuset)
20 + __set_errno(ENOSYS);
28 diff -ur uClibc-0.9.29/libc/sysdeps/linux/common/sched_setaffinity.c uClibc-0.9.29-patched/libc/sysdeps/linux/common/sched_setaffinity.c
29 --- uClibc-0.9.29/libc/sysdeps/linux/common/sched_setaffinity.c 2007-02-12 16:52:32.000000000 -0600
30 +++ uClibc-0.9.29-patched/libc/sysdeps/linux/common/sched_setaffinity.c 2007-05-09 18:05:09.397411811 -0500
32 #include <sys/types.h>
35 +#ifdef __NR_sched_setaffinity
36 libc_hidden_proto(getpid)
38 #define __NR___syscall_sched_setaffinity __NR_sched_setaffinity
41 return INLINE_SYSCALL (sched_setaffinity, 3, pid, cpusetsize, cpuset);
45 +int sched_setaffinity(pid_t pid, size_t cpusetsize, const cpu_set_t *cpuset)
47 + __set_errno(ENOSYS);