Permalink
Browse files

Fix uclibc in own Cirros

uClibc-ng in used 1.0.22 version has a bug in `posix_spawn` which
in effect blocks a possibility to run hooks scripts by dhcpcd.
This change corrects the behavior of `posix_spawn` resulting in
correct using hooks scripts by dhcpcd what in result leads to correct
construction of `/etc/resolv.conf` in final step.
  • Loading branch information...
jellonek committed Feb 20, 2018
1 parent eba15a0 commit ac98b890a43618887fc9ebbab66dfacf002b6b76
Showing with 19 additions and 0 deletions.
  1. +19 −0 contrib/cirros-patches/buildroot.diff
@@ -284,3 +284,22 @@ index 0000000..0c26a0c
+PYTHON_PRETTYTABLE_SETUP_TYPE = setuptools
+
+$(eval $(python-package))
diff --git a/package/uclibc/0004-fix-posix-spawn.patch b/package/uclibc/0004-fix-posix-spawn.patch
new file mode 100644
index 0000000..3d4558b
--- /dev/null
+++ b/package/uclibc/0004-fix-posix-spawn.patch
@@ -0,0 +1,13 @@
+diff --git a/librt/spawn.c b/librt/spawn.c
+index 25e3994..808c398 100644
+--- a/librt/spawn.c
++++ b/librt/spawn.c
+@@ -155,7 +155,7 @@ __spawni(pid_t *pid, const char *file,
+ memset(&sa, 0, sizeof(sa));
+ sa.sa_handler = SIG_DFL;
+
+- for (sig = 1; sig <= _NSIG; ++sig) {
++ for (sig = 1; sig < _NSIG; ++sig) {
+ if (sigismember(&attrp->__sd, sig)) {
+ if (sigaction(sig, &sa, NULL) != 0)
+ goto error;

0 comments on commit ac98b89

Please sign in to comment.