[glibc] branch glibc-2.23 updated (89a150e -> 47cda7a)

2016-03-19 Thread Samuel Thibault
This is an automated email from the git hooks/post-receive script.

sthibault pushed a change to branch glibc-2.23
in repository glibc.

  from  89a150e   mrk tst-malloc-thread-exit as xfail on powerpc and ppc64
   new  47cda7a   hurd-i386/cvs-libpthread.diff: More updates to glibc-2.23.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.


Summary of changes:
 debian/changelog |  4 
 debian/patches/hurd-i386/cvs-libpthread.diff | 10 +-
 2 files changed, 9 insertions(+), 5 deletions(-)

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



[glibc] branch glibc-2.23 updated (e05091e -> d29a682)

2016-03-19 Thread Samuel Thibault
This is an automated email from the git hooks/post-receive script.

sthibault pushed a change to branch glibc-2.23
in repository glibc.

  from  e05091e   Merge branch 'glibc-2.23' of 
ssh://git.debian.org/git/pkg-glibc/glibc into glibc-2.23
   new  d29a682   Use testsuite-xfail-debian.mk's tests-unsupported instead 
of patching the test

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.


Summary of changes:
 debian/changelog  |  2 +-
 debian/patches/hurd-i386/local-test-skip.diff | 17 -
 debian/patches/series.hurd-i386   |  1 -
 debian/testsuite-xfail-debian.mk  |  3 +++
 4 files changed, 4 insertions(+), 19 deletions(-)
 delete mode 100644 debian/patches/hurd-i386/local-test-skip.diff

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



[glibc] 02/02: hurd-i386/cvs-aio_sigqueue.diff: Fix aio_sigqueue prototype.

2016-03-19 Thread Samuel Thibault
This is an automated email from the git hooks/post-receive script.

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

commit b50873cc75587143fdf32f3c29639a1db7ee082d
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Wed Mar 16 13:55:18 2016 +0100

hurd-i386/cvs-aio_sigqueue.diff: Fix aio_sigqueue prototype.
---
 debian/changelog   |  1 +
 debian/patches/hurd-i386/cvs-aio_sigqueue.diff | 12 
 debian/patches/series  |  1 +
 3 files changed, 14 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index f686720..399902e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,7 @@ glibc (2.23-0experimental1) UNRELEASED; urgency=medium
   * hurd-i386/cvs-libpthread.diff: More updates to glibc-2.23.
   * hurd-i386/cvs-openat.diff: Fix __openat prototype.
   * hurd-i386/cvs-gai_sigqueue.diff: Fix gai_sigqueue prototype.
+  * hurd-i386/cvs-aio_sigqueue.diff: Fix aio_sigqueue prototype.
 
  -- Aurelien Jarno <aure...@debian.org>  Mon, 14 Mar 2016 00:14:11 +0100
 
diff --git a/debian/patches/hurd-i386/cvs-aio_sigqueue.diff 
b/debian/patches/hurd-i386/cvs-aio_sigqueue.diff
new file mode 100644
index 000..0816fd6
--- /dev/null
+++ b/debian/patches/hurd-i386/cvs-aio_sigqueue.diff
@@ -0,0 +1,12 @@
+diff --git a/rt/aio_sigqueue.c b/rt/aio_sigqueue.c
+index 0297eca..33bb61b 100644
+--- a/rt/aio_sigqueue.c
 b/rt/aio_sigqueue.c
+@@ -22,6 +22,7 @@
+ #include 
+ 
+ int
++attribute_hidden internal_function
+ __aio_sigqueue (int sig, const union sigval val, pid_t caller_pid)
+ {
+   __set_errno (ENOSYS);
diff --git a/debian/patches/series b/debian/patches/series
index c29a69c..b0b53d9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -133,6 +133,7 @@ hurd-i386/cvs-libpthread-sigstate.diff
 hurd-i386/submitted-hurd-abilist.diff
 hurd-i386/cvs-openat.diff
 hurd-i386/cvs-gai_sigqueue.diff
+hurd-i386/cvs-aio_sigqueue.diff
 
 i386/local-biarch.diff
 i386/local-cmov.diff

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



[glibc] 01/01: hurd-i386/cvs-openat.diff: Fix __openat prototype.

2016-03-19 Thread Samuel Thibault
This is an automated email from the git hooks/post-receive script.

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

commit e797f361406ff9daa14631ea49e815a9de97876e
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Wed Mar 16 13:42:05 2016 +0100

hurd-i386/cvs-openat.diff: Fix __openat prototype.
---
 debian/changelog |  1 +
 debian/patches/hurd-i386/cvs-openat.diff | 13 +
 debian/patches/series|  1 +
 3 files changed, 15 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index d4d276c..10b2e3f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,7 @@ glibc (2.23-0experimental1) UNRELEASED; urgency=medium
 
   [ Samuel Thibault ]
   * hurd-i386/cvs-libpthread.diff: More updates to glibc-2.23.
+  * hurd-i386/cvs-openat.diff: Fix __openat prototype.
 
  -- Aurelien Jarno <aure...@debian.org>  Mon, 14 Mar 2016 00:14:11 +0100
 
diff --git a/debian/patches/hurd-i386/cvs-openat.diff 
b/debian/patches/hurd-i386/cvs-openat.diff
new file mode 100644
index 000..faa31e9
--- /dev/null
+++ b/debian/patches/hurd-i386/cvs-openat.diff
@@ -0,0 +1,13 @@
+diff --git a/sysdeps/mach/hurd/openat.c b/sysdeps/mach/hurd/openat.c
+index 974ff3f..4bb6ae4 100644
+--- a/sysdeps/mach/hurd/openat.c
 b/sysdeps/mach/hurd/openat.c
+@@ -29,7 +29,7 @@
+the directory associated with FD.  If O_CREAT or O_TMPFILE is in OFLAG, a
+third argument is the file protection.  */
+ int
+-__openat (int fd, const char *file, int oflag)
++__openat (int fd, const char *file, int oflag, ...)
+ {
+   mode_t mode;
+   io_t port;
diff --git a/debian/patches/series b/debian/patches/series
index 2b8c3ac..7817fca 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -131,6 +131,7 @@ hurd-i386/cvs-hidden.diff
 hurd-i386/cvs-libpthread-api.diff
 hurd-i386/cvs-libpthread-sigstate.diff
 hurd-i386/submitted-hurd-abilist.diff
+hurd-i386/cvs-openat.diff
 
 i386/local-biarch.diff
 i386/local-cmov.diff

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



[glibc] branch glibc-2.23 updated (023a8c8 -> e05091e)

2016-03-19 Thread Samuel Thibault
This is an automated email from the git hooks/post-receive script.

sthibault pushed a change to branch glibc-2.23
in repository glibc.

  from  023a8c8   hurd-i386/cvs-libpthread.diff: Separate 2.23 changes to...
   new  e9b5470   hurd-only fixes
   new  e05091e   Merge branch 'glibc-2.23' of 
ssh://git.debian.org/git/pkg-glibc/glibc into glibc-2.23

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.


Summary of changes:
 debian/changelog   |  2 ++
 debian/patches/hurd-i386/local-test-skip.diff  | 17 ++
 .../hurd-i386/unsubmitted-libpthread.so.diff   | 27 ++
 debian/patches/series.hurd-i386|  2 ++
 4 files changed, 48 insertions(+)
 create mode 100644 debian/patches/hurd-i386/local-test-skip.diff
 create mode 100644 debian/patches/hurd-i386/unsubmitted-libpthread.so.diff

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



[glibc] 01/01: Use testsuite-xfail-debian.mk's tests-unsupported instead of patching the test

2016-03-19 Thread Samuel Thibault
This is an automated email from the git hooks/post-receive script.

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

commit d29a6823f8a7b9c539e071879585dbea16d0b32e
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Thu Mar 17 11:03:13 2016 +0100

Use testsuite-xfail-debian.mk's tests-unsupported instead of patching the 
test
---
 debian/changelog  |  2 +-
 debian/patches/hurd-i386/local-test-skip.diff | 17 -
 debian/patches/series.hurd-i386   |  1 -
 debian/testsuite-xfail-debian.mk  |  3 +++
 4 files changed, 4 insertions(+), 19 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 4f1b135..aced215 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -14,7 +14,7 @@ glibc (2.23-0experimental1) UNRELEASED; urgency=medium
   * hurd-i386/cvs-libpthread.diff: Separate 2.23 changes to...
   * hurd-i386/cvs-libpthread-2.23.diff: ... separate patch.
   * hurd-i386/unsubmitted-libpthread.so.diff: Fix building malloc tests.
-  * hurd-i386/local-test-skip.diff: Skip test which just overflows memory.
+  * testsuite-xfail-debian.mk: Skip test which just overflows memory.
 
  -- Aurelien Jarno <aure...@debian.org>  Mon, 14 Mar 2016 00:14:11 +0100
 
diff --git a/debian/patches/hurd-i386/local-test-skip.diff 
b/debian/patches/hurd-i386/local-test-skip.diff
deleted file mode 100644
index ee61dc8..000
--- a/debian/patches/hurd-i386/local-test-skip.diff
+++ /dev/null
@@ -1,17 +0,0 @@
-RLIMIT_AS is not supported yet. Running this test would thus just overflow
-memory.
-
-Index: glibc-2.23/malloc/tst-malloc-thread-fail.c
-===
 glibc-2.23.orig/malloc/tst-malloc-thread-fail.c
-+++ glibc-2.23/malloc/tst-malloc-thread-fail.c
-@@ -309,6 +309,9 @@ run_allocation_functions (void)
- int
- do_test (void)
- {
-+  puts("RLIMIT_AS not supported, test skipped");
-+  return 0;
-+
-   /* Limit the number of malloc arenas.  We use a very low number so
-  that despute the address space limit configured below, all
-  requested arenas a can be created.  */
diff --git a/debian/patches/series.hurd-i386 b/debian/patches/series.hurd-i386
index 0f04acd..b7cb1b0 100644
--- a/debian/patches/series.hurd-i386
+++ b/debian/patches/series.hurd-i386
@@ -13,4 +13,3 @@ hurd-i386/local-no-bootstrap-fs-access.diff
 hurd-i386/unsubmitted-timer_routines.diff 
 hurd-i386/local-versions-hack.diff
 hurd-i386/unsubmitted-libpthread.so.diff
-hurd-i386/local-test-skip.diff
diff --git a/debian/testsuite-xfail-debian.mk b/debian/testsuite-xfail-debian.mk
index 91a3ea4..5d23160 100644
--- a/debian/testsuite-xfail-debian.mk
+++ b/debian/testsuite-xfail-debian.mk
@@ -197,6 +197,9 @@ tests-unsupported += tst-timer4
 tests-unsupported += tst-timer5
 tests-unsupported += tst-malloc-backtrace
 
+# bounding memory allocation is not supported yet
+tests-unsupported += tst-malloc-thread-fail
+
 # Need actual porting
 test-xfail-exe = yes
 test-xfail-tst-mqueue5 = yes

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



[glibc] 01/01: hurd-i386/cvs-libpthread.diff: Separate 2.23 changes to...

2016-03-19 Thread Samuel Thibault
This is an automated email from the git hooks/post-receive script.

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

commit 023a8c8d4c6968cda060d776dd5adae61497aa86
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Thu Mar 17 01:28:11 2016 +0100

hurd-i386/cvs-libpthread.diff: Separate 2.23 changes to...

hurd-i386/cvs-libpthread-2.23.diff: ... separate patch.
---
 debian/changelog  |  2 +
 debian/patches/hurd-i386/cvs-libpthread-2.23.diff | 66 +++
 debian/patches/hurd-i386/cvs-libpthread.diff  | 20 +++
 debian/patches/series |  1 +
 4 files changed, 79 insertions(+), 10 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 399902e..9bd070f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,8 @@ glibc (2.23-0experimental1) UNRELEASED; urgency=medium
   * hurd-i386/cvs-openat.diff: Fix __openat prototype.
   * hurd-i386/cvs-gai_sigqueue.diff: Fix gai_sigqueue prototype.
   * hurd-i386/cvs-aio_sigqueue.diff: Fix aio_sigqueue prototype.
+  * hurd-i386/cvs-libpthread.diff: Separate 2.23 changes to...
+  * hurd-i386/cvs-libpthread-2.23.diff: ... separate patch.
 
  -- Aurelien Jarno <aure...@debian.org>  Mon, 14 Mar 2016 00:14:11 +0100
 
diff --git a/debian/patches/hurd-i386/cvs-libpthread-2.23.diff 
b/debian/patches/hurd-i386/cvs-libpthread-2.23.diff
new file mode 100644
index 000..de84623
--- /dev/null
+++ b/debian/patches/hurd-i386/cvs-libpthread-2.23.diff
@@ -0,0 +1,66 @@
+--- a/libpthread/forward.c
 b/libpthread/forward.c
+@@ -132,7 +132,7 @@ FORWARD (pthread_mutex_unlock, (pthread_
+ FORWARD2 (pthread_self, pthread_t, (void), (), return 0)
+ 
+ 
+-FORWARD (pthread_setcancelstate, (int state, int *oldstate), (state, 
oldstate),
++FORWARD (__pthread_setcancelstate, (int state, int *oldstate), (state, 
oldstate),
+0)
+ 
+ FORWARD (pthread_setcanceltype, (int type, int *oldtype), (type, oldtype), 0)
+--- a/libpthread/pthread/pt-initialize.c
 b/libpthread/pthread/pt-initialize.c
+@@ -61,7 +61,7 @@ static const struct pthread_functions pt
+ .ptr_pthread_mutex_trylock = __pthread_mutex_trylock,
+ .ptr_pthread_mutex_unlock = __pthread_mutex_unlock,
+ .ptr_pthread_self = __pthread_self,
+-.ptr_pthread_setcancelstate = __pthread_setcancelstate,
++.ptr___pthread_setcancelstate = __pthread_setcancelstate,
+ .ptr_pthread_setcanceltype = __pthread_setcanceltype,
+ .ptr___pthread_get_cleanup_stack = __pthread_get_cleanup_stack,
+ .ptr_pthread_once = __pthread_once,
+--- a/libpthread/sysdeps/pthread/flockfile.c
 b/libpthread/sysdeps/pthread/flockfile.c
+@@ -18,7 +18,7 @@
+ 
+ #include 
+ #include 
+-#include 
++#include 
+ 
+ 
+ void
+--- a/libpthread/sysdeps/pthread/ftrylockfile.c
 b/libpthread/sysdeps/pthread/ftrylockfile.c
+@@ -19,7 +19,7 @@
+ #include 
+ #include 
+ #include 
+-#include 
++#include 
+ 
+ 
+ int
+--- a/libpthread/sysdeps/pthread/funlockfile.c
 b/libpthread/sysdeps/pthread/funlockfile.c
+@@ -19,7 +19,7 @@
+ #include 
+ #include 
+ #include 
+-#include 
++#include 
+ 
+ 
+ void
+--- a/libpthread/sysdeps/pthread/pthread-functions.h
 b/libpthread/sysdeps/pthread/pthread-functions.h
+@@ -114,7 +114,7 @@ struct pthread_functions
+   int (*ptr_pthread_mutex_trylock) (pthread_mutex_t *);
+   int (*ptr_pthread_mutex_unlock) (pthread_mutex_t *);
+   pthread_t (*ptr_pthread_self) (void);
+-  int (*ptr_pthread_setcancelstate) (int, int *);
++  int (*ptr___pthread_setcancelstate) (int, int *);
+   int (*ptr_pthread_setcanceltype) (int, int *);
+   struct __pthread_cancelation_handler **(*ptr___pthread_get_cleanup_stack) 
(void);
+   int (*ptr_pthread_once) (pthread_once_t *, void (*) (void));
diff --git a/debian/patches/hurd-i386/cvs-libpthread.diff 
b/debian/patches/hurd-i386/cvs-libpthread.diff
index 5104eff..0e0522c 100644
--- a/debian/patches/hurd-i386/cvs-libpthread.diff
+++ b/debian/patches/hurd-i386/cvs-libpthread.diff
@@ -395,7 +395,7 @@ Index: glibc-2.21/libpthread/forward.c
 +FORWARD2 (pthread_self, pthread_t, (void), (), return 0)
 +
 +
-+FORWARD (__pthread_setcancelstate, (int state, int *oldstate), (state, 
oldstate),
++FORWARD (pthread_setcancelstate, (int state, int *oldstate), (state, 
oldstate),
 +   0)
 +
 +FORWARD (pthread_setcanceltype, (int type, int *oldtype), (type, oldtype), 0)
@@ -3599,7 +3599,7 @@ Index: glibc-2.21/libpthread/pthread/pt-initialize.c
 +.ptr_pthread_mutex_trylock = __pthread_mutex_trylock,
 +.ptr_pthread_mutex_unlock = __pthread_mutex_unlock,
 +.ptr_pthread_self = __pthread_self,
-+.ptr___pthread_setcancelstate = __pthread_setcancelstate,
++.ptr_pthread_setcancelstate = __pthread_setcancelstate,
 +.ptr_pthread_setcanceltype = __pthread_setcanceltype,
 +.ptr___pthread_get_cleanup_stack = __pthread_get_cleanup_stack,
 +.ptr_pthread_once = __pthread_once,
@@ -14605,7 +14605,7 @@ Index: glibc-2.2

[glibc] branch glibc-2.23 updated (b50873c -> b5caf67)

2016-03-19 Thread Samuel Thibault
This is an automated email from the git hooks/post-receive script.

sthibault pushed a change to branch glibc-2.23
in repository glibc.

  from  b50873c   hurd-i386/cvs-aio_sigqueue.diff: Fix aio_sigqueue 
prototype.
   new  b5caf67   refresh

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.


Summary of changes:
 debian/patches/hurd-i386/libpthread_version.diff | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



[glibc] branch glibc-2.23 updated (b5caf67 -> 023a8c8)

2016-03-19 Thread Samuel Thibault
This is an automated email from the git hooks/post-receive script.

sthibault pushed a change to branch glibc-2.23
in repository glibc.

  from  b5caf67   refresh
   new  023a8c8   hurd-i386/cvs-libpthread.diff: Separate 2.23 changes to...

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.


Summary of changes:
 debian/changelog  |  2 +
 debian/patches/hurd-i386/cvs-libpthread-2.23.diff | 66 +++
 debian/patches/hurd-i386/cvs-libpthread.diff  | 20 +++
 debian/patches/series |  1 +
 4 files changed, 79 insertions(+), 10 deletions(-)
 create mode 100644 debian/patches/hurd-i386/cvs-libpthread-2.23.diff

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



[glibc] branch glibc-2.23 updated (e797f36 -> b50873c)

2016-03-19 Thread Samuel Thibault
This is an automated email from the git hooks/post-receive script.

sthibault pushed a change to branch glibc-2.23
in repository glibc.

  from  e797f36   hurd-i386/cvs-openat.diff: Fix __openat prototype.
   new  19bac1a   More glibc 2.23 fixes
   new  b50873c   hurd-i386/cvs-aio_sigqueue.diff: Fix aio_sigqueue 
prototype.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.


Summary of changes:
 debian/changelog   |  2 ++
 debian/patches/hurd-i386/cvs-aio_sigqueue.diff | 12 
 debian/patches/hurd-i386/cvs-gai_sigqueue.diff | 12 
 debian/patches/hurd-i386/cvs-libpthread.diff   |  6 +++---
 debian/patches/series  |  2 ++
 5 files changed, 31 insertions(+), 3 deletions(-)
 create mode 100644 debian/patches/hurd-i386/cvs-aio_sigqueue.diff
 create mode 100644 debian/patches/hurd-i386/cvs-gai_sigqueue.diff

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



[glibc] 01/02: hurd-only fixes

2016-03-19 Thread Samuel Thibault
This is an automated email from the git hooks/post-receive script.

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

commit e9b54702a79c7b5a5839e5c27dad9f59acb84f13
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Thu Mar 17 08:35:26 2016 +

hurd-only fixes

  * hurd-i386/unsubmitted-libpthread.so.diff: Fix building malloc tests.
  * hurd-i386/local-test-skip.diff: Skip test which just overflows memory.
---
 debian/changelog   |  2 ++
 debian/patches/hurd-i386/local-test-skip.diff  | 17 ++
 .../hurd-i386/unsubmitted-libpthread.so.diff   | 27 ++
 debian/patches/series.hurd-i386|  2 ++
 4 files changed, 48 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 399902e..631e086 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,8 @@ glibc (2.23-0experimental1) UNRELEASED; urgency=medium
   * hurd-i386/cvs-openat.diff: Fix __openat prototype.
   * hurd-i386/cvs-gai_sigqueue.diff: Fix gai_sigqueue prototype.
   * hurd-i386/cvs-aio_sigqueue.diff: Fix aio_sigqueue prototype.
+  * hurd-i386/unsubmitted-libpthread.so.diff: Fix building malloc tests.
+  * hurd-i386/local-test-skip.diff: Skip test which just overflows memory.
 
  -- Aurelien Jarno <aure...@debian.org>  Mon, 14 Mar 2016 00:14:11 +0100
 
diff --git a/debian/patches/hurd-i386/local-test-skip.diff 
b/debian/patches/hurd-i386/local-test-skip.diff
new file mode 100644
index 000..ee61dc8
--- /dev/null
+++ b/debian/patches/hurd-i386/local-test-skip.diff
@@ -0,0 +1,17 @@
+RLIMIT_AS is not supported yet. Running this test would thus just overflow
+memory.
+
+Index: glibc-2.23/malloc/tst-malloc-thread-fail.c
+===
+--- glibc-2.23.orig/malloc/tst-malloc-thread-fail.c
 glibc-2.23/malloc/tst-malloc-thread-fail.c
+@@ -309,6 +309,9 @@ run_allocation_functions (void)
+ int
+ do_test (void)
+ {
++  puts("RLIMIT_AS not supported, test skipped");
++  return 0;
++
+   /* Limit the number of malloc arenas.  We use a very low number so
+  that despute the address space limit configured below, all
+  requested arenas a can be created.  */
diff --git a/debian/patches/hurd-i386/unsubmitted-libpthread.so.diff 
b/debian/patches/hurd-i386/unsubmitted-libpthread.so.diff
new file mode 100644
index 000..33bb159
--- /dev/null
+++ b/debian/patches/hurd-i386/unsubmitted-libpthread.so.diff
@@ -0,0 +1,27 @@
+Hardcoded nptl path...
+
+https://sourceware.org/ml/libc-alpha/2016-03/msg00437.html
+
+Index: glibc-2.23/malloc/Makefile
+===
+--- glibc-2.23.orig/malloc/Makefile
 glibc-2.23/malloc/Makefile
+@@ -46,12 +46,12 @@ extra-libs-others = $(extra-libs)
+ libmemusage-routines = memusage
+ libmemusage-inhibit-o = $(filter-out .os,$(object-suffixes))
+ 
+-$(objpfx)tst-malloc-backtrace: $(common-objpfx)nptl/libpthread.so \
+- $(common-objpfx)nptl/libpthread_nonshared.a
+-$(objpfx)tst-malloc-thread-exit: $(common-objpfx)nptl/libpthread.so \
+- $(common-objpfx)nptl/libpthread_nonshared.a
+-$(objpfx)tst-malloc-thread-fail: $(common-objpfx)nptl/libpthread.so \
+- $(common-objpfx)nptl/libpthread_nonshared.a
++$(objpfx)tst-malloc-backtrace: $(common-objpfx)libpthread/libpthread.so \
++ $(common-objpfx)libpthread/libpthread.a
++$(objpfx)tst-malloc-thread-exit: $(common-objpfx)libpthread/libpthread.so \
++ $(common-objpfx)libpthread/libpthread.a
++$(objpfx)tst-malloc-thread-fail: $(common-objpfx)libpthread/libpthread.so \
++ $(common-objpfx)libpthread/libpthread.a
+ 
+ # These should be removed by `make clean'.
+ extra-objs = mcheck-init.o libmcheck.a
diff --git a/debian/patches/series.hurd-i386 b/debian/patches/series.hurd-i386
index 4629e1b..0f04acd 100644
--- a/debian/patches/series.hurd-i386
+++ b/debian/patches/series.hurd-i386
@@ -12,3 +12,5 @@ hurd-i386/tg-pagesize.diff
 hurd-i386/local-no-bootstrap-fs-access.diff
 hurd-i386/unsubmitted-timer_routines.diff 
 hurd-i386/local-versions-hack.diff
+hurd-i386/unsubmitted-libpthread.so.diff
+hurd-i386/local-test-skip.diff

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



[glibc] 01/02: More glibc 2.23 fixes

2016-03-18 Thread Samuel Thibault
This is an automated email from the git hooks/post-receive script.

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

commit 19bac1a0b6654932d0199b8f9207baaf9a6ba929
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Wed Mar 16 13:45:01 2016 +0100

More glibc 2.23 fixes

hurd-i386/cvs-libpthread.diff: More updates to glibc-2.23.
hurd-i386/cvs-gai_sigqueue.diff: Fix gai_sigqueue prototype.
---
 debian/changelog   |  1 +
 debian/patches/hurd-i386/cvs-gai_sigqueue.diff | 12 
 debian/patches/hurd-i386/cvs-libpthread.diff   |  6 +++---
 debian/patches/series  |  1 +
 4 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 10b2e3f..f686720 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,7 @@ glibc (2.23-0experimental1) UNRELEASED; urgency=medium
   [ Samuel Thibault ]
   * hurd-i386/cvs-libpthread.diff: More updates to glibc-2.23.
   * hurd-i386/cvs-openat.diff: Fix __openat prototype.
+  * hurd-i386/cvs-gai_sigqueue.diff: Fix gai_sigqueue prototype.
 
  -- Aurelien Jarno <aure...@debian.org>  Mon, 14 Mar 2016 00:14:11 +0100
 
diff --git a/debian/patches/hurd-i386/cvs-gai_sigqueue.diff 
b/debian/patches/hurd-i386/cvs-gai_sigqueue.diff
new file mode 100644
index 000..081d6be
--- /dev/null
+++ b/debian/patches/hurd-i386/cvs-gai_sigqueue.diff
@@ -0,0 +1,12 @@
+diff --git a/resolv/gai_sigqueue.c b/resolv/gai_sigqueue.c
+index 4b0c08f..40d2a68 100644
+--- a/resolv/gai_sigqueue.c
 b/resolv/gai_sigqueue.c
+@@ -22,6 +22,7 @@
+ #include 
+ 
+ int
++internal_function
+ __gai_sigqueue (int sig, const union sigval val, pid_t caller_pid)
+ {
+   __set_errno (ENOSYS);
diff --git a/debian/patches/hurd-i386/cvs-libpthread.diff 
b/debian/patches/hurd-i386/cvs-libpthread.diff
index 2ca4d42..5104eff 100644
--- a/debian/patches/hurd-i386/cvs-libpthread.diff
+++ b/debian/patches/hurd-i386/cvs-libpthread.diff
@@ -395,7 +395,7 @@ Index: glibc-2.21/libpthread/forward.c
 +FORWARD2 (pthread_self, pthread_t, (void), (), return 0)
 +
 +
-+FORWARD (pthread_setcancelstate, (int state, int *oldstate), (state, 
oldstate),
++FORWARD (__pthread_setcancelstate, (int state, int *oldstate), (state, 
oldstate),
 +   0)
 +
 +FORWARD (pthread_setcanceltype, (int type, int *oldtype), (type, oldtype), 0)
@@ -14834,7 +14834,7 @@ Index: 
glibc-2.21/libpthread/sysdeps/pthread/libc-lockP.h
 +weak_extern (__pthread_once)
 +weak_extern (__pthread_initialize)
 +weak_extern (__pthread_atfork)
-+weak_extern (pthread_setcancelstate)
++weak_extern (__pthread_setcancelstate)
 +# else
 +#  pragma weak __pthread_mutex_init
 +#  pragma weak __pthread_mutex_destroy
@@ -14856,7 +14856,7 @@ Index: 
glibc-2.21/libpthread/sysdeps/pthread/libc-lockP.h
 +#  pragma weak __pthread_once
 +#  pragma weak __pthread_initialize
 +#  pragma weak __pthread_atfork
-+#  pragma weak pthread_setcancelstate
++#  pragma weak __pthread_setcancelstate
 +# endif
 +#endif
 +
diff --git a/debian/patches/series b/debian/patches/series
index 7817fca..c29a69c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -132,6 +132,7 @@ hurd-i386/cvs-libpthread-api.diff
 hurd-i386/cvs-libpthread-sigstate.diff
 hurd-i386/submitted-hurd-abilist.diff
 hurd-i386/cvs-openat.diff
+hurd-i386/cvs-gai_sigqueue.diff
 
 i386/local-biarch.diff
 i386/local-cmov.diff

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



[glibc] 01/01: refresh

2016-03-18 Thread Samuel Thibault
This is an automated email from the git hooks/post-receive script.

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

commit b5caf67c5f25cf4ceb247633f27d32449b55da4c
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Wed Mar 16 13:02:46 2016 +

refresh
---
 debian/patches/hurd-i386/libpthread_version.diff | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/patches/hurd-i386/libpthread_version.diff 
b/debian/patches/hurd-i386/libpthread_version.diff
index f995d08..fec449e 100644
--- a/debian/patches/hurd-i386/libpthread_version.diff
+++ b/debian/patches/hurd-i386/libpthread_version.diff
@@ -206,7 +206,7 @@ Index: glibc-2.21/libpthread/forward.c
 +FORWARD2_COMPAT (pthread_self, pthread_t, (void), (), return 0)
  
  
- FORWARD (pthread_setcancelstate, (int state, int *oldstate), (state, 
oldstate),
+ FORWARD (__pthread_setcancelstate, (int state, int *oldstate), (state, 
oldstate),
 @@ -139,6 +169,7 @@ FORWARD (pthread_setcanceltype, (int typ
  
  struct __pthread_cancelation_handler *dummy_list;

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



[glibc] 01/01: hurd-i386/cvs-libpthread.diff: More updates to glibc-2.23.

2016-03-16 Thread Samuel Thibault
This is an automated email from the git hooks/post-receive script.

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

commit 47cda7aa9ee36839fd27b6e2dbfb6ea76530
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Wed Mar 16 12:09:38 2016 +0100

hurd-i386/cvs-libpthread.diff: More updates to glibc-2.23.
---
 debian/changelog |  4 
 debian/patches/hurd-i386/cvs-libpthread.diff | 10 +-
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index aef8cd5..d4d276c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,10 +1,14 @@
 glibc (2.23-0experimental1) UNRELEASED; urgency=medium
 
+  [ Aurelien Jarno ]
   * debian/testsuite-xfail-debian.mk (powerpc) really mark
 tst-malloc-thread-exit as xfail.
   * debian/testsuite-xfail-debian.mk (ppc64) mark tst-malloc-thread-exit
 test as xfail, it is a known issue and not a regression.
 
+  [ Samuel Thibault ]
+  * hurd-i386/cvs-libpthread.diff: More updates to glibc-2.23.
+
  -- Aurelien Jarno <aure...@debian.org>  Mon, 14 Mar 2016 00:14:11 +0100
 
 glibc (2.23-0experimental0) experimental; urgency=medium
diff --git a/debian/patches/hurd-i386/cvs-libpthread.diff 
b/debian/patches/hurd-i386/cvs-libpthread.diff
index a1d3fe9..2ca4d42 100644
--- a/debian/patches/hurd-i386/cvs-libpthread.diff
+++ b/debian/patches/hurd-i386/cvs-libpthread.diff
@@ -3599,7 +3599,7 @@ Index: glibc-2.21/libpthread/pthread/pt-initialize.c
 +.ptr_pthread_mutex_trylock = __pthread_mutex_trylock,
 +.ptr_pthread_mutex_unlock = __pthread_mutex_unlock,
 +.ptr_pthread_self = __pthread_self,
-+.ptr_pthread_setcancelstate = __pthread_setcancelstate,
++.ptr___pthread_setcancelstate = __pthread_setcancelstate,
 +.ptr_pthread_setcanceltype = __pthread_setcanceltype,
 +.ptr___pthread_get_cleanup_stack = __pthread_get_cleanup_stack,
 +.ptr_pthread_once = __pthread_once,
@@ -14605,7 +14605,7 @@ Index: glibc-2.21/libpthread/sysdeps/pthread/flockfile.c
 +
 +#include 
 +#include 
-+#include 
++#include 
 +
 +
 +void
@@ -14644,7 +14644,7 @@ Index: 
glibc-2.21/libpthread/sysdeps/pthread/ftrylockfile.c
 +#include 
 +#include 
 +#include 
-+#include 
++#include 
 +
 +
 +int
@@ -14685,7 +14685,7 @@ Index: 
glibc-2.21/libpthread/sysdeps/pthread/funlockfile.c
 +#include 
 +#include 
 +#include 
-+#include 
++#include 
 +
 +
 +void
@@ -14982,7 +14982,7 @@ Index: 
glibc-2.21/libpthread/sysdeps/pthread/pthread-functions.h
 +  int (*ptr_pthread_mutex_trylock) (pthread_mutex_t *);
 +  int (*ptr_pthread_mutex_unlock) (pthread_mutex_t *);
 +  pthread_t (*ptr_pthread_self) (void);
-+  int (*ptr_pthread_setcancelstate) (int, int *);
++  int (*ptr___pthread_setcancelstate) (int, int *);
 +  int (*ptr_pthread_setcanceltype) (int, int *);
 +  struct __pthread_cancelation_handler **(*ptr___pthread_get_cleanup_stack) 
(void);
 +  int (*ptr_pthread_once) (pthread_once_t *, void (*) (void));

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



Bug#818178: libc6: getaddrinfo/freeadrinfo memory leak

2016-03-14 Thread Samuel Thibault
Aurelien Jarno, on Mon 14 Mar 2016 20:01:44 +0100, wrote:
> While this is definitely a bug, the leakage happens only once per
> nameserver and per program, and doesn't increase with the number of
> calls to getaddrinfo. Moreover it is actually useful to keep this
> information up to the end of the program and to avoid parsing
> /etc/resolv.conf multiple times. I am therefore decreasing the
> severity to minor.

I believe glibc already has several of such behaviors, which are already
"suppress"ed by valgrind, so it'd be a matter of adding a suppression
entry for this?

Samuel



[glibc] branch sid updated (f669836 -> e230aaf)

2016-03-14 Thread Samuel Thibault
This is an automated email from the git hooks/post-receive script.

sthibault pushed a change to branch sid
in repository glibc.

  from  f669836   Also remove fr_CA-first_weekday.diff from 
debian/patches/series
   new  e230aaf   refresh

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.


Summary of changes:
 debian/patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



[glibc] 01/01: refresh

2016-03-14 Thread Samuel Thibault
This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch sid
in repository glibc.

commit e230aaf4fb8329cc64dd34e1a2133e136ccee21c
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Mon Mar 14 12:19:45 2016 +0100

refresh
---
 debian/patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff 
b/debian/patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff
index 029859f..05eca27 100644
--- a/debian/patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff
+++ b/debian/patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff
@@ -151,7 +151,7 @@ index 0200b13..b66e5b5 100644
 Returns the number of bytes read or -1 for errors.  */
  ssize_t
 @@ -191,6 +308,21 @@ __libc_recvmsg (int fd, struct msghdr *message, int flags)
-   i++;
+   newfds++;
  }
}
 +else if (cmsg->cmsg_level == SOL_SOCKET && cmsg->cmsg_type == SCM_CREDS)

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



[glibc] branch sid updated (b201f4a -> e23cce2)

2016-03-13 Thread Samuel Thibault
This is an automated email from the git hooks/post-receive script.

sthibault pushed a change to branch sid
in repository glibc.

  from  b201f4a   debian/patches/localedata/fr_CA-first_weekday.diff: drop. 
 Closes: #769051.
   new  e23cce2   hurd-i386/tg-sendmsg-SCM_{RIGHTS,CREDS}.diff: Update

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.


Summary of changes:
 debian/changelog   |  5 ++
 debian/patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff | 27 +++---
 .../patches/hurd-i386/tg-sendmsg-SCM_RIGHTS.diff   | 63 --
 3 files changed, 59 insertions(+), 36 deletions(-)

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



[glibc] 01/01: hurd-i386/tg-sendmsg-SCM_{RIGHTS, CREDS}.diff: Update

2016-03-13 Thread Samuel Thibault
This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch sid
in repository glibc.

commit e23cce2baa3111ff928211709f2cb64d4cfc8d19
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Mon Mar 14 01:02:21 2016 +0100

hurd-i386/tg-sendmsg-SCM_{RIGHTS,CREDS}.diff: Update
---
 debian/changelog   |  5 ++
 debian/patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff | 27 +++---
 .../patches/hurd-i386/tg-sendmsg-SCM_RIGHTS.diff   | 63 --
 3 files changed, 59 insertions(+), 36 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 745f39f..31aa715 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,13 @@
 glibc (2.22-5) UNRELEASED; urgency=medium
 
+  [ Aurelien Jarno ]
   * debian/patches/localedata/fr_CA-first_weekday.diff: drop.  Closes:
 #769051.
 
+  [ Samuel Thibault ]
+  * patches/hurd-i386/tg-sendmsg-SCM_RIGHTS.diff,tg-sendmsg-SCM_CREDS.diff:
+Update.
+
  -- Aurelien Jarno <aure...@debian.org>  Sun, 13 Mar 2016 15:03:58 +0100
 
 glibc (2.22-3) unstable; urgency=medium
diff --git a/debian/patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff 
b/debian/patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff
index 33183a4..029859f 100644
--- a/debian/patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff
+++ b/debian/patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff
@@ -8,18 +8,22 @@ Samuel Thibault  <samuel.thiba...@ens-lyon.org>
control message, and call __auth_user_authenticate_request to
make auth send credentials on that port.  Do not wait for a
reply.
-
* sysdeps/mach/hurd/recvmsg.c (contains_uid, contains_gid,
check_auth): New functions.
(__libc_recvmsg): On SCM_CREDS control messages, call check_auth
to check the passed credentials thanks to the answer from the
auth server.
+   * hurd/Makefile (user-interfaces): Add auth_request and
+   auth_reply.
 
 ---
- sysdeps/mach/hurd/recvmsg.c | 136 
+ hurd/Makefile   |   2 +-
+ sysdeps/mach/hurd/recvmsg.c | 137 
  sysdeps/mach/hurd/sendmsg.c |  34 +++
- 2 files changed, 170 insertions(+)
+ 3 files changed, 172 insertions(+), 1 deletion(-)
 
+diff --git a/sysdeps/mach/hurd/recvmsg.c b/sysdeps/mach/hurd/recvmsg.c
+index 0200b13..b66e5b5 100644
 --- a/sysdeps/mach/hurd/recvmsg.c
 +++ b/sysdeps/mach/hurd/recvmsg.c
 @@ -23,6 +23,123 @@
@@ -146,7 +150,7 @@ Samuel Thibault  <samuel.thiba...@ens-lyon.org>
  /* Receive a message as described by MESSAGE from socket FD.
 Returns the number of bytes read or -1 for errors.  */
  ssize_t
-@@ -191,6 +308,21 @@ __libc_recvmsg (int fd, struct msghdr *m
+@@ -191,6 +308,21 @@ __libc_recvmsg (int fd, struct msghdr *message, int flags)
i++;
  }
}
@@ -168,20 +172,23 @@ Samuel Thibault  <samuel.thiba...@ens-lyon.org>
}
  
for (i = 0; i < nports; i++)
-@@ -221,6 +353,10 @@ cleanup:
+@@ -221,6 +353,11 @@ cleanup:
__mach_port_deallocate (__mach_task_self (), ports[ii]);
  }
}
 +else if (cmsg->cmsg_level == SOL_SOCKET && cmsg->cmsg_type == 
SCM_CREDS)
 +  {
 +__mach_port_deallocate (__mach_task_self (), ports[ii]);
++ii++;
 +  }
}
  }
  
+diff --git a/sysdeps/mach/hurd/sendmsg.c b/sysdeps/mach/hurd/sendmsg.c
+index 612581c..51167e8 100644
 --- a/sysdeps/mach/hurd/sendmsg.c
 +++ b/sysdeps/mach/hurd/sendmsg.c
-@@ -112,6 +112,8 @@ __libc_sendmsg (int fd, const struct msg
+@@ -111,6 +111,8 @@ __libc_sendmsg (int fd, const struct msghdr *message, int 
flags)
  if (cmsg->cmsg_level == SOL_SOCKET && cmsg->cmsg_type == SCM_RIGHTS)
nports += (cmsg->cmsg_len - CMSG_ALIGN (sizeof (struct cmsghdr)))
    / sizeof (int);
@@ -190,7 +197,7 @@ Samuel Thibault  <samuel.thiba...@ens-lyon.org>
  
if (nports)
  ports = __alloca (nports * sizeof (mach_port_t));
-@@ -146,6 +148,38 @@ __libc_sendmsg (int fd, const struct msg
+@@ -145,6 +147,38 @@ __libc_sendmsg (int fd, const struct msghdr *message, int 
flags)
    goto out;
}
}
@@ -229,9 +236,11 @@ Samuel Thibault  <samuel.thiba...@ens-lyon.org>
  }
  
if (addr)
+diff --git a/hurd/Makefile b/hurd/Makefile
+index 4387253..0ee417d 100644
 --- a/hurd/Makefile
 +++ b/hurd/Makefile
-@@ -29,7 +29,7 @@ inline-headers = hurd.h $(addprefix hurd
+@@ -33,7 +33,7 @@ inline-headers = hurd.h $(addprefix hurd/,fd.h signal.h \
  # The RPC interfaces go in a separate library.
  interface-library := libhurduser
  user-interfaces   := $(addprefix hurd/,\
@@ -240,3 +249,5 @@ Samuel Thibault  <samuel.thiba...@ens-lyon.org>
   process process_request \
   msg msg_reply msg_

[glibc] branch glibc-2.22 updated (e4236f6 -> 68b6fc1)

2016-03-06 Thread Samuel Thibault
This is an automated email from the git hooks/post-receive script.

sthibault pushed a change to branch glibc-2.22
in repository glibc.

  from  e4236f6   debian/testsuite-xfail-debian.mk (alpha): mark a few 
failures which are not a regression compare to 2.21 as xfail.
   new  68b6fc1   Note about tests which should be fixed with a newer 
gnumach

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.


Summary of changes:
 debian/testsuite-xfail-debian.mk | 1 +
 1 file changed, 1 insertion(+)

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



[glibc] 01/01: Note about tests which should be fixed with a newer gnumach

2016-03-06 Thread Samuel Thibault
This is an automated email from the git hooks/post-receive script.

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

commit 68b6fc19b09eba5898f5d9dfd33ef1f203448aa4
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Sun Mar 6 13:20:56 2016 +0100

Note about tests which should be fixed with a newer gnumach
---
 debian/testsuite-xfail-debian.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debian/testsuite-xfail-debian.mk b/debian/testsuite-xfail-debian.mk
index 63da5a8..73ad95d 100644
--- a/debian/testsuite-xfail-debian.mk
+++ b/debian/testsuite-xfail-debian.mk
@@ -753,6 +753,7 @@ test-xfail-XPG4/unistd.h/linknamespace = yes
 test-xfail-XPG4/wordexp.h/linknamespace = yes
 
 # changed in 2.22, tests were run directly, now using threads
+# TODO: should be succeeding again with gnumach >= 2016-03-06
 test-xfail-test-fpucw = yes
 test-xfail-test-fpucw-ieee = yes
 test-xfail-test-fpucw-static = yes

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



[glibc] branch sid updated (321c357 -> c6a981b)

2016-02-27 Thread Samuel Thibault
This is an automated email from the git hooks/post-receive script.

sthibault pushed a change to branch sid
in repository glibc.

  from  321c357   New changelog entry
   new  c6a981b   control: Accept hurd-headers-dev and libihash-dev as 
alternatives to hurd-dev for bootstrapping.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.


Summary of changes:
 debian/changelog   |  4 +++-
 debian/control | 12 +++-
 debian/control.in/libc |  2 +-
 debian/control.in/main |  4 +++-
 4 files changed, 14 insertions(+), 8 deletions(-)

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



[glibc] 01/01: control: Accept hurd-headers-dev and libihash-dev as alternatives to hurd-dev for bootstrapping.

2016-02-27 Thread Samuel Thibault
This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch sid
in repository glibc.

commit c6a981b8223816ca9e6cf204851969a33a183ce3
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Sat Feb 27 17:14:00 2016 +0100

control: Accept hurd-headers-dev and libihash-dev as alternatives to 
hurd-dev for bootstrapping.
---
 debian/changelog   |  4 +++-
 debian/control | 12 +++-
 debian/control.in/libc |  2 +-
 debian/control.in/main |  4 +++-
 4 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 8a7b482..d31df05 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
 glibc (2.21-10) UNRELEASED; urgency=medium
 
-  * 
+  [ Samuel Thibault ]
+  * control: Accept hurd-headers-dev and libihash-dev as alternatives to
+hurd-dev for bootstrapping.
 
  -- Aurelien Jarno <aure...@debian.org>  Wed, 17 Feb 2016 19:01:13 +0100
 
diff --git a/debian/control b/debian/control
index 5f36b94..c85b37a 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,9 @@ Build-Depends: gettext, dpkg-dev (>= 1.17.14), xz-utils, file, 
quilt,
  autoconf, gawk, debhelper (>= 9.20141010), rdfind, symlinks, netbase,
  linux-libc-dev (>= 3.9) [linux-any],
  libaudit-dev [linux-any], libcap-dev [linux-any], libselinux-dev [linux-any],
- mig (>= 1.5-3) [hurd-i386], hurd-dev (>= 1:0.5.git20140320~) [hurd-i386], 
gnumach-dev (>= 2:1.4+git20141109~) [hurd-i386],
+ mig (>= 1.5-3) [hurd-i386], gnumach-dev (>= 2:1.4+git20141109~) [hurd-i386],
+ hurd-dev (>= 1:0.5.git20140320~) [hurd-i386] | hurd-headers-dev [hurd-i386],
+ hurd-dev (>= 1:0.5.git20140320~) [hurd-i386]  | libihash-dev 
[hurd-i386] ,
  kfreebsd-kernel-headers [kfreebsd-any],
  binutils (>= 2.21),
  g++-4.9, g++-4.9-multilib [amd64 i386 kfreebsd-amd64 mips mipsel mipsn32 
mipsn32el mips64 mips64el powerpc ppc64 s390x sparc sparc64 x32]
@@ -189,7 +191,7 @@ Architecture: amd64 arm arm64 armel armhf hppa i386 m68k 
mips mipsel mipsn32 mip
 Section: libdevel
 Priority: optional
 Multi-Arch: same
-Depends: libc6 (= ${binary:Version}), libc-dev-bin (= ${binary:Version}), 
${misc:Depends}, linux-libc-dev [linux-any], kfreebsd-kernel-headers (>= 0.11) 
[kfreebsd-any], gnumach-dev [hurd-i386], hurd-dev (>= 20080607-3) [hurd-i386]
+Depends: libc6 (= ${binary:Version}), libc-dev-bin (= ${binary:Version}), 
${misc:Depends}, linux-libc-dev [linux-any], kfreebsd-kernel-headers (>= 0.11) 
[kfreebsd-any], gnumach-dev [hurd-i386], hurd-dev (>= 20080607-3) [hurd-i386] | 
hurd-headers-dev [hurd-i386]
 Replaces: hurd-dev (<< 20120408-3) [hurd-i386]
 Suggests: glibc-doc, manpages-dev
 Provides: libc-dev, libc6-dev [alpha hurd-i386 kfreebsd-i386 kfreebsd-amd64]
@@ -275,7 +277,7 @@ Architecture: alpha
 Section: libdevel
 Priority: optional
 Multi-Arch: same
-Depends: libc6.1 (= ${binary:Version}), libc-dev-bin (= ${binary:Version}), 
${misc:Depends}, linux-libc-dev [linux-any], kfreebsd-kernel-headers (>= 0.11) 
[kfreebsd-any], gnumach-dev [hurd-i386], hurd-dev (>= 20080607-3) [hurd-i386]
+Depends: libc6.1 (= ${binary:Version}), libc-dev-bin (= ${binary:Version}), 
${misc:Depends}, linux-libc-dev [linux-any], kfreebsd-kernel-headers (>= 0.11) 
[kfreebsd-any], gnumach-dev [hurd-i386], hurd-dev (>= 20080607-3) [hurd-i386] | 
hurd-headers-dev [hurd-i386]
 Replaces: hurd-dev (<< 20120408-3) [hurd-i386]
 Suggests: glibc-doc, manpages-dev
 Provides: libc-dev, libc6-dev [alpha hurd-i386 kfreebsd-i386 kfreebsd-amd64]
@@ -361,7 +363,7 @@ Architecture: hurd-i386
 Section: libdevel
 Priority: optional
 Multi-Arch: same
-Depends: libc0.3 (= ${binary:Version}), libc-dev-bin (= ${binary:Version}), 
${misc:Depends}, linux-libc-dev [linux-any], kfreebsd-kernel-headers (>= 0.11) 
[kfreebsd-any], gnumach-dev [hurd-i386], hurd-dev (>= 20080607-3) [hurd-i386]
+Depends: libc0.3 (= ${binary:Version}), libc-dev-bin (= ${binary:Version}), 
${misc:Depends}, linux-libc-dev [linux-any], kfreebsd-kernel-headers (>= 0.11) 
[kfreebsd-any], gnumach-dev [hurd-i386], hurd-dev (>= 20080607-3) [hurd-i386] | 
hurd-headers-dev [hurd-i386]
 Replaces: hurd-dev (<< 20120408-3) [hurd-i386]
 Suggests: glibc-doc, manpages-dev
 Provides: libc-dev, libc6-dev [alpha hurd-i386 kfreebsd-i386 kfreebsd-amd64]
@@ -447,7 +449,7 @@ Architecture: kfreebsd-amd64 kfreebsd-i386
 Section: libdevel
 Priority: optional
 Multi-Arch: same
-Depends: libc0.1 (= ${binary:Version}), libc-dev-bin (= ${binary:Version}), 
${misc:Depends}, linux-libc-dev [linux-any], kfreebsd-kernel-headers (>= 0.11) 
[kfreebsd-any], gnumach-dev [hurd-i386], hurd-dev (>= 20080607-3) [hurd-i386]
+Depends: libc0.1 (= ${binary:Version}), libc-dev-bin (= ${binary:Version}), 
${misc:Depends}, linux-libc-dev [linux-any], kfreebsd-kernel-headers (>= 0.11) 
[kfreebsd-any], gnumach-dev [hurd-i386], hurd-dev (>= 20080607-3) [hurd-i386] | 

[glibc] 01/01: Note that -7 fixed the bug (closed separately)

2016-01-25 Thread Samuel Thibault
This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch sid
in repository glibc.

commit 2d4f441539819d9a538b92b2477d9a4ed6fbe85e
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Mon Jan 25 01:04:49 2016 +0100

Note that -7 fixed the bug (closed separately)
---
 debian/changelog | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index ceb4f48..c2d381d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -37,7 +37,7 @@ glibc (2.21-7) unstable; urgency=medium
   * patches/hurd-i386/cvs-raise-longjump.diff: New patch to fix longjump from
 signal handler.  Closes: #800900.
   * patches/hurd-i386/cvs-O_DIRECTORY.diff: New patch to fix O_DIRECTORY lookup
-on trivial translators.
+on trivial translators.  Closes: #785404.
 
  -- Aurelien Jarno <aure...@debian.org>  Sun, 24 Jan 2016 00:21:18 +0100
 

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



[glibc] branch sid updated (9e41d9d -> 2d4f441)

2016-01-25 Thread Samuel Thibault
This is an automated email from the git hooks/post-receive script.

sthibault pushed a change to branch sid
in repository glibc.

  from  9e41d9d   New changelog entry
   new  2d4f441   Note that -7 fixed the bug (closed separately)

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.


Summary of changes:
 debian/changelog | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



reassign 785404 to libc0.3, closing 785404

2016-01-24 Thread Samuel Thibault
reassign 785404 libc0.3 
close 785404 2.21-7
thanks
-- 
Samuel
   La  fonction  memfrob() crypte les n premiers octets de la
   zone de mémoire  s  en  effectuant  un  OU-exclusif  entre
   chaque  octet  et le nombre 42.
(extrait de la page de man de memfrob -- Manuel du programmeur Linux)



r7013 - in glibc-package/trunk/debian: . patches patches/hurd-i386

2016-01-12 Thread Samuel Thibault
Author: sthibault
Date: 2016-01-12 23:56:58 + (Tue, 12 Jan 2016)
New Revision: 7013

Added:
   glibc-package/trunk/debian/patches/hurd-i386/cvs-O_DIRECTORY.diff
   glibc-package/trunk/debian/patches/hurd-i386/cvs-raise-longjump.diff
Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/series
Log:
* patches/hurd-i386/cvs-raise-longjump.diff: New patch to fix longjump from
signal handler.  Closes: #800900.
* patches/hurd-i386/cvs-O_DIRECTORY.diff: New patch to fix O_DIRECTORY lookup
on trivial translators.


Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2016-01-12 09:36:54 UTC (rev 
7012)
+++ glibc-package/trunk/debian/changelog2016-01-12 23:56:58 UTC (rev 
7013)
@@ -18,6 +18,10 @@
   [ Samuel Thibault ]
   * patches/hurd-i386/cvs-libpthread-sigstate.diff: New patch to fix spurious
 signal blocking leading to sigill.  Fixes rsyslog tests.
+  * patches/hurd-i386/cvs-raise-longjump.diff: New patch to fix longjump from
+signal handler.  Closes: #800900.
+  * patches/hurd-i386/cvs-O_DIRECTORY.diff: New patch to fix O_DIRECTORY lookup
+on trivial translators.
 
  -- Aurelien Jarno <aure...@debian.org>  Fri, 25 Dec 2015 03:38:46 +0100
 

Added: glibc-package/trunk/debian/patches/hurd-i386/cvs-O_DIRECTORY.diff
===
--- glibc-package/trunk/debian/patches/hurd-i386/cvs-O_DIRECTORY.diff   
(rev 0)
+++ glibc-package/trunk/debian/patches/hurd-i386/cvs-O_DIRECTORY.diff   
2016-01-12 23:56:58 UTC (rev 7013)
@@ -0,0 +1,31 @@
+commit e42ce0f45ebf20b4c6f89da605cd62b1cd60a9df
+Author: Flavio Cruz <flavioc...@gmail.com>
+Date:   Wed Jan 13 00:48:30 2016 +0100
+
+Fix O_DIRECTORY lookup on trivial translators
+
+* hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
+leading slash when `file_name' is "/".
+
+diff --git a/hurd/lookup-retry.c b/hurd/lookup-retry.c
+index ef256ac..aee2ba8 100644
+--- a/hurd/lookup-retry.c
 b/hurd/lookup-retry.c
+@@ -62,8 +62,15 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port)
+ 
+   error_t lookup_op (file_t startdir)
+ {
+-  while (file_name[0] == '/')
+-  file_name++;
++  if (file_name[0] == '/' && file_name[1] != '\0')
++  {
++while (file_name[1] == '/')
++  /* Remove double leading slash.  */
++  file_name++;
++if (file_name[1] != '\0')
++  /* Remove leading slash when we have more than the slash.  */
++  file_name++;
++  }
+ 
+   return lookup_error ((*lookup) (startdir, file_name, flags, mode,
+ , retryname, result));

Added: glibc-package/trunk/debian/patches/hurd-i386/cvs-raise-longjump.diff
===
--- glibc-package/trunk/debian/patches/hurd-i386/cvs-raise-longjump.diff
(rev 0)
+++ glibc-package/trunk/debian/patches/hurd-i386/cvs-raise-longjump.diff
2016-01-12 23:56:58 UTC (rev 7013)
@@ -0,0 +1,23 @@
+commit fb304035c41c7ee2afede51e5e8568974549ba5e
+Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Date:   Wed Nov 25 01:09:13 2015 +0100
+
+Fix RPC breakage when longjumping from signal handler
+
+   * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
+   of interrupted RPC instead of restoring it.
+
+diff --git a/hurd/sigunwind.c b/hurd/sigunwind.c
+index 3a62fb5..800bb30 100644
+--- a/hurd/sigunwind.c
 b/hurd/sigunwind.c
+@@ -50,7 +50,8 @@ _hurdsig_longjmp_from_handler (void *data, jmp_buf env, int 
val)
+ *reply_port = MACH_PORT_DEAD;
+ __mach_port_destroy (__mach_task_self (), port);
+   }
+-  *reply_port = scp->sc_reply_port;
++  if (scp->sc_reply_port)
++  __mach_port_destroy (__mach_task_self (), scp->sc_reply_port);
+ }
+ 
+   __spin_lock (>lock);

Modified: glibc-package/trunk/debian/patches/series
===
--- glibc-package/trunk/debian/patches/series   2016-01-12 09:36:54 UTC (rev 
7012)
+++ glibc-package/trunk/debian/patches/series   2016-01-12 23:56:58 UTC (rev 
7013)
@@ -171,6 +171,8 @@
 hurd-i386/cvs-hidden.diff
 hurd-i386/cvs-libpthread-api.diff
 hurd-i386/cvs-libpthread-sigstate.diff
+hurd-i386/cvs-O_DIRECTORY.diff
+hurd-i386/cvs-raise-longjump.diff
 
 i386/local-biarch.diff
 i386/local-cmov.diff



r6854 - in glibc-package/trunk/debian: . patches patches/hurd-i386

2016-01-02 Thread Samuel Thibault
Author: sthibault
Date: 2016-01-03 03:29:25 + (Sun, 03 Jan 2016)
New Revision: 6854

Added:
   glibc-package/trunk/debian/patches/hurd-i386/cvs-libpthread-sigstate.diff
Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/series
Log:
* patches/hurd-i386/cvs-libpthread-sigstate.diff: New patch to fix spurious
signal blocking leading to sigill.  Fixes rsyslog tests.


Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2016-01-02 13:53:21 UTC (rev 
6853)
+++ glibc-package/trunk/debian/changelog2016-01-03 03:29:25 UTC (rev 
6854)
@@ -7,6 +7,10 @@
   * Update French debconf translation, by Christian Perrier.  Closes:
 #809636.
 
+  [ Samuel Thibault ]
+  * patches/hurd-i386/cvs-libpthread-sigstate.diff: New patch to fix spurious
+signal blocking leading to sigill.  Fixes rsyslog tests.
+
  -- Aurelien Jarno <aure...@debian.org>  Fri, 25 Dec 2015 03:38:46 +0100
 
 glibc (2.21-6) unstable; urgency=medium

Added: glibc-package/trunk/debian/patches/hurd-i386/cvs-libpthread-sigstate.diff
===
--- glibc-package/trunk/debian/patches/hurd-i386/cvs-libpthread-sigstate.diff   
(rev 0)
+++ glibc-package/trunk/debian/patches/hurd-i386/cvs-libpthread-sigstate.diff   
2016-01-03 03:29:25 UTC (rev 6854)
@@ -0,0 +1,57 @@
+commit 6106225fdc09f013ec4f7b1d7ec82780061c8a14
+Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Date:   Sun Jan 3 04:20:02 2016 +0100
+
+Do not block unmaskable signals
+
+* sysdeps/mach/hurd/pt-sigstate.c (__pthread_sigstate): Always remove
+_SIG_CANT_MASK from blocked signals, like sigprocmask does.
+
+--- a/libpthread/sysdeps/mach/hurd/pt-sigstate.c
 b/libpthread/sysdeps/mach/hurd/pt-sigstate.c
+@@ -43,24 +43,27 @@ __pthread_sigstate (struct __pthread *thread, int how,
+ *oset = ss->blocked;
+ 
+   if (set)
+-switch (how)
+-  {
+-  case SIG_BLOCK:
+-  ss->blocked |= *set;
+-  break;
+-
+-  case SIG_SETMASK:
+-  ss->blocked = *set;
+-  break;
+-
+-  case SIG_UNBLOCK:
+-  ss->blocked &= ~*set;
+-  break;
+-
+-  default:
+-  err = EINVAL;
+-  break;
+-  }
++{
++  switch (how)
++  {
++  case SIG_BLOCK:
++ss->blocked |= *set;
++break;
++
++  case SIG_SETMASK:
++ss->blocked = *set;
++break;
++
++  case SIG_UNBLOCK:
++ss->blocked &= ~*set;
++break;
++
++  default:
++err = EINVAL;
++break;
++  }
++  ss->blocked &= ~_SIG_CANT_MASK;
++}
+ 
+   if (! err && clear_pending)
+ __sigemptyset (>pending);

Modified: glibc-package/trunk/debian/patches/series
===
--- glibc-package/trunk/debian/patches/series   2016-01-02 13:53:21 UTC (rev 
6853)
+++ glibc-package/trunk/debian/patches/series   2016-01-03 03:29:25 UTC (rev 
6854)
@@ -168,6 +168,7 @@
 hurd-i386/local-mach_print.diff
 hurd-i386/cvs-hidden.diff
 hurd-i386/cvs-libpthread-api.diff
+hurd-i386/cvs-libpthread-sigstate.diff
 
 i386/local-biarch.diff
 i386/local-cmov.diff



r6837 - in glibc-package/trunk/debian: . debhelper.in

2015-12-23 Thread Samuel Thibault
Author: sthibault
Date: 2015-12-23 09:43:36 + (Wed, 23 Dec 2015)
New Revision: 6837

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/debhelper.in/libc-alt.lintian-overrides
   glibc-package/trunk/debian/debhelper.in/libc-otherbuild.lintian-overrides
   glibc-package/trunk/debian/debhelper.in/libc.lintian-overrides
Log:
debhelper.in/libc.lintian-overrides: Override error about the embedded libidn.

Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2015-12-22 18:40:14 UTC (rev 
6836)
+++ glibc-package/trunk/debian/changelog2015-12-23 09:43:36 UTC (rev 
6837)
@@ -6,6 +6,8 @@
 specifications.
   * patches/any/local-stdio-lock.diff: Update to git commit, and
 rename into patches/any/cvs-stdio-lock.diff.
+  * debhelper.in/libc.lintian-overrides: Override error about the embedded
+libidn.
 
   [ Aurelien Jarno ]
   * sysdeps/armel.mk, sysdeps/armhf.mk: pass --disable-multi-arch on armel and

Modified: glibc-package/trunk/debian/debhelper.in/libc-alt.lintian-overrides
===
--- glibc-package/trunk/debian/debhelper.in/libc-alt.lintian-overrides  
2015-12-22 18:40:14 UTC (rev 6836)
+++ glibc-package/trunk/debian/debhelper.in/libc-alt.lintian-overrides  
2015-12-23 09:43:36 UTC (rev 6837)
@@ -13,3 +13,7 @@
 # It is normal that the ELF dynamic linker does not need any other 
 # library
 LIBC-FLAVOR: shared-lib-without-dependency-information */ld-GLIBC_VERSION.so
+
+# we indeed embed a fork of libidn. We don't want a loop between libc and 
libidn
+# anyway
+LIBC-FLAVOR: embedded-library */libcidn-GLIBC_VERSION.so: libidn

Modified: 
glibc-package/trunk/debian/debhelper.in/libc-otherbuild.lintian-overrides
===
--- glibc-package/trunk/debian/debhelper.in/libc-otherbuild.lintian-overrides   
2015-12-22 18:40:14 UTC (rev 6836)
+++ glibc-package/trunk/debian/debhelper.in/libc-otherbuild.lintian-overrides   
2015-12-23 09:43:36 UTC (rev 6837)
@@ -13,3 +13,7 @@
 # to what lintian thinks, is controlled by ldconfig
 LIBC-FLAVOR: postinst-has-useless-call-to-ldconfig
 LIBC-FLAVOR: postrm-has-useless-call-to-ldconfig
+
+# we indeed embed a fork of libidn. We don't want a loop between libc and 
libidn
+# anyway
+LIBC-FLAVOR: embedded-library */libcidn-GLIBC_VERSION.so: libidn

Modified: glibc-package/trunk/debian/debhelper.in/libc.lintian-overrides
===
--- glibc-package/trunk/debian/debhelper.in/libc.lintian-overrides  
2015-12-22 18:40:14 UTC (rev 6836)
+++ glibc-package/trunk/debian/debhelper.in/libc.lintian-overrides  
2015-12-23 09:43:36 UTC (rev 6837)
@@ -14,3 +14,7 @@
 
 # this is a false positive because the string "ldconfig" is in preinst
 LIBC: preinst-calls-ldconfig
+
+# we indeed embed a fork of libidn. We don't want a loop between libc and 
libidn
+# anyway
+LIBC: embedded-library */libcidn-GLIBC_VERSION.so: libidn



r6838 - glibc-package/tags

2015-12-23 Thread Samuel Thibault
Author: sthibault
Date: 2015-12-23 09:43:56 + (Wed, 23 Dec 2015)
New Revision: 6838

Added:
   glibc-package/tags/2.21-5/
Log:
upload




glibc 2.21-5 ftbfs

2015-12-23 Thread Samuel Thibault
Hello,

The latest glibc upload, 2.21-5 failed to build:

# Link to any headers found in the old locations first
find /usr/include/sys -mindepth 1 \
-exec ln -sf '{}' debian/include/sys ';'
find: `/usr/include/sys': No such file or directory

So it looks like there are no /usr/include/sys files any more in the
kernel headers?  If so we can just drop the statement.  If you want to
keep backward compatibility, we can also make the statement failure
non-fatal.

Samuel



r6835 - glibc-package/tags

2015-12-22 Thread Samuel Thibault
Author: sthibault
Date: 2015-12-22 18:20:56 + (Tue, 22 Dec 2015)
New Revision: 6835

Added:
   glibc-package/tags/2.21-5/
Log:
upload




Re: glibc_2.21-5_amd64.changes REJECTED

2015-12-22 Thread Samuel Thibault
Debian FTP Masters, on Tue 22 Dec 2015 18:35:02 +, wrote:
> libc6-x32: lintian output: 'embedded-library libx32/libcidn-2.21.so: libidn', 
> automatically rejected package.
> libc6-x32: If you have a good reason, you may override this lintian tag.

Mmm, libc indeed has its own copy of libidn.  I guess this is on purpose
and we should add a lintian override?

Samuel



r6836 - glibc-package/tags

2015-12-22 Thread Samuel Thibault
Author: sthibault
Date: 2015-12-22 18:40:14 + (Tue, 22 Dec 2015)
New Revision: 6836

Removed:
   glibc-package/tags/2.21-5/
Log:
upload failed



r6829 - glibc-package/trunk/debian/patches/hurd-i386

2015-12-22 Thread Samuel Thibault
Author: sthibault
Date: 2015-12-22 12:05:43 + (Tue, 22 Dec 2015)
New Revision: 6829

Modified:
   glibc-package/trunk/debian/patches/hurd-i386/cvs-libpthread-api.diff
Log:
hurd-i386: Remove __THROW* from extern inlines
They pose more problems than they solve.


Modified: glibc-package/trunk/debian/patches/hurd-i386/cvs-libpthread-api.diff
===
--- glibc-package/trunk/debian/patches/hurd-i386/cvs-libpthread-api.diff
2015-12-20 23:01:58 UTC (rev 6828)
+++ glibc-package/trunk/debian/patches/hurd-i386/cvs-libpthread-api.diff
2015-12-22 12:05:43 UTC (rev 6829)
@@ -1,3 +1,15 @@
+commit f1039fbd8370797880deedf95a2aa7717e922102
+Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Date:   Tue Dec 22 13:00:18 2015 +0100
+
+Remove __THROW* from extern inlines
+
+They pose more problems than they solve.
+
+* include/pthread/pthread.h (pthread_equal, pthread_spin_destroy,
+pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
+pthread_spin_unlock): Remove __THROW or __THROWNL attribute.
+
 commit 907fab424120059d09aebaa083ddc0557d13f2ef
 Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
 Date:   Fri Dec 11 17:46:36 2015 +0100
@@ -56,8 +68,10 @@
 * include/pthread/pthread.h: Prepend '__' to parameter names.
 * sysdeps/mach/hurd/bits/pthread-np.h: Likewise.
 
 a/libpthread/include/pthread/pthread.h
-+++ b/libpthread/include/pthread/pthread.h
+Index: glibc-2.21/libpthread/include/pthread/pthread.h
+===
+--- glibc-2.21.orig/libpthread/include/pthread/pthread.h
 glibc-2.21/libpthread/include/pthread/pthread.h
 @@ -79,112 +79,132 @@ __BEGIN_DECLS
  
  /* Initialize the thread attribute object in *ATTR to the default
@@ -246,21 +260,6 @@
  
  /* Make calling thread wait for termination of thread THREAD.  Return
 the exit status of the thread in *STATUS.  */
-@@ -209,12 +229,12 @@ extern int pthread_detach (pthread_t __t
- 
- /* Compare thread IDs T1 and T2.  Return nonzero if they are equal, 0
-if they are not.  */
--extern int pthread_equal (pthread_t __t1, pthread_t __t2);
-+extern int pthread_equal (pthread_t __t1, pthread_t __t2) __THROW;
- 
- # ifdef __USE_EXTERN_INLINES
- 
- __extern_inline int
--pthread_equal (pthread_t __t1, pthread_t __t2)
-+pthread_equal (pthread_t __t1, pthread_t __t2) __THROW
- {
-   return __pthread_equal (__t1, __t2);
- }
 @@ -223,7 +243,7 @@ pthread_equal (pthread_t __t1, pthread_t
  
  
@@ -510,75 +509,39 @@
  
  
  /* Spin locks.  */
-@@ -439,53 +489,58 @@ extern int pthread_cond_timedwait (pthre
+@@ -439,22 +489,27 @@ extern int pthread_cond_timedwait (pthre
  #define PTHREAD_SPINLOCK_INITIALIZER __PTHREAD_SPIN_LOCK_INITIALIZER
  
  /* Destroy the spin lock object LOCK.  */
 -extern int pthread_spin_destroy (pthread_spinlock_t *__lock);
 +extern int pthread_spin_destroy (pthread_spinlock_t *__lock)
-+  __THROW __nonnull ((1));
++  __nonnull ((1));
  
  /* Initialize the spin lock object LOCK.  PSHARED determines whether
 the spin lock can be operated upon by multiple processes.  */
 -extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared);
 +extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
-+  __THROW __nonnull ((1));
++  __nonnull ((1));
  
  /* Lock the spin lock object LOCK.  If the lock is held by another
 thread spin until it becomes available.  */
 -extern int pthread_spin_lock (pthread_spinlock_t *__lock);
 +extern int pthread_spin_lock (pthread_spinlock_t *__lock)
-+  __THROWNL __nonnull ((1));
++  __nonnull ((1));
  
  /* Lock the spin lock object LOCK.  Fail if the lock is held by
 another thread.  */
 -extern int pthread_spin_trylock (pthread_spinlock_t *__lock);
 +extern int pthread_spin_trylock (pthread_spinlock_t *__lock)
-+  __THROWNL __nonnull ((1));
++  __nonnull ((1));
  
  /* Unlock the spin lock object LOCK.  */
 -extern int pthread_spin_unlock (pthread_spinlock_t *__lock);
 +extern int pthread_spin_unlock (pthread_spinlock_t *__lock)
-+  __THROWNL __nonnull ((1));
++  __nonnull ((1));
  
  # ifdef __USE_EXTERN_INLINES
  
- # include 
- 
- __extern_inline int
--pthread_spin_destroy (pthread_spinlock_t *__lock)
-+pthread_spin_destroy (pthread_spinlock_t *__lock) __THROW
- {
-   return __pthread_spin_destroy (__lock);
- }
- 
- __extern_inline int
--pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
-+pthread_spin_init (pthread_spinlock_t *__lock, int __pshared) __THROW
- {
-   return __pthread_spin_init (__lock, __pshared);
- }
- 
- __extern_inline int
--pthread_spin_lock (pthread_spinlock_t *__lock)
-+pthread_spin_lock (pthread_spinlock_t *__lock) __THROWNL
- {
-   return __pthread_spin_lock (__lock);
- }
- 
- __extern_inline int
--pthread_spin_trylock (pthread_spinlock_t *__lock)
-+pthread_spin_trylock (pthread_spinlock_t *__lock) __THROWNL
- 

r6832 - in glibc-package/branches/glibc-2.22/debian: . patches patches/any

2015-12-22 Thread Samuel Thibault
Author: sthibault
Date: 2015-12-22 13:49:09 + (Tue, 22 Dec 2015)
New Revision: 6832

Added:
   glibc-package/branches/glibc-2.22/debian/patches/any/cvs-stdio-lock.diff
Removed:
   glibc-package/branches/glibc-2.22/debian/patches/any/local-stdio-lock.diff
Modified:
   glibc-package/branches/glibc-2.22/debian/changelog
   glibc-package/branches/glibc-2.22/debian/patches/series
Log:
merge my trunk commits

Modified: glibc-package/branches/glibc-2.22/debian/changelog
===
--- glibc-package/branches/glibc-2.22/debian/changelog  2015-12-22 13:47:58 UTC 
(rev 6831)
+++ glibc-package/branches/glibc-2.22/debian/changelog  2015-12-22 13:49:09 UTC 
(rev 6832)
@@ -196,6 +196,8 @@
   [ Samuel Thibault ]
   * patches/hurd-i386/cvs-libpthread-api.diff: Update patch, add missing throw
 specifications.
+  * patches/any/local-stdio-lock.diff: Update to git commit, and
+rename into patches/any/cvs-stdio-lock.diff.
 
  -- Aurelien Jarno <aure...@debian.org>  Thu, 10 Dec 2015 23:25:07 +0100
 

Copied: 
glibc-package/branches/glibc-2.22/debian/patches/any/cvs-stdio-lock.diff (from 
rev 6831, glibc-package/trunk/debian/patches/any/cvs-stdio-lock.diff)
===
--- glibc-package/branches/glibc-2.22/debian/patches/any/cvs-stdio-lock.diff
(rev 0)
+++ glibc-package/branches/glibc-2.22/debian/patches/any/cvs-stdio-lock.diff
2015-12-22 13:49:09 UTC (rev 6832)
@@ -0,0 +1,56 @@
+commit 2cf3e1aa7477b813ca3ebb901003a7d44f970218
+Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Date:   Tue Dec 22 14:39:19 2015 +0100
+
+Harmonize generic stdio-lock support with nptl
+
+This fixes build when _IO_funlockfile is a macro, fixes build where
+_IO_acquire_lock_clear_flags2 is used, and fixes unlocking on 
unexpected
+stack unwind.
+
+* sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
+_IO_release_lock ): Use cleanup attribute on new
+_IO_acquire_lock_file variable instead of assuming that
+_IO_release_lock will be called.
+[!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
+_IO_acquire_lock_needs_exceptions_enabled.
+(_IO_acquire_lock_clear_flags2): New macro.
+
+---
+ stdio-lock.h |   23 ++-
+ 1 file changed, 18 insertions(+), 5 deletions(-)
+
+--- a/bits/stdio-lock.h
 b/bits/stdio-lock.h
+@@ -45,13 +45,26 @@ __libc_lock_define_recursive (typedef, _IO_lock_t)
+   __libc_cleanup_region_end (_doit)
+ 
+ #if defined _LIBC && IS_IN (libc)
++
++# ifdef __EXCEPTIONS
+ # define _IO_acquire_lock(_fp) \
+-  _IO_cleanup_region_start ((void (*) (void *)) _IO_funlockfile, (_fp));  
\
+-  _IO_flockfile (_fp)
++  do {
  \
++_IO_FILE *_IO_acquire_lock_file \
++  __attribute__((cleanup (_IO_acquire_lock_fct)))   \
++  = (_fp);  \
++_IO_flockfile (_IO_acquire_lock_file);
++#  define _IO_acquire_lock_clear_flags2(_fp) \
++  do {
  \
++_IO_FILE *_IO_acquire_lock_file \
++  __attribute__((cleanup (_IO_acquire_lock_clear_flags2_fct)))  \
++  = (_fp);  \
++_IO_flockfile (_IO_acquire_lock_file);
++# else
++#  define _IO_acquire_lock(_fp) _IO_acquire_lock_needs_exceptions_enabled
++#  define _IO_acquire_lock_clear_flags2(_fp) _IO_acquire_lock (_fp)
++# endif
++# define _IO_release_lock(_fp) ; } while (0)
+ 
+-# define _IO_release_lock(_fp) \
+-  _IO_funlockfile (_fp);\
+-  _IO_cleanup_region_end (0)
+ #endif
+ 
+ #endif /* bits/stdio-lock.h */

Deleted: 
glibc-package/branches/glibc-2.22/debian/patches/any/local-stdio-lock.diff
===
--- glibc-package/branches/glibc-2.22/debian/patches/any/local-stdio-lock.diff  
2015-12-22 13:47:58 UTC (rev 6831)
+++ glibc-package/branches/glibc-2.22/debian/patches/any/local-stdio-lock.diff  
2015-12-22 13:49:09 UTC (rev 6832)
@@ -1,33 +0,0 @@
-This patch is need for Hurd.

- bits/stdio-lock.h |   17 +
- 1 file changed, 13 insertions(+), 4 deletions(-)
-
 a/bits/stdio-lock.h
-+++ b/bits/stdio-lock.h
-@@ -46,12 +46,21 @@
- 
- #if defined _LIBC && IS_IN (libc)
- # define _IO_acquire_lock(_fp) \
--  _IO_cleanup_region_start ((void (*) (void *)) _IO_funlockfile, (_fp));  
\
--  _IO_flockfile (_fp)
-+  { \
-+  _IO_FILE *_IO_acquire_lock_file = _fp; \
-+  __libc_cleanup_region_start (1, (void (*) (void *)) _IO_acquire_lock_fct, 
&_IO_acquire

r6830 - in glibc-package/branches/glibc-2.22/debian: . patches/hurd-i386

2015-12-22 Thread Samuel Thibault
Author: sthibault
Date: 2015-12-22 13:46:59 + (Tue, 22 Dec 2015)
New Revision: 6830

Modified:
   glibc-package/branches/glibc-2.22/debian/changelog
   
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-libpthread-api.diff
Log:
merge my trunk commits

Modified: glibc-package/branches/glibc-2.22/debian/changelog
===
--- glibc-package/branches/glibc-2.22/debian/changelog  2015-12-22 12:05:43 UTC 
(rev 6829)
+++ glibc-package/branches/glibc-2.22/debian/changelog  2015-12-22 13:46:59 UTC 
(rev 6830)
@@ -191,6 +191,14 @@
 
  -- Aurelien Jarno <aure...@debian.org>  Wed, 02 Dec 2015 00:06:13 +0100
 
+glibc (2.21-5) UNRELEASED; urgency=medium
+
+  [ Samuel Thibault ]
+  * patches/hurd-i386/cvs-libpthread-api.diff: Update patch, add missing throw
+specifications.
+
+ -- Aurelien Jarno <aure...@debian.org>  Thu, 10 Dec 2015 23:25:07 +0100
+
 glibc (2.21-4) unstable; urgency=medium
 
   [ Aurelien Jarno ]

Modified: 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-libpthread-api.diff
===
--- 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-libpthread-api.diff
  2015-12-22 12:05:43 UTC (rev 6829)
+++ 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-libpthread-api.diff
  2015-12-22 13:46:59 UTC (rev 6830)
@@ -1,3 +1,24 @@
+commit f1039fbd8370797880deedf95a2aa7717e922102
+Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Date:   Tue Dec 22 13:00:18 2015 +0100
+
+Remove __THROW* from extern inlines
+
+They pose more problems than they solve.
+
+* include/pthread/pthread.h (pthread_equal, pthread_spin_destroy,
+pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
+pthread_spin_unlock): Remove __THROW or __THROWNL attribute.
+
+commit 907fab424120059d09aebaa083ddc0557d13f2ef
+Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Date:   Fri Dec 11 17:46:36 2015 +0100
+
+Add throw specification to inlines
+
+* include/pthread/pthread.h: Add __THROW and __THROWNL specification to
+extern inlines definitions.
+
 commit 577a738522d34a64cb3cd5bb8368c8b1a344f38e
 Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
 Date:   Sun Dec 6 01:22:01 2015 +0100
@@ -47,8 +68,10 @@
 * include/pthread/pthread.h: Prepend '__' to parameter names.
 * sysdeps/mach/hurd/bits/pthread-np.h: Likewise.
 
 a/libpthread/include/pthread/pthread.h
-+++ b/libpthread/include/pthread/pthread.h
+Index: glibc-2.21/libpthread/include/pthread/pthread.h
+===
+--- glibc-2.21.orig/libpthread/include/pthread/pthread.h
 glibc-2.21/libpthread/include/pthread/pthread.h
 @@ -79,112 +79,132 @@ __BEGIN_DECLS
  
  /* Initialize the thread attribute object in *ATTR to the default
@@ -237,15 +260,6 @@
  
  /* Make calling thread wait for termination of thread THREAD.  Return
 the exit status of the thread in *STATUS.  */
-@@ -209,7 +229,7 @@ extern int pthread_detach (pthread_t __t
- 
- /* Compare thread IDs T1 and T2.  Return nonzero if they are equal, 0
-if they are not.  */
--extern int pthread_equal (pthread_t __t1, pthread_t __t2);
-+extern int pthread_equal (pthread_t __t1, pthread_t __t2) __THROW;
- 
- # ifdef __USE_EXTERN_INLINES
- 
 @@ -223,7 +243,7 @@ pthread_equal (pthread_t __t1, pthread_t
  
  
@@ -501,30 +515,30 @@
  /* Destroy the spin lock object LOCK.  */
 -extern int pthread_spin_destroy (pthread_spinlock_t *__lock);
 +extern int pthread_spin_destroy (pthread_spinlock_t *__lock)
-+  __THROW __nonnull ((1));
++  __nonnull ((1));
  
  /* Initialize the spin lock object LOCK.  PSHARED determines whether
 the spin lock can be operated upon by multiple processes.  */
 -extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared);
 +extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
-+  __THROW __nonnull ((1));
++  __nonnull ((1));
  
  /* Lock the spin lock object LOCK.  If the lock is held by another
 thread spin until it becomes available.  */
 -extern int pthread_spin_lock (pthread_spinlock_t *__lock);
 +extern int pthread_spin_lock (pthread_spinlock_t *__lock)
-+  __THROWNL __nonnull ((1));
++  __nonnull ((1));
  
  /* Lock the spin lock object LOCK.  Fail if the lock is held by
 another thread.  */
 -extern int pthread_spin_trylock (pthread_spinlock_t *__lock);
 +extern int pthread_spin_trylock (pthread_spinlock_t *__lock)
-+  __THROWNL __nonnull ((1));
++  __nonnull ((1));
  
  /* Unlock the spin lock object LOCK.  */
 -extern int pthread_spin_unlock (pthread_spinlock_t *__lock);
 +extern int pthread_spin_unlock (pthread_spinlock_t *__lock)
-+  __THROWNL __nonnull ((1));
++  __nonnull ((1));
  
  # ifdef __USE_EXTERN_INLINES
  
@@ -822,8 +836,10 @@
  #endif
  
  
 a/libpthread/sysdeps/mach

r6831 - in glibc-package/trunk/debian: . patches patches/any

2015-12-22 Thread Samuel Thibault
Author: sthibault
Date: 2015-12-22 13:47:58 + (Tue, 22 Dec 2015)
New Revision: 6831

Added:
   glibc-package/trunk/debian/patches/any/cvs-stdio-lock.diff
Removed:
   glibc-package/trunk/debian/patches/any/local-stdio-lock.diff
Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/series
Log:
patches/any/local-stdio-lock.diff: Update to git commit, and
rename into patches/any/cvs-stdio-lock.diff.


Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2015-12-22 13:46:59 UTC (rev 
6830)
+++ glibc-package/trunk/debian/changelog2015-12-22 13:47:58 UTC (rev 
6831)
@@ -3,6 +3,8 @@
   [ Samuel Thibault ]
   * patches/hurd-i386/cvs-libpthread-api.diff: Update patch, add missing throw
 specifications.
+  * patches/any/local-stdio-lock.diff: Update to git commit, and
+rename into patches/any/cvs-stdio-lock.diff.
 
  -- Aurelien Jarno <aure...@debian.org>  Thu, 10 Dec 2015 23:25:07 +0100
 

Copied: glibc-package/trunk/debian/patches/any/cvs-stdio-lock.diff (from rev 
6828, glibc-package/trunk/debian/patches/any/local-stdio-lock.diff)
===
--- glibc-package/trunk/debian/patches/any/cvs-stdio-lock.diff  
(rev 0)
+++ glibc-package/trunk/debian/patches/any/cvs-stdio-lock.diff  2015-12-22 
13:47:58 UTC (rev 6831)
@@ -0,0 +1,56 @@
+commit 2cf3e1aa7477b813ca3ebb901003a7d44f970218
+Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Date:   Tue Dec 22 14:39:19 2015 +0100
+
+Harmonize generic stdio-lock support with nptl
+
+This fixes build when _IO_funlockfile is a macro, fixes build where
+_IO_acquire_lock_clear_flags2 is used, and fixes unlocking on 
unexpected
+stack unwind.
+
+* sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
+_IO_release_lock ): Use cleanup attribute on new
+_IO_acquire_lock_file variable instead of assuming that
+_IO_release_lock will be called.
+[!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
+_IO_acquire_lock_needs_exceptions_enabled.
+(_IO_acquire_lock_clear_flags2): New macro.
+
+---
+ stdio-lock.h |   23 ++-
+ 1 file changed, 18 insertions(+), 5 deletions(-)
+
+--- a/bits/stdio-lock.h
 b/bits/stdio-lock.h
+@@ -45,13 +45,26 @@ __libc_lock_define_recursive (typedef, _IO_lock_t)
+   __libc_cleanup_region_end (_doit)
+ 
+ #if defined _LIBC && IS_IN (libc)
++
++# ifdef __EXCEPTIONS
+ # define _IO_acquire_lock(_fp) \
+-  _IO_cleanup_region_start ((void (*) (void *)) _IO_funlockfile, (_fp));  
\
+-  _IO_flockfile (_fp)
++  do {
  \
++_IO_FILE *_IO_acquire_lock_file \
++  __attribute__((cleanup (_IO_acquire_lock_fct)))   \
++  = (_fp);  \
++_IO_flockfile (_IO_acquire_lock_file);
++#  define _IO_acquire_lock_clear_flags2(_fp) \
++  do {
  \
++_IO_FILE *_IO_acquire_lock_file \
++  __attribute__((cleanup (_IO_acquire_lock_clear_flags2_fct)))  \
++  = (_fp);  \
++_IO_flockfile (_IO_acquire_lock_file);
++# else
++#  define _IO_acquire_lock(_fp) _IO_acquire_lock_needs_exceptions_enabled
++#  define _IO_acquire_lock_clear_flags2(_fp) _IO_acquire_lock (_fp)
++# endif
++# define _IO_release_lock(_fp) ; } while (0)
+ 
+-# define _IO_release_lock(_fp) \
+-  _IO_funlockfile (_fp);\
+-  _IO_cleanup_region_end (0)
+ #endif
+ 
+ #endif /* bits/stdio-lock.h */

Deleted: glibc-package/trunk/debian/patches/any/local-stdio-lock.diff
===
--- glibc-package/trunk/debian/patches/any/local-stdio-lock.diff
2015-12-22 13:46:59 UTC (rev 6830)
+++ glibc-package/trunk/debian/patches/any/local-stdio-lock.diff
2015-12-22 13:47:58 UTC (rev 6831)
@@ -1,32 +0,0 @@

- bits/stdio-lock.h |   17 +
- 1 file changed, 13 insertions(+), 4 deletions(-)
-
 a/bits/stdio-lock.h
-+++ b/bits/stdio-lock.h
-@@ -46,12 +46,21 @@
- 
- #if defined _LIBC && IS_IN (libc)
- # define _IO_acquire_lock(_fp) \
--  _IO_cleanup_region_start ((void (*) (void *)) _IO_funlockfile, (_fp));  
\
--  _IO_flockfile (_fp)
-+  { \
-+  _IO_FILE *_IO_acquire_lock_file = _fp; \
-+  __libc_cleanup_region_start (1, (void (*) (void *)) _IO_acquire_lock_fct, 
&_IO_acquire_lock_file); \
-+  _IO_flockfile (_IO_acquire_lock_file)
-+
-+# define _IO_acquire_lock_clear_flags2(_fp) \
-+  { \
-+  _IO_F

r6834 - glibc-package/trunk/debian

2015-12-22 Thread Samuel Thibault
Author: sthibault
Date: 2015-12-22 18:00:00 + (Tue, 22 Dec 2015)
New Revision: 6834

Modified:
   glibc-package/trunk/debian/changelog
Log:
upload

Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2015-12-22 14:20:30 UTC (rev 
6833)
+++ glibc-package/trunk/debian/changelog2015-12-22 18:00:00 UTC (rev 
6834)
@@ -1,6 +1,7 @@
-glibc (2.21-5) UNRELEASED; urgency=medium
+glibc (2.21-5) unstable; urgency=medium
 
   [ Samuel Thibault ]
+  * Team upload.
   * patches/hurd-i386/cvs-libpthread-api.diff: Update patch, add missing throw
 specifications.
   * patches/any/local-stdio-lock.diff: Update to git commit, and
@@ -10,7 +11,7 @@
   * sysdeps/armel.mk, sysdeps/armhf.mk: pass --disable-multi-arch on armel and
 armhf as IFUNC support is broken in binutils (see #807974).
   
- -- Aurelien Jarno <aure...@debian.org>  Thu, 10 Dec 2015 23:25:07 +0100
+ -- Samuel Thibault <sthiba...@debian.org>  Tue, 22 Dec 2015 15:23:35 +0100
 
 glibc (2.21-4) unstable; urgency=medium
 



Re: r6813 - in glibc-package/branches/glibc-2.22/debian: . patches patches/any

2015-12-21 Thread Samuel Thibault
Samuel Thibault, on Mon 21 Dec 2015 18:14:37 +0100, wrote:
> Well, actually IIRC it's a glibc issue, not just a libpthread issue, so
> it needs to be fixed there, possibly by just commiting the Debian patch,
> I'll have a closer look.

Yes, it's a glibc bug.  I'll submit a change to glibc which backports
the nptl version into the generic version, also fixing unlocking on
exception along the way.

Samuel



Re: r6813 - in glibc-package/branches/glibc-2.22/debian: . patches patches/any

2015-12-21 Thread Samuel Thibault
Hello,

Aurelien Jarno, on Sun 13 Dec 2015 19:24:40 +0100, wrote:
> On 2015-12-12 18:04, Aurelien Jarno wrote:
> > On 2015-12-12 10:53, Samuel Thibault wrote:
> > > Aurelien Jarno, on Sat 12 Dec 2015 09:32:42 +, wrote:
> > > > debian/patches/any/local-stdio-lock.diff: drop, it was needed for
> > > > LinuxThreads support.
> > > 
> > > I believe we need it for hurd-i386's libpthread too.
> 
> It would be nice if libpthread can be fixed so that we don't
> need this patch anymore.

Well, actually IIRC it's a glibc issue, not just a libpthread issue, so
it needs to be fixed there, possibly by just commiting the Debian patch,
I'll have a closer look.  I don't know why the patch was marked "local",
it doesn't see local only.

Samuel



Bug#808180: libc6: does not start qtcreator v3.5 and v3.6 "Segmentation fault."

2015-12-17 Thread Samuel Thibault
Please always keep the bug mail in Cc, not just the random developper
who happened to answer.

"Антоша ;)", on Thu 17 Dec 2015 19:35:21 +0300, wrote:
> $ gdb qtcreator
> .
> Reading symbols from qtcreator...(no debugging symbols found)...done.
> (gdb) run
> Starting program: /home/lukash/Qt5.5.1/Tools/QtCreator/bin/qtcreator
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> [New Thread 0x7fffec5cb700 (LWP 5363)]
> [New Thread 0x7fffd832c700 (LWP 5366)]
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x77de69ab in elf_machine_rela (reloc=0x7fffdcf41548, reloc=
> 0x7fffdcf41548, skip_ifunc=0, reloc_addr_arg=0x7fffdd291ef0,
> version=0x30, sym=0x7fffdcf191d8, map=0x722f30) at ../sysdeps/x86_64/
> dl-machine.h:277
> 277 ../sysdeps/x86_64/dl-machine.h: No such file or directory.

Please provide the result of the backtrace command in gdb too.

Samuel



Bug#808180: libc6: does not start qtcreator v3.5 and v3.6 "Segmentation fault."

2015-12-16 Thread Samuel Thibault
Hello,

lukash, on Wed 16 Dec 2015 23:49:47 +0300, wrote:
> (gdb) run
> Starting program: ~/Qt5.5.1/Tools/QtCreator/bin/qtcreator
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> [New Thread 0x7fffec5cb700 (LWP 1282)]
> [New Thread 0x7fffd831b700 (LWP 1285)]
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x77de72c6 in ?? () from /lib64/ld-linux-x86-64.so.2

Could you install libc6-dbg so we get much better feedback from gdb?

Thanks,
Samuel



Re: r6813 - in glibc-package/branches/glibc-2.22/debian: . patches patches/any

2015-12-12 Thread Samuel Thibault
Aurelien Jarno, on Sat 12 Dec 2015 09:32:42 +, wrote:
> debian/patches/any/local-stdio-lock.diff: drop, it was needed for
> LinuxThreads support.

I believe we need it for hurd-i386's libpthread too.

Samuel



r6803 - in glibc-package/trunk/debian: . patches/hurd-i386

2015-12-11 Thread Samuel Thibault
Author: sthibault
Date: 2015-12-11 16:49:45 + (Fri, 11 Dec 2015)
New Revision: 6803

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/hurd-i386/cvs-libpthread-api.diff
Log:
patches/hurd-i386/cvs-libpthread-api.diff: Update patch, add missing throw 
specifications.


Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2015-12-11 16:49:27 UTC (rev 
6802)
+++ glibc-package/trunk/debian/changelog2015-12-11 16:49:45 UTC (rev 
6803)
@@ -1,6 +1,8 @@
 glibc (2.21-5) UNRELEASED; urgency=medium
 
-  * 
+  [ Samuel Thibault ]
+  * patches/hurd-i386/cvs-libpthread-api.diff: Update patch, add missing throw
+specifications.
 
  -- Aurelien Jarno <aure...@debian.org>  Thu, 10 Dec 2015 23:25:07 +0100
 

Modified: glibc-package/trunk/debian/patches/hurd-i386/cvs-libpthread-api.diff
===
--- glibc-package/trunk/debian/patches/hurd-i386/cvs-libpthread-api.diff
2015-12-11 16:49:27 UTC (rev 6802)
+++ glibc-package/trunk/debian/patches/hurd-i386/cvs-libpthread-api.diff
2015-12-11 16:49:45 UTC (rev 6803)
@@ -1,3 +1,12 @@
+commit 907fab424120059d09aebaa083ddc0557d13f2ef
+Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Date:   Fri Dec 11 17:46:36 2015 +0100
+
+Add throw specification to inlines
+
+* include/pthread/pthread.h: Add __THROW and __THROWNL specification to
+extern inlines definitions.
+
 commit 577a738522d34a64cb3cd5bb8368c8b1a344f38e
 Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
 Date:   Sun Dec 6 01:22:01 2015 +0100
@@ -237,7 +246,7 @@
  
  /* Make calling thread wait for termination of thread THREAD.  Return
 the exit status of the thread in *STATUS.  */
-@@ -209,7 +229,7 @@ extern int pthread_detach (pthread_t __t
+@@ -209,12 +229,12 @@ extern int pthread_detach (pthread_t __t
  
  /* Compare thread IDs T1 and T2.  Return nonzero if they are equal, 0
 if they are not.  */
@@ -246,6 +255,12 @@
  
  # ifdef __USE_EXTERN_INLINES
  
+ __extern_inline int
+-pthread_equal (pthread_t __t1, pthread_t __t2)
++pthread_equal (pthread_t __t1, pthread_t __t2) __THROW
+ {
+   return __pthread_equal (__t1, __t2);
+ }
 @@ -223,7 +243,7 @@ pthread_equal (pthread_t __t1, pthread_t
  
  
@@ -495,7 +510,7 @@
  
  
  /* Spin locks.  */
-@@ -439,22 +489,27 @@ extern int pthread_cond_timedwait (pthre
+@@ -439,53 +489,58 @@ extern int pthread_cond_timedwait (pthre
  #define PTHREAD_SPINLOCK_INITIALIZER __PTHREAD_SPIN_LOCK_INITIALIZER
  
  /* Destroy the spin lock object LOCK.  */
@@ -528,6 +543,42 @@
  
  # ifdef __USE_EXTERN_INLINES
  
+ # include 
+ 
+ __extern_inline int
+-pthread_spin_destroy (pthread_spinlock_t *__lock)
++pthread_spin_destroy (pthread_spinlock_t *__lock) __THROW
+ {
+   return __pthread_spin_destroy (__lock);
+ }
+ 
+ __extern_inline int
+-pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
++pthread_spin_init (pthread_spinlock_t *__lock, int __pshared) __THROW
+ {
+   return __pthread_spin_init (__lock, __pshared);
+ }
+ 
+ __extern_inline int
+-pthread_spin_lock (pthread_spinlock_t *__lock)
++pthread_spin_lock (pthread_spinlock_t *__lock) __THROWNL
+ {
+   return __pthread_spin_lock (__lock);
+ }
+ 
+ __extern_inline int
+-pthread_spin_trylock (pthread_spinlock_t *__lock)
++pthread_spin_trylock (pthread_spinlock_t *__lock) __THROWNL
+ {
+   return __pthread_spin_trylock (__lock);
+ }
+ 
+ __extern_inline int
+-pthread_spin_unlock (pthread_spinlock_t *__lock)
++pthread_spin_unlock (pthread_spinlock_t *__lock) __THROWNL
+ {
+   return __pthread_spin_unlock (__lock);
+ }
 @@ -503,21 +558,25 @@ pthread_spin_unlock (pthread_spinlock_t
  
  /* Initialize rwlock attribute object in *ATTR to the default



r6777 - in glibc-package/trunk/debian: . patches patches/hurd-i386

2015-12-05 Thread Samuel Thibault
Author: sthibault
Date: 2015-12-06 00:34:38 + (Sun, 06 Dec 2015)
New Revision: 6777

Added:
   glibc-package/trunk/debian/patches/hurd-i386/cvs-libpthread-api.diff
Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/series
Log:
  * patches/hurd-i386/cvs-libpthread-api.diff: New patch, cleans libpthread
API. Fixes conflicting declarations between pthread.h and sigthread.h.


Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2015-12-05 14:47:32 UTC (rev 
6776)
+++ glibc-package/trunk/debian/changelog2015-12-06 00:34:38 UTC (rev 
6777)
@@ -5,6 +5,10 @@
 upgrade from squeeze to wheezy, as we don't support squeeze to stretch
 upgrades.
 
+  [ Samuel Thibault ]
+  * patches/hurd-i386/cvs-libpthread-api.diff: New patch, cleans libpthread
+API. Fixes conflicting declarations between pthread.h and sigthread.h.
+
  -- Aurelien Jarno <aure...@debian.org>  Fri, 04 Dec 2015 00:24:29 +0100
 
 glibc (2.21-3) unstable; urgency=medium

Added: glibc-package/trunk/debian/patches/hurd-i386/cvs-libpthread-api.diff
===
--- glibc-package/trunk/debian/patches/hurd-i386/cvs-libpthread-api.diff
(rev 0)
+++ glibc-package/trunk/debian/patches/hurd-i386/cvs-libpthread-api.diff
2015-12-06 00:34:38 UTC (rev 6777)
@@ -0,0 +1,834 @@
+commit 577a738522d34a64cb3cd5bb8368c8b1a344f38e
+Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Date:   Sun Dec 6 01:22:01 2015 +0100
+
+Add __THROW and __nonnull attributes
+
+* include/pthread/pthread.h: Add __THROW and __nonnull attributes to
+functions.
+
+commit 86c3dbc6445ff1bbd72c43ce46dd9f84d80e890e
+Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Date:   Sat Oct 31 11:20:52 2015 +0100
+
+Do not use __thread as parameter name
+
+That is the TLS qualifier.
+
+* include/pthread/pthread.h (pthread_getattr_np, pthread_cancel,
+pthread_kill, pthread_getcpuclockid, pthread_getschedparam,
+pthread_setschedparam, pthread_setschedprio): Use __thr as parameter name
+instead of __thread.
+
+commit 46211ef0b82e6db1d62021fadfdd2be8cf78e729
+Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Date:   Tue Sep 22 02:54:11 2015 +0200
+
+Avoid exposing function prototype parameter names
+
+* include/pthread/pthread.h (pthread_mutex_setprioceiling): Prepend 
'__'
+to prio parameter name.
+
+commit 02ca56841e7fc3d016b948b29421619408a18227
+Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Date:   Tue Sep 22 02:52:13 2015 +0200
+
+Do not expose "noreturn" name
+
+* ./include/pthread/pthread.h (pthread_exit): Use __noreturn__ attribute
+instead of noreturn.
+
+commit 40f9984b930762f957763d9db06e2f5dc7bb
+Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Date:   Mon Sep 21 00:04:15 2015 +0200
+
+Avoid exposing function prototype parameter names
+
+* include/pthread/pthread.h: Prepend '__' to parameter names.
+* sysdeps/mach/hurd/bits/pthread-np.h: Likewise.
+
+--- a/libpthread/include/pthread/pthread.h
 b/libpthread/include/pthread/pthread.h
+@@ -79,112 +79,132 @@ __BEGIN_DECLS
+ 
+ /* Initialize the thread attribute object in *ATTR to the default
+values.  */
+-extern int pthread_attr_init (pthread_attr_t *attr);
++extern int pthread_attr_init (pthread_attr_t *__attr) __THROW __nonnull ((1));
+ 
+ /* Destroy the thread attribute object in *ATTR.  */
+-extern int pthread_attr_destroy (pthread_attr_t *attr);
++extern int pthread_attr_destroy (pthread_attr_t *__attr)
++  __THROW __nonnull ((1));
+ 
+ 
+ /* Return the value of the inheritsched attribute in *ATTR in
+*INHERITSCHED.  */
+-extern int pthread_attr_getinheritsched (const pthread_attr_t *__restrict 
attr,
+-   int *__restrict inheritsched);
++extern int pthread_attr_getinheritsched (const pthread_attr_t *__restrict 
__attr,
++   int *__restrict __inheritsched)
++  __THROW __nonnull ((1, 2));
+ 
+ /* Set the value of the inheritsched attribute in *ATTR to
+INHERITSCHED.  */
+-extern int pthread_attr_setinheritsched (pthread_attr_t *attr,
+-   int inheritsched);
++extern int pthread_attr_setinheritsched (pthread_attr_t *__attr,
++   int __inheritsched)
++  __THROW __nonnull ((1));
+ 
+ 
+ /* Return the value of the schedparam attribute in *ATTR in *PARAM.  */
+-extern int pthread_attr_getschedparam (const pthread_attr_t *__restrict attr,
+- struct sched_param *__restrict param);
++extern int pthread_attr_getschedparam (const pthread_attr_t *__restrict 
__attr,
++ 

r6708 - glibc-package/branches/glibc-2.21/debian/patches/hurd-i386

2015-11-29 Thread Samuel Thibault
Author: sthibault
Date: 2015-11-29 15:36:52 + (Sun, 29 Nov 2015)
New Revision: 6708

Modified:
   
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/submitted-bind_umask2.diff
Log:
document submission

Modified: 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/submitted-bind_umask2.diff
===
--- 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/submitted-bind_umask2.diff
   2015-11-25 16:47:59 UTC (rev 6707)
+++ 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/submitted-bind_umask2.diff
   2015-11-29 15:36:52 UTC (rev 6708)
@@ -7,6 +7,10 @@
 succeed, before calling __file_chmod to fix the mode according to 
umask,
 before calling __dir_link to show the file.
 
+Part of the original fix was commited, the other hasn't been yet, see Roland's
+"Harumph" reply to
+https://sourceware.org/ml/libc-alpha/2014-08/msg00408.html
+
 ---
  bind.c |   17 +++--
  1 file changed, 11 insertions(+), 6 deletions(-)



r6707 - glibc-package/branches/glibc-2.21/debian/patches/hurd-i386

2015-11-25 Thread Samuel Thibault
Author: sthibault
Date: 2015-11-25 16:47:59 + (Wed, 25 Nov 2015)
New Revision: 6707

Modified:
   glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-hidden.diff
Log:
__libc_stack_end actually needs to be initialized to avoid ending up in common, 
for hidden support

Modified: 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-hidden.diff
===
--- glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-hidden.diff  
2015-11-25 16:08:14 UTC (rev 6706)
+++ glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-hidden.diff  
2015-11-25 16:47:59 UTC (rev 6707)
@@ -22,9 +22,11 @@
 --- a/sysdeps/mach/hurd/dl-sysdep.c
 +++ b/sysdeps/mach/hurd/dl-sysdep.c
 @@ -55,6 +55,7 @@ rtld_hidden_data_def (__libc_enable_secure)
+ int __libc_multiple_libcs = 0;/* Defining this here avoids the 
inclusion
   of init-first.  */
  /* This variable contains the lowest stack address ever used.  */
- void *__libc_stack_end;
+-void *__libc_stack_end;
++void *__libc_stack_end = NULL;
 +rtld_hidden_data_def(__libc_stack_end)
  
  #if HP_TIMING_AVAIL



r6706 - glibc-package/branches/glibc-2.21/debian/patches/hurd-i386

2015-11-25 Thread Samuel Thibault
Author: sthibault
Date: 2015-11-25 16:08:14 + (Wed, 25 Nov 2015)
New Revision: 6706

Modified:
   glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-hidden.diff
Log:
hurd: Do not add relro attribute to __libc_stack_end
It does not actually work yet


Modified: 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-hidden.diff
===
--- glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-hidden.diff  
2015-11-25 02:25:18 UTC (rev 6705)
+++ glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-hidden.diff  
2015-11-25 16:08:14 UTC (rev 6706)
@@ -21,12 +21,10 @@
 index e446f15..7b3c569 100644
 --- a/sysdeps/mach/hurd/dl-sysdep.c
 +++ b/sysdeps/mach/hurd/dl-sysdep.c
-@@ -55,7 +55,8 @@ rtld_hidden_data_def (__libc_enable_secure)
- int __libc_multiple_libcs = 0;/* Defining this here avoids the 
inclusion
+@@ -55,6 +55,7 @@ rtld_hidden_data_def (__libc_enable_secure)
   of init-first.  */
  /* This variable contains the lowest stack address ever used.  */
--void *__libc_stack_end;
-+void *__libc_stack_end attribute_relro = NULL;
+ void *__libc_stack_end;
 +rtld_hidden_data_def(__libc_stack_end)
  
  #if HP_TIMING_AVAIL



r6701 - in glibc-package/branches/glibc-2.21/debian: . patches/hurd-i386

2015-11-24 Thread Samuel Thibault
Author: sthibault
Date: 2015-11-24 23:58:18 + (Tue, 24 Nov 2015)
New Revision: 6701

Modified:
   glibc-package/branches/glibc-2.21/debian/changelog
   
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/tg-tls-threadvar.diff
Log:
  * patches/hurd-i386/tg-tls-threadvar.diff: Update, to fix recursion while
accessing TLS while locking for accessing TLS.


Modified: glibc-package/branches/glibc-2.21/debian/changelog
===
--- glibc-package/branches/glibc-2.21/debian/changelog  2015-11-23 21:30:14 UTC 
(rev 6700)
+++ glibc-package/branches/glibc-2.21/debian/changelog  2015-11-24 23:58:18 UTC 
(rev 6701)
@@ -12,6 +12,10 @@
   * patches/hppa/submitted-mathdef.diff: new patch from John David Anglin to
 define __NO_LONG_DOUBLE_MATH on hppa.  Closes: #805836.
 
+  [ Samuel Thibault ]
+  * patches/hurd-i386/tg-tls-threadvar.diff: Update, to fix recursion while
+accessing TLS while locking for accessing TLS.
+
  -- Aurelien Jarno <aure...@debian.org>  Sun, 22 Nov 2015 20:20:54 +0100
 
 glibc (2.21-0experimental3) experimental; urgency=medium

Modified: 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/tg-tls-threadvar.diff
===
--- 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/tg-tls-threadvar.diff
2015-11-23 21:30:14 UTC (rev 6700)
+++ 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/tg-tls-threadvar.diff
2015-11-24 23:58:18 UTC (rev 6701)
@@ -4,6 +4,8 @@
 replace the custom threadvar mechanism with generic TLS.
 That will fix sigaltstack.
 
+Note: the added reply_port and _hurd_sigstate fields should be kept last.
+
 ---
  hurd/Versions   |  7 +--
  hurd/hurd/signal.h  | 24 +
@@ -237,7 +239,7 @@
  
  /* Linked-list of per-thread signal state.  */
  struct hurd_sigstate *_hurd_sigstates;
-@@ -234,11 +234,11 @@ abort_thread (struct hurd_sigstate *ss,
+@@ -234,14 +234,14 @@ abort_thread (struct hurd_sigstate *ss,
 that this location can be set without faulting, or else return NULL.  */
  
  static mach_port_t *
@@ -251,7 +253,11 @@
 +  mach_port_t *portloc = _TCB(thread, thread_state)->reply_port;
  
if (sigthread && _hurdsig_catch_memory_fault (portloc))
- /* Faulted trying to read the stack.  */
+-/* Faulted trying to read the stack.  */
++/* Faulted trying to read the TCB.  */
+ return NULL;
+ 
+   /* Fault now if this pointer is bogus.  */
 @@ -323,7 +323,8 @@ _hurdsig_abort_rpcs (struct hurd_sigstat
   our nonzero return tells the trampoline code to finish the message
   receive operation before running the handler.  */
@@ -397,7 +403,7 @@
GLIBC_PRIVATE {
  # Functions shared with the dynamic linker
  __libc_read; __libc_write; __libc_lseek64;
-+__libc_lock_self0; __libc_get_lock_self;
++__libc_lock_self0;
  
  _dl_init_first;
}
@@ -414,7 +420,7 @@
  
  # functions that must be shared with libc
  __libc_read; __libc_write; __libc_lseek64;
-+__libc_lock_self0; __libc_get_lock_self;
++__libc_lock_self0;
}
  }
 Index: glibc-2.21/sysdeps/mach/hurd/bits/libc-lock.h
@@ -429,17 +435,13 @@
  
  typedef struct mutex __libc_lock_t;
  typedef struct
-@@ -35,7 +34,12 @@ typedef struct
+@@ -35,7 +34,8 @@ typedef struct
  } __libc_lock_recursive_t;
  typedef __libc_lock_recursive_t __rtld_lock_recursive_t;
  
 -#define __libc_lock_owner_self() ((void *) __hurd_threadvar_location (0))
 +extern char __libc_lock_self0[0];
-+/* We have to hide the __libc_lock_self access behind a function call,
-+   otherwise gcc >= 4.9 would try to prefetch the TLS dereference even before
-+   the __LIBC_NO_TLS test is finished... */
-+extern void *__libc_get_lock_self(void);
-+#define __libc_lock_owner_self() (__LIBC_NO_TLS() ? &__libc_lock_self0 : 
__libc_get_lock_self())
++#define __libc_lock_owner_self() (__LIBC_NO_TLS() ? &__libc_lock_self0 : 
THREAD_SELF)
  
  #else
  typedef struct __libc_lock_opaque__ __libc_lock_t;
@@ -486,19 +488,12 @@
 ===
 --- glibc-2.21.orig/sysdeps/mach/hurd/cthreads.c
 +++ glibc-2.21/sysdeps/mach/hurd/cthreads.c
-@@ -19,6 +19,15 @@
+@@ -19,6 +19,8 @@
  #include 
  #include 
  
 +char __libc_lock_self0[0];
-+static __thread char __libc_lock_self[0];
 +
-+void *
-+__libc_get_lock_self(void)
-+{
-+  return (void*) &__libc_lock_self;
-+}
-+
  /* Placeholder for key creation routine from Hurd cthreads library.  */
  int
  weak_function
@@ -711,6 +706,15 @@
 ===
 --- glibc-2.21.orig/sysdeps/mach/hurd/i386/sigreturn.c
 +++ glibc-2.21/sysdeps/mach/hurd/i386/sigreturn.c
+@@ -68,7 +68,7 @@ __sigreturn (struct sigcontext *scp)
+ 
+   if (scp->sc_onstack)
+ {
+-  ss->sigaltstack.ss_flags &= ~SS_ONSTACK; /* XXX thre

r6702 - in glibc-package/branches/glibc-2.21/debian: . patches/hurd-i386

2015-11-24 Thread Samuel Thibault
Author: sthibault
Date: 2015-11-25 00:42:57 + (Wed, 25 Nov 2015)
New Revision: 6702

Modified:
   glibc-package/branches/glibc-2.21/debian/changelog
   
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/tg-context_functions.diff
Log:
  * patches/hurd-i386/tg-context_functions.diff: Update, to fix sigprocmask
visibility.


Modified: glibc-package/branches/glibc-2.21/debian/changelog
===
--- glibc-package/branches/glibc-2.21/debian/changelog  2015-11-24 23:58:18 UTC 
(rev 6701)
+++ glibc-package/branches/glibc-2.21/debian/changelog  2015-11-25 00:42:57 UTC 
(rev 6702)
@@ -15,6 +15,8 @@
   [ Samuel Thibault ]
   * patches/hurd-i386/tg-tls-threadvar.diff: Update, to fix recursion while
 accessing TLS while locking for accessing TLS.
+  * patches/hurd-i386/tg-context_functions.diff: Update, to fix sigprocmask
+visibility.
 
  -- Aurelien Jarno <aure...@debian.org>  Sun, 22 Nov 2015 20:20:54 +0100
 

Modified: 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/tg-context_functions.diff
===
--- 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/tg-context_functions.diff
2015-11-24 23:58:18 UTC (rev 6701)
+++ 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/tg-context_functions.diff
2015-11-25 00:42:57 UTC (rev 6702)
@@ -102,7 +102,7 @@
 +  movl%eax, 8(%esp)
 +  movl$0, 4(%esp)
 +  movl$SIG_BLOCK, (%esp)
-+  callHIDDEN_JUMPTARGET (__sigprocmask)
++  callJUMPTARGET (__sigprocmask)
 +  addl$12, %esp
 +  cfi_adjust_cfa_offset (-12)
 +  /* Propagate %eax (and errno, in case).  */
@@ -363,7 +363,7 @@
 +  lealoSIGMASK(%eax), %eax
 +  movl%eax, 4(%esp)
 +  movl$SIG_SETMASK, (%esp)
-+  callHIDDEN_JUMPTARGET (__sigprocmask)
++  callJUMPTARGET (__sigprocmask)
 +  addl$12, %esp
 +  cfi_adjust_cfa_offset (-12)
 +  testl   %eax, %eax
@@ -490,7 +490,7 @@
 +  lealoSIGMASK(%ecx), %eax
 +  movl%eax, 4(%esp)
 +  movl$SIG_SETMASK, (%esp)
-+  callHIDDEN_JUMPTARGET (__sigprocmask)
++  callJUMPTARGET (__sigprocmask)
 +  addl$12, %esp
 +  cfi_adjust_cfa_offset (-12)
 +  testl   %eax, %eax



r6703 - in glibc-package/branches/glibc-2.21/debian: . patches patches/hurd-i386

2015-11-24 Thread Samuel Thibault
Author: sthibault
Date: 2015-11-25 01:56:42 + (Wed, 25 Nov 2015)
New Revision: 6703

Added:
   glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-hidden.diff
Modified:
   glibc-package/branches/glibc-2.21/debian/changelog
   
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/unsubmitted-NO_HIDDEN.diff
   glibc-package/branches/glibc-2.21/debian/patches/series
Log:
  * patches/hurd-i386/cvs-hidden.diff: New patch, to fix build with hidden
support.


Modified: glibc-package/branches/glibc-2.21/debian/changelog
===
--- glibc-package/branches/glibc-2.21/debian/changelog  2015-11-25 00:42:57 UTC 
(rev 6702)
+++ glibc-package/branches/glibc-2.21/debian/changelog  2015-11-25 01:56:42 UTC 
(rev 6703)
@@ -17,6 +17,8 @@
 accessing TLS while locking for accessing TLS.
   * patches/hurd-i386/tg-context_functions.diff: Update, to fix sigprocmask
 visibility.
+  * patches/hurd-i386/cvs-hidden.diff: New patch, to fix build with hidden
+support.
 
  -- Aurelien Jarno   Sun, 22 Nov 2015 20:20:54 +0100
 

Added: 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-hidden.diff
===
--- glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-hidden.diff  
(rev 0)
+++ glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-hidden.diff  
2015-11-25 01:56:42 UTC (rev 6703)
@@ -0,0 +1,157 @@
+diff --git a/sysdeps/i386/setjmp.S b/sysdeps/i386/setjmp.S
+index 5fe4900..cb4f0bd 100644
+--- a/sysdeps/i386/setjmp.S
 b/sysdeps/i386/setjmp.S
+@@ -55,3 +55,4 @@ ENTRY (__sigsetjmp)
+   jmp __sigjmp_save
+ #endif
+ END (__sigsetjmp)
++hidden_def (__sigsetjmp)
+diff --git a/sysdeps/mach/hurd/accept4.c b/sysdeps/mach/hurd/accept4.c
+index 19114f7..13cd593 100644
+--- a/sysdeps/mach/hurd/accept4.c
 b/sysdeps/mach/hurd/accept4.c
+@@ -95,5 +95,4 @@ __libc_accept4 (int fd, __SOCKADDR_ARG addrarg, socklen_t 
*addr_len, int flags)
+ 
+   return _hurd_intern_fd (new, O_IGNORE_CTTY | flags, 1);
+ }
+-libc_hidden_def (__libc_accept4)
+ weak_alias (__libc_accept4, accept4)
+diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c
+index e446f15..7b3c569 100644
+--- a/sysdeps/mach/hurd/dl-sysdep.c
 b/sysdeps/mach/hurd/dl-sysdep.c
+@@ -55,7 +55,8 @@ rtld_hidden_data_def (__libc_enable_secure)
+ int __libc_multiple_libcs = 0;/* Defining this here avoids the 
inclusion
+  of init-first.  */
+ /* This variable contains the lowest stack address ever used.  */
+-void *__libc_stack_end;
++void *__libc_stack_end attribute_relro = NULL;
++rtld_hidden_data_def(__libc_stack_end)
+ 
+ #if HP_TIMING_AVAIL
+ hp_timing_t _dl_cpuclock_offset;
+diff --git a/sysdeps/mach/hurd/fxstatat64.c b/sysdeps/mach/hurd/fxstatat64.c
+index a15c16d..ee7456d 100644
+--- a/sysdeps/mach/hurd/fxstatat64.c
 b/sysdeps/mach/hurd/fxstatat64.c
+@@ -43,3 +43,4 @@ __fxstatat64 (int vers, int fd, const char *filename, struct 
stat64 *buf,
+ 
+   return __hurd_fail (err);
+ }
++libc_hidden_def (__fxstatat64)
+diff --git a/sysdeps/mach/hurd/if_index.c b/sysdeps/mach/hurd/if_index.c
+index 652149b..03b31f9 100644
+--- a/sysdeps/mach/hurd/if_index.c
 b/sysdeps/mach/hurd/if_index.c
+@@ -65,7 +65,9 @@ __if_freenameindex (struct if_nameindex *ifn)
+ }
+   free (ifn);
+ }
++libc_hidden_def (__if_freenameindex)
+ weak_alias (__if_freenameindex, if_freenameindex)
++libc_hidden_weak (if_freenameindex)
+ 
+ /* Return an array of if_nameindex structures, one for each network
+interface present, plus one indicating the end of the array.  On
+@@ -152,6 +154,7 @@ __if_nameindex (void)
+   return idx;
+ }
+ weak_alias (__if_nameindex, if_nameindex)
++libc_hidden_weak (if_nameindex)
+ 
+ /* Store the name of the interface corresponding to index IFINDEX in
+IFNAME (which has space for at least IFNAMSIZ characters).  Return
+diff --git a/sysdeps/mach/hurd/open.c b/sysdeps/mach/hurd/open.c
+index c497a7c..6d5c97b 100644
+--- a/sysdeps/mach/hurd/open.c
 b/sysdeps/mach/hurd/open.c
+@@ -56,5 +56,5 @@ weak_alias (__libc_open, open)
+ /* open64 is just the same as open for us.  */
+ weak_alias (__libc_open, __libc_open64)
+ weak_alias (__libc_open, __open64)
+-libc_hidden_weak (_open64)
++libc_hidden_weak (__open64)
+ weak_alias (__libc_open, open64)
+diff --git a/sysdeps/mach/hurd/sigwait.c b/sysdeps/mach/hurd/sigwait.c
+index de024a3..8850f2a 100644
+--- a/sysdeps/mach/hurd/sigwait.c
 b/sysdeps/mach/hurd/sigwait.c
+@@ -129,4 +129,5 @@ all_done:
+   return 0;
+ }
+ 
++libc_hidden_def (__sigwait)
+ weak_alias (__sigwait, sigwait)
+diff --git a/sysdeps/mach/hurd/xmknodat.c b/sysdeps/mach/hurd/xmknodat.c
+index 6c7d669..82a6eb9 100644
+--- a/sysdeps/mach/hurd/xmknodat.c
 b/sysdeps/mach/hurd/xmknodat.c
+@@ -115,3 +115,5 @@ __xmknodat (int vers, int fd, const char *path, mode_t 
mode, 

r6704 - glibc-package/branches/glibc-2.21/debian/patches/hurd-i386

2015-11-24 Thread Samuel Thibault
Author: sthibault
Date: 2015-11-25 02:01:28 + (Wed, 25 Nov 2015)
New Revision: 6704

Modified:
   glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-hidden.diff
Log:
Add missing file

Modified: 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-hidden.diff
===
--- glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-hidden.diff  
2015-11-25 01:56:42 UTC (rev 6703)
+++ glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-hidden.diff  
2015-11-25 02:01:28 UTC (rev 6704)
@@ -155,3 +155,37 @@
  }
  strong_alias (__pthread_key_create, pthread_key_create)
 -hidden_def (__pthread_key_create)
+--- /dev/null
 b/libpthread/sysdeps/generic/shm-directory.h
+@@ -0,0 +1,31 @@
++/* Header for directory for shm/sem files.  libpthread version.
++   Copyright (C) 2014-2015 Free Software Foundation, Inc.
++   This file is part of the GNU C Library.
++
++   The GNU C Library is free software; you can redistribute it and/or
++   modify it under the terms of the GNU Lesser General Public
++   License as published by the Free Software Foundation; either
++   version 2.1 of the License, or (at your option) any later version.
++
++   The GNU C Library is distributed in the hope that it will be useful,
++   but WITHOUT ANY WARRANTY; without even the implied warranty of
++   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
++   Lesser General Public License for more details.
++
++   You should have received a copy of the GNU Lesser General Public
++   License along with the GNU C Library; if not, see
++   .  */
++
++#ifndef _SHM_DIRECTORY_H
++
++#include 
++
++/* For libpthread the __shm_directory function lives in libpthread.
++   We don't want PLT calls from there.  But it's also used from
++   librt, so it cannot just be declared hidden.  */
++
++#if IS_IN (libpthread)
++hidden_proto (__shm_directory)
++#endif
++
++#endif  /* shm-directory.h */



r6705 - in glibc-package/branches/glibc-2.21/debian: . sysdeps

2015-11-24 Thread Samuel Thibault
Author: sthibault
Date: 2015-11-25 02:25:18 + (Wed, 25 Nov 2015)
New Revision: 6705

Modified:
   glibc-package/branches/glibc-2.21/debian/changelog
   glibc-package/branches/glibc-2.21/debian/sysdeps/hurd-i386.mk
Log:
  * sysdeps/hurd-i386.mk: Disable libc0.3-i686 and libc0.3-xen build for now,
to get 2.21 out against the binutils version which broke them.


Modified: glibc-package/branches/glibc-2.21/debian/changelog
===
--- glibc-package/branches/glibc-2.21/debian/changelog  2015-11-25 02:01:28 UTC 
(rev 6704)
+++ glibc-package/branches/glibc-2.21/debian/changelog  2015-11-25 02:25:18 UTC 
(rev 6705)
@@ -19,6 +19,8 @@
 visibility.
   * patches/hurd-i386/cvs-hidden.diff: New patch, to fix build with hidden
 support.
+  * sysdeps/hurd-i386.mk: Disable libc0.3-i686 and libc0.3-xen build for now,
+to get 2.21 out against the binutils version which broke them.
 
  -- Aurelien Jarno   Sun, 22 Nov 2015 20:20:54 +0100
 

Modified: glibc-package/branches/glibc-2.21/debian/sysdeps/hurd-i386.mk
===
--- glibc-package/branches/glibc-2.21/debian/sysdeps/hurd-i386.mk   
2015-11-25 02:01:28 UTC (rev 6704)
+++ glibc-package/branches/glibc-2.21/debian/sysdeps/hurd-i386.mk   
2015-11-25 02:25:18 UTC (rev 6705)
@@ -1,28 +1,27 @@
-# We use -march=i686 and glibc's i686 routines use cmov, so require it.
-# A Debian-local glibc patch adds cmov to the search path.
-GLIBC_PASSES += i686
-DEB_ARCH_REGULAR_PACKAGES += libc0.3-i686
-i686_add-ons = $(libc_add-ons)
-i686_configure_target=i686-gnu
-i686_extra_cflags = -march=i686 -mtune=generic
-i686_slibdir = /lib/$(DEB_HOST_MULTIARCH)/i686/cmov
-i686_extra_config_options = $(extra_config_options) --disable-compatible-utmp
-
-# We use -mno-tls-direct-seg-refs to not wrap-around segments, as it
-# greatly increase the speed when running under the 32bit Xen hypervisor.
-GLIBC_PASSES += xen
-DEB_ARCH_REGULAR_PACKAGES += libc0.3-xen
-xen_add-ons = $(libc_add-ons)
-xen_configure_target=i686-gnu
-xen_extra_cflags = -march=i686 -mtune=generic -mno-tls-direct-seg-refs
-xen_slibdir = /lib/$(DEB_HOST_MULTIARCH)/i686/nosegneg
-xen_extra_config_options = $(extra_config_options)
-
-ifeq ($(filter stage1,$(DEB_BUILD_PROFILES)),)
-define libc0.3-dev_extra_pkg_install
-mkdir -p debian/libc0.3-dev/$(libdir)/xen
-cp -af debian/tmp-xen/$(libdir)/*.a \
-   debian/libc0.3-dev/$(libdir)/xen
-endef
-endif
-
+## We use -march=i686 and glibc's i686 routines use cmov, so require it.
+## A Debian-local glibc patch adds cmov to the search path.
+#GLIBC_PASSES += i686
+#DEB_ARCH_REGULAR_PACKAGES += libc0.3-i686
+#i686_add-ons = $(libc_add-ons)
+#i686_configure_target=i686-gnu
+#i686_extra_cflags = -march=i686 -mtune=generic
+#i686_slibdir = /lib/$(DEB_HOST_MULTIARCH)/i686/cmov
+#i686_extra_config_options = $(extra_config_options) --disable-compatible-utmp
+#
+## We use -mno-tls-direct-seg-refs to not wrap-around segments, as it
+## greatly increase the speed when running under the 32bit Xen hypervisor.
+#GLIBC_PASSES += xen
+#DEB_ARCH_REGULAR_PACKAGES += libc0.3-xen
+#xen_add-ons = $(libc_add-ons)
+#xen_configure_target=i686-gnu
+#xen_extra_cflags = -march=i686 -mtune=generic -mno-tls-direct-seg-refs
+#xen_slibdir = /lib/$(DEB_HOST_MULTIARCH)/i686/nosegneg
+#xen_extra_config_options = $(extra_config_options)
+#
+#ifeq ($(filter stage1,$(DEB_BUILD_PROFILES)),)
+#define libc0.3-dev_extra_pkg_install
+#mkdir -p debian/libc0.3-dev/$(libdir)/xen
+#cp -af debian/tmp-xen/$(libdir)/*.a \
+#  debian/libc0.3-dev/$(libdir)/xen
+#endef
+#endif



r6684 - in glibc-package/branches/glibc-2.22/debian: . patches/hurd-i386

2015-11-21 Thread Samuel Thibault
Author: sthibault
Date: 2015-11-21 17:54:54 + (Sat, 21 Nov 2015)
New Revision: 6684

Modified:
   glibc-package/branches/glibc-2.22/debian/changelog
   
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/tg-posix_thread.diff
Log:
backport r6683 from 2.21: patches/hurd-i386/tg-posix_thread.diff: Update, to 
define _POSIX_THREAD_KEYS_MAX, _POSIX_THREAD_DESTRUCTOR_ITERATIONS and 
_POSIX_THREAD_THREADS_MAX.

Modified: glibc-package/branches/glibc-2.22/debian/changelog
===
--- glibc-package/branches/glibc-2.22/debian/changelog  2015-11-21 17:53:00 UTC 
(rev 6683)
+++ glibc-package/branches/glibc-2.22/debian/changelog  2015-11-21 17:54:54 UTC 
(rev 6684)
@@ -62,6 +62,9 @@
   * debian/patches/hurd-i386/cvs-s_scalbn.diff: New patch, fixes s_scalbn.S
 build.
   * debian/patches/hurd-i386/tg-tls-threadvar.diff: Update.
+  * patches/hurd-i386/tg-posix_thread.diff: Update, to define
+_POSIX_THREAD_KEYS_MAX, _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
+_POSIX_THREAD_THREADS_MAX.
 
  -- Adam Conrad   Tue, 15 Sep 2015 17:57:41 -0600
 

Modified: 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/tg-posix_thread.diff
===
--- 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/tg-posix_thread.diff 
2015-11-21 17:53:00 UTC (rev 6683)
+++ 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/tg-posix_thread.diff 
2015-11-21 17:54:54 UTC (rev 6684)
@@ -7,8 +7,8 @@
 
 ---
  sysdeps/mach/hurd/Makefile |  4 
- sysdeps/mach/hurd/bits/posix_opt.h | 40 +-
- 2 files changed, 31 insertions(+), 13 deletions(-)
+ sysdeps/mach/hurd/bits/local_lim.h |  9 
+ sysdeps/mach/hurd/bits/posix_opt.h | 42 +-
 
 diff --git a/sysdeps/mach/hurd/Makefile b/sysdeps/mach/hurd/Makefile
 index 68aedb6..4a6ee36 100644
@@ -25,6 +25,23 @@
  # Override the generic Makeconfig values so we link against the RPC libs.
  link-libc-static := -Wl,--start-group \
$(patsubst %,$(common-objpfx)%.a,\
+diff --git a/sysdeps/mach/hurd/bits/local_lim.h 
b/sysdeps/mach/hurd/bits/local_lim.h
+index f7cc86c..570b5ce 100644
+--- a/sysdeps/mach/hurd/bits/local_lim.h
 b/sysdeps/mach/hurd/bits/local_lim.h
+@@ -32,3 +32,12 @@
+suitable, and `sysconf' will return a number at least as large.  */
+ 
+ #define NGROUPS_MAX   256
++
++/* The number of data keys per process.  */
++#define _POSIX_THREAD_KEYS_MAX128
++
++/* Controlling the iterations of destructors for thread-specific data.  */
++#define _POSIX_THREAD_DESTRUCTOR_ITERATIONS   4
++
++/* The number of threads per process.  */
++#define _POSIX_THREAD_THREADS_MAX 64
 diff --git a/sysdeps/mach/hurd/bits/posix_opt.h 
b/sysdeps/mach/hurd/bits/posix_opt.h
 index 940e376..24ef55c 100644
 --- a/sysdeps/mach/hurd/bits/posix_opt.h
@@ -101,8 +118,9 @@
 @@ -140,7 +154,7 @@
  #define _POSIX_TIMERS 0
  
- /* The barrier functions are not available.  */
+-/* The barrier functions are not available.  */
 -#define _POSIX_BARRIERS   -1
++/* We support barrier functions.  */
 +#define _POSIX_BARRIERS   200112L
  
  /* POSIX message queues could be available in future.  */



r6683 - in glibc-package/branches/glibc-2.21/debian: . patches/hurd-i386

2015-11-21 Thread Samuel Thibault
Author: sthibault
Date: 2015-11-21 17:53:00 + (Sat, 21 Nov 2015)
New Revision: 6683

Modified:
   glibc-package/branches/glibc-2.21/debian/changelog
   
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/tg-posix_thread.diff
Log:
  * patches/hurd-i386/tg-posix_thread.diff: Update, to define
_POSIX_THREAD_KEYS_MAX, _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
_POSIX_THREAD_THREADS_MAX.


Modified: glibc-package/branches/glibc-2.21/debian/changelog
===
--- glibc-package/branches/glibc-2.21/debian/changelog  2015-11-21 15:40:41 UTC 
(rev 6682)
+++ glibc-package/branches/glibc-2.21/debian/changelog  2015-11-21 17:53:00 UTC 
(rev 6683)
@@ -41,6 +41,9 @@
   [ Samuel Thibault ]
   * patches/hurd-i386/tg-pagesize.diff: Refresh.
   * patches/hurd-i386/submitted-handle-eprototype.diff: Refresh.
+  * patches/hurd-i386/tg-posix_thread.diff: Update, to define
+_POSIX_THREAD_KEYS_MAX, _POSIX_THREAD_DESTRUCTOR_ITERATIONS and
+_POSIX_THREAD_THREADS_MAX.
 
  -- Aurelien Jarno <aure...@debian.org>  Mon, 19 Oct 2015 07:05:23 +0200
 

Modified: 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/tg-posix_thread.diff
===
--- 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/tg-posix_thread.diff 
2015-11-21 15:40:41 UTC (rev 6682)
+++ 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/tg-posix_thread.diff 
2015-11-21 17:53:00 UTC (rev 6683)
@@ -7,8 +7,8 @@
 
 ---
  sysdeps/mach/hurd/Makefile |  4 
- sysdeps/mach/hurd/bits/posix_opt.h | 40 +-
- 2 files changed, 31 insertions(+), 13 deletions(-)
+ sysdeps/mach/hurd/bits/local_lim.h |  9 
+ sysdeps/mach/hurd/bits/posix_opt.h | 42 +-
 
 diff --git a/sysdeps/mach/hurd/Makefile b/sysdeps/mach/hurd/Makefile
 index 68aedb6..4a6ee36 100644
@@ -25,6 +25,23 @@
  # Override the generic Makeconfig values so we link against the RPC libs.
  link-libc-static := -Wl,--start-group \
$(patsubst %,$(common-objpfx)%.a,\
+diff --git a/sysdeps/mach/hurd/bits/local_lim.h 
b/sysdeps/mach/hurd/bits/local_lim.h
+index f7cc86c..570b5ce 100644
+--- a/sysdeps/mach/hurd/bits/local_lim.h
 b/sysdeps/mach/hurd/bits/local_lim.h
+@@ -32,3 +32,12 @@
+suitable, and `sysconf' will return a number at least as large.  */
+ 
+ #define NGROUPS_MAX   256
++
++/* The number of data keys per process.  */
++#define _POSIX_THREAD_KEYS_MAX128
++
++/* Controlling the iterations of destructors for thread-specific data.  */
++#define _POSIX_THREAD_DESTRUCTOR_ITERATIONS   4
++
++/* The number of threads per process.  */
++#define _POSIX_THREAD_THREADS_MAX 64
 diff --git a/sysdeps/mach/hurd/bits/posix_opt.h 
b/sysdeps/mach/hurd/bits/posix_opt.h
 index 940e376..24ef55c 100644
 --- a/sysdeps/mach/hurd/bits/posix_opt.h
@@ -101,8 +118,9 @@
 @@ -140,7 +154,7 @@
  #define _POSIX_TIMERS 0
  
- /* The barrier functions are not available.  */
+-/* The barrier functions are not available.  */
 -#define _POSIX_BARRIERS   -1
++/* We support barrier functions.  */
 +#define _POSIX_BARRIERS   200112L
  
  /* POSIX message queues could be available in future.  */



r6674 - in glibc-package/branches/glibc-2.21/debian: . patches/hurd-i386

2015-10-27 Thread Samuel Thibault
Author: sthibault
Date: 2015-10-27 12:41:27 + (Tue, 27 Oct 2015)
New Revision: 6674

Modified:
   glibc-package/branches/glibc-2.21/debian/changelog
   
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/submitted-handle-eprototype.diff
   glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/tg-pagesize.diff
Log:
  * patches/hurd-i386/tg-pagesize.diff: Refresh.
  * patches/hurd-i386/submitted-handle-eprototype.diff: Refresh.


Modified: glibc-package/branches/glibc-2.21/debian/changelog
===
--- glibc-package/branches/glibc-2.21/debian/changelog  2015-10-25 22:16:24 UTC 
(rev 6673)
+++ glibc-package/branches/glibc-2.21/debian/changelog  2015-10-27 12:41:27 UTC 
(rev 6674)
@@ -26,6 +26,10 @@
   * debian/rules: don't put debug files from libc0.1-i386 and libc6-mips32
 into libc0.1-dbg or libc6-dbg.
 
+  [ Samuel Thibault ]
+  * patches/hurd-i386/tg-pagesize.diff: Refresh.
+  * patches/hurd-i386/submitted-handle-eprototype.diff: Refresh.
+
  -- Aurelien Jarno <aure...@debian.org>  Mon, 19 Oct 2015 07:05:23 +0200
 
 glibc (2.21-0experimental2) experimental; urgency=medium

Modified: 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/submitted-handle-eprototype.diff
===
--- 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/submitted-handle-eprototype.diff
 2015-10-25 22:16:24 UTC (rev 6673)
+++ 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/submitted-handle-eprototype.diff
 2015-10-27 12:41:27 UTC (rev 6674)
@@ -83,7 +83,7 @@
 +   && (errno == EINVAL || errno == 
EPROTOTYPE) ? -1 : 1);
  #endif
}
-   if (__builtin_expect (__have_o_nonblock < 0, 0))
+   if (__glibc_unlikely (__have_o_nonblock < 0))
 @@ -945,7 +945,7 @@ reopen (res_state statp, int *terrno, in
if (__have_o_nonblock == 0)
__have_o_nonblock
@@ -92,7 +92,7 @@
 +   && (errno == EINVAL || errno == 
EPROTOTYPE) ? -1 : 1);
  #endif
}
-   if (__builtin_expect (__have_o_nonblock < 0, 0))
+   if (__glibc_unlikely (__have_o_nonblock < 0))
 --- a/sunrpc/clnt_udp.c
 +++ b/sunrpc/clnt_udp.c
 @@ -180,7 +180,7 @@ __libc_clntudp_bufcreate (struct sockadd

Modified: 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/tg-pagesize.diff
===
--- glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/tg-pagesize.diff 
2015-10-25 22:16:24 UTC (rev 6673)
+++ glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/tg-pagesize.diff 
2015-10-27 12:41:27 UTC (rev 6674)
@@ -23,9 +23,9 @@
 --- a/elf/rtld.c
 +++ b/elf/rtld.c
 @@ -164,7 +164,7 @@ struct rtld_global_ro _rtld_global_ro at
+ ._dl_hwcap_mask = HWCAP_IMPORTANT,
  ._dl_lazy = 1,
  ._dl_fpu_control = _FPU_DEFAULT,
- ._dl_pointer_guard = 1,
 -._dl_pagesize = EXEC_PAGESIZE,
 +._dl_pagesize = /* EXEC_PAGESIZE */ 4096,
  ._dl_inhibit_cache = 0,



r6635 - in glibc-package/branches/glibc-2.21/debian: . patches patches/hurd-i386

2015-10-14 Thread Samuel Thibault
Author: sthibault
Date: 2015-10-14 22:05:48 + (Wed, 14 Oct 2015)
New Revision: 6635

Added:
   
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/local-mach_print.diff
Modified:
   glibc-package/branches/glibc-2.21/debian/changelog
   glibc-package/branches/glibc-2.21/debian/patches/series
Log:
patches/hurd-i386/local-mach_print.diff: New patch to export mach_print.

Modified: glibc-package/branches/glibc-2.21/debian/changelog
===
--- glibc-package/branches/glibc-2.21/debian/changelog  2015-10-11 19:20:09 UTC 
(rev 6634)
+++ glibc-package/branches/glibc-2.21/debian/changelog  2015-10-14 22:05:48 UTC 
(rev 6635)
@@ -16,6 +16,7 @@
   * patches/hurd-i386/unsubmitted-gnumach.defs.diff: Also build
 task_notify.defs stubs.  Drop unneeded change.
   * libc0.3.symbols.hurd-i386: Update.
+  * patches/hurd-i386/local-mach_print.diff: New patch to export mach_print.
 
   [ Aurelien Jarno ]
   * rules.d/debhelper.mk: replace GLIBC_VERSION before LIBC.  Closes:

Added: 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/local-mach_print.diff
===
--- 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/local-mach_print.diff
(rev 0)
+++ 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/local-mach_print.diff
2015-10-14 22:05:48 UTC (rev 6635)
@@ -0,0 +1,12 @@
+Index: glibc-2.21/mach/Versions
+===
+--- glibc-2.21.orig/mach/Versions
 glibc-2.21/mach/Versions
+@@ -56,6 +56,7 @@ libc {
+   }
+   GLIBC_2.21 {
+ __mach_host_self_;
++mach_print;
+   }
+ 
+   HURD_CTHREADS_0.3 {

Modified: glibc-package/branches/glibc-2.21/debian/patches/series
===
--- glibc-package/branches/glibc-2.21/debian/patches/series 2015-10-11 
19:20:09 UTC (rev 6634)
+++ glibc-package/branches/glibc-2.21/debian/patches/series 2015-10-14 
22:05:48 UTC (rev 6635)
@@ -157,6 +157,7 @@
 hurd-i386/cvs-bootstrap.diff
 hurd-i386/local-bootstrap.diff
 hurd-i386/cvs-cache-mach_host_self.diff
+hurd-i386/local-mach_print.diff
 
 i386/local-biarch.diff
 i386/local-cmov.diff



r6632 - glibc-package/trunk/debian/patches/hurd-i386

2015-10-11 Thread Samuel Thibault
Author: sthibault
Date: 2015-10-11 19:06:23 + (Sun, 11 Oct 2015)
New Revision: 6632

Modified:
   glibc-package/trunk/debian/patches/hurd-i386/tg-libc_getspecific.diff
Log:
comment when we should drop the patch

Modified: glibc-package/trunk/debian/patches/hurd-i386/tg-libc_getspecific.diff
===
--- glibc-package/trunk/debian/patches/hurd-i386/tg-libc_getspecific.diff   
2015-10-08 21:17:55 UTC (rev 6631)
+++ glibc-package/trunk/debian/patches/hurd-i386/tg-libc_getspecific.diff   
2015-10-11 19:06:23 UTC (rev 6632)
@@ -1,3 +1,5 @@
+Drop once updated to a libpthread which doesn't define __libc_getspecific
+
 --- a/sysdeps/mach/hurd/cthreads.c
 +++ b/sysdeps/mach/hurd/cthreads.c
 @@ -59,6 +59,7 @@ cthread_setspecific (key, val)



r6633 - glibc-package/branches/glibc-2.21/debian/patches/hurd-i386

2015-10-11 Thread Samuel Thibault
Author: sthibault
Date: 2015-10-11 19:20:09 + (Sun, 11 Oct 2015)
New Revision: 6633

Modified:
   
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/tg-libc_getspecific.diff
Log:
backport r6632 from trunk: comment when we should drop the patch

Modified: 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/tg-libc_getspecific.diff
===
--- 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/tg-libc_getspecific.diff
 2015-10-11 19:06:23 UTC (rev 6632)
+++ 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/tg-libc_getspecific.diff
 2015-10-11 19:20:09 UTC (rev 6633)
@@ -1,3 +1,5 @@
+Drop once updated to a libpthread which doesn't define __libc_getspecific
+
 --- a/sysdeps/mach/hurd/cthreads.c
 +++ b/sysdeps/mach/hurd/cthreads.c
 @@ -59,6 +59,7 @@ cthread_setspecific (key, val)



r6634 - glibc-package/branches/glibc-2.22/debian/patches/hurd-i386

2015-10-11 Thread Samuel Thibault
Author: sthibault
Date: 2015-10-11 19:20:09 + (Sun, 11 Oct 2015)
New Revision: 6634

Modified:
   
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/tg-libc_getspecific.diff
Log:
backport r6632 from trunk: comment when we should drop the patch

Modified: 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/tg-libc_getspecific.diff
===
--- 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/tg-libc_getspecific.diff
 2015-10-11 19:20:09 UTC (rev 6633)
+++ 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/tg-libc_getspecific.diff
 2015-10-11 19:20:09 UTC (rev 6634)
@@ -1,3 +1,5 @@
+Drop once updated to a libpthread which doesn't define __libc_getspecific
+
 --- a/sysdeps/mach/hurd/cthreads.c
 +++ b/sysdeps/mach/hurd/cthreads.c
 @@ -59,6 +59,7 @@ cthread_setspecific (key, val)



Bug#800900: hurd-i386: changeset from r6489 breaks SIGBUS handling

2015-10-10 Thread Samuel Thibault
Hello,

Gilles Filippini, le Mon 05 Oct 2015 11:58:28 +0200, a écrit :
> I've reduced the testcase to the attached H5detect.c.
> The behavior is different depending on whether we link with "-lpthread":

Indeed, but

> pini@exodar:~/tmp$ /usr/bin/gcc -o H5detect H5detect.c
> pini@exodar:~/tmp$ ./H5detect
> verify_signal_handlers for signal 10 did 5 tries. Found 2 failures and 3

This was already dubious.  I have found the issue, which is due to
longjump-ing from the signal handler called from a raise().  I'll handle
submitting fixes etc.

Thanks for the report,
Samuel



r6626 - in glibc-package/branches/glibc-2.21/debian: . patches/hurd-i386

2015-10-08 Thread Samuel Thibault
Author: sthibault
Date: 2015-10-08 07:20:18 + (Thu, 08 Oct 2015)
New Revision: 6626

Modified:
   glibc-package/branches/glibc-2.21/debian/changelog
   glibc-package/branches/glibc-2.21/debian/libc0.3.symbols.hurd-i386
   
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/unsubmitted-gnumach.defs.diff
Log:
* patches/hurd-i386/unsubmitted-gnumach.defs.diff: Also build
  task_notify.defs stubs.  Drop unneeded change.
* libc0.3.symbols.hurd-i386: Update.


Modified: glibc-package/branches/glibc-2.21/debian/changelog
===
--- glibc-package/branches/glibc-2.21/debian/changelog  2015-10-07 14:28:15 UTC 
(rev 6625)
+++ glibc-package/branches/glibc-2.21/debian/changelog  2015-10-08 07:20:18 UTC 
(rev 6626)
@@ -13,6 +13,9 @@
 including the former, since the latter is what gets installed.
   * patches/hurd-i386/cvs-cache-mach_host_self.diff: New patch to avoid port
 count issue on the host port.
+  * patches/hurd-i386/unsubmitted-gnumach.defs.diff: Also build
+task_notify.defs stubs.  Drop unneeded change.
+  * libc0.3.symbols.hurd-i386: Update.
 
   [ Aurelien Jarno ]
   * rules.d/debhelper.mk: replace GLIBC_VERSION before LIBC.  Closes:

Modified: glibc-package/branches/glibc-2.21/debian/libc0.3.symbols.hurd-i386
===
--- glibc-package/branches/glibc-2.21/debian/libc0.3.symbols.hurd-i386  
2015-10-07 14:28:15 UTC (rev 6625)
+++ glibc-package/branches/glibc-2.21/debian/libc0.3.symbols.hurd-i386  
2015-10-08 07:20:18 UTC (rev 6626)
@@ -822,6 +822,7 @@
  __i386_io_perm_modify@Base 2.11
  __i386_set_gdt@Base 2.11
  __i386_set_ldt@Base 2.11
+ __mach_notify_new_task@Base 2.21
  __mach_port_allocate_name_rpc@Base 2.11
  __mach_port_allocate_rpc@Base 2.11
  __mach_port_clear_protected_payload@Base 2.19-14~
@@ -977,6 +978,7 @@
  i386_io_perm_modify@Base 2.11
  i386_set_gdt@Base 2.11
  i386_set_ldt@Base 2.11
+ mach_notify_new_task@Base 2.21
  mach_port_allocate_name_rpc@Base 2.11
  mach_port_allocate_rpc@Base 2.11
  mach_port_clear_protected_payload@Base 2.19-14~

Modified: 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/unsubmitted-gnumach.defs.diff
===
--- 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/unsubmitted-gnumach.defs.diff
2015-10-07 14:28:15 UTC (rev 6625)
+++ 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/unsubmitted-gnumach.defs.diff
2015-10-08 07:20:18 UTC (rev 6626)
@@ -1,16 +1,5 @@
-Build stubs for new gnumach.defs
+Build stubs for new task_notify.defs and gnumach.defs
 
 a/mach/Makefile
-+++ b/mach/Makefile
-@@ -111,7 +111,7 @@ ifndef mach-shortcuts
- # $(mach-shortcuts) will be set, and that will change how
- # mach_interface.defs is processed: it will get the -D flags below.
- user-interfaces := $(filter-out $(mach-interface-list:%=mach/%) \
--  mach/mach_port mach/mach_host mach/mach4 \
-+  mach/mach_port mach/mach_host mach/mach4 
mach/gnumach \
-   device/device_request,\
-   $(user-interfaces))
- endif
 --- a/sysdeps/mach/configure
 +++ b/sysdeps/mach/configure
 @@ -277,7 +277,7 @@ if test $libc_cv_mach_task_creation_time
@@ -18,7 +7,7 @@
  
  mach_interface_list=
 -for ifc in mach mach4 \
-+for ifc in mach mach4 gnumach \
++for ifc in mach mach4 task_notify gnumach \
   clock clock_priv host_priv host_security ledger lock_set \
   processor processor_set task thread_act vm_map \
   memory_object memory_object_default default_pager \
@@ -29,7 +18,7 @@
  dnl
  mach_interface_list=
 -for ifc in mach mach4 \
-+for ifc in mach mach4 gnumach \
++for ifc in mach mach4 task_notify gnumach \
   clock clock_priv host_priv host_security ledger lock_set \
   processor processor_set task thread_act vm_map \
   memory_object memory_object_default default_pager \



r6627 - in glibc-package/branches/glibc-2.22/debian: . patches/hurd-i386

2015-10-08 Thread Samuel Thibault
Author: sthibault
Date: 2015-10-08 07:21:04 + (Thu, 08 Oct 2015)
New Revision: 6627

Modified:
   glibc-package/branches/glibc-2.22/debian/changelog
   glibc-package/branches/glibc-2.22/debian/libc0.3.symbols.hurd-i386
   
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/unsubmitted-gnumach.defs.diff
Log:
backport r6626 from 2.21

  * patches/hurd-i386/unsubmitted-gnumach.defs.diff: Also build
task_notify.defs stubs.  Drop unneeded change.
  * libc0.3.symbols.hurd-i386: Update.


Modified: glibc-package/branches/glibc-2.22/debian/changelog
===
--- glibc-package/branches/glibc-2.22/debian/changelog  2015-10-08 07:20:18 UTC 
(rev 6626)
+++ glibc-package/branches/glibc-2.22/debian/changelog  2015-10-08 07:21:04 UTC 
(rev 6627)
@@ -80,6 +80,9 @@
 including the former, since the latter is what gets installed.
   * patches/hurd-i386/cvs-cache-mach_host_self.diff: New patch to avoid port
 count issue on the host port.
+  * patches/hurd-i386/unsubmitted-gnumach.defs.diff: Also build
+task_notify.defs stubs.  Drop unneeded change.
+  * libc0.3.symbols.hurd-i386: Update.
 
   [ Aurelien Jarno ]
   * rules.d/debhelper.mk: replace GLIBC_VERSION before LIBC.  Closes:

Modified: glibc-package/branches/glibc-2.22/debian/libc0.3.symbols.hurd-i386
===
--- glibc-package/branches/glibc-2.22/debian/libc0.3.symbols.hurd-i386  
2015-10-08 07:20:18 UTC (rev 6626)
+++ glibc-package/branches/glibc-2.22/debian/libc0.3.symbols.hurd-i386  
2015-10-08 07:21:04 UTC (rev 6627)
@@ -822,6 +822,7 @@
  __i386_io_perm_modify@Base 2.11
  __i386_set_gdt@Base 2.11
  __i386_set_ldt@Base 2.11
+ __mach_notify_new_task@Base 2.21
  __mach_port_allocate_name_rpc@Base 2.11
  __mach_port_allocate_rpc@Base 2.11
  __mach_port_clear_protected_payload@Base 2.19-14~
@@ -977,6 +978,7 @@
  i386_io_perm_modify@Base 2.11
  i386_set_gdt@Base 2.11
  i386_set_ldt@Base 2.11
+ mach_notify_new_task@Base 2.21
  mach_port_allocate_name_rpc@Base 2.11
  mach_port_allocate_rpc@Base 2.11
  mach_port_clear_protected_payload@Base 2.19-14~

Modified: 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/unsubmitted-gnumach.defs.diff
===
--- 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/unsubmitted-gnumach.defs.diff
2015-10-08 07:20:18 UTC (rev 6626)
+++ 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/unsubmitted-gnumach.defs.diff
2015-10-08 07:21:04 UTC (rev 6627)
@@ -1,16 +1,5 @@
-Build stubs for new gnumach.defs
+Build stubs for new task_notify.defs and gnumach.defs
 
 a/mach/Makefile
-+++ b/mach/Makefile
-@@ -111,7 +111,7 @@ ifndef mach-shortcuts
- # $(mach-shortcuts) will be set, and that will change how
- # mach_interface.defs is processed: it will get the -D flags below.
- user-interfaces := $(filter-out $(mach-interface-list:%=mach/%) \
--  mach/mach_port mach/mach_host mach/mach4 \
-+  mach/mach_port mach/mach_host mach/mach4 
mach/gnumach \
-   device/device_request,\
-   $(user-interfaces))
- endif
 --- a/sysdeps/mach/configure
 +++ b/sysdeps/mach/configure
 @@ -277,7 +277,7 @@ if test $libc_cv_mach_task_creation_time
@@ -18,7 +7,7 @@
  
  mach_interface_list=
 -for ifc in mach mach4 \
-+for ifc in mach mach4 gnumach \
++for ifc in mach mach4 task_notify gnumach \
   clock clock_priv host_priv host_security ledger lock_set \
   processor processor_set task thread_act vm_map \
   memory_object memory_object_default default_pager \
@@ -29,7 +18,7 @@
  dnl
  mach_interface_list=
 -for ifc in mach mach4 \
-+for ifc in mach mach4 gnumach \
++for ifc in mach mach4 task_notify gnumach \
   clock clock_priv host_priv host_security ledger lock_set \
   processor processor_set task thread_act vm_map \
   memory_object memory_object_default default_pager \



Bug#800900: hurd-i386: changeset from r6489 breaks SIGBUS handling

2015-10-04 Thread Samuel Thibault
Hello,

Gilles Filippini, le Sun 04 Oct 2015 19:48:51 +0200, a écrit :
> I think the cause of this bus error is the upgrade of glibc from
> 2.19-19 to 2.19-22 because building with libc0.3 from glibc 2.19-19 is
> successful.
> 
> Using bisection on a porterbox I've found out that the guilty commit is
> r6489 [3].

Thanks for the investigation!

That change indeed changes the implementation of raise().  Actually it's
even a fix, but apparently there are side effects, I'll have a look.

Thanks,
Samuel



Bug#800900: hurd-i386: changeset from r6489 breaks SIGBUS handling

2015-10-04 Thread Samuel Thibault
I'm building the newest hdf5 against libc0.3 2.19-19+b1 so that the
binNMUs can take place, but I'll continue investigating.

Samuel



Bug#800900: hurd-i386: changeset from r6489 breaks SIGBUS handling

2015-10-04 Thread Samuel Thibault
Gilles Filippini, le Mon 05 Oct 2015 00:38:13 +0200, a écrit :
> H5_HAVE_SIGSETJMP isn't defined because:
> 
> configure:25814: checking for sigsetjmp
> configure:25814: /usr/bin/gcc -o conftest -g -O2
> -fstack-protector-strong -Wformat -Werror=format-security
> -D_FILE_OFFSET_BITS=64   -D_FORTIFY_SOURCE=2  -Wl,-z,relro conftest.c
> -lpthread -lz -ldl -lm  >&5
> /tmp/ccEVZwR6.o: In function `main':
> /home/pini/hdf5-1.8.15-patch1+docs/debian/build/conftest.c:160:
> undefined reference to `sigsetjmp'
> collect2: error: ld returned 1 exit status
> 
> It's weird that sigsetjmp isn't correctly detected

sigsetjmp is indeed not a function, but a macro that calls
__sigsetjmp...

Samuel



Bug#800682: libc6: nscd reports bogus result for ipv6-only requests

2015-10-02 Thread Samuel Thibault
Package: libc6
Version: 2.19-20
Severity: normal
Tags: upstream fixed-upstream patch

Hello,

without nscd:
$ ping6 -n kamino
PING kamino(2001:db8:210::20) 56 data bytes
64 bytes from 2001:db8:210::20: icmp_seq=1 ttl=64 time=0.303 ms

with nscd:
$ ping6 -n kamino
PING kamino(a00:d214:2001:db8:210::) 56 data bytes

(0x0a.0x00.0xd2.0x14 happens to be the IPv4 of kamino)

This is due to a missing commit backport for Bug#798515.  I have pushed
the missing commit in the upstream 2.19 branch (8dc9751 cherry-picked as
b0f0937).  We can either upload a 2.19-23 to get it fixed, or just wait
for 2.21 (which already has the fix) to get uploaded.

Samuel

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'oldoldstable'), (500, 
'buildd-unstable'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 
'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.2 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-- 
Samuel
...
 et Ctrl alt F2 pour aller sous console
 mais c koi pour passer d'un bureau a un autre !
 au fait c koi le raccourci pour passer d'un bureau a un autre 'question 
stupide"
 ça dépend du window manager et de ta conf
 ce qui fonctionne toujours c'est CTRL-ALT-BCKSP
-:- SignOff rv_: #linuxfr (Read error: EOF from client)
-:- rv_ [~rv@217.11.166.169] has joined #linuxfr
 Firebird: MEURT...
commit 8dc9751764eb1bedf06d19695524b31a16773413
Author: Andreas Schwab 
Date:   Wed May 7 11:47:20 2014 +0200

Fix parsing of getai result from nscd for IPv6-only request

diff --git a/ChangeLog b/ChangeLog
index 6c50016..cb09dd7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,13 @@
+2014-05-07  Andreas Schwab  
+
+   * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
+   when skipping over non-matching result from nscd.
+
 2014-05-07  Ondřej Bílka  
 
[BZ #16876]
* nptl/sockperf.c (client): Check socket return value.
+
[BZ #16877]
* nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
nscd security class.
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
index 3385bed..6258330 100644
--- a/sysdeps/posix/getaddrinfo.c
+++ b/sysdeps/posix/getaddrinfo.c
@@ -710,16 +710,20 @@ gaih_inet (const char *name, const struct gaih_service 
*service,
  struct gaih_addrtuple *addrfree = addrmem;
  for (int i = 0; i < air->naddrs; ++i)
{
+ socklen_t size = (air->family[i] == AF_INET
+   ? INADDRSZ : IN6ADDRSZ);
+
  if (!((air->family[i] == AF_INET
 && req->ai_family == AF_INET6
 && (req->ai_flags & AI_V4MAPPED) != 0)
|| req->ai_family == AF_UNSPEC
|| air->family[i] == req->ai_family))
-   /* Skip over non-matching result.  */
-   continue;
+   {
+ /* Skip over non-matching result.  */
+ addrs += size;
+ continue;
+   }
 
- socklen_t size = (air->family[i] == AF_INET
-   ? INADDRSZ : IN6ADDRSZ);
  if (*pat == NULL)
{
  *pat = addrfree++;


r6610 - glibc-package/trunk/debian

2015-09-21 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-21 23:17:19 + (Mon, 21 Sep 2015)
New Revision: 6610

Modified:
   glibc-package/trunk/debian/changelog
Log:
upload

Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2015-09-21 00:55:51 UTC (rev 
6609)
+++ glibc-package/trunk/debian/changelog2015-09-21 23:17:19 UTC (rev 
6610)
@@ -1,8 +1,5 @@
-glibc (2.19-21~) UNRELEASED; urgency=medium
+glibc (2.19-21) unstable; urgency=medium
 
-  [ Aurelien Jarno ]
-  * 
-
   [ Samuel Thibault ]
   * patches/hurd-i386/cvs-bootstrap.diff: Fix typos.
   * libc0.3.symbols.hurd-i386: Remove internal _server_routine symbols, fixes
@@ -13,7 +10,7 @@
   * patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff: New patch, adds support for
 passing credentials over sockets (SCM_CREDS).
 
- -- Samuel Thibault <sthiba...@debian.org>  Sun, 13 Sep 2015 19:50:50 +0200
+ -- Samuel Thibault <sthiba...@debian.org>  Mon, 21 Sep 2015 19:54:01 +0200
 
 glibc (2.19-20) unstable; urgency=medium
 



r6611 - glibc-package/tags

2015-09-21 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-21 23:17:57 + (Mon, 21 Sep 2015)
New Revision: 6611

Added:
   glibc-package/tags/2.19-21/
Log:
upload 2.19-21




r6614 - in glibc-package/branches/glibc-2.22/debian: . patches/hurd-i386

2015-09-21 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-22 00:07:00 + (Tue, 22 Sep 2015)
New Revision: 6614

Modified:
   glibc-package/branches/glibc-2.22/debian/changelog
   glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-bootstrap.diff
Log:
port r6580 from trunk: patches/hurd-i386/cvs-bootstrap.diff: Fix typo.

Modified: glibc-package/branches/glibc-2.22/debian/changelog
===
--- glibc-package/branches/glibc-2.22/debian/changelog  2015-09-21 23:58:55 UTC 
(rev 6613)
+++ glibc-package/branches/glibc-2.22/debian/changelog  2015-09-22 00:07:00 UTC 
(rev 6614)
@@ -377,7 +377,7 @@
   *
 
   [ Samuel Thibault ]
-  * patches/hurd-i386/cvs-bootstrap.diff: Fix typo.
+  * patches/hurd-i386/cvs-bootstrap.diff: Fix typos.
   * libc0.3.symbols.hurd-i386: Remove internal _server_routine symbols, fixes
 build with newer mig.
   * patches/hurd-i386/cvs-cache-mach_host_self.diff: New patch to avoid port

Modified: 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-bootstrap.diff
===
--- 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-bootstrap.diff   
2015-09-21 23:58:55 UTC (rev 6613)
+++ 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-bootstrap.diff   
2015-09-22 00:07:00 UTC (rev 6614)
@@ -50,7 +50,7 @@
 -$(patsubst %,$(hurd-objpfx)hurd/%.%,auth io fs process): \
 -  $(common-objpfx)mach/mach-shortcuts.h
 -  $(MAKE) -C $(..)hurd before-compile no_deps=t
-+$(patsubst %,$(hurd-objpfx)hurd/%.%,auth io fs process): hurd-before-compile
++$(patsubst %,$(hurd-objpfx)hurd/%.h,auth io fs process): hurd-before-compile
 +.PHONY: hurd-before-compile
 +hurd-before-compile: $(common-objpfx)mach/mach-shortcuts.h
 +  $(MAKE) -C $(..)hurd subdir=hurd before-compile no_deps=t



r6618 - glibc-package/branches/glibc-2.21/debian/patches/hurd-i386

2015-09-21 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-22 00:21:08 + (Tue, 22 Sep 2015)
New Revision: 6618

Modified:
   
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
Log:
Add missing __mach_host_self_ symbol version


Modified: 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
===
--- 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
2015-09-22 00:09:44 UTC (rev 6617)
+++ 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
2015-09-22 00:21:08 UTC (rev 6618)
@@ -79,3 +79,15 @@
__mach_port_deallocate (__mach_task_self (), __mach_task_self_);
  }
  
+--- a/mach/Versions
 b/mach/Versions
+@@ -54,6 +54,9 @@ libc {
+ # This was always there, but not exported as it should have been.
+ mig_strncpy;
+   }
++  GLIBC_2.21 {
++__mach_host_self_;
++  }
+ 
+   HURD_CTHREADS_0.3 {
+ __mutex_init; __mutex_lock; __mutex_lock_solid; __mutex_trylock;



r6619 - glibc-package/branches/glibc-2.22/debian/patches/hurd-i386

2015-09-21 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-22 00:21:38 + (Tue, 22 Sep 2015)
New Revision: 6619

Modified:
   
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
Log:
port r6618 from 2.21: Add missing __mach_host_self_ symbol version

Modified: 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
===
--- 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
2015-09-22 00:21:08 UTC (rev 6618)
+++ 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
2015-09-22 00:21:38 UTC (rev 6619)
@@ -79,3 +79,15 @@
__mach_port_deallocate (__mach_task_self (), __mach_task_self_);
  }
  
+--- a/mach/Versions
 b/mach/Versions
+@@ -54,6 +54,9 @@ libc {
+ # This was always there, but not exported as it should have been.
+ mig_strncpy;
+   }
++  GLIBC_2.21 {
++__mach_host_self_;
++  }
+ 
+   HURD_CTHREADS_0.3 {
+ __mutex_init; __mutex_lock; __mutex_lock_solid; __mutex_trylock;



r6616 - glibc-package/branches/glibc-2.22/debian

2015-09-21 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-22 00:09:43 + (Tue, 22 Sep 2015)
New Revision: 6616

Modified:
   glibc-package/branches/glibc-2.22/debian/changelog
Log:
Fix changelog with trunk uploads

Modified: glibc-package/branches/glibc-2.22/debian/changelog
===
--- glibc-package/branches/glibc-2.22/debian/changelog  2015-09-22 00:07:00 UTC 
(rev 6615)
+++ glibc-package/branches/glibc-2.22/debian/changelog  2015-09-22 00:09:43 UTC 
(rev 6616)
@@ -78,6 +78,8 @@
 libpthread/sysdeps/generic. Move libpthread/include/semaphore.h into
 libpthread/sysdeps/pthread/semaphore.h instead of the latter just
 including the former, since the latter is what gets installed.
+  * patches/hurd-i386/cvs-cache-mach_host_self.diff: New patch to avoid port
+count issue on the host port.
 
   [ Aurelien Jarno ]
   * rules.d/debhelper.mk: replace GLIBC_VERSION before LIBC.  Closes:
@@ -371,11 +373,15 @@
 
  -- Adam Conrad <adcon...@0c3.net>  Fri, 06 Mar 2015 13:47:43 -0700
 
-glibc (2.19-21~) UNRELEASED; urgency=medium
+glibc (2.19-22) unstable; urgency=medium
 
-  [ Aurelien Jarno ]
-  *
+  * patches/hurd-i386/cvs-cache-mach_host_self.diff: Remove, since it 
introduces
+a new symbol, which will be easier to handle in 2.21.
 
+ -- Samuel Thibault <sthiba...@debian.org>  Tue, 22 Sep 2015 01:38:34 +0200
+
+glibc (2.19-21) unstable; urgency=medium
+
   [ Samuel Thibault ]
   * patches/hurd-i386/cvs-bootstrap.diff: Fix typos.
   * libc0.3.symbols.hurd-i386: Remove internal _server_routine symbols, fixes
@@ -386,7 +392,7 @@
   * patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff: New patch, adds support for
 passing credentials over sockets (SCM_CREDS).
 
- -- Samuel Thibault <sthiba...@debian.org>  Sun, 13 Sep 2015 19:50:50 +0200
+ -- Samuel Thibault <sthiba...@debian.org>  Mon, 21 Sep 2015 19:54:01 +0200
 
 glibc (2.19-20) unstable; urgency=medium
 



r6617 - glibc-package/branches/glibc-2.21/debian

2015-09-21 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-22 00:09:44 + (Tue, 22 Sep 2015)
New Revision: 6617

Modified:
   glibc-package/branches/glibc-2.21/debian/changelog
Log:
Fix changelog with trunk uploads

Modified: glibc-package/branches/glibc-2.21/debian/changelog
===
--- glibc-package/branches/glibc-2.21/debian/changelog  2015-09-22 00:09:43 UTC 
(rev 6616)
+++ glibc-package/branches/glibc-2.21/debian/changelog  2015-09-22 00:09:44 UTC 
(rev 6617)
@@ -11,6 +11,8 @@
 libpthread/sysdeps/generic. Move libpthread/include/semaphore.h into
 libpthread/sysdeps/pthread/semaphore.h instead of the latter just
 including the former, since the latter is what gets installed.
+  * patches/hurd-i386/cvs-cache-mach_host_self.diff: New patch to avoid port
+count issue on the host port.
 
   [ Aurelien Jarno ]
   * rules.d/debhelper.mk: replace GLIBC_VERSION before LIBC.  Closes:
@@ -304,11 +306,15 @@
 
  -- Adam Conrad <adcon...@0c3.net>  Fri, 06 Mar 2015 13:47:43 -0700
 
-glibc (2.19-21~) UNRELEASED; urgency=medium
+glibc (2.19-22) unstable; urgency=medium
 
-  [ Aurelien Jarno ]
-  *
+  * patches/hurd-i386/cvs-cache-mach_host_self.diff: Remove, since it 
introduces
+a new symbol, which will be easier to handle in 2.21.
 
+ -- Samuel Thibault <sthiba...@debian.org>  Tue, 22 Sep 2015 01:38:34 +0200
+
+glibc (2.19-21) unstable; urgency=medium
+
   [ Samuel Thibault ]
   * patches/hurd-i386/cvs-bootstrap.diff: Fix typos.
   * libc0.3.symbols.hurd-i386: Remove internal _server_routine symbols, fixes
@@ -319,7 +325,7 @@
   * patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff: New patch, adds support for
 passing credentials over sockets (SCM_CREDS).
 
- -- Samuel Thibault <sthiba...@debian.org>  Sun, 13 Sep 2015 19:50:50 +0200
+ -- Samuel Thibault <sthiba...@debian.org>  Mon, 21 Sep 2015 19:54:01 +0200
 
 glibc (2.19-20) unstable; urgency=medium
 



r6613 - in glibc-package/trunk/debian: . patches patches/hurd-i386

2015-09-21 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-21 23:58:55 + (Mon, 21 Sep 2015)
New Revision: 6613

Removed:
   glibc-package/trunk/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/series
Log:
patches/hurd-i386/cvs-cache-mach_host_self.diff: Remove, since it introduces a 
new symbol, which will be easier to handle in 2.21.


Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2015-09-21 23:43:06 UTC (rev 
6612)
+++ glibc-package/trunk/debian/changelog2015-09-21 23:58:55 UTC (rev 
6613)
@@ -1,7 +1,7 @@
 glibc (2.19-22) unstable; urgency=medium
 
-  * patches/hurd-i386/cvs-cache-mach_host_self.diff: Add missing
-__mach_host_self_, actually used in some translators.
+  * patches/hurd-i386/cvs-cache-mach_host_self.diff: Remove, since it 
introduces
+a new symbol, which will be easier to handle in 2.21.
 
  -- Samuel Thibault <sthiba...@debian.org>  Tue, 22 Sep 2015 01:38:34 +0200
 

Deleted: 
glibc-package/trunk/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
===
--- glibc-package/trunk/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff  
2015-09-21 23:43:06 UTC (rev 6612)
+++ glibc-package/trunk/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff  
2015-09-21 23:58:55 UTC (rev 6613)
@@ -1,103 +0,0 @@
-From: Justus Winter <4win...@informatik.uni-hamburg.de>
-Subject: [PATCH glibc 1/2] mach: cache the host port
-
-Cache the host port like we cache the task port.  This way we do not
-need to call the kernel just to get the port.  Furthermore, we no
-longer increase the reference count on every invocation of
-`mach_host_self'.
-
-* mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
-Protect declarations against the macro expansion.
-* mach/mach_init.c (__mach_host_self_): New variable.
-(mach_init): Initialize `__mach_host_self_'.
-* mach/mach_init.h (__mach_host_self_): New declaration.
-(__mach_host_self, mach_host_self): New macros.
-* sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
-Release reference.

- mach/mach/mach_traps.h| 7 ---
- mach/mach_init.c  | 2 ++
- mach/mach_init.h  | 5 +
- sysdeps/mach/hurd/dl-sysdep.c | 1 +
- 4 files changed, 12 insertions(+), 3 deletions(-)
-
-Index: glibc-2.19/mach/mach/mach_traps.h
-===
 glibc-2.19.orig/mach/mach/mach_traps.h
-+++ glibc-2.19/mach/mach/mach_traps.h
-@@ -41,9 +41,10 @@ extern mach_port_t __mach_thread_self (v
- extern mach_port_t (mach_task_self) (void);
- extern mach_port_t (__mach_task_self) (void);
- 
--/* Return the host information port for the host of the calling task.  */
--extern mach_port_t mach_host_self (void);
--extern mach_port_t __mach_host_self (void);
-+/* Return the host information port for the host of the calling task.
-+   The parens are needed to protect against the macro in .  */
-+extern mach_port_t (mach_host_self) (void);
-+extern mach_port_t (__mach_host_self) (void);
- 
- /* Attempt to context switch the current thread off the processor.  Returns
-true if there are other threads that can be run and false if not.  */
-Index: glibc-2.19/mach/mach_init.c
-===
 glibc-2.19.orig/mach/mach_init.c
-+++ glibc-2.19/mach/mach_init.c
-@@ -20,6 +20,7 @@
- #include 
- 
- mach_port_t __mach_task_self_;
-+mach_port_t __mach_host_self_;
- vm_size_t __vm_page_size = 0; /* Must be data not bss for weak alias.  */
- weak_alias (__vm_page_size, vm_page_size)
- 
-@@ -34,6 +35,7 @@ __mach_init (void)
-   kern_return_t err;
- 
-   __mach_task_self_ = (__mach_task_self) ();
-+  __mach_host_self_ = (__mach_host_self) ();
-   __mig_init (0);
- 
- #if HAVE_HOST_PAGE_SIZE
-Index: glibc-2.19/mach/mach_init.h
-===
 glibc-2.19.orig/mach/mach_init.h
-+++ glibc-2.19/mach/mach_init.h
-@@ -31,6 +31,11 @@ extern mach_port_t __mach_task_self_;
- #define __mach_task_self()(__mach_task_self_ + 0) /* Not an lvalue.  */
- #define mach_task_self()  (__mach_task_self ())
- 
-+/* This cache is initialized at startup.  */
-+extern mach_port_t __mach_host_self_;
-+#define __mach_host_self()(__mach_host_self_ + 0) /* Not an lvalue.  */
-+#define mach_host_self()  (__mach_host_self ())
-+
- /* Kernel page size.  */
- extern vm_size_t __vm_page_size;
- extern vm_size_t vm_page_size;
-Index: glibc-2.19/sysdeps/mach/hurd/dl-sysdep.c
-===
 glibc-2.19.orig/sysdeps/mach/hurd/dl-sysdep.c
-+++ glibc-2.19/sysdeps/mach/hurd/dl-sysdep.c
-@@ -278,6 +278,7 @@ _dl_sysdep_start_cleanup (void)
-  __mach_init.  We are done with them now, 

r6612 - in glibc-package/trunk/debian: . patches/hurd-i386

2015-09-21 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-21 23:43:06 + (Mon, 21 Sep 2015)
New Revision: 6612

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
Log:
patches/hurd-i386/cvs-cache-mach_host_self.diff: Add missing __mach_host_self_, 
actually used in some translators.

Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2015-09-21 23:17:57 UTC (rev 
6611)
+++ glibc-package/trunk/debian/changelog2015-09-21 23:43:06 UTC (rev 
6612)
@@ -1,3 +1,10 @@
+glibc (2.19-22) unstable; urgency=medium
+
+  * patches/hurd-i386/cvs-cache-mach_host_self.diff: Add missing
+__mach_host_self_, actually used in some translators.
+
+ -- Samuel Thibault <sthiba...@debian.org>  Tue, 22 Sep 2015 01:38:34 +0200
+
 glibc (2.19-21) unstable; urgency=medium
 
   [ Samuel Thibault ]

Modified: 
glibc-package/trunk/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
===
--- glibc-package/trunk/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff  
2015-09-21 23:17:57 UTC (rev 6611)
+++ glibc-package/trunk/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff  
2015-09-21 23:43:06 UTC (rev 6612)
@@ -87,3 +87,17 @@
__mach_port_deallocate (__mach_task_self (), __mach_task_self_);
  }
  
+diff --git glibc-2.19.orig/mach/Versions b/mach/Versions
+index 45260c7..0097aad 100644
+--- glibc-2.19.orig/mach/Versions
 glibc-2.19/mach/Versions
+@@ -54,6 +54,9 @@ libc {
+ # This was always there, but not exported as it should have been.
+ mig_strncpy;
+   }
++  GLIBC_2.21 {
++__mach_host_self_;
++  }
+ 
+ %if !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)
+   HURD_CTHREADS_0.3 {



r6597 - in glibc-package/trunk/debian: . patches patches/hurd-i386

2015-09-20 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-20 11:22:11 + (Sun, 20 Sep 2015)
New Revision: 6597

Added:
   glibc-package/trunk/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/series
Log:
hurd-i386/cvs-cache-mach_host_self.diff: avoid port count issue on the host 
port.

Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2015-09-19 22:46:04 UTC (rev 
6596)
+++ glibc-package/trunk/debian/changelog2015-09-20 11:22:11 UTC (rev 
6597)
@@ -7,6 +7,8 @@
   * patches/hurd-i386/cvs-bootstrap.diff: Fix typos.
   * libc0.3.symbols.hurd-i386: Remove internal _server_routine symbols, fixes
 build with newer mig.
+  * patches/hurd-i386/cvs-cache-mach_host_self.diff: New patch to avoid port
+count issue on the host port.
 
  -- Samuel Thibault <sthiba...@debian.org>  Sun, 13 Sep 2015 19:50:50 +0200
 

Added: 
glibc-package/trunk/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
===
--- glibc-package/trunk/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff  
(rev 0)
+++ glibc-package/trunk/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff  
2015-09-20 11:22:11 UTC (rev 6597)
@@ -0,0 +1,89 @@
+From: Justus Winter <4win...@informatik.uni-hamburg.de>
+Subject: [PATCH glibc 1/2] mach: cache the host port
+
+Cache the host port like we cache the task port.  This way we do not
+need to call the kernel just to get the port.  Furthermore, we no
+longer increase the reference count on every invocation of
+`mach_host_self'.
+
+* mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
+Protect declarations against the macro expansion.
+* mach/mach_init.c (__mach_host_self_): New variable.
+(mach_init): Initialize `__mach_host_self_'.
+* mach/mach_init.h (__mach_host_self_): New declaration.
+(__mach_host_self, mach_host_self): New macros.
+* sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
+Release reference.
+---
+ mach/mach/mach_traps.h| 7 ---
+ mach/mach_init.c  | 2 ++
+ mach/mach_init.h  | 5 +
+ sysdeps/mach/hurd/dl-sysdep.c | 1 +
+ 4 files changed, 12 insertions(+), 3 deletions(-)
+
+Index: glibc-2.19/mach/mach/mach_traps.h
+===
+--- glibc-2.19.orig/mach/mach/mach_traps.h
 glibc-2.19/mach/mach/mach_traps.h
+@@ -41,9 +41,10 @@ extern mach_port_t __mach_thread_self (v
+ extern mach_port_t (mach_task_self) (void);
+ extern mach_port_t (__mach_task_self) (void);
+ 
+-/* Return the host information port for the host of the calling task.  */
+-extern mach_port_t mach_host_self (void);
+-extern mach_port_t __mach_host_self (void);
++/* Return the host information port for the host of the calling task.
++   The parens are needed to protect against the macro in .  */
++extern mach_port_t (mach_host_self) (void);
++extern mach_port_t (__mach_host_self) (void);
+ 
+ /* Attempt to context switch the current thread off the processor.  Returns
+true if there are other threads that can be run and false if not.  */
+Index: glibc-2.19/mach/mach_init.c
+===
+--- glibc-2.19.orig/mach/mach_init.c
 glibc-2.19/mach/mach_init.c
+@@ -20,6 +20,7 @@
+ #include 
+ 
+ mach_port_t __mach_task_self_;
++mach_port_t __mach_host_self_;
+ vm_size_t __vm_page_size = 0; /* Must be data not bss for weak alias.  */
+ weak_alias (__vm_page_size, vm_page_size)
+ 
+@@ -34,6 +35,7 @@ __mach_init (void)
+   kern_return_t err;
+ 
+   __mach_task_self_ = (__mach_task_self) ();
++  __mach_host_self_ = (__mach_host_self) ();
+   __mig_init (0);
+ 
+ #if HAVE_HOST_PAGE_SIZE
+Index: glibc-2.19/mach/mach_init.h
+===
+--- glibc-2.19.orig/mach/mach_init.h
 glibc-2.19/mach/mach_init.h
+@@ -31,6 +31,11 @@ extern mach_port_t __mach_task_self_;
+ #define __mach_task_self()(__mach_task_self_ + 0) /* Not an lvalue.  */
+ #define mach_task_self()  (__mach_task_self ())
+ 
++/* This cache is initialized at startup.  */
++extern mach_port_t __mach_host_self_;
++#define __mach_host_self()(__mach_host_self_ + 0) /* Not an lvalue.  */
++#define mach_host_self()  (__mach_host_self ())
++
+ /* Kernel page size.  */
+ extern vm_size_t __vm_page_size;
+ extern vm_size_t vm_page_size;
+Index: glibc-2.19/sysdeps/mach/hurd/dl-sysdep.c
+===
+--- glibc-2.19.orig/sysdeps/mach/hurd/dl-sysdep.c
 glibc-2.19/sysdeps/mach/hurd/dl-sysdep.c
+@@ -278,6 +278,7 @@ _dl_sysdep_start_cleanup (void)
+  __mach_init.  We are done with them now, and the user will
+  reacquire them for himself when he wants them.  */
+   __mig_dealloc_reply_port (MA

r6599 - in glibc-package/branches/glibc-2.22/debian: . patches patches/hurd-i386

2015-09-20 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-20 11:23:54 + (Sun, 20 Sep 2015)
New Revision: 6599

Added:
   
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
Modified:
   glibc-package/branches/glibc-2.22/debian/changelog
   glibc-package/branches/glibc-2.22/debian/patches/series
Log:
port r6597 from trunk: hurd-i386/cvs-cache-mach_host_self.diff: avoid port 
count issue on the host port.

Modified: glibc-package/branches/glibc-2.22/debian/changelog
===
--- glibc-package/branches/glibc-2.22/debian/changelog  2015-09-20 11:23:16 UTC 
(rev 6598)
+++ glibc-package/branches/glibc-2.22/debian/changelog  2015-09-20 11:23:54 UTC 
(rev 6599)
@@ -380,6 +380,8 @@
   * patches/hurd-i386/cvs-bootstrap.diff: Fix typo.
   * libc0.3.symbols.hurd-i386: Remove internal _server_routine symbols, fixes
 build with newer mig.
+  * patches/hurd-i386/cvs-cache-mach_host_self.diff: New patch to avoid port
+count issue on the host port.
 
  -- Samuel Thibault <sthiba...@debian.org>  Sun, 13 Sep 2015 19:50:50 +0200
 

Added: 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
===
--- 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
(rev 0)
+++ 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
2015-09-20 11:23:54 UTC (rev 6599)
@@ -0,0 +1,89 @@
+From: Justus Winter <4win...@informatik.uni-hamburg.de>
+Subject: [PATCH glibc 1/2] mach: cache the host port
+
+Cache the host port like we cache the task port.  This way we do not
+need to call the kernel just to get the port.  Furthermore, we no
+longer increase the reference count on every invocation of
+`mach_host_self'.
+
+* mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
+Protect declarations against the macro expansion.
+* mach/mach_init.c (__mach_host_self_): New variable.
+(mach_init): Initialize `__mach_host_self_'.
+* mach/mach_init.h (__mach_host_self_): New declaration.
+(__mach_host_self, mach_host_self): New macros.
+* sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
+Release reference.
+---
+ mach/mach/mach_traps.h| 7 ---
+ mach/mach_init.c  | 2 ++
+ mach/mach_init.h  | 5 +
+ sysdeps/mach/hurd/dl-sysdep.c | 1 +
+ 4 files changed, 12 insertions(+), 3 deletions(-)
+
+Index: glibc-2.19/mach/mach/mach_traps.h
+===
+--- glibc-2.19.orig/mach/mach/mach_traps.h
 glibc-2.19/mach/mach/mach_traps.h
+@@ -41,9 +41,10 @@ extern mach_port_t __mach_thread_self (v
+ extern mach_port_t (mach_task_self) (void);
+ extern mach_port_t (__mach_task_self) (void);
+ 
+-/* Return the host information port for the host of the calling task.  */
+-extern mach_port_t mach_host_self (void);
+-extern mach_port_t __mach_host_self (void);
++/* Return the host information port for the host of the calling task.
++   The parens are needed to protect against the macro in .  */
++extern mach_port_t (mach_host_self) (void);
++extern mach_port_t (__mach_host_self) (void);
+ 
+ /* Attempt to context switch the current thread off the processor.  Returns
+true if there are other threads that can be run and false if not.  */
+Index: glibc-2.19/mach/mach_init.c
+===
+--- glibc-2.19.orig/mach/mach_init.c
 glibc-2.19/mach/mach_init.c
+@@ -20,6 +20,7 @@
+ #include 
+ 
+ mach_port_t __mach_task_self_;
++mach_port_t __mach_host_self_;
+ vm_size_t __vm_page_size = 0; /* Must be data not bss for weak alias.  */
+ weak_alias (__vm_page_size, vm_page_size)
+ 
+@@ -34,6 +35,7 @@ __mach_init (void)
+   kern_return_t err;
+ 
+   __mach_task_self_ = (__mach_task_self) ();
++  __mach_host_self_ = (__mach_host_self) ();
+   __mig_init (0);
+ 
+ #if HAVE_HOST_PAGE_SIZE
+Index: glibc-2.19/mach/mach_init.h
+===
+--- glibc-2.19.orig/mach/mach_init.h
 glibc-2.19/mach/mach_init.h
+@@ -31,6 +31,11 @@ extern mach_port_t __mach_task_self_;
+ #define __mach_task_self()(__mach_task_self_ + 0) /* Not an lvalue.  */
+ #define mach_task_self()  (__mach_task_self ())
+ 
++/* This cache is initialized at startup.  */
++extern mach_port_t __mach_host_self_;
++#define __mach_host_self()(__mach_host_self_ + 0) /* Not an lvalue.  */
++#define mach_host_self()  (__mach_host_self ())
++
+ /* Kernel page size.  */
+ extern vm_size_t __vm_page_size;
+ extern vm_size_t vm_page_size;
+Index: glibc-2.19/sysdeps/mach/hurd/dl-sysdep.c
+===
+--- glibc-2.19.orig/sysdeps/mach/hurd/dl-sysdep.c
 glibc-2.19/sysdeps/mach/hurd/dl-sysdep.c
+@@ -278,6 +278,7 @@ _dl_sysdep_start_cleanup (void)
+ 

r6598 - in glibc-package/branches/glibc-2.21/debian: . patches patches/hurd-i386

2015-09-20 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-20 11:23:16 + (Sun, 20 Sep 2015)
New Revision: 6598

Added:
   
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
Modified:
   glibc-package/branches/glibc-2.21/debian/changelog
   glibc-package/branches/glibc-2.21/debian/patches/series
Log:
port r6597 from trunk: hurd-i386/cvs-cache-mach_host_self.diff: avoid port 
count issue on the host port.

Modified: glibc-package/branches/glibc-2.21/debian/changelog
===
--- glibc-package/branches/glibc-2.21/debian/changelog  2015-09-20 11:22:11 UTC 
(rev 6597)
+++ glibc-package/branches/glibc-2.21/debian/changelog  2015-09-20 11:23:16 UTC 
(rev 6598)
@@ -313,6 +313,8 @@
   * patches/hurd-i386/cvs-bootstrap.diff: Fix typo.
   * libc0.3.symbols.hurd-i386: Remove internal _server_routine symbols, fixes
 build with newer mig.
+  * patches/hurd-i386/cvs-cache-mach_host_self.diff: New patch to avoid port
+count issue on the host port.
 
  -- Samuel Thibault <sthiba...@debian.org>  Sun, 13 Sep 2015 19:50:50 +0200
 

Added: 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
===
--- 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
(rev 0)
+++ 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
2015-09-20 11:23:16 UTC (rev 6598)
@@ -0,0 +1,89 @@
+From: Justus Winter <4win...@informatik.uni-hamburg.de>
+Subject: [PATCH glibc 1/2] mach: cache the host port
+
+Cache the host port like we cache the task port.  This way we do not
+need to call the kernel just to get the port.  Furthermore, we no
+longer increase the reference count on every invocation of
+`mach_host_self'.
+
+* mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
+Protect declarations against the macro expansion.
+* mach/mach_init.c (__mach_host_self_): New variable.
+(mach_init): Initialize `__mach_host_self_'.
+* mach/mach_init.h (__mach_host_self_): New declaration.
+(__mach_host_self, mach_host_self): New macros.
+* sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
+Release reference.
+---
+ mach/mach/mach_traps.h| 7 ---
+ mach/mach_init.c  | 2 ++
+ mach/mach_init.h  | 5 +
+ sysdeps/mach/hurd/dl-sysdep.c | 1 +
+ 4 files changed, 12 insertions(+), 3 deletions(-)
+
+Index: glibc-2.19/mach/mach/mach_traps.h
+===
+--- glibc-2.19.orig/mach/mach/mach_traps.h
 glibc-2.19/mach/mach/mach_traps.h
+@@ -41,9 +41,10 @@ extern mach_port_t __mach_thread_self (v
+ extern mach_port_t (mach_task_self) (void);
+ extern mach_port_t (__mach_task_self) (void);
+ 
+-/* Return the host information port for the host of the calling task.  */
+-extern mach_port_t mach_host_self (void);
+-extern mach_port_t __mach_host_self (void);
++/* Return the host information port for the host of the calling task.
++   The parens are needed to protect against the macro in .  */
++extern mach_port_t (mach_host_self) (void);
++extern mach_port_t (__mach_host_self) (void);
+ 
+ /* Attempt to context switch the current thread off the processor.  Returns
+true if there are other threads that can be run and false if not.  */
+Index: glibc-2.19/mach/mach_init.c
+===
+--- glibc-2.19.orig/mach/mach_init.c
 glibc-2.19/mach/mach_init.c
+@@ -20,6 +20,7 @@
+ #include 
+ 
+ mach_port_t __mach_task_self_;
++mach_port_t __mach_host_self_;
+ vm_size_t __vm_page_size = 0; /* Must be data not bss for weak alias.  */
+ weak_alias (__vm_page_size, vm_page_size)
+ 
+@@ -34,6 +35,7 @@ __mach_init (void)
+   kern_return_t err;
+ 
+   __mach_task_self_ = (__mach_task_self) ();
++  __mach_host_self_ = (__mach_host_self) ();
+   __mig_init (0);
+ 
+ #if HAVE_HOST_PAGE_SIZE
+Index: glibc-2.19/mach/mach_init.h
+===
+--- glibc-2.19.orig/mach/mach_init.h
 glibc-2.19/mach/mach_init.h
+@@ -31,6 +31,11 @@ extern mach_port_t __mach_task_self_;
+ #define __mach_task_self()(__mach_task_self_ + 0) /* Not an lvalue.  */
+ #define mach_task_self()  (__mach_task_self ())
+ 
++/* This cache is initialized at startup.  */
++extern mach_port_t __mach_host_self_;
++#define __mach_host_self()(__mach_host_self_ + 0) /* Not an lvalue.  */
++#define mach_host_self()  (__mach_host_self ())
++
+ /* Kernel page size.  */
+ extern vm_size_t __vm_page_size;
+ extern vm_size_t vm_page_size;
+Index: glibc-2.19/sysdeps/mach/hurd/dl-sysdep.c
+===
+--- glibc-2.19.orig/sysdeps/mach/hurd/dl-sysdep.c
 glibc-2.19/sysdeps/mach/hurd/dl-sysdep.c
+@@ -278,6 +278,7 @@ _dl_sysdep_start_cleanup (void)
+ 

r6603 - in glibc-package/branches/glibc-2.22/debian: . patches patches/hurd-i386

2015-09-20 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-20 21:09:51 + (Sun, 20 Sep 2015)
New Revision: 6603

Added:
   
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff
Modified:
   glibc-package/branches/glibc-2.22/debian/changelog
   
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/tg-sendmsg-SCM_RIGHTS.diff
   glibc-package/branches/glibc-2.22/debian/patches/series
Log:
port r6602 from trunk: 
* hurd-i386/tg-sendmsg-SCM_RIGHTS.diff: Update from upstream.
* hurd-i386/tg-sendmsg-SCM_CREDS.diff: New patch, adds support for
  passing credentials over sockets (SCM_CREDS).


Modified: glibc-package/branches/glibc-2.22/debian/changelog
===
--- glibc-package/branches/glibc-2.22/debian/changelog  2015-09-20 21:05:05 UTC 
(rev 6602)
+++ glibc-package/branches/glibc-2.22/debian/changelog  2015-09-20 21:09:51 UTC 
(rev 6603)
@@ -382,6 +382,9 @@
 build with newer mig.
   * patches/hurd-i386/cvs-cache-mach_host_self.diff: New patch to avoid port
 count issue on the host port.
+  * patches/hurd-i386/tg-sendmsg-SCM_RIGHTS.diff: Update from upstream.
+  * patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff: New patch, adds support for
+passing credentials over sockets (SCM_CREDS).
 
  -- Samuel Thibault <sthiba...@debian.org>  Sun, 13 Sep 2015 19:50:50 +0200
 

Copied: 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff
 (from rev 6602, 
glibc-package/trunk/debian/patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff)
===
--- 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff
(rev 0)
+++ 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff
2015-09-20 21:09:51 UTC (rev 6603)
@@ -0,0 +1,242 @@
+Subject: [PATCH] hurd: SCM_CREDS support
+
+Svante Signell  <svante.sign...@gmail.com>
+Samuel Thibault  <samuel.thiba...@ens-lyon.org>
+
+   * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): On SCM_CREDS
+   control messages, record uids, pass a rendez-vous port in the
+   control message, and call __auth_user_authenticate_request to
+   make auth send credentials on that port.  Do not wait for a
+   reply.
+
+   * sysdeps/mach/hurd/recvmsg.c (contains_uid, contains_gid,
+   check_auth): New functions.
+   (__libc_recvmsg): On SCM_CREDS control messages, call check_auth
+   to check the passed credentials thanks to the answer from the
+   auth server.
+
+---
+ sysdeps/mach/hurd/recvmsg.c | 136 
+ sysdeps/mach/hurd/sendmsg.c |  34 +++
+ 2 files changed, 170 insertions(+)
+
+--- a/sysdeps/mach/hurd/recvmsg.c
 b/sysdeps/mach/hurd/recvmsg.c
+@@ -23,6 +23,123 @@
+ #include 
+ #include 
+ 
++static unsigned
++contains_uid (unsigned int n, __uid_t uids[n], __uid_t uid)
++{
++  unsigned i;
++
++  for (i = 0; i < n; i++)
++if (uids[i] == uid)
++  return 1;
++  return 0;
++}
++
++static unsigned
++contains_gid (unsigned int n, __gid_t gids[n], __gid_t gid)
++{
++  unsigned i;
++
++  for (i = 0; i < n; i++)
++if (gids[i] == gid)
++  return 1;
++  return 0;
++}
++
++/* Check the passed credentials.  */
++static error_t
++check_auth (mach_port_t rendezvous,
++  __pid_t pid,
++  __uid_t uid, __uid_t euid,
++  __gid_t gid,
++  int ngroups, __gid_t groups[ngroups])
++{
++  error_t err;
++  size_t neuids = CMGROUP_MAX, nauids = CMGROUP_MAX;
++  size_t negids = CMGROUP_MAX, nagids = CMGROUP_MAX;
++  __uid_t euids_buf[neuids], auids_buf[nauids];
++  __gid_t egids_buf[negids], agids_buf[nagids];
++  __uid_t *euids = euids_buf, *auids = auids_buf;
++  __gid_t *egids = egids_buf, *agids = agids_buf;
++
++  struct procinfo *pi = NULL;
++  mach_msg_type_number_t pi_size = 0;
++  int flags = PI_FETCH_TASKINFO;
++  char *tw = NULL;
++  size_t tw_size = 0;
++  unsigned i;
++
++  err = mach_port_mod_refs (mach_task_self (), rendezvous,
++  MACH_PORT_RIGHT_SEND, 1);
++  if (err)
++goto out;
++
++  do
++err = __USEPORT
++  (AUTH, __auth_server_authenticate (port,
++   rendezvous, MACH_MSG_TYPE_COPY_SEND,
++   MACH_PORT_NULL, 0,
++   , , , ,
++   , , , ));
++  while (err == EINTR);
++  if (err)
++goto out;
++
++  /* Check whether this process indeed has these IDs */
++  if (   !contains_uid (neuids, euids,  uid)
++  && !contains_uid (nauids, auids,  uid)
++   ||!contains_uid (neuids, euids, euid)
++  && !contains_uid (nauids, auids, euid)
++   ||!contains_gid (negids, egids,  gid)
++  && !contains_gid (nagids, agids,  gid)
++)
++{
++  err 

r6605 - glibc-package/trunk/debian/patches/hurd-i386

2015-09-20 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-20 21:11:03 + (Sun, 20 Sep 2015)
New Revision: 6605

Modified:
   glibc-package/trunk/debian/patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff
   glibc-package/trunk/debian/patches/hurd-i386/tg-sendmsg-SCM_RIGHTS.diff
Log:
Fix fuzzy

Modified: glibc-package/trunk/debian/patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff
===
--- glibc-package/trunk/debian/patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff  
2015-09-20 21:09:56 UTC (rev 6604)
+++ glibc-package/trunk/debian/patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff  
2015-09-20 21:11:03 UTC (rev 6605)
@@ -20,10 +20,8 @@
  sysdeps/mach/hurd/sendmsg.c |  34 +++
  2 files changed, 170 insertions(+)
 
-Index: glibc-2.19/sysdeps/mach/hurd/recvmsg.c
-===
 glibc-2.19.orig/sysdeps/mach/hurd/recvmsg.c
-+++ glibc-2.19/sysdeps/mach/hurd/recvmsg.c
+--- a/sysdeps/mach/hurd/recvmsg.c
 b/sysdeps/mach/hurd/recvmsg.c
 @@ -23,6 +23,123 @@
  #include 
  #include 
@@ -181,11 +179,9 @@
}
  }
  
-Index: glibc-2.19/sysdeps/mach/hurd/sendmsg.c
-===
 glibc-2.19.orig/sysdeps/mach/hurd/sendmsg.c
-+++ glibc-2.19/sysdeps/mach/hurd/sendmsg.c
-@@ -112,6 +112,8 @@ __libc_sendmsg (int fd, const struct msg
+--- a/sysdeps/mach/hurd/sendmsg.c
 b/sysdeps/mach/hurd/sendmsg.c
+@@ -111,6 +111,8 @@ __libc_sendmsg (int fd, const struct msg
  if (cmsg->cmsg_level == SOL_SOCKET && cmsg->cmsg_type == SCM_RIGHTS)
nports += (cmsg->cmsg_len - CMSG_ALIGN (sizeof (struct cmsghdr)))
/ sizeof (int);
@@ -194,7 +190,7 @@
  
if (nports)
  ports = __alloca (nports * sizeof (mach_port_t));
-@@ -146,6 +148,38 @@ __libc_sendmsg (int fd, const struct msg
+@@ -145,6 +147,38 @@ __libc_sendmsg (int fd, const struct msg
goto out;
}
}
@@ -233,10 +229,8 @@
  }
  
if (addr)
-Index: glibc-2.19/hurd/Makefile
-===
 glibc-2.19.orig/hurd/Makefile
-+++ glibc-2.19/hurd/Makefile
+--- a/hurd/Makefile
 b/hurd/Makefile
 @@ -33,7 +33,7 @@ inline-headers = hurd.h $(addprefix hurd
  # The RPC interfaces go in a separate library.
  interface-library := libhurduser
@@ -245,4 +239,4 @@
 + auth auth_request auth_reply startup \
   process process_request \
   msg msg_reply msg_request \
-  exec exec_experimental exec_startup 
crash interrupt \
+  exec exec_startup crash interrupt \

Modified: 
glibc-package/trunk/debian/patches/hurd-i386/tg-sendmsg-SCM_RIGHTS.diff
===
--- glibc-package/trunk/debian/patches/hurd-i386/tg-sendmsg-SCM_RIGHTS.diff 
2015-09-20 21:09:56 UTC (rev 6604)
+++ glibc-package/trunk/debian/patches/hurd-i386/tg-sendmsg-SCM_RIGHTS.diff 
2015-09-20 21:11:03 UTC (rev 6605)
@@ -8,10 +8,8 @@
  sysdeps/mach/hurd/sendmsg.c | 73 +--
  2 files changed, 152 insertions(+), 13 deletions(-)
 
-Index: glibc-2.19/sysdeps/mach/hurd/recvmsg.c
-===
 glibc-2.19.orig/sysdeps/mach/hurd/recvmsg.c
-+++ glibc-2.19/sysdeps/mach/hurd/recvmsg.c
+--- a/sysdeps/mach/hurd/recvmsg.c
 b/sysdeps/mach/hurd/recvmsg.c
 @@ -32,13 +32,33 @@ __libc_recvmsg (int fd, struct msghdr *m
addr_port_t aport;
char *data = NULL;
@@ -126,11 +124,9 @@
  }
  
  weak_alias (__libc_recvmsg, recvmsg)
-Index: glibc-2.19/sysdeps/mach/hurd/sendmsg.c
-===
 glibc-2.19.orig/sysdeps/mach/hurd/sendmsg.c
-+++ glibc-2.19/sysdeps/mach/hurd/sendmsg.c
-@@ -32,6 +32,10 @@ ssize_t
+--- a/sysdeps/mach/hurd/sendmsg.c
 b/sysdeps/mach/hurd/sendmsg.c
+@@ -31,6 +31,10 @@ ssize_t
  __libc_sendmsg (int fd, const struct msghdr *message, int flags)
  {
error_t err = 0;
@@ -141,7 +137,7 @@
struct sockaddr_un *addr = message->msg_name;
socklen_t addr_len = message->msg_namelen;
addr_port_t aport = MACH_PORT_NULL;
-@@ -44,6 +48,7 @@ __libc_sendmsg (int fd, const struct msg
+@@ -43,6 +47,7 @@ __libc_sendmsg (int fd, const struct msg
mach_msg_type_number_t len;
mach_msg_type_number_t amount;
int dealloc = 0;
@@ -149,7 +145,7 @@
int i;
  
/* Find the total number of bytes to be written.  */
-@@ -101,6 +106,48 @@ __libc_sendmsg (int fd, const struct msg
+@@ -100,6 +105,48 @@ __libc_sendmsg (int fd, const struct msg
}
  }
  
@@ -198,8 +194,8 @@
if (addr)
  {
if (addr->sun_family == AF_LOCAL)
-@@ -111,9 +158,8 @@ __libc_sendmsg (int fd, const struct msg
- file_t file = __file_name_lookup (name, 0, 0);
+@@ -109,9 

r6608 - glibc-package/branches/glibc-2.22/debian/patches/hurd-i386

2015-09-20 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-20 21:17:48 + (Sun, 20 Sep 2015)
New Revision: 6608

Modified:
   
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
   
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/submitted-exec_filename.diff
Log:
fix more fuzz

Modified: 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
===
--- 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
2015-09-20 21:17:28 UTC (rev 6607)
+++ 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
2015-09-20 21:17:48 UTC (rev 6608)
@@ -21,10 +21,8 @@
  sysdeps/mach/hurd/dl-sysdep.c | 1 +
  4 files changed, 12 insertions(+), 3 deletions(-)
 
-Index: glibc-2.19/mach/mach/mach_traps.h
-===
 glibc-2.19.orig/mach/mach/mach_traps.h
-+++ glibc-2.19/mach/mach/mach_traps.h
+--- a/mach/mach/mach_traps.h
 b/mach/mach/mach_traps.h
 @@ -41,9 +41,10 @@ extern mach_port_t __mach_thread_self (v
  extern mach_port_t (mach_task_self) (void);
  extern mach_port_t (__mach_task_self) (void);
@@ -39,10 +37,8 @@
  
  /* Attempt to context switch the current thread off the processor.  Returns
 true if there are other threads that can be run and false if not.  */
-Index: glibc-2.19/mach/mach_init.c
-===
 glibc-2.19.orig/mach/mach_init.c
-+++ glibc-2.19/mach/mach_init.c
+--- a/mach/mach_init.c
 b/mach/mach_init.c
 @@ -20,6 +20,7 @@
  #include 
  
@@ -58,11 +54,9 @@
 +  __mach_host_self_ = (__mach_host_self) ();
__mig_init (0);
  
- #if HAVE_HOST_PAGE_SIZE
-Index: glibc-2.19/mach/mach_init.h
-===
 glibc-2.19.orig/mach/mach_init.h
-+++ glibc-2.19/mach/mach_init.h
+ #ifdef HAVE_HOST_PAGE_SIZE
+--- a/mach/mach_init.h
 b/mach/mach_init.h
 @@ -31,6 +31,11 @@ extern mach_port_t __mach_task_self_;
  #define __mach_task_self()(__mach_task_self_ + 0) /* Not an lvalue.  */
  #define mach_task_self()  (__mach_task_self ())
@@ -75,10 +69,8 @@
  /* Kernel page size.  */
  extern vm_size_t __vm_page_size;
  extern vm_size_t vm_page_size;
-Index: glibc-2.19/sysdeps/mach/hurd/dl-sysdep.c
-===
 glibc-2.19.orig/sysdeps/mach/hurd/dl-sysdep.c
-+++ glibc-2.19/sysdeps/mach/hurd/dl-sysdep.c
+--- a/sysdeps/mach/hurd/dl-sysdep.c
 b/sysdeps/mach/hurd/dl-sysdep.c
 @@ -278,6 +278,7 @@ _dl_sysdep_start_cleanup (void)
   __mach_init.  We are done with them now, and the user will
   reacquire them for himself when he wants them.  */

Modified: 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/submitted-exec_filename.diff
===
--- 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/submitted-exec_filename.diff
 2015-09-20 21:17:28 UTC (rev 6607)
+++ 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/submitted-exec_filename.diff
 2015-09-20 21:17:48 UTC (rev 6608)
@@ -33,10 +33,8 @@
  sysdeps/mach/hurd/spawni.c  |   59 
++--
  8 files changed, 102 insertions(+), 43 deletions(-)
 
-Index: glibc-2.21/hurd/Versions
-===
 glibc-2.21.orig/hurd/Versions
-+++ glibc-2.21/hurd/Versions
+--- a/hurd/Versions
 b/hurd/Versions
 @@ -140,6 +140,14 @@ libc {
  _hurd_sigstate_unlock;
  _hurd_sigstate_delete;
@@ -52,12 +50,10 @@
  
HURD_CTHREADS_0.3 {
  # weak refs to libthreads functions that libc calls iff libthreads in use
-Index: glibc-2.21/hurd/Makefile
-===
 glibc-2.21.orig/hurd/Makefile
-+++ glibc-2.21/hurd/Makefile
+--- a/hurd/Makefile
 b/hurd/Makefile
 @@ -32,8 +32,8 @@ user-interfaces  := $(addprefix hurd/,\
-  auth startup \
+  auth auth_request auth_reply startup \
   process process_request \
   msg msg_reply msg_request \
 - exec exec_startup crash interrupt \
@@ -67,10 +63,8 @@
   login password pfinet \
   )
  server-interfaces := hurd/msg faultexc
-Index: glibc-2.21/hurd/hurd.h
-===
 glibc-2.21.orig/hurd/hurd.h
-+++ glibc-2.21/hurd/hurd.h
+--- a/hurd/hurd.h
 b/hurd/hurd.h
 @@ -245,12 +245,20 @@ extern FILE *fopenport (io_t port, const
  extern FILE *__fopenport (io_t port, const char *mode);
  
@@ -94,10 +88,8 @@
  
  
  /* Inform the 

r6606 - glibc-package/trunk/debian/patches/hurd-i386

2015-09-20 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-20 21:17:04 + (Sun, 20 Sep 2015)
New Revision: 6606

Modified:
   glibc-package/trunk/debian/patches/hurd-i386/submitted-exec_filename.diff
Log:
fix more fuzz

Modified: 
glibc-package/trunk/debian/patches/hurd-i386/submitted-exec_filename.diff
===
--- glibc-package/trunk/debian/patches/hurd-i386/submitted-exec_filename.diff   
2015-09-20 21:11:03 UTC (rev 6605)
+++ glibc-package/trunk/debian/patches/hurd-i386/submitted-exec_filename.diff   
2015-09-20 21:17:04 UTC (rev 6606)
@@ -55,7 +55,7 @@
 --- a/hurd/Makefile
 +++ b/hurd/Makefile
 @@ -36,8 +36,8 @@ user-interfaces  := $(addprefix hurd/,\
-  auth startup \
+  auth auth_request auth_reply startup \
   process process_request \
   msg msg_reply msg_request \
 - exec exec_startup crash interrupt \
@@ -123,7 +123,7 @@
error_t err;
char *args, *env;
size_t argslen, envlen;
-@@ -217,7 +235,7 @@ _hurd_exec (task_t task, file_t file,
+@@ -216,7 +234,7 @@ _hurd_exec (task_t task, file_t file,
/* We have euid != svuid or egid != svgid.  POSIX.1 says that exec
 sets svuid = euid and svgid = egid.  So we must get a new auth
 port and reauthenticate everything with it.  We'll pass the new
@@ -132,7 +132,7 @@
  
auth_t newauth;
  
-@@ -361,13 +379,27 @@ _hurd_exec (task_t task, file_t file,
+@@ -360,13 +378,27 @@ _hurd_exec (task_t task, file_t file,
if (__sigismember (&_hurdsig_traced, SIGKILL))
flags |= EXEC_SIGTRAP;
  #endif



r6607 - glibc-package/branches/glibc-2.21/debian/patches/hurd-i386

2015-09-20 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-20 21:17:28 + (Sun, 20 Sep 2015)
New Revision: 6607

Modified:
   
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
   
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/submitted-exec_filename.diff
Log:
fix more fuzz

Modified: 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
===
--- 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
2015-09-20 21:17:04 UTC (rev 6606)
+++ 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-cache-mach_host_self.diff
2015-09-20 21:17:28 UTC (rev 6607)
@@ -21,10 +21,8 @@
  sysdeps/mach/hurd/dl-sysdep.c | 1 +
  4 files changed, 12 insertions(+), 3 deletions(-)
 
-Index: glibc-2.19/mach/mach/mach_traps.h
-===
 glibc-2.19.orig/mach/mach/mach_traps.h
-+++ glibc-2.19/mach/mach/mach_traps.h
+--- a/mach/mach/mach_traps.h
 b/mach/mach/mach_traps.h
 @@ -41,9 +41,10 @@ extern mach_port_t __mach_thread_self (v
  extern mach_port_t (mach_task_self) (void);
  extern mach_port_t (__mach_task_self) (void);
@@ -39,10 +37,8 @@
  
  /* Attempt to context switch the current thread off the processor.  Returns
 true if there are other threads that can be run and false if not.  */
-Index: glibc-2.19/mach/mach_init.c
-===
 glibc-2.19.orig/mach/mach_init.c
-+++ glibc-2.19/mach/mach_init.c
+--- a/mach/mach_init.c
 b/mach/mach_init.c
 @@ -20,6 +20,7 @@
  #include 
  
@@ -58,11 +54,9 @@
 +  __mach_host_self_ = (__mach_host_self) ();
__mig_init (0);
  
- #if HAVE_HOST_PAGE_SIZE
-Index: glibc-2.19/mach/mach_init.h
-===
 glibc-2.19.orig/mach/mach_init.h
-+++ glibc-2.19/mach/mach_init.h
+ #ifdef HAVE_HOST_PAGE_SIZE
+--- a/mach/mach_init.h
 b/mach/mach_init.h
 @@ -31,6 +31,11 @@ extern mach_port_t __mach_task_self_;
  #define __mach_task_self()(__mach_task_self_ + 0) /* Not an lvalue.  */
  #define mach_task_self()  (__mach_task_self ())
@@ -75,10 +69,8 @@
  /* Kernel page size.  */
  extern vm_size_t __vm_page_size;
  extern vm_size_t vm_page_size;
-Index: glibc-2.19/sysdeps/mach/hurd/dl-sysdep.c
-===
 glibc-2.19.orig/sysdeps/mach/hurd/dl-sysdep.c
-+++ glibc-2.19/sysdeps/mach/hurd/dl-sysdep.c
+--- a/sysdeps/mach/hurd/dl-sysdep.c
 b/sysdeps/mach/hurd/dl-sysdep.c
 @@ -278,6 +278,7 @@ _dl_sysdep_start_cleanup (void)
   __mach_init.  We are done with them now, and the user will
   reacquire them for himself when he wants them.  */

Modified: 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/submitted-exec_filename.diff
===
--- 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/submitted-exec_filename.diff
 2015-09-20 21:17:04 UTC (rev 6606)
+++ 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/submitted-exec_filename.diff
 2015-09-20 21:17:28 UTC (rev 6607)
@@ -33,10 +33,8 @@
  sysdeps/mach/hurd/spawni.c  |   59 
++--
  8 files changed, 102 insertions(+), 43 deletions(-)
 
-Index: glibc-2.21/hurd/Versions
-===
 glibc-2.21.orig/hurd/Versions
-+++ glibc-2.21/hurd/Versions
+--- a/hurd/Versions
 b/hurd/Versions
 @@ -140,6 +140,14 @@ libc {
  _hurd_sigstate_unlock;
  _hurd_sigstate_delete;
@@ -52,12 +50,10 @@
  
HURD_CTHREADS_0.3 {
  # weak refs to libthreads functions that libc calls iff libthreads in use
-Index: glibc-2.21/hurd/Makefile
-===
 glibc-2.21.orig/hurd/Makefile
-+++ glibc-2.21/hurd/Makefile
+--- a/hurd/Makefile
 b/hurd/Makefile
 @@ -32,8 +32,8 @@ user-interfaces  := $(addprefix hurd/,\
-  auth startup \
+  auth auth_request auth_reply startup \
   process process_request \
   msg msg_reply msg_request \
 - exec exec_startup crash interrupt \
@@ -67,10 +63,8 @@
   login password pfinet \
   )
  server-interfaces := hurd/msg faultexc
-Index: glibc-2.21/hurd/hurd.h
-===
 glibc-2.21.orig/hurd/hurd.h
-+++ glibc-2.21/hurd/hurd.h
+--- a/hurd/hurd.h
 b/hurd/hurd.h
 @@ -245,12 +245,20 @@ extern FILE *fopenport (io_t port, const
  extern FILE *__fopenport (io_t port, const char *mode);
  
@@ -94,10 +88,8 @@
  
  
  /* Inform the 

r6593 - glibc-package/branches/glibc-2.22/debian/patches/hurd-i386

2015-09-19 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-19 12:24:44 + (Sat, 19 Sep 2015)
New Revision: 6593

Modified:
   glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-s_scalbn.diff
Log:
Update s_scalbn.S fix

Modified: 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-s_scalbn.diff
===
--- 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-s_scalbn.diff
2015-09-18 22:21:17 UTC (rev 6592)
+++ 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-s_scalbn.diff
2015-09-19 12:24:44 UTC (rev 6593)
@@ -4,7 +4,7 @@
 
 Fix sysdeps/i386/fpu/s_scalbn.S build
 
-* math/Versions (libc: GLIBC_2_22): New (empty) version set.
+* math/Versions (libc: GLIBC_2_20): New (empty) version set.
 
 diff --git a/math/Versions b/math/Versions
 index 513ab14..5ab9123 100644
@@ -14,7 +14,7 @@
  # s*
  scalbln; scalblnf; scalblnl;
}
-+  GLIBC_2.22 {
++  GLIBC_2.20 {
 +  }
  }
  



r6594 - in glibc-package/branches/glibc-2.22/debian: . patches/hurd-i386

2015-09-19 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-19 16:07:17 + (Sat, 19 Sep 2015)
New Revision: 6594

Modified:
   glibc-package/branches/glibc-2.22/debian/changelog
   
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/tg-tls-threadvar.diff
Log:
debian/patches/hurd-i386/tg-tls-threadvar.diff: Update.


Modified: glibc-package/branches/glibc-2.22/debian/changelog
===
--- glibc-package/branches/glibc-2.22/debian/changelog  2015-09-19 12:24:44 UTC 
(rev 6593)
+++ glibc-package/branches/glibc-2.22/debian/changelog  2015-09-19 16:07:17 UTC 
(rev 6594)
@@ -59,6 +59,7 @@
 build.
   * debian/patches/hurd-i386/cvs-s_scalbn.diff: New patch, fixes s_scalbn.S
 build.
+  * debian/patches/hurd-i386/tg-tls-threadvar.diff: Update.
 
  -- Adam Conrad   Tue, 15 Sep 2015 17:57:41 -0600
 

Modified: 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/tg-tls-threadvar.diff
===
--- 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/tg-tls-threadvar.diff
2015-09-19 12:24:44 UTC (rev 6593)
+++ 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/tg-tls-threadvar.diff
2015-09-19 16:07:17 UTC (rev 6594)
@@ -464,12 +464,18 @@
 -#endif/* bits/libc-tsd.h */
 --- a/sysdeps/mach/hurd/cthreads.c
 +++ b/sysdeps/mach/hurd/cthreads.c
-@@ -19,6 +19,15 @@
+@@ -19,6 +19,21 @@
  #include 
  #include 
  
 +char __libc_lock_self0[0];
++#if IS_IN (rtld)
++/* We don't support static tls relocation so early, but we do not have threads
++   there either anyway.  */
++static char __libc_lock_self[0];
++#else
 +static __thread char __libc_lock_self[0];
++#endif
 +
 +void *
 +__libc_get_lock_self(void)



r6585 - glibc-package/branches/glibc-2.22/debian/patches/hurd-i386

2015-09-17 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-18 01:19:34 + (Fri, 18 Sep 2015)
New Revision: 6585

Removed:
   
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/tg-af_local_strlen.diff
   
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/tg-select-EINTR.diff
Log:
really remove files

Deleted: 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/tg-af_local_strlen.diff
===
--- 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/tg-af_local_strlen.diff
  2015-09-17 23:53:19 UTC (rev 6584)
+++ 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/tg-af_local_strlen.diff
  2015-09-18 01:19:34 UTC (rev 6585)
@@ -1,144 +0,0 @@
-From: Samuel Thibault <samuel.thiba...@ens-lyon.org>
-Subject: [PATCH] Fix connect/sendto/sendmsg into making sure to ignore bytes 
beyond sockaddr length
-
-2014-03-01  Samuel Thibault  <samuel.thiba...@ens-lyon.org>
-
-Thanks Tanaka Akira for the report.
-
-* hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which duplicates
-ADDR->sun_path with sockaddr LEN limitation.
-* sysdeps/mach/hurd/connect.c: Include 
-(__connect): Give result of _hurd_sun_path_dupa to name lookup.
-* sysdeps/mach/hurd/sendmsg.c: Likewise.
-* sysdeps/mach/hurd/sendto.c: Likewise.
-* sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of implementing it
-by hand.
-
-Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org>
-

- hurd/hurdsocket.h   |   22 ++
- sysdeps/mach/hurd/bind.c|8 +++-
- sysdeps/mach/hurd/connect.c |4 +++-
- sysdeps/mach/hurd/sendmsg.c |4 +++-
- sysdeps/mach/hurd/sendto.c  |4 +++-
- 5 files changed, 34 insertions(+), 8 deletions(-)
-
 /dev/null
-+++ b/hurd/hurdsocket.h
-@@ -0,0 +1,22 @@
-+/* Hurd-specific socket functions
-+   Copyright (C) 2013 Free Software Foundation, Inc.
-+   This file is part of the GNU C Library.
-+
-+   The GNU C Library is free software; you can redistribute it and/or
-+   modify it under the terms of the GNU Lesser General Public
-+   License as published by the Free Software Foundation; either
-+   version 2.1 of the License, or (at your option) any later version.
-+
-+   The GNU C Library is distributed in the hope that it will be useful,
-+   but WITHOUT ANY WARRANTY; without even the implied warranty of
-+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-+   Lesser General Public License for more details.
-+
-+   You should have received a copy of the GNU Lesser General Public
-+   License along with the GNU C Library; if not, see
-+   <http://www.gnu.org/licenses/>.  */
-+
-+#include 
-+
-+#define _hurd_sun_path_dupa(__addr, __len) \
-+  strndupa ((__addr)->sun_path, (__len) - offsetof (struct sockaddr_un, 
sun_path))
 a/sysdeps/mach/hurd/bind.c
-+++ b/sysdeps/mach/hurd/bind.c
-@@ -25,7 +25,7 @@
- #include 
- #include 
- #include 
--#include 
-+#include "hurd/hurdsocket.h"
- 
- /* Give the socket FD the local address ADDR (which is LEN bytes long).  */
- int
-@@ -37,13 +37,11 @@ __bind  (int fd, __CONST_SOCKADDR_ARG ad
- 
-   if (addr->sun_family == AF_LOCAL)
- {
-+  char *name = _hurd_sun_path_dupa (addr, len);
-   /* For the local domain, we must create a node in the filesystem
-using the ifsock translator and then fetch the address from it.  */
-   file_t dir, node, ifsock;
--  char name[len - offsetof (struct sockaddr_un, sun_path) + 1], *n;
--
--  strncpy (name, addr->sun_path, sizeof name - 1);
--  name[sizeof name - 1] = '\0'; /* Make sure */
-+  char *n;
- 
-   dir = __file_name_split (name, );
-   if (dir == MACH_PORT_NULL)
 a/sysdeps/mach/hurd/connect.c
-+++ b/sysdeps/mach/hurd/connect.c
-@@ -22,6 +22,7 @@
- #include 
- #include 
- #include 
-+#include "hurd/hurdsocket.h"
- 
- /* Open a connection on socket FD to peer at ADDR (which LEN bytes long).
-For connectionless socket types, just set the default address to send to
-@@ -36,9 +37,10 @@ __connect (int fd, __CONST_SOCKADDR_ARG
- 
-   if (addr->sun_family == AF_LOCAL)
- {
-+  char *name = _hurd_sun_path_dupa (addr, len);
-   /* For the local domain, we must look up the name as a file and talk
-to it with the ifsock protocol.  */
--  file_t file = __file_name_lookup (addr->sun_path, 0, 0);
-+  file_t file = __file_name_lookup (name, 0, 0);
-   if (file == MACH_PORT_NULL)
-   return -1;
-   err = __ifsock_getsockaddr (file, );
 a/sysdeps/mach/hurd/sendmsg.c
-+++ b/sysdeps/mach/hurd/sendmsg.c
-@@ -24,6 +24,7 @@
- #include 
- #include 
- #include 
-+#include "hurd/hurdsocket.h"
- 
- /* Send a message described MESSAGE on socket FD.
-Returns the number of bytes sent, or -1 for errors.  */
-@@ -150,9 +151,10 @@ __libc_sendmsg (int fd, const struct msg
- {
-   if (addr->sun_family == AF_LOCAL)
-   {
-+char *nam

r6586 - in glibc-package/branches/glibc-2.22/debian: . patches patches/hurd-i386

2015-09-17 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-18 01:20:02 + (Fri, 18 Sep 2015)
New Revision: 6586

Added:
   glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-csu_crt0.diff
   glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-s_scalbn.diff
Modified:
   glibc-package/branches/glibc-2.22/debian/changelog
   glibc-package/branches/glibc-2.22/debian/patches/series
Log:
hurd-i386/cvs-csu_crt0.diff: New patch, fixes gcrt0.o build.
hurd-i386/cvs-s_scalbn.diff: New patch, fixes s_scalbn.S build.


Modified: glibc-package/branches/glibc-2.22/debian/changelog
===
--- glibc-package/branches/glibc-2.22/debian/changelog  2015-09-18 01:19:34 UTC 
(rev 6585)
+++ glibc-package/branches/glibc-2.22/debian/changelog  2015-09-18 01:20:02 UTC 
(rev 6586)
@@ -54,6 +54,10 @@
   * debian/patches/hurd-i386/cvs-warnings.diff: Upstreamed.
   * debian/patches/hurd-i386/cvs-check-local-headers.diff: Upstreamed.
   * debian/patches/hurd-i386/cvs-mlock.diff: Upstreamed.
+  * debian/patches/hurd-i386/cvs-csu_crt0.diff: New patch, fixes gcrt0.o
+build.
+  * debian/patches/hurd-i386/cvs-s_scalbn.diff: New patch, fixes s_scalbn.S
+build.
 
  -- Adam Conrad <adcon...@0c3.net>  Tue, 15 Sep 2015 17:57:41 -0600
 

Added: 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-csu_crt0.diff
===
--- 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-csu_crt0.diff
(rev 0)
+++ 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-csu_crt0.diff
2015-09-18 01:20:02 UTC (rev 6586)
@@ -0,0 +1,49 @@
+commit edd4cbcf83fb466dd8a1b5d63d55b1fea96356fe
+Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Date:   Fri Aug 7 01:38:39 2015 +0200
+
+Fix gcrt0.o compilation
+
+When static-start-installed-name is different from
+start-installed-name, we must not use the shared objects.
+
+* csu/Makefile
+(extra-objs): Add gmon-start.o when building shared library and
+$(static-start-installed-name) is different from
+$(start-installed-name).
+$(objpfx)g$(static-start-installed-name): When building shared
+library and $(static-start-installed-name) is different from
+$(static-start-installed-name), revert to non-shared rule,
+i.e. using $(objpfx)% and gmon-start.o.
+
+diff --git a/csu/Makefile b/csu/Makefile
+index 9f0855a..4df5d10 100644
+--- a/csu/Makefile
 b/csu/Makefile
+@@ -47,6 +47,9 @@ tests-static := tst-empty
+ 
+ ifeq (yes,$(build-shared))
+ extra-objs += S$(start-installed-name) gmon-start.os
++ifneq ($(start-installed-name),$(static-start-installed-name))
++extra-objs += gmon-start.o
++endif
+ install-lib += S$(start-installed-name)
+ generated += start.os
+ else
+@@ -98,10 +101,14 @@ endif
+ # startfile with gmon-start.o, which defines a constructor function
+ # to turn on profiling code at startup.
+ ifeq (yes,$(build-shared))
+-$(addprefix $(objpfx),$(sort g$(start-installed-name) \
+-   g$(static-start-installed-name))): \
++$(objpfx)g$(start-installed-name): \
+   $(objpfx)g%: $(objpfx)S% $(objpfx)gmon-start.os
+   $(link-relocatable)
++ifneq ($(start-installed-name),$(static-start-installed-name))
++$(objpfx)g$(static-start-installed-name): \
++  $(objpfx)g%: $(objpfx)% $(objpfx)gmon-start.o
++  $(link-relocatable)
++endif
+ else
+ $(addprefix $(objpfx),$(sort g$(start-installed-name) \
+g$(static-start-installed-name))): \

Added: 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-s_scalbn.diff
===
--- 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-s_scalbn.diff
(rev 0)
+++ 
glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/cvs-s_scalbn.diff
2015-09-18 01:20:02 UTC (rev 6586)
@@ -0,0 +1,21 @@
+commit 86955bf62e5690f65995ee8055b1ed529f80842b
+Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Date:   Fri Aug 7 09:53:56 2015 +0200
+
+Fix sysdeps/i386/fpu/s_scalbn.S build
+
+* math/Versions (libc: GLIBC_2_22): New (empty) version set.
+
+diff --git a/math/Versions b/math/Versions
+index 513ab14..5ab9123 100644
+--- a/math/Versions
 b/math/Versions
+@@ -29,6 +29,8 @@ libc {
+ # s*
+ scalbln; scalblnf; scalblnl;
+   }
++  GLIBC_2.22 {
++  }
+ }
+ 
+ libm {

Modified: glibc-package/branches/glibc-2.22/debian/patches/series
===
--- glibc-package/branches/glibc-2.22/debian/patches/series 2015-09-18 
01:19:34 UTC (rev 6585)
+++ glibc-package/branches/glibc-2.22/debian/patches/series 2015-09-18 
01:20:02 UTC (rev 6586)
@@ -134,6 +134,8 @@
 hurd-i386/tg-sysheaders.diff
 hurd-i386/cvs-bootstrap.diff
 hurd-i386/local-bootstrap.diff
+hurd-i386/cvs-csu_crt0.d

r6584 - glibc-package/branches/glibc-2.22/debian

2015-09-17 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-17 23:53:19 + (Thu, 17 Sep 2015)
New Revision: 6584

Modified:
   glibc-package/branches/glibc-2.22/debian/changelog
Log:
Fix credits :)

Modified: glibc-package/branches/glibc-2.22/debian/changelog
===
--- glibc-package/branches/glibc-2.22/debian/changelog  2015-09-17 23:52:00 UTC 
(rev 6583)
+++ glibc-package/branches/glibc-2.22/debian/changelog  2015-09-17 23:53:19 UTC 
(rev 6584)
@@ -1,5 +1,6 @@
 glibc (2.22-0experimental0) UNRELEASED; urgency=medium
 
+  [ Adam Conrad ]
   * New upstream release: version 2.22, with git updates up to 2015-09-17:
 - debian/patches/all/local-alias-UTF-8.diff: Fixed upstream.
 - debian/patches/any/cvs-ldconfig-aux-cache.diff: Upstreamed.
@@ -33,25 +34,27 @@
 - debian/patches/localedata/local-all-no-archive.diff: Rebased.
 - debian/patches/localedata/submitted-locale-bo.diff: Rebased.
 - debian/patches/mips/submitted-rld_map.diff: Rebased.
-- debian/patches/hurd-i386/tg-tls.diff: Rebased.
-- debian/patches/hurd-i386/tg-tls-threadvar.diff: Rebased.
-- debian/patches/hurd-i386/tg-ioctl-base-types.diff: Upstreamed.
-- debian/patches/hurd-i386/tg-extern_inline.diff: Rebased.
-- debian/patches/hurd-i386/tg-aio_misc.diff: Upstreamed.
-- debian/patches/hurd-i386/tg-chflags.diff: Upstreamed.
-- debian/patches/hurd-i386/tg-select-EINTR.diff: Upstreamed.
-- debian/patches/hurd-i386/tg-af_local_strlen.diff: Upstreamed.
-- debian/patches/hurd-i386/tg-nice.diff: Upstreamed.
-- debian/patches/hurd-i386/tg-nfds-poll.diff: Upstreamed.
-- debian/patches/hurd-i386/tg-sigstate_locking.diff: Upstreamed.
-- debian/patches/hurd-i386/tg-mmap_file_prot_none_fix.diff: Upstreamed.
-- debian/patches/hurd-i386/cvs-unwind-resume.diff: Upstreamed.
-- debian/patches/hurd-i386/cvs-libc-modules.h.diff: Upstreamed.
-- debian/patches/hurd-i386/cvs-warnings.diff: Upstreamed.
-- debian/patches/hurd-i386/cvs-check-local-headers.diff: Upstreamed.
-- debian/patches/hurd-i386/cvs-mlock.diff: Upstreamed.
   * debian/{control,symbols.wildcards,copyright}: Updated strings for 2.22.
 
+  [ Samuel Thibault ]
+  * debian/patches/hurd-i386/tg-tls.diff: Rebased.
+  * debian/patches/hurd-i386/tg-tls-threadvar.diff: Rebased.
+  * debian/patches/hurd-i386/tg-ioctl-base-types.diff: Upstreamed.
+  * debian/patches/hurd-i386/tg-extern_inline.diff: Rebased.
+  * debian/patches/hurd-i386/tg-aio_misc.diff: Upstreamed.
+  * debian/patches/hurd-i386/tg-chflags.diff: Upstreamed.
+  * debian/patches/hurd-i386/tg-select-EINTR.diff: Upstreamed.
+  * debian/patches/hurd-i386/tg-af_local_strlen.diff: Upstreamed.
+  * debian/patches/hurd-i386/tg-nice.diff: Upstreamed.
+  * debian/patches/hurd-i386/tg-nfds-poll.diff: Upstreamed.
+  * debian/patches/hurd-i386/tg-sigstate_locking.diff: Upstreamed.
+  * debian/patches/hurd-i386/tg-mmap_file_prot_none_fix.diff: Upstreamed.
+  * debian/patches/hurd-i386/cvs-unwind-resume.diff: Upstreamed.
+  * debian/patches/hurd-i386/cvs-libc-modules.h.diff: Upstreamed.
+  * debian/patches/hurd-i386/cvs-warnings.diff: Upstreamed.
+  * debian/patches/hurd-i386/cvs-check-local-headers.diff: Upstreamed.
+  * debian/patches/hurd-i386/cvs-mlock.diff: Upstreamed.
+
  -- Adam Conrad <adcon...@0c3.net>  Tue, 15 Sep 2015 17:57:41 -0600
 
 glibc (2.21-0experimental2) UNRELEASED; urgency=medium



r6580 - in glibc-package/trunk/debian: . patches/hurd-i386

2015-09-15 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-15 08:20:22 + (Tue, 15 Sep 2015)
New Revision: 6580

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/hurd-i386/cvs-bootstrap.diff
Log:
patches/hurd-i386/cvs-bootstrap.diff: Fix typo.

Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2015-09-13 20:04:43 UTC (rev 
6579)
+++ glibc-package/trunk/debian/changelog2015-09-15 08:20:22 UTC (rev 
6580)
@@ -4,7 +4,7 @@
   * 
 
   [ Samuel Thibault ]
-  * patches/hurd-i386/cvs-bootstrap.diff: Fix typo.
+  * patches/hurd-i386/cvs-bootstrap.diff: Fix typos.
   * libc0.3.symbols.hurd-i386: Remove internal _server_routine symbols, fixes
 build with newer mig.
 

Modified: glibc-package/trunk/debian/patches/hurd-i386/cvs-bootstrap.diff
===
--- glibc-package/trunk/debian/patches/hurd-i386/cvs-bootstrap.diff 
2015-09-13 20:04:43 UTC (rev 6579)
+++ glibc-package/trunk/debian/patches/hurd-i386/cvs-bootstrap.diff 
2015-09-15 08:20:22 UTC (rev 6580)
@@ -50,7 +50,7 @@
 -$(patsubst %,$(hurd-objpfx)hurd/%.%,auth io fs process): \
 -  $(common-objpfx)mach/mach-shortcuts.h
 -  $(MAKE) -C $(..)hurd before-compile no_deps=t
-+$(patsubst %,$(hurd-objpfx)hurd/%.%,auth io fs process): hurd-before-compile
++$(patsubst %,$(hurd-objpfx)hurd/%.h,auth io fs process): hurd-before-compile
 +.PHONY: hurd-before-compile
 +hurd-before-compile: $(common-objpfx)mach/mach-shortcuts.h
 +  $(MAKE) -C $(..)hurd subdir=hurd before-compile no_deps=t



Bug#798955: Moving glibc headers from /usr/include to /usr/include/$(DEB_HOST_MULTIARCH)

2015-09-14 Thread Samuel Thibault
Aurélien Gérôme, le Mon 14 Sep 2015 15:13:17 +0200, a écrit :
> Therefore, it does not allow us to install (in a
> simple multiarch manner) several dependencies needed to cross-compile
> for another target, e.g. cross-compiling for an amd64 target on a
> hurd-i386 host.

Or even just amd64 vs alpha, ia64, etc. which use libc6.1

> So far, Helmut rebuilt ~100 packages fine with that include-moved
> glibc.  Right now, we are waiting for a Debian access to Amazon
> instances to rebuild the entire archive against that patched glibc
> and to deal with possible FTBFS.  Tracking can be done on [0].

Moving headers out of /usr/include will probably surprised quite a few
configure scripts (yes, they're wrong, but that'll be hard to fix them
all)

I was thinking that perhaps moving these headers could be a build
profile, to be used just for the bootstrap, so that we only have to fix
the packages of the bootstrap.

Samuel



r6573 - in glibc-package/trunk/debian: . patches/hurd-i386

2015-09-13 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-13 17:51:10 + (Sun, 13 Sep 2015)
New Revision: 6573

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/hurd-i386/cvs-bootstrap.diff
Log:
Fix typo.

Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2015-09-13 17:41:06 UTC (rev 
6572)
+++ glibc-package/trunk/debian/changelog2015-09-13 17:51:10 UTC (rev 
6573)
@@ -1,9 +1,13 @@
-glibc (2.19-21) UNRELEASED; urgency=medium
+glibc (2.19-22) UNRELEASED; urgency=medium
 
+  [ Aurelien Jarno ]
   * 
 
- -- Aurelien Jarno <aure...@debian.org>  Sun, 13 Sep 2015 19:02:44 +0200
+  [ Samuel Thibault ]
+  * patches/hurd-i386/cvs-bootstrap.diff: Fix typo.
 
+ -- Samuel Thibault <sthiba...@debian.org>  Sun, 13 Sep 2015 19:50:50 +0200
+
 glibc (2.19-20) unstable; urgency=medium
 
   [ Samuel Thibault ]

Modified: glibc-package/trunk/debian/patches/hurd-i386/cvs-bootstrap.diff
===
--- glibc-package/trunk/debian/patches/hurd-i386/cvs-bootstrap.diff 
2015-09-13 17:41:06 UTC (rev 6572)
+++ glibc-package/trunk/debian/patches/hurd-i386/cvs-bootstrap.diff 
2015-09-13 17:51:10 UTC (rev 6573)
@@ -50,7 +50,7 @@
 -$(patsubst %,$(hurd-objpfx)hurd/%.%,auth io fs process): \
 -  $(common-objpfx)mach/mach-shortcuts.h
 -  $(MAKE) -C $(..)hurd before-compile no_deps=t
-+$(patsubst %,$(hurd-objpfx)hurd/%.%,auth io fs process): hurd-before-compile \
++$(patsubst %,$(hurd-objpfx)hurd/%.%,auth io fs process): hurd-before-compile
 +.PHONY: hurd-before-compile
 +hurd-before-compile: $(common-objpfx)mach/mach-shortcuts.h
 +  $(MAKE) -C $(..)hurd subdir=hurd before-compile no_deps=t



r6574 - glibc-package/trunk/debian

2015-09-13 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-13 17:52:11 + (Sun, 13 Sep 2015)
New Revision: 6574

Modified:
   glibc-package/trunk/debian/changelog
Log:
Fix spurious version bump

Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2015-09-13 17:51:10 UTC (rev 
6573)
+++ glibc-package/trunk/debian/changelog2015-09-13 17:52:11 UTC (rev 
6574)
@@ -1,4 +1,4 @@
-glibc (2.19-22) UNRELEASED; urgency=medium
+glibc (2.19-21) UNRELEASED; urgency=medium
 
   [ Aurelien Jarno ]
   * 



r6575 - glibc-package/branches/glibc-2.21/debian

2015-09-13 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-13 17:53:26 + (Sun, 13 Sep 2015)
New Revision: 6575

Modified:
   glibc-package/branches/glibc-2.21/debian/changelog
Log:
port r6571 from trunk: New changelog entry

Modified: glibc-package/branches/glibc-2.21/debian/changelog
===
--- glibc-package/branches/glibc-2.21/debian/changelog  2015-09-13 17:52:11 UTC 
(rev 6574)
+++ glibc-package/branches/glibc-2.21/debian/changelog  2015-09-13 17:53:26 UTC 
(rev 6575)
@@ -302,6 +302,12 @@
 
  -- Adam Conrad <adcon...@0c3.net>  Fri, 06 Mar 2015 13:47:43 -0700
 
+glibc (2.19-21) UNRELEASED; urgency=medium
+
+  * 
+
+ -- Aurelien Jarno <aure...@debian.org>  Sun, 13 Sep 2015 19:02:44 +0200
+
 glibc (2.19-20) unstable; urgency=medium
 
   [ Samuel Thibault ]



r6576 - in glibc-package/branches/glibc-2.21/debian: . patches/hurd-i386

2015-09-13 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-13 17:54:35 + (Sun, 13 Sep 2015)
New Revision: 6576

Modified:
   glibc-package/branches/glibc-2.21/debian/changelog
   glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-bootstrap.diff
Log:
port r6573:6574 from trunk: Fix typo.

Modified: glibc-package/branches/glibc-2.21/debian/changelog
===
--- glibc-package/branches/glibc-2.21/debian/changelog  2015-09-13 17:53:26 UTC 
(rev 6575)
+++ glibc-package/branches/glibc-2.21/debian/changelog  2015-09-13 17:54:35 UTC 
(rev 6576)
@@ -304,10 +304,14 @@
 
 glibc (2.19-21) UNRELEASED; urgency=medium
 
+  [ Aurelien Jarno ]
   * 
 
- -- Aurelien Jarno <aure...@debian.org>  Sun, 13 Sep 2015 19:02:44 +0200
+  [ Samuel Thibault ]
+  * patches/hurd-i386/cvs-bootstrap.diff: Fix typo.
 
+ -- Samuel Thibault <sthiba...@debian.org>  Sun, 13 Sep 2015 19:50:50 +0200
+
 glibc (2.19-20) unstable; urgency=medium
 
   [ Samuel Thibault ]

Modified: 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-bootstrap.diff
===
--- 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-bootstrap.diff   
2015-09-13 17:53:26 UTC (rev 6575)
+++ 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-bootstrap.diff   
2015-09-13 17:54:35 UTC (rev 6576)
@@ -50,7 +50,7 @@
 -$(patsubst %,$(hurd-objpfx)hurd/%.%,auth io fs process): \
 -  $(common-objpfx)mach/mach-shortcuts.h
 -  $(MAKE) -C $(..)hurd before-compile no_deps=t
-+$(patsubst %,$(hurd-objpfx)hurd/%.%,auth io fs process): hurd-before-compile \
++$(patsubst %,$(hurd-objpfx)hurd/%.%,auth io fs process): hurd-before-compile
 +.PHONY: hurd-before-compile
 +hurd-before-compile: $(common-objpfx)mach/mach-shortcuts.h
 +  $(MAKE) -C $(..)hurd subdir=hurd before-compile no_deps=t



r6579 - glibc-package/branches/glibc-2.21/debian

2015-09-13 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-13 20:04:43 + (Sun, 13 Sep 2015)
New Revision: 6579

Modified:
   glibc-package/branches/glibc-2.21/debian/changelog
   glibc-package/branches/glibc-2.21/debian/libc0.3.symbols.hurd-i386
Log:
port r6578 from trunk: libc0.3.symbols.hurd-i386: Remove internal 
_server_routine symbols, fixes build with newer mig.

Modified: glibc-package/branches/glibc-2.21/debian/changelog
===
--- glibc-package/branches/glibc-2.21/debian/changelog  2015-09-13 20:03:46 UTC 
(rev 6578)
+++ glibc-package/branches/glibc-2.21/debian/changelog  2015-09-13 20:04:43 UTC 
(rev 6579)
@@ -304,13 +304,15 @@
 
  -- Adam Conrad <adcon...@0c3.net>  Fri, 06 Mar 2015 13:47:43 -0700
 
-glibc (2.19-21) UNRELEASED; urgency=medium
+glibc (2.19-21~) UNRELEASED; urgency=medium
 
   [ Aurelien Jarno ]
   * 
 
   [ Samuel Thibault ]
   * patches/hurd-i386/cvs-bootstrap.diff: Fix typo.
+  * libc0.3.symbols.hurd-i386: Remove internal _server_routine symbols, fixes
+build with newer mig.
 
  -- Samuel Thibault <sthiba...@debian.org>  Sun, 13 Sep 2015 19:50:50 +0200
 

Modified: glibc-package/branches/glibc-2.21/debian/libc0.3.symbols.hurd-i386
===
--- glibc-package/branches/glibc-2.21/debian/libc0.3.symbols.hurd-i386  
2015-09-13 20:03:46 UTC (rev 6578)
+++ glibc-package/branches/glibc-2.21/debian/libc0.3.symbols.hurd-i386  
2015-09-13 20:04:43 UTC (rev 6579)
@@ -64,7 +64,6 @@
 ###
 libhurduser.so.0.3 #PACKAGE# #MINVER#
  _S_msg_server@Base 2.11
- _S_msg_server_routine@Base 2.11
  _S_msg_server_routines@Base 2.19-14~
  __auth_getids@Base 2.11
  __auth_makeauth@Base 2.11
@@ -424,7 +423,6 @@
  __tioctl_tiocswinsz@Base 2.11
  __tioctl_tiocucntl@Base 2.11
  _hurdsig_fault_exc_server@Base 2.11
- _hurdsig_fault_exc_server_routine@Base 2.11
  _hurdsig_fault_exc_server_routines@Base 2.19-14~
  auth_getids@Base 2.11
  auth_makeauth@Base 2.11
@@ -785,7 +783,6 @@
  tioctl_tiocucntl@Base 2.11
 libmachuser.so.1 #PACKAGE# #MINVER#
  _S_exc_server@Base 2.11
- _S_exc_server_routine@Base 2.11
  _S_exc_server_routines@Base 2.19-14~
  __default_pager_info@Base 2.11
  __default_pager_object_create@Base 2.11



r6578 - glibc-package/trunk/debian

2015-09-13 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-13 20:03:46 + (Sun, 13 Sep 2015)
New Revision: 6578

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/libc0.3.symbols.hurd-i386
Log:
libc0.3.symbols.hurd-i386: Remove internal _server_routine symbols, fixes build 
with newer mig.

Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2015-09-13 18:10:31 UTC (rev 
6577)
+++ glibc-package/trunk/debian/changelog2015-09-13 20:03:46 UTC (rev 
6578)
@@ -1,10 +1,12 @@
-glibc (2.19-21) UNRELEASED; urgency=medium
+glibc (2.19-21~) UNRELEASED; urgency=medium
 
   [ Aurelien Jarno ]
   * 
 
   [ Samuel Thibault ]
   * patches/hurd-i386/cvs-bootstrap.diff: Fix typo.
+  * libc0.3.symbols.hurd-i386: Remove internal _server_routine symbols, fixes
+build with newer mig.
 
  -- Samuel Thibault <sthiba...@debian.org>  Sun, 13 Sep 2015 19:50:50 +0200
 

Modified: glibc-package/trunk/debian/libc0.3.symbols.hurd-i386
===
--- glibc-package/trunk/debian/libc0.3.symbols.hurd-i3862015-09-13 
18:10:31 UTC (rev 6577)
+++ glibc-package/trunk/debian/libc0.3.symbols.hurd-i3862015-09-13 
20:03:46 UTC (rev 6578)
@@ -67,7 +67,6 @@
 ###
 libhurduser.so.0.3 #PACKAGE# #MINVER#
  _S_msg_server@Base 2.11
- _S_msg_server_routine@Base 2.11
  _S_msg_server_routines@Base 2.19-14~
  __auth_getids@Base 2.11
  __auth_makeauth@Base 2.11
@@ -428,7 +427,6 @@
  __tioctl_tiocswinsz@Base 2.11
  __tioctl_tiocucntl@Base 2.11
  _hurdsig_fault_exc_server@Base 2.11
- _hurdsig_fault_exc_server_routine@Base 2.11
  _hurdsig_fault_exc_server_routines@Base 2.19-14~
  auth_getids@Base 2.11
  auth_makeauth@Base 2.11
@@ -789,7 +787,6 @@
  tioctl_tiocucntl@Base 2.11
 libmachuser.so.1 #PACKAGE# #MINVER#
  _S_exc_server@Base 2.11
- _S_exc_server_routine@Base 2.11
  _S_exc_server_routines@Base 2.19-14~
  __default_pager_info@Base 2.11
  __default_pager_object_create@Base 2.11



r6522 - in glibc-package/trunk/debian: . patches patches/hurd-i386

2015-09-07 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-07 23:30:57 + (Mon, 07 Sep 2015)
New Revision: 6522

Added:
   glibc-package/trunk/debian/patches/hurd-i386/cvs-bootstrap.diff
   glibc-package/trunk/debian/patches/hurd-i386/local-bootstrap.diff
Removed:
   glibc-package/trunk/debian/patches/hurd-i386/submitted-bootstrap.diff
Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/series
Log:
Move commited parts of hurd-i386/submitted-bootstrap.diff to cvs-bootstrap.diff
and local part to local-bootstrap.diff.


Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2015-09-03 22:41:01 UTC (rev 
6521)
+++ glibc-package/trunk/debian/changelog2015-09-07 23:30:57 UTC (rev 
6522)
@@ -18,7 +18,7 @@
 really self-hosted.
   * patches/hurd-i386/local-clock_gettime_MONOTONIC.diff: Update patch to not
 advertise _POSIX_CLOCK_SELECTION for vlc
-  * patches/hurd-i386/submitted-bootstrap.diff: New patch to fix crt*.o build
+  * patches/hurd-i386/{local,cvs}-bootstrap.diff: New patch to fix crt*.o build
 in stage1.
   * rules, rules.d/build.mk: Set MIG to gnu-type alias of mig, to fix
 cross-build.

Added: glibc-package/trunk/debian/patches/hurd-i386/cvs-bootstrap.diff
===
--- glibc-package/trunk/debian/patches/hurd-i386/cvs-bootstrap.diff 
(rev 0)
+++ glibc-package/trunk/debian/patches/hurd-i386/cvs-bootstrap.diff 
2015-09-07 23:30:57 UTC (rev 6522)
@@ -0,0 +1,66 @@
+commit 7f9346e11e160d0157786c1e3761453c7e0f99c4
+Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Date:   Sun Sep 6 21:07:00 2015 +0200
+
+Fix rules generating headers in hurd/ and mach/
+
+when initial make call has subdir= explicitly set.
+
+* sysdeps/mach/Makefile ($(patsubst
+mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
+calling $(MAKE).
+* sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
+io fs process)): Force subdir to hurd when calling $(MAKE).
+($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
+subdir to mach when calling $(MAKE).
+
+commit 697ed91ca901f8e2ce3ba2b7cf69cdb18c8b37ad
+Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Date:   Tue Sep 8 01:26:01 2015 +0200
+
+Fix parallel build of before-compile targets.
+
+* sysdeps/mach/Makefile ($(patsubst
+mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
+mach-before-compile target.
+* sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
+io fs process)): Move rule to dedicated hurd-before-compile target.
+
+--- a/sysdeps/mach/Makefile
 b/sysdeps/mach/Makefile
+@@ -42,8 +42,10 @@ mach-before-compile := $(mach-objpfx)mac
+ ifneq (mach,$(subdir))
+ # This patsubst generates patterns like `m%h-shortcuts.h', which are damn
+ # likely to match just the corresponding particular file we want.
+-$(patsubst mach%,m\%h%,$(mach-before-compile)): # Run only if doesn't exist.
+-  $(MAKE) -C $(..)mach mach-before-compile no_deps=t generating=t
++$(patsubst mach%,m\%h%,$(mach-before-compile)): mach-before-compile # Run 
only if doesn't exist.
++.PHONY: mach-before-compile
++mach-before-compile:
++  $(MAKE) -C $(..)mach subdir=mach mach-before-compile no_deps=t 
generating=t
+ 
+ before-compile += $(mach-before-compile)
+ endif
+--- a/sysdeps/mach/hurd/Makefile
 b/sysdeps/mach/hurd/Makefile
+@@ -46,15 +46,16 @@ hurd-objpfx = $(common-objpfx)hurd/
+ 
+ # These are all the generated headers that  includes.
+ before-compile += $(patsubst %,$(hurd-objpfx)hurd/%.h,auth io fs process)
+-$(patsubst %,$(hurd-objpfx)hurd/%.%,auth io fs process): \
+-  $(common-objpfx)mach/mach-shortcuts.h
+-  $(MAKE) -C $(..)hurd before-compile no_deps=t
++$(patsubst %,$(hurd-objpfx)hurd/%.%,auth io fs process): hurd-before-compile \
++.PHONY: hurd-before-compile
++hurd-before-compile: $(common-objpfx)mach/mach-shortcuts.h
++  $(MAKE) -C $(..)hurd subdir=hurd before-compile no_deps=t
+ endif
+ 
+ # Hurd profil.c includes this file, so give a rule to make it.
+ ifeq ($(subdir),gmon)
+ $(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c:
+-  $(MAKE) -C $(..)mach before-compile no_deps=t
++  $(MAKE) -C $(..)mach subdir=mach before-compile no_deps=t
+ endif
+ 
+ 

Copied: glibc-package/trunk/debian/patches/hurd-i386/local-bootstrap.diff (from 
rev 6521, glibc-package/trunk/debian/patches/hurd-i386/submitted-bootstrap.diff)
===
--- glibc-package/trunk/debian/patches/hurd-i386/local-bootstrap.diff   
(rev 0)
+++ glibc-package/trunk/debian/patches/hurd-i386/local-bootstrap.diff   
2015-09-07 23:30:57 UTC (rev 6522)
@@ -0,0 +1,15 @@
+This dependency is missing, but would pose problem on Darwin
+
+diff --g

r6523 - in glibc-package/branches/glibc-2.21/debian: . patches patches/hurd-i386

2015-09-07 Thread Samuel Thibault
Author: sthibault
Date: 2015-09-07 23:32:09 + (Mon, 07 Sep 2015)
New Revision: 6523

Added:
   glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-bootstrap.diff
   
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/local-bootstrap.diff
Removed:
   
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/submitted-bootstrap.diff
Modified:
   glibc-package/branches/glibc-2.21/debian/changelog
   glibc-package/branches/glibc-2.21/debian/patches/series
Log:
port r6522 from trunk: Move commited parts of 
hurd-i386/submitted-bootstrap.diff to cvs-bootstrap.diff and local part to 
local-bootstrap.diff.

Modified: glibc-package/branches/glibc-2.21/debian/changelog
===
--- glibc-package/branches/glibc-2.21/debian/changelog  2015-09-07 23:30:57 UTC 
(rev 6522)
+++ glibc-package/branches/glibc-2.21/debian/changelog  2015-09-07 23:32:09 UTC 
(rev 6523)
@@ -263,7 +263,7 @@
 really self-hosted.
   * patches/hurd-i386/local-clock_gettime_MONOTONIC.diff: Update patch to not
 advertise _POSIX_CLOCK_SELECTION for vlc
-  * patches/hurd-i386/submitted-bootstrap.diff: New patch to fix crt*.o build
+  * patches/hurd-i386/{local,cvs}-bootstrap.diff: New patch to fix crt*.o build
 in stage1.
   * rules, rules.d/build.mk: Set MIG to gnu-type alias of mig, to fix
 cross-build.

Copied: 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-bootstrap.diff 
(from rev 6522, glibc-package/trunk/debian/patches/hurd-i386/cvs-bootstrap.diff)
===
--- 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-bootstrap.diff   
(rev 0)
+++ 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/cvs-bootstrap.diff   
2015-09-07 23:32:09 UTC (rev 6523)
@@ -0,0 +1,66 @@
+commit 7f9346e11e160d0157786c1e3761453c7e0f99c4
+Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Date:   Sun Sep 6 21:07:00 2015 +0200
+
+Fix rules generating headers in hurd/ and mach/
+
+when initial make call has subdir= explicitly set.
+
+* sysdeps/mach/Makefile ($(patsubst
+mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
+calling $(MAKE).
+* sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
+io fs process)): Force subdir to hurd when calling $(MAKE).
+($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
+subdir to mach when calling $(MAKE).
+
+commit 697ed91ca901f8e2ce3ba2b7cf69cdb18c8b37ad
+Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Date:   Tue Sep 8 01:26:01 2015 +0200
+
+Fix parallel build of before-compile targets.
+
+* sysdeps/mach/Makefile ($(patsubst
+mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
+mach-before-compile target.
+* sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
+io fs process)): Move rule to dedicated hurd-before-compile target.
+
+--- a/sysdeps/mach/Makefile
 b/sysdeps/mach/Makefile
+@@ -42,8 +42,10 @@ mach-before-compile := $(mach-objpfx)mac
+ ifneq (mach,$(subdir))
+ # This patsubst generates patterns like `m%h-shortcuts.h', which are damn
+ # likely to match just the corresponding particular file we want.
+-$(patsubst mach%,m\%h%,$(mach-before-compile)): # Run only if doesn't exist.
+-  $(MAKE) -C $(..)mach mach-before-compile no_deps=t generating=t
++$(patsubst mach%,m\%h%,$(mach-before-compile)): mach-before-compile # Run 
only if doesn't exist.
++.PHONY: mach-before-compile
++mach-before-compile:
++  $(MAKE) -C $(..)mach subdir=mach mach-before-compile no_deps=t 
generating=t
+ 
+ before-compile += $(mach-before-compile)
+ endif
+--- a/sysdeps/mach/hurd/Makefile
 b/sysdeps/mach/hurd/Makefile
+@@ -46,15 +46,16 @@ hurd-objpfx = $(common-objpfx)hurd/
+ 
+ # These are all the generated headers that  includes.
+ before-compile += $(patsubst %,$(hurd-objpfx)hurd/%.h,auth io fs process)
+-$(patsubst %,$(hurd-objpfx)hurd/%.%,auth io fs process): \
+-  $(common-objpfx)mach/mach-shortcuts.h
+-  $(MAKE) -C $(..)hurd before-compile no_deps=t
++$(patsubst %,$(hurd-objpfx)hurd/%.%,auth io fs process): hurd-before-compile \
++.PHONY: hurd-before-compile
++hurd-before-compile: $(common-objpfx)mach/mach-shortcuts.h
++  $(MAKE) -C $(..)hurd subdir=hurd before-compile no_deps=t
+ endif
+ 
+ # Hurd profil.c includes this file, so give a rule to make it.
+ ifeq ($(subdir),gmon)
+ $(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c:
+-  $(MAKE) -C $(..)mach before-compile no_deps=t
++  $(MAKE) -C $(..)mach subdir=mach before-compile no_deps=t
+ endif
+ 
+ 

Copied: 
glibc-package/branches/glibc-2.21/debian/patches/hurd-i386/local-bootstrap.diff 
(from rev 6522, 
glibc-package/trunk/debian/patches/hurd-i386/local-bootstrap.diff)
===
--- 
glibc-package/branches/glibc

<    5   6   7   8   9   10   11   12   13   14   >