This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "uClibc-ng - small C library for embedded systems".
The branch, master has been updated
via 79c4017f3518cd30afb59a170717c1e754eedadf (commit)
via 2d2aa1bd7074222d9d54232b2d96eae1d2aab7ae (commit)
via 9a9c16557a153cde7a0a98a271d9407cae685943 (commit)
from b985fa069187e4c5a7ee84213d9fbead2f219ce5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 79c4017f3518cd30afb59a170717c1e754eedadf
Author: Romain Naour <romain.naour(a)gmail.com>
Date: Sat Nov 5 19:55:43 2016 +0100
libpthread: remove pthread_atfork for noMMU target
There is not possible to use use fork() on noMMU target, so exporting
pthread_atfork() for such target is useless.
A program using pthread_atfork() will likely fail at runtime due to the
error code returned by this function.
Signed-off-by: Romain Naour <romain.naour(a)gmail.com>
commit 2d2aa1bd7074222d9d54232b2d96eae1d2aab7ae
Author: Anton Kolesov <Anton.Kolesov(a)synopsys.com>
Date: Wed Nov 16 19:33:24 2016 +0300
Fix extra/locale/gen_wc_8bit error with out-of-tree builds
If uClibc is built outside of the source tree, then there is an error:
make[1]: *** No rule to make target `/home/akolesov/build-uclibc/extra/locale',
needed by `/home/akolesov/build-uclibc/extra/locale/gen_wc8bit'. Stop.
The rule to create $(top_builddir)/extra/locale is defined in top-level
Makefile.in. Same Makefile.in also invokes extra/locale/Makefile.in to build
various tools. Those tools have $(top_builddir)/extra/locale as a
dependency, but this makefile doesn't include top-level Makefile.in,
therefore rule to create dependant directory is absent in this submake
invocation.
To avoid this problem this patch defines $(top_builddir)/extra/locale as a
dependency for "headers" target, which invokes extra/locale/Makefile.in,
thus making sure that prerequisite directory is created in advance.
This problem doesn't occur when building in the source tree, since
$(top_builddir) == $(top_srcdir), so this directory already exists.
Signed-off-by: Anton Kolesov <Anton.Kolesov(a)synopsys.com>
commit 9a9c16557a153cde7a0a98a271d9407cae685943
Author: Waldemar Brodkorb <wbx(a)uclibc-ng.org>
Date: Sun Nov 13 13:47:13 2016 +0100
revert 9b1077dc70e52ee85a718bce3fcfec7ae9af2967 partially
-----------------------------------------------------------------------
Summary of changes:
Makefile.in | 2 +-
libc/Makefile.in | 1 +
libpthread/linuxthreads/ptfork.c | 14 --------------
libpthread/linuxthreads/sysdeps/pthread/pthread.h | 2 ++
4 files changed, 4 insertions(+), 15 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index 76008a2..98c6d6d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -183,7 +183,7 @@ menuconfig-clean-y: HEADERCLEAN_config
# libc/sysdeps/linux/Makefile.commonarch to headers-y
headers-y += $(target-headers-sysdep)
-headers: $(top_builddir)include/bits/uClibc_config.h | subdirs
+headers: $(top_builddir)include/bits/uClibc_config.h | subdirs
$(top_builddir)extra/locale
$(Q)$(if $(UCLIBC_HAS_LOCALE),$(MAKE) -C extra/locale locale_headers)
subdirs: $(addprefix $(top_builddir),$(subdirs))
diff --git a/libc/Makefile.in b/libc/Makefile.in
index 714a66e..3d6ef13 100644
--- a/libc/Makefile.in
+++ b/libc/Makefile.in
@@ -42,6 +42,7 @@ else
libc-a-y = $(libc-y) $(libc-static-y)
endif
+libc-a-$(HAVE_SHARED) += $(libdl-a-y)
libc-a-$(DO_C99_MATH) += $(libm-a-y)
libc-a-$(UCLIBC_HAS_LIBNSL_STUB) += $(libnsl-a-y)
libc-a-$(UCLIBC_HAS_LIBRESOLV_STUB) += $(libresolv-a-y)
diff --git a/libpthread/linuxthreads/ptfork.c b/libpthread/linuxthreads/ptfork.c
index 6f1e2d3..74d6308 100644
--- a/libpthread/linuxthreads/ptfork.c
+++ b/libpthread/linuxthreads/ptfork.c
@@ -150,18 +150,4 @@ static pid_t __fork(void)
strong_alias(__fork,fork)
strong_alias(__fork,vfork)
-#else
-
-/* We can't support pthread_atfork without MMU, since we don't have
- fork(), and we can't offer the correct semantics for vfork(). */
-int pthread_atfork(void (*prepare)(void),
- void (*parent)(void),
- void (*child)(void))
-{
- /* ENOMEM is probably pushing it a little bit.
- Take it as `no *virtual* memory' :-) */
- errno = ENOMEM;
- return -1;
-}
-
#endif
diff --git a/libpthread/linuxthreads/sysdeps/pthread/pthread.h
b/libpthread/linuxthreads/sysdeps/pthread/pthread.h
index cc13a52..0d17502 100644
--- a/libpthread/linuxthreads/sysdeps/pthread/pthread.h
+++ b/libpthread/linuxthreads/sysdeps/pthread/pthread.h
@@ -697,6 +697,7 @@ extern int pthread_getcpuclockid (pthread_t __thread_id,
/* Functions for handling process creation and process execution. */
+#ifdef __ARCH_USE_MMU__
/* Install handlers to be called when a new process is created with FORK.
The PREPARE handler is called in the parent process just before performing
FORK. The PARENT handler is called in the parent process just after FORK.
@@ -711,6 +712,7 @@ extern int pthread_getcpuclockid (pthread_t __thread_id,
extern int pthread_atfork (void (*__prepare) (void),
void (*__parent) (void),
void (*__child) (void)) __THROW;
+#endif
/* Terminate all threads in the program except the calling process.
Should be called just before invoking one of the exec*() functions. */
hooks/post-receive
--
uClibc-ng - small C library for embedded systems
Show replies by date