Mailinglist Archive: opensuse-commit (817 mails)
| < Previous | Next > |
commit uClibc for openSUSE:Factory
- From: root@xxxxxxxxxxxxxxx (h_root)
- Date: Tue, 16 Dec 2008 17:50:06 +0100
- Message-id: <20081216165007.350F2678179@xxxxxxxxxxxxxxx>
Hello community,
here is the log from the commit of package uClibc for openSUSE:Factory
checked in at Tue Dec 16 17:50:06 CET 2008.
--------
--- uClibc/uClibc.changes 2008-12-15 10:43:04.000000000 +0100
+++ /mounts/work_src_done/STABLE/uClibc/uClibc.changes 2008-12-16
12:13:43.000000000 +0100
@@ -1,0 +2,9 @@
+Tue Dec 16 12:13:17 CET 2008 - sassmann@xxxxxxx
+
+- add:
+ uClibc.ia64-fake-getpgrp-syscall.patch: getpgrp is not available
+ on ia64 this patch emulates it.
+ uClibc.ia64-use-sched_setaffinity-if-present.patch: make use
+ of syscall sched_setaffinity
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
New:
----
uClibc.ia64-fake-getpgrp-syscall.patch
uClibc.ia64-use-sched_setaffinity-if-present.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ uClibc.spec ++++++
--- /var/tmp/diff_new_pack.y30633/_old 2008-12-16 17:47:04.000000000 +0100
+++ /var/tmp/diff_new_pack.y30633/_new 2008-12-16 17:47:04.000000000 +0100
@@ -21,7 +21,7 @@
Name: uClibc
Version: 0.9.30
-Release: 2
+Release: 3
Summary: A full-featured C library optimized for size
License: LGPL v2.1 or later
BuildRequires: linux-kernel-headers ncurses-devel
@@ -44,6 +44,8 @@
Source3: README.SUSE
Patch0: uClibc.Makefile-gcc-uClibc-wrapper.patch
Patch1: uClibc.static-segfault-fix.patch
+Patch2: uClibc.ia64-fake-getpgrp-syscall.patch
+Patch3: uClibc.ia64-use-sched_setaffinity-if-present.patch
Group: System/Libraries
%description
@@ -64,6 +66,8 @@
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
+%patch3 -p1
cp %{S:1} .config
cp %{S:2} gcc-uClibc.in
cp %{S:3} README.SUSE
@@ -74,7 +78,7 @@
# make
make oldconfig
make %{?jobs:-j%jobs}
-# make debug
+# make with debug
#make V=1 make %{?jobs:-j%jobs}
%clean
@@ -129,6 +133,12 @@
#/usr/lib/*-linux-uclibc/usr/lib/*.so
%changelog
+* Tue Dec 16 2008 sassmann@xxxxxxx
+- add:
+ uClibc.ia64-fake-getpgrp-syscall.patch: getpgrp is not available
+ on ia64 this patch emulates it.
+ uClibc.ia64-use-sched_setaffinity-if-present.patch: make use
+ of syscall sched_setaffinity
* Mon Dec 15 2008 sassmann@xxxxxxx
- add uClibc.static-segfault-fix.patch: fix segfault of static
binaries that don't stdio functions
++++++ uClibc.ia64-fake-getpgrp-syscall.patch ++++++
Subject: proper handling for syscall getpgrp
From: Stefan Assmann <sassmann@xxxxxxx>
This patch tries to emulate the behaviour of getpgrp by using getpgid, on
platforms that do not implement getpgrp. Otherwise ENOSYS will be returned. This
patch is necessary at least on ia64 where getpgrp is not available.
Signed-off-by: Stefan Assmann <sassmann@xxxxxxx>
---
libc/sysdeps/linux/common/getpgrp.c | 10 ++++++++++
1 file changed, 10 insertions(+)
--- a/libc/sysdeps/linux/common/getpgrp.c
+++ b/libc/sysdeps/linux/common/getpgrp.c
@@ -13,4 +13,14 @@
#ifdef __NR_getpgrp
/* According to the manpage the POSIX.1 version is favoured */
_syscall0(pid_t, getpgrp)
+#else
+pid_t getpgrp(void)
+{
+#ifdef __NR_getpgid
+ return getpgid(getpid());
+#else
+ __set_errno(ENOSYS);
+ return -1;
+#endif
+}
#endif
++++++ uClibc.ia64-use-sched_setaffinity-if-present.patch ++++++
Subject: make use of sched_setaffinity if available
From: Stefan Assmann <sassmann@xxxxxxx>
The current implementation relies on the fact that INTERNAL_SYSCALL is defined
for syscall sched_setaffinity. Otherwise the syscall will be treated as
non-existant even if it is implemented. This patch adds a check whether the
syscall is available if INTERNAL_SYSCALL is not defined. This was necessary to
get sched_setaffinity working on ia64.
Signed-off-by: Stefan Assmann <sassmann@xxxxxxx>
---
libc/sysdeps/linux/common/sched_setaffinity.c | 8 ++++++++
1 file changed, 8 insertions(+)
--- a/libc/sysdeps/linux/common/sched_setaffinity.c
+++ b/libc/sysdeps/linux/common/sched_setaffinity.c
@@ -78,9 +78,17 @@ int sched_setaffinity(pid_t pid, size_t
#define ___HAVE_NO_sched_setaffinity
#endif
#else
+
+#ifdef __NR_sched_setaffinity
+#define __NR___syscall_sched_setaffinity __NR_sched_setaffinity
+_syscall3(int, sched_setaffinity, __pid_t, pid, size_t,
+ cpusetsize, __const cpu_set_t *, cpuset)
+#else
#define ___HAVE_NO_sched_setaffinity
#endif
+#endif
+
#if defined ___HAVE_NO_sched_setaffinity && defined __UCLIBC_HAS_STUBS__
int sched_setaffinity(pid_t pid, size_t cpusetsize, const cpu_set_t *cpuset)
{
++++++ uClibc.static-segfault-fix.patch ++++++
--- /var/tmp/diff_new_pack.y30633/_old 2008-12-16 17:47:04.000000000 +0100
+++ /var/tmp/diff_new_pack.y30633/_new 2008-12-16 17:47:04.000000000 +0100
@@ -13,10 +13,14 @@
I'm hereby putting my patch into the public domain in case you want to
submit it to uClibc)
-diff -ru uClibc-0.9.29-old/libc/misc/internals/__uClibc_main.c
uClibc-0.9.29/libc/misc/internals/__uClibc_main.c
---- uClibc-0.9.29-old/libc/misc/internals/__uClibc_main.c 2007-01-11
16:39:13.000000000 -0600
-+++ uClibc-0.9.29/libc/misc/internals/__uClibc_main.c 2007-09-15
07:13:18.000000000 -0500
-@@ -79,13 +79,17 @@
+---
+ libc/misc/internals/__uClibc_main.c | 13 +++++++------
+ libc/stdlib/_atexit.c | 5 +++--
+ 2 files changed, 10 insertions(+), 8 deletions(-)
+
+--- a/libc/misc/internals/__uClibc_main.c
++++ b/libc/misc/internals/__uClibc_main.c
+@@ -78,13 +78,17 @@ uintptr_t __guard attribute_relro;
* Prototypes.
*/
extern void weak_function _stdio_init(void) attribute_hidden;
@@ -34,7 +38,7 @@
#endif
/* If __UCLIBC_FORMAT_SHARED_FLAT__, all array initialisation and finalisation
-@@ -198,8 +202,7 @@
+@@ -195,8 +199,7 @@ void __uClibc_init(void)
* __pthread_initialize_minimal so we can use pthread_locks
* whenever they are needed.
*/
@@ -44,7 +48,7 @@
#endif
#ifndef SHARED
-@@ -222,8 +225,7 @@
+@@ -219,8 +222,7 @@ void __uClibc_init(void)
#ifdef __UCLIBC_HAS_LOCALE__
/* Initialize the global locale structure. */
@@ -54,7 +58,7 @@
#endif
/*
-@@ -232,8 +234,7 @@
+@@ -229,8 +231,7 @@ void __uClibc_init(void)
* Thus we get a nice size savings because the stdio functions
* won't be pulled into the final static binary unless used.
*/
@@ -64,10 +68,9 @@
}
libc_hidden_def(__uClibc_init)
-diff -ru uClibc-0.9.29-old/libc/stdlib/_atexit.c
uClibc-0.9.29/libc/stdlib/_atexit.c
---- uClibc-0.9.29-old/libc/stdlib/_atexit.c 2007-05-04 09:13:17.000000000
-0500
-+++ uClibc-0.9.29/libc/stdlib/_atexit.c 2007-09-15 07:14:47.000000000
-0500
-@@ -306,6 +306,8 @@
+--- a/libc/stdlib/_atexit.c
++++ b/libc/stdlib/_atexit.c
+@@ -306,6 +306,8 @@ void __exit_handler(int status)
#ifdef L_exit
extern void weak_function _stdio_term(void) attribute_hidden;
@@ -76,7 +79,7 @@
attribute_hidden void (*__exit_cleanup) (int) = 0;
__UCLIBC_MUTEX_INIT(__atexit_lock, PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP);
-@@ -330,8 +332,7 @@
+@@ -330,8 +332,7 @@ void exit(int rv)
* this will attempt to commit all buffered writes. It may also
* unbuffer all writable files, or close them outright.
* Check the stdio routines for details. */
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit+help@xxxxxxxxxxxx
| < Previous | Next > |