[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[glibc] 01/01: patches/hurd-i386/git-clone.diff: New patch



This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch glibc-2.26
in repository glibc.

commit 6471debfa9ae000198b20a4c569d9b531a9f1c49
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Sun Sep 3 19:30:36 2017 +0000

    patches/hurd-i386/git-clone.diff: New patch
---
 debian/changelog                        |  1 +
 debian/patches/hurd-i386/git-clone.diff | 20 ++++++++++++++++++++
 debian/patches/series                   |  1 +
 3 files changed, 22 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index aabde94..5fca4e0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -60,6 +60,7 @@ glibc (2.26-0experimental0~ppa4) UNRELEASED; urgency=medium
   - patches/hurd-i386/git-i386-implies-x86.diff: New patch.
   - patches/hurd-i386/git-x86-tunables.diff: New patch.
   - patches/hurd-i386/git-rtld-strtoul_internal.diff: New patch.
+  - patches/hurd-i386/git-clone.diff: New patch.
 
  -- Adam Conrad <adconrad@0c3.net>  Sat, 02 Sep 2017 12:15:10 -0600
 
diff --git a/debian/patches/hurd-i386/git-clone.diff b/debian/patches/hurd-i386/git-clone.diff
new file mode 100644
index 0000000..074edcb
--- /dev/null
+++ b/debian/patches/hurd-i386/git-clone.diff
@@ -0,0 +1,20 @@
+diff --git a/resolv/tst-resolv-res_init-skeleton.c b/resolv/tst-resolv-res_init-skeleton.c
+index 3b7b4129e3..a1bf110910 100644
+--- a/resolv/tst-resolv-res_init-skeleton.c
++++ b/resolv/tst-resolv-res_init-skeleton.c
+@@ -341,11 +341,15 @@ run_res_init (void *closure)
+     setenv ("RES_OPTIONS", ctx->t->res_options, 1);
+   if (ctx->t->hostname != NULL)
+     {
++#ifdef CLONE_NEWUTS
+       /* This test needs its own namespace, to avoid changing the host
+          name for the parent, too.  */
+       TEST_VERIFY_EXIT (unshare (CLONE_NEWUTS) == 0);
+       if (sethostname (ctx->t->hostname, strlen (ctx->t->hostname)) != 0)
+         FAIL_EXIT1 ("sethostname (\"%s\"): %m", ctx->t->hostname);
++#else
++      FAIL_UNSUPPORTED ("clone (CLONE_NEWUTS) not supported");
++#endif
+     }
+ 
+   switch (ctx->init)
diff --git a/debian/patches/series b/debian/patches/series
index 8119edf..d9c9ea7 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -146,6 +146,7 @@ hurd-i386/git-libpthread-2.26.diff
 hurd-i386/git-x86-tunables.diff
 hurd-i386/git-i386-implies-x86.diff
 hurd-i386/git-rtld-strtoul_internal.diff
+hurd-i386/git-clone.diff
 
 i386/local-biarch.diff
 i386/unsubmitted-quiet-ldconfig.diff

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-glibc/glibc.git


Reply to: