[glibc] 01/02: hurd-i386/cvs-mallocfork.diff: New patch to fix concurrency

2016-09-21 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 462e3c3bdbd68511a97921ad5fdacb66f55fe1c4
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Wed Sep 21 23:51:46 2016 +

hurd-i386/cvs-mallocfork.diff: New patch to fix concurrency

between hurd_malloc and fork, triggered by malloc/tst-malloc-fork-deadlock.
---
 debian/changelog |   2 +
 debian/patches/hurd-i386/cvs-mallocfork.diff | 132 +++
 debian/patches/series|   1 +
 3 files changed, 135 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index e0bf10a..a558e19 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,8 @@ glibc (2.24-4) UNRELEASED; urgency=medium
   * hurd-i386/tg-hurdsig-fixes.diff: Fix uninitialized value.
   * hurd-i386/submitted-exec_filename.diff: Add missing includes, fix const
 warning.
+  * hurd-i386/cvs-mallocfork.diff: New patch to fix concurrency between
+hurd_malloc and fork, triggered by malloc/tst-malloc-fork-deadlock.
 
  -- Aurelien Jarno <aure...@debian.org>  Sat, 17 Sep 2016 20:03:04 +0200
 
diff --git a/debian/patches/hurd-i386/cvs-mallocfork.diff 
b/debian/patches/hurd-i386/cvs-mallocfork.diff
new file mode 100644
index 000..d59de24
--- /dev/null
+++ b/debian/patches/hurd-i386/cvs-mallocfork.diff
@@ -0,0 +1,132 @@
+commit e67f54ab1a6253dd69cb2c770d785c7eb6d2172c
+Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Date:   Thu Sep 22 01:45:48 2016 +0200
+
+hurdmalloc: Run fork handler as late as possible [BZ #19431]
+
+This is the hurd-specific follow-up for
+29d794863cd6e03115d3670707cc873a9965ba92 : hurdmalloc also needs the
+same fix
+
+* hurd/hurdmalloc.c (malloc_fork_prepare): Rename to
+_hurd_malloc_fork_prepare.
+(malloc_fork_parent): Rename to _hurd_malloc_fork_parent.
+(malloc_fork_child): Rename to _hurd_malloc_fork_child.
+(_hurd_fork_prepare_hook): Drop malloc_fork_prepare.
+(_hurd_fork_parent_hook): Drop malloc_fork_parent.
+(_hurd_fork_child_hook): Drop malloc_fork_child.
+* hurd/hurdmalloc.h (_hurd_malloc_fork_prepare,
+_hurd_malloc_fork_parent, _hurd_malloc_fork_child): Add 
declarations.
+* sysdeps/mach/hurd/fork.c (__fork): Call __malloc_fork_lock_parent
+after locking locks (notably hurd_dtable_lock). Call
+_hurd_malloc_fork_prepare after that. Call _hurd_malloc_fork_parent
+before __malloc_fork_unlock_parent and _hurd_malloc_fork_child 
before
+__malloc_fork_unlock_child.
+
+Index: glibc-2.24/hurd/hurdmalloc.c
+===
+--- glibc-2.24.orig/hurd/hurdmalloc.c
 glibc-2.24/hurd/hurdmalloc.c
+@@ -405,8 +405,8 @@ print_malloc_free_list (void)
+ }
+ #endif/* DEBUG */
+ 
+-static void
+-malloc_fork_prepare(void)
++void
++_hurd_malloc_fork_prepare(void)
+ /*
+  * Prepare the malloc module for a fork by insuring that no thread is in a
+  * malloc critical section.
+@@ -419,8 +419,8 @@ malloc_fork_prepare(void)
+ }
+ }
+ 
+-static void
+-malloc_fork_parent(void)
++void
++_hurd_malloc_fork_parent(void)
+ /*
+  * Called in the parent process after a fork() to resume normal operation.
+  */
+@@ -432,8 +432,8 @@ malloc_fork_parent(void)
+ }
+ }
+ 
+-static void
+-malloc_fork_child(void)
++void
++_hurd_malloc_fork_child(void)
+ /*
+  * Called in the child process after a fork() to resume normal operation.
+  */
+@@ -446,7 +446,4 @@ malloc_fork_child(void)
+ }
+ 
+ 
+-text_set_element (_hurd_fork_prepare_hook, malloc_fork_prepare);
+-text_set_element (_hurd_fork_parent_hook, malloc_fork_parent);
+-text_set_element (_hurd_fork_child_hook, malloc_fork_child);
+ text_set_element (_hurd_preinit_hook, malloc_init);
+Index: glibc-2.24/hurd/hurdmalloc.h
+===
+--- glibc-2.24.orig/hurd/hurdmalloc.h
 glibc-2.24/hurd/hurdmalloc.h
+@@ -12,6 +12,10 @@ extern void *_hurd_malloc (size_t);
+ extern void *_hurd_realloc (void *, size_t);
+ extern void _hurd_free (void *);
+ 
++extern void _hurd_malloc_fork_prepare (void);
++extern void _hurd_malloc_fork_parent (void);
++extern void _hurd_malloc_fork_child (void);
++
+ #define malloc_hurd_malloc
+ #define realloc   _hurd_realloc
+ #define free  _hurd_free
+Index: glibc-2.24/sysdeps/mach/hurd/fork.c
+===
+--- glibc-2.24.orig/sysdeps/mach/hurd/fork.c
 glibc-2.24/sysdeps/mach/hurd/fork.c
+@@ -109,12 +109,6 @@ __fork (void)
+   /* Run things that prepare for forking before we create the task.  */
+   RUN_HOOK (_hurd_fork_prepare_hook, ());
+ 
+-  /* Acquire malloc locks.  This needs to come last because fork
+-   handl

[glibc] 01/01: Drop old patch

2016-09-21 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 2a7c55ff0df24840865ad3db1615da06b817c6e2
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Thu Sep 22 00:06:15 2016 +

Drop old patch
---
 debian/patches/hurd-i386/cvs-register_atfork.diff | 18 --
 debian/patches/series |  1 -
 2 files changed, 19 deletions(-)

diff --git a/debian/patches/hurd-i386/cvs-register_atfork.diff 
b/debian/patches/hurd-i386/cvs-register_atfork.diff
deleted file mode 100644
index d374603..000
--- a/debian/patches/hurd-i386/cvs-register_atfork.diff
+++ /dev/null
@@ -1,18 +0,0 @@
-Index: glibc-2.23.90+20160507.87523e9/libpthread/Versions
-===
 glibc-2.23.90+20160507.87523e9.orig/libpthread/Versions
-+++ glibc-2.23.90+20160507.87523e9/libpthread/Versions
-@@ -35,10 +35,12 @@ libc {
- pthread_self; pthread_setcancelstate; pthread_setcanceltype;
- __pthread_get_cleanup_stack;
-   }
-+  GLIBC_2.24 {
-+__register_atfork;
-+  }
-   GLIBC_PRIVATE {
- __libc_alloca_cutoff;
- __libc_pthread_init;
--__register_atfork;
-   }
- }
- 
diff --git a/debian/patches/series b/debian/patches/series
index 4870f36..88769c6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -126,7 +126,6 @@ hurd-i386/local-versions.diff
 hurd-i386/cvs-check-local-headers.diff
 hurd-i386/tg-faccessat.diff
 hurd-i386/tg-eintr.diff
-#hurd-i386/cvs-register_atfork.diff
 hurd-i386/git-recvmsg.diff
 hurd-i386/tg-gsync-libc.diff
 hurd-i386/cvs-adjtime-NULL.diff

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



[glibc] branch sid updated (c2cf421 -> 77e548e)

2016-09-21 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  c2cf421   hurd-i386/submitted-exec_filename.diff: fix const warning
   new  462e3c3   hurd-i386/cvs-mallocfork.diff: New patch to fix 
concurrency
   new  77e548e   hurd-i386/cvs-libpthread.diff: Update to latest upstream 
version.

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   |21 +-
 debian/patches/hurd-i386/cvs-hidden.diff   |55 -
 debian/patches/hurd-i386/cvs-libpthread-2.23.diff  |   390 -
 debian/patches/hurd-i386/cvs-libpthread-api.diff   |   850 --
 debian/patches/hurd-i386/cvs-libpthread.diff   | 12557 +--
 debian/patches/hurd-i386/cvs-libpthread_build.diff |55 -
 .../patches/hurd-i386/cvs-libpthread_clean2.diff   |   375 -
 debian/patches/hurd-i386/cvs-mallocfork.diff   |   132 +
 debian/patches/hurd-i386/cvs-pt-kill.diff  |23 -
 debian/patches/hurd-i386/libpthread-versions.diff  | 7 -
 debian/patches/hurd-i386/libpthread_build.diff | 5 -
 debian/patches/hurd-i386/libpthread_clean.diff |   476 -
 debian/patches/hurd-i386/libpthread_sigmask.diff   |45 -
 debian/patches/hurd-i386/libpthread_spin-lock.diff |   299 -
 debian/patches/hurd-i386/libpthread_version.diff   |32 +-
 debian/patches/hurd-i386/tg-pthread_deps.diff  |39 +
 .../hurd-i386/unsubmitted-libc_alloca_cutoff.diff  |37 -
 .../unsubmitted-libpthread-semaphore.h.diff|   154 -
 debian/patches/series  |14 +-
 debian/testsuite-xfail-debian.mk   | 7 -
 20 files changed, 6066 insertions(+), 9507 deletions(-)
 delete mode 100644 debian/patches/hurd-i386/cvs-hidden.diff
 delete mode 100644 debian/patches/hurd-i386/cvs-libpthread-2.23.diff
 delete mode 100644 debian/patches/hurd-i386/cvs-libpthread-api.diff
 delete mode 100644 debian/patches/hurd-i386/cvs-libpthread_build.diff
 delete mode 100644 debian/patches/hurd-i386/cvs-libpthread_clean2.diff
 create mode 100644 debian/patches/hurd-i386/cvs-mallocfork.diff
 delete mode 100644 debian/patches/hurd-i386/cvs-pt-kill.diff
 delete mode 100644 debian/patches/hurd-i386/libpthread-versions.diff
 delete mode 100644 debian/patches/hurd-i386/libpthread_clean.diff
 delete mode 100644 debian/patches/hurd-i386/libpthread_sigmask.diff
 delete mode 100644 debian/patches/hurd-i386/libpthread_spin-lock.diff
 create mode 100644 debian/patches/hurd-i386/tg-pthread_deps.diff
 delete mode 100644 
debian/patches/hurd-i386/unsubmitted-libpthread-semaphore.h.diff

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



[glibc] branch sid updated (1ad4c22 -> 1797a0b)

2016-09-20 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  1ad4c22   hurd-i386/tg-hurdsig-fixes.diff: Fix uninitialized value
   new  1797a0b   hurd-i386/submitted-exec_filename.diff: Add missing 
include.

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  |  1 +
 debian/patches/hurd-i386/submitted-exec_filename.diff | 14 +-
 2 files changed, 10 insertions(+), 5 deletions(-)

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



[glibc] branch sid updated (268e654 -> 1ad4c22)

2016-09-20 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  268e654   hurd-i386/tg-hurdsig-SA_SIGINFO.diff: Fix preemptors
   new  1ad4c22   hurd-i386/tg-hurdsig-fixes.diff: Fix uninitialized value

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   | 1 +
 debian/patches/hurd-i386/tg-hurdsig-fixes.diff | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

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



[glibc] branch sid updated (1797a0b -> c2cf421)

2016-09-20 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  1797a0b   hurd-i386/submitted-exec_filename.diff: Add missing 
include.
   new  c2cf421   hurd-i386/submitted-exec_filename.diff: fix const warning

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   |  3 ++-
 .../patches/hurd-i386/submitted-exec_filename.diff | 23 ++
 2 files changed, 17 insertions(+), 9 deletions(-)

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



[glibc] branch sid updated (7642630 -> 268e654)

2016-09-20 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  7642630   testsuite-xfail-debian.mk: Clear fixed hurd-i386 test.
   new  268e654   hurd-i386/tg-hurdsig-SA_SIGINFO.diff: Fix preemptors

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 ++
 .../patches/hurd-i386/tg-hurdsig-SA_SIGINFO.diff   | 26 +-
 2 files changed, 27 insertions(+), 1 deletion(-)

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



[glibc] 01/01: hurd-i386/submitted-exec_filename.diff: Add missing include.

2016-09-20 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 1797a0be3b0b70e61cec7ba27db084585844d1fe
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Tue Sep 20 22:30:44 2016 +0200

hurd-i386/submitted-exec_filename.diff: Add missing include.
---
 debian/changelog  |  1 +
 debian/patches/hurd-i386/submitted-exec_filename.diff | 14 +-
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 9343a80..83c2f0c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ glibc (2.24-4) UNRELEASED; urgency=medium
   * hurd-i386/tg-hurdsig-SA_SIGINFO.diff: Fix preemptors and thus
 hurd_safe_*.
   * hurd-i386/tg-hurdsig-fixes.diff: Fix uninitialized value.
+  * hurd-i386/submitted-exec_filename.diff: Add missing include.
 
  -- Aurelien Jarno <aure...@debian.org>  Sat, 17 Sep 2016 20:03:04 +0200
 
diff --git a/debian/patches/hurd-i386/submitted-exec_filename.diff 
b/debian/patches/hurd-i386/submitted-exec_filename.diff
index 25d10ae..2076778 100644
--- a/debian/patches/hurd-i386/submitted-exec_filename.diff
+++ b/debian/patches/hurd-i386/submitted-exec_filename.diff
@@ -90,7 +90,11 @@ from argv[0] but argv[0] only contains the executable name 
by convention.
  /* Inform the proc server we have exited with STATUS, and kill the
 --- a/hurd/hurdexec.c
 +++ b/hurd/hurdexec.c
-@@ -28,13 +28,33 @@
+@@ -25,16 +25,37 @@
+ #include 
+ #include 
+ #include 
++#include 
  #include 
  #include 
  
@@ -125,7 +129,7 @@ from argv[0] but argv[0] only contains the executable name 
by convention.
error_t err;
char *args, *env;
size_t argslen, envlen;
-@@ -216,7 +236,7 @@ _hurd_exec (task_t task, file_t file,
+@@ -216,7 +237,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
@@ -134,7 +138,7 @@ from argv[0] but argv[0] only contains the executable name 
by convention.
  
auth_t newauth;
  
-@@ -360,13 +380,27 @@ _hurd_exec (task_t task, file_t file,
+@@ -360,13 +381,27 @@ _hurd_exec (task_t task, file_t file,
if (__sigismember (&_hurdsig_traced, SIGKILL))
flags |= EXEC_SIGTRAP;
  #endif
@@ -169,7 +173,7 @@ from argv[0] but argv[0] only contains the executable name 
by convention.
  }
  
/* Release references to the standard ports.  */
-@@ -401,3 +435,13 @@ _hurd_exec (task_t task, file_t file,
+@@ -401,3 +436,13 @@ _hurd_exec (task_t task, file_t file,
free (env);
return err;
  }
@@ -185,7 +189,7 @@ from argv[0] but argv[0] only contains the executable name 
by convention.
 +#endif
 --- a/sysdeps/mach/hurd/execve.c
 +++ b/sysdeps/mach/hurd/execve.c
-@@ -34,7 +34,8 @@ __execve (file_name, argv, envp)
+@@ -31,7 +31,8 @@ __execve (const char *file_name, char *c
  return -1;
  
/* Hopefully this will not return.  */

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



[glibc] 01/01: hurd-i386/submitted-exec_filename.diff: fix const warning

2016-09-20 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 c2cf421af824c69930a96a89921a80d1ec47
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Tue Sep 20 22:53:36 2016 +0200

hurd-i386/submitted-exec_filename.diff: fix const warning
---
 debian/changelog   |  3 ++-
 .../patches/hurd-i386/submitted-exec_filename.diff | 23 ++
 2 files changed, 17 insertions(+), 9 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 83c2f0c..e0bf10a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,7 +5,8 @@ glibc (2.24-4) UNRELEASED; urgency=medium
   * hurd-i386/tg-hurdsig-SA_SIGINFO.diff: Fix preemptors and thus
 hurd_safe_*.
   * hurd-i386/tg-hurdsig-fixes.diff: Fix uninitialized value.
-  * hurd-i386/submitted-exec_filename.diff: Add missing include.
+  * hurd-i386/submitted-exec_filename.diff: Add missing includes, fix const
+warning.
 
  -- Aurelien Jarno <aure...@debian.org>  Sat, 17 Sep 2016 20:03:04 +0200
 
diff --git a/debian/patches/hurd-i386/submitted-exec_filename.diff 
b/debian/patches/hurd-i386/submitted-exec_filename.diff
index 2076778..a364ba1 100644
--- a/debian/patches/hurd-i386/submitted-exec_filename.diff
+++ b/debian/patches/hurd-i386/submitted-exec_filename.diff
@@ -215,16 +215,23 @@ from argv[0] but argv[0] only contains the executable 
name by convention.
return __hurd_fail (err);
 --- a/sysdeps/mach/hurd/spawni.c
 +++ b/sysdeps/mach/hurd/spawni.c
-@@ -43,7 +43,7 @@ __spawni (pid_t *pid, const char *file,
- int xflags)
+@@ -29,6 +29,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ #include 
+ #include 
+ #include "spawn_int.h"
+@@ -44,6 +45,7 @@ __spawni (pid_t *pid, const char *file,
  {
pid_t new_pid;
--  char *path, *p, *name;
-+  char *path, *p, *name, *filename;
+   char *path, *p, *name;
++  const char *filename;
size_t len;
size_t pathlen;
short int flags;
-@@ -59,14 +59,14 @@ __spawni (pid_t *pid, const char *file,
+@@ -59,14 +61,14 @@ __spawni (pid_t *pid, const char *file,
   that remains visible after an exec is registration with the proc
   server, and the inheritance of various values and ports.  All those
   inherited values and ports are what get collected up and passed in the
@@ -247,7 +254,7 @@ from argv[0] but argv[0] only contains the executable name 
by convention.
   except that all errors will be detected here (in the parent process)
   and return proper errno codes rather than the child dying with 127.
  
-@@ -546,7 +546,7 @@ __spawni (pid_t *pid, const char *file,
+@@ -546,7 +548,7 @@ __spawni (pid_t *pid, const char *file,
  
if ((xflags & SPAWN_XFLAGS_USE_PATH) == 0 || strchr (file, '/') != NULL)
  /* The FILE parameter is actually a path.  */
@@ -256,7 +263,7 @@ from argv[0] but argv[0] only contains the executable name 
by convention.
else
  {
/* We have to search for FILE on the path.  */
-@@ -573,20 +573,18 @@ __spawni (pid_t *pid, const char *file,
+@@ -573,20 +575,18 @@ __spawni (pid_t *pid, const char *file,
p = path;
do
{
@@ -280,7 +287,7 @@ from argv[0] but argv[0] only contains the executable name 
by convention.
  switch (err)
{
case EACCES:
-@@ -623,14 +621,27 @@ __spawni (pid_t *pid, const char *file,
+@@ -623,14 +623,27 @@ __spawni (pid_t *pid, const char *file,
  
  inline error_t exec (file_t file)
{

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



[glibc] 01/01: hurd-i386/tg-hurdsig-fixes.diff: Fix uninitialized value

2016-09-20 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 1ad4c220a5b026eeac7e57c270c5f96bd4398918
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Tue Sep 20 22:15:47 2016 +0200

hurd-i386/tg-hurdsig-fixes.diff: Fix uninitialized value
---
 debian/changelog   | 1 +
 debian/patches/hurd-i386/tg-hurdsig-fixes.diff | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index fcd4c8b..9343a80 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ glibc (2.24-4) UNRELEASED; urgency=medium
   * testsuite-xfail-debian.mk: Clear fixed hurd-i386 test.
   * hurd-i386/tg-hurdsig-SA_SIGINFO.diff: Fix preemptors and thus
 hurd_safe_*.
+  * hurd-i386/tg-hurdsig-fixes.diff: Fix uninitialized value.
 
  -- Aurelien Jarno <aure...@debian.org>  Sat, 17 Sep 2016 20:03:04 +0200
 
diff --git a/debian/patches/hurd-i386/tg-hurdsig-fixes.diff 
b/debian/patches/hurd-i386/tg-hurdsig-fixes.diff
index 0f8c7a4..2944be4 100644
--- a/debian/patches/hurd-i386/tg-hurdsig-fixes.diff
+++ b/debian/patches/hurd-i386/tg-hurdsig-fixes.diff
@@ -287,7 +287,7 @@ earlier this month.
 +post_all_pending_signals (void (*reply) (void))
 +{
 +  struct hurd_sigstate *ss;
-+  sigset_t pending;
++  sigset_t pending = 0;
 +
 +  for (;;)
 +{

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



[glibc] 01/01: hurd-i386/tg-hurdsig-SA_SIGINFO.diff: Fix preemptors

2016-09-20 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 268e65416cdd05ddb439cb252454e24126c66b3c
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Tue Sep 20 22:12:20 2016 +0200

hurd-i386/tg-hurdsig-SA_SIGINFO.diff: Fix preemptors

and thus hurd_safe_*
---
 debian/changelog   |  2 ++
 .../patches/hurd-i386/tg-hurdsig-SA_SIGINFO.diff   | 26 +-
 2 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 78bbc8f..fcd4c8b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ glibc (2.24-4) UNRELEASED; urgency=medium
 
   [ Samuel Thibault ]
   * testsuite-xfail-debian.mk: Clear fixed hurd-i386 test.
+  * hurd-i386/tg-hurdsig-SA_SIGINFO.diff: Fix preemptors and thus
+hurd_safe_*.
 
  -- Aurelien Jarno <aure...@debian.org>  Sat, 17 Sep 2016 20:03:04 +0200
 
diff --git a/debian/patches/hurd-i386/tg-hurdsig-SA_SIGINFO.diff 
b/debian/patches/hurd-i386/tg-hurdsig-SA_SIGINFO.diff
index 6a01e33..f002216 100644
--- a/debian/patches/hurd-i386/tg-hurdsig-SA_SIGINFO.diff
+++ b/debian/patches/hurd-i386/tg-hurdsig-SA_SIGINFO.diff
@@ -7,7 +7,9 @@ Subject: [PATCH] implement SA_SIGINFO signal handlers.
 
 ---
  hurd/hurd/signal.h   |5 +
- hurd/hurdinit.c  |2 
+ hurd/hurdfault.c |2 +-
+ hurd/hurdinit.c  |2 +-
+ hurd/hurdsig.c   |2 +-
  sysdeps/mach/hurd/bits/sigaction.h   |   81 
  sysdeps/mach/hurd/i386/bits/sigcontext.h |4 +
  sysdeps/mach/hurd/i386/exc2signal.c  |  123 
+++
@@ -30,6 +32,17 @@ Subject: [PATCH] implement SA_SIGINFO signal handlers.
  
  /* Make the thread described by SS take the signal described by SIGNO and
 DETAIL.  If the process is traced, this will in fact stop with a SIGNO
+--- a/hurd/hurdfault.c
 b/hurd/hurdfault.c
+@@ -70,7 +70,7 @@ _hurdsig_fault_catch_exception_raise (mach_port_t port,
+  codes into a signal number and subcode.  */
+   _hurd_exception2signal (, );
+ 
+-  return HURD_PREEMPT_SIGNAL_P (&_hurdsig_fault_preemptor, signo, d.code)
++  return HURD_PREEMPT_SIGNAL_P (&_hurdsig_fault_preemptor, signo, 
d.exc_subcode)
+ ? 0 : EGREGIOUS;
+ }
+ 
 --- a/hurd/hurdinit.c
 +++ b/hurd/hurdinit.c
 @@ -174,7 +174,7 @@ _hurd_new_proc_init (char **argv,
@@ -41,6 +54,17 @@ Subject: [PATCH] implement SA_SIGINFO signal handlers.
  }
  
  #include 
+--- a/hurd/hurdsig.c
 b/hurd/hurdsig.c
+@@ -710,7 +710,7 @@ post_signal (struct hurd_sigstate *ss,
+   {   /* PE cannot be null.  */
+   do
+ {
+-  if (HURD_PREEMPT_SIGNAL_P (pe, signo, detail->code))
++  if (HURD_PREEMPT_SIGNAL_P (pe, signo, detail->exc_subcode))
+ {
+   if (pe->preemptor)
+ {
 --- /dev/null
 +++ b/sysdeps/mach/hurd/bits/sigaction.h
 @@ -0,0 +1,81 @@

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



[glibc] 01/01: refresh

2016-08-23 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 6076f901691ffd0e954c1cbf7de730c55cb3022d
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Tue Aug 23 20:23:02 2016 +0200

refresh
---
 debian/patches/hurd-i386/tg-sigstate_thread_reference.diff | 10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/debian/patches/hurd-i386/tg-sigstate_thread_reference.diff 
b/debian/patches/hurd-i386/tg-sigstate_thread_reference.diff
index f4c2a50..5f54fec 100644
--- a/debian/patches/hurd-i386/tg-sigstate_thread_reference.diff
+++ b/debian/patches/hurd-i386/tg-sigstate_thread_reference.diff
@@ -52,8 +52,8 @@ calling _hurd_thread_sigstate.
 +}
return THREAD_SELF->_hurd_sigstate;
  }
- #endif
-@@ -201,11 +209,14 @@ _hurd_critical_section_lock (void)
+ #  endif
+@@ -203,11 +211,14 @@ _hurd_critical_section_lock (void)
ss = THREAD_SELF->_hurd_sigstate;
if (ss == NULL)
  {
@@ -71,7 +71,7 @@ calling _hurd_thread_sigstate.
if (! __spin_try_lock (>critical_section_lock))
 --- a/hurd/hurdsig.c
 +++ b/hurd/hurdsig.c
-@@ -108,6 +108,8 @@ _hurd_thread_sigstate (thread_t thread)
+@@ -107,6 +107,8 @@ _hurd_thread_sigstate (thread_t thread)
}
else
{
@@ -80,7 +80,7 @@ calling _hurd_thread_sigstate.
  /* Use the global actions as a default for new threads.  */
  struct hurd_sigstate *s = _hurd_global_sigstate;
  if (s)
-@@ -121,6 +123,11 @@ _hurd_thread_sigstate (thread_t thread)
+@@ -120,6 +122,11 @@ _hurd_thread_sigstate (thread_t thread)
  
  ss->next = _hurd_sigstates;
  _hurd_sigstates = ss;
@@ -92,7 +92,7 @@ calling _hurd_thread_sigstate.
}
  }
__mutex_unlock (&_hurd_siglock);
-@@ -128,8 +135,7 @@ _hurd_thread_sigstate (thread_t thread)
+@@ -127,8 +134,7 @@ _hurd_thread_sigstate (thread_t thread)
  }
  
  /* Destroy a sigstate structure.  Called by libpthread just before the

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



[glibc] 03/03: hurd-i386/tg-gsync-libc.diff: New patch, use gsync

2016-08-23 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 1f50ccd82439b68e0b1867e5fe858fd13e4bddbb
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Tue Aug 23 18:08:30 2016 +

hurd-i386/tg-gsync-libc.diff: New patch, use gsync

for libc synchronization primitives.
---
 debian/changelog|2 +
 debian/patches/hurd-i386/tg-gsync-libc.diff | 1403 +++
 debian/patches/series   |1 +
 3 files changed, 1406 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 2649a10..9e3faa7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,8 @@ glibc (2.23-5) UNRELEASED; urgency=medium
   * hurd-i386/tg-extern_inline.diff: Fix using inlines in libc.
   * hurd-i386/cvs-libpthread-2.23.diff: Fix calling pthread functions from
 libc.
+  * hurd-i386/tg-gsync-libc.diff: New patch, use gsync for libc
+synchronization primitives.
 
  -- Samuel Thibault <sthiba...@debian.org>  Tue, 09 Aug 2016 01:45:00 +0200
 
diff --git a/debian/patches/hurd-i386/tg-gsync-libc.diff 
b/debian/patches/hurd-i386/tg-gsync-libc.diff
new file mode 100644
index 000..1263d0e
--- /dev/null
+++ b/debian/patches/hurd-i386/tg-gsync-libc.diff
@@ -0,0 +1,1403 @@
+From: Agustina Arzille <avarzi...@riseup.net>
+Subject: [PATCH] Introduce gsync-based locks to glibc.
+
+* hurd/Makefile: Add hurdlock.
+* hurd/Versions: Added new entry to export the above interface.
+* hurd/hurdlock.c: New file.
+* hurd/hurdlock.h: New file.
+* hurd/hurdpid.c: Include 
+  (_S_msg_proc_newids): Use lll_wait to synchronize.
+* hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
+* hurd/setauth.c: Include , use integer for synchronization.
+* hurd/sysvshm.c: Include , use integer for synchronization.
+* mach/Makefile: Remove unneeded file
+* mach/lock-intern.h: Use lll to implement spinlocks.
+* mach/lowlevellock.h: New file
+* mach/mutex-init.c: Rewrite mutex initialization.
+* sysdeps/mach/Makefile: Add libmachuser as dependencies for some libs.
+* sysdeps/mach/libc-lock.h: Reimplemented libc internal locks
+  with lll, cleanup routines now use gcc's cleanup attribute
+* sysdeps/mach/hurd/bits/errno.h: New errno values.
+* sysdeps/mach/hurd/libc-lock.h: Removed file.
+* sysdeps/mach/hurd/malloc-machine.h: Reimplemented malloc locks.
+* sysdeps/mach/hurd/setpgid.c: (setpgid): Use gsync for synchronization.
+* sysdeps/mach/hurd/setsid.c: (setsid): Likewise.
+
+---
+ hurd/Makefile  |   1 +
+ hurd/Versions  |   9 ++
+ hurd/hurdlock.c| 247 +
+ hurd/hurdlock.h| 117 ++
+ hurd/hurdpid.c |   3 +
+ hurd/hurdsig.c |   4 +-
+ hurd/setauth.c |   5 +-
+ hurd/sysvshm.c |   3 +-
+ mach/Makefile  |   2 +-
+ mach/lock-intern.h |  84 -
+ mach/lowlevellock.h|  80 
+ mach/mutex-init.c  |   7 +-
+ sysdeps/mach/Makefile  |  18 +++
+ sysdeps/mach/libc-lock.h   | 170 +++--
+ sysdeps/mach/hurd/bits/errno.h |   8 +-
+ sysdeps/mach/hurd/libc-lock.h  | 215 
+ sysdeps/mach/hurd/malloc-machine.h |  11 +-
+ sysdeps/mach/hurd/setpgid.c|  10 +-
+ sysdeps/mach/hurd/setsid.c |  10 +-
+ 19 files changed, 681 insertions(+), 323 deletions(-)
+
+Index: glibc-2.23/hurd/Makefile
+===
+--- glibc-2.23.orig/hurd/Makefile
 glibc-2.23/hurd/Makefile
+@@ -56,6 +56,7 @@ routines = hurdstartup hurdinit \
+  ports-get ports-set hurdports hurdmsg \
+  errno-loc \
+  sysvshm \
++ hurdlock \
+  $(sig) $(dtable) $(inlines) port-cleanup report-wait xattr
+ sig   = hurdsig hurdfault siginfo hurd-raise preempt-sig \
+ trampoline longjmp-ts catch-exc exc2signal hurdkill sigunwind \
+Index: glibc-2.23/hurd/Versions
+===
+--- glibc-2.23.orig/hurd/Versions
 glibc-2.23/hurd/Versions
+@@ -161,4 +161,13 @@ libc {
+ cthread_keycreate; cthread_getspecific; cthread_setspecific;
+ __libc_getspecific;
+   }
++
++  GLIBC_PRIVATE {
++# Used by other libs.
++lll_xwait; lll_timed_wait; lll_timed_xwait;
++__lll_abstimed_wait; __lll_abstimed_xwait;
++__lll_abstimed_lock; lll_robust_lock;
++__lll_robust_abstimed_lock; lll_robust_trylock;
++lll_set_wake; lll_robust_unlock; lll_requeue;
++  }
+ }
+Index: glibc-2.23/hurd/hurdlock.c
+===
+--- /dev/null
 glibc-2.23/hurd/hurdlock.c
+@@ -0,0 +1,247 @@
++/* Copyright (C) 1999-2016 Free Softwa

[glibc] 02/03: hurd-i386/cvs-libpthread-2.23.diff: Fix calling pthread functions from libc

2016-08-23 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 f8b47e0e798a20c229b4f81699c72e019282c362
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Tue Aug 23 17:47:24 2016 +

hurd-i386/cvs-libpthread-2.23.diff: Fix calling pthread functions from libc
---
 debian/changelog  | 2 ++
 debian/patches/hurd-i386/cvs-libpthread-2.23.diff | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index a8d7086..2649a10 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,8 @@ glibc (2.23-5) UNRELEASED; urgency=medium
   * hurd-i386/tg-sysvshm.diff: Update from topgit.
   * hurd-i386/cvs-check-local-headers.diff: Update from git.
   * hurd-i386/tg-extern_inline.diff: Fix using inlines in libc.
+  * hurd-i386/cvs-libpthread-2.23.diff: Fix calling pthread functions from
+libc.
 
  -- Samuel Thibault <sthiba...@debian.org>  Tue, 09 Aug 2016 01:45:00 +0200
 
diff --git a/debian/patches/hurd-i386/cvs-libpthread-2.23.diff 
b/debian/patches/hurd-i386/cvs-libpthread-2.23.diff
index 0233387..6bdd223 100644
--- a/debian/patches/hurd-i386/cvs-libpthread-2.23.diff
+++ b/debian/patches/hurd-i386/cvs-libpthread-2.23.diff
@@ -269,7 +269,7 @@
 +#endif
 +
 +/* Call thread functions through the function pointer table.  */
-+#if defined SHARED && !defined NOT_IN_libc
++#if defined SHARED && IS_IN (libc)
 +# define PTFAVAIL(NAME) __libc_pthread_functions_init
 +# define __libc_ptf_call(FUNC, ARGS, ELSE) \
 +  (__libc_pthread_functions_init ? PTHFCT_CALL (ptr_##FUNC, ARGS) : ELSE)

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



[glibc] 01/03: hurd-i386/tg-extern_inline.diff: Fix using inlines in libc

2016-08-23 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 4013b1b7996622c5d1231e89285832390fe9d626
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Tue Aug 23 17:46:39 2016 +

hurd-i386/tg-extern_inline.diff: Fix using inlines in libc
---
 debian/changelog   |   1 +
 debian/patches/hurd-i386/tg-extern_inline.diff | 166 -
 2 files changed, 108 insertions(+), 59 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 37715f9..a8d7086 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ glibc (2.23-5) UNRELEASED; urgency=medium
   * libc0.3.symbols.hurd-i386: Update symbols.
   * hurd-i386/tg-sysvshm.diff: Update from topgit.
   * hurd-i386/cvs-check-local-headers.diff: Update from git.
+  * hurd-i386/tg-extern_inline.diff: Fix using inlines in libc.
 
  -- Samuel Thibault <sthiba...@debian.org>  Tue, 09 Aug 2016 01:45:00 +0200
 
diff --git a/debian/patches/hurd-i386/tg-extern_inline.diff 
b/debian/patches/hurd-i386/tg-extern_inline.diff
index 1a7ee99..81ffa50 100644
--- a/debian/patches/hurd-i386/tg-extern_inline.diff
+++ b/debian/patches/hurd-i386/tg-extern_inline.diff
@@ -22,8 +22,10 @@ 
glibc-2.8/debian/patches/hurd-i386/submitted-extern_inline.diff 3057
  sysdeps/mach/i386/machine-lock.h|   12 
  12 files changed, 139 insertions(+), 3 deletions(-)
 
 a/hurd/hurd.h
-+++ b/hurd/hurd.h
+Index: glibc-2.23/hurd/hurd.h
+===
+--- glibc-2.23.orig/hurd/hurd.h
 glibc-2.23/hurd/hurd.h
 @@ -46,6 +46,9 @@
  #define _HURD_H_EXTERN_INLINE __extern_inline
  #endif
@@ -42,27 +44,31 @@ 
glibc-2.8/debian/patches/hurd-i386/submitted-extern_inline.diff 3057
  
  /* Basic ports and info, initialized by startup.  */
  
 a/hurd/hurd/fd.h
-+++ b/hurd/hurd/fd.h
-@@ -58,6 +58,9 @@ extern struct mutex _hurd_dtable_lock; /
+Index: glibc-2.23/hurd/hurd/fd.h
+===
+--- glibc-2.23.orig/hurd/hurd/fd.h
 glibc-2.23/hurd/hurd/fd.h
+@@ -58,6 +58,10 @@ extern struct mutex _hurd_dtable_lock; /
 NULL.  The cell is unlocked; when ready to use it, lock it and check for
 it being unused.  */
  
 +struct hurd_fd *_hurd_fd_get (int fd);
 +
-+#if defined __USE_EXTERN_INLINES && defined _LIBC && !defined NOT_IN_libc
++#if defined __USE_EXTERN_INLINES && defined _LIBC
++#  if IS_IN (libc)
  _HURD_FD_H_EXTERN_INLINE struct hurd_fd *
  _hurd_fd_get (int fd)
  {
-@@ -90,6 +93,7 @@ _hurd_fd_get (int fd)
+@@ -90,6 +94,8 @@ _hurd_fd_get (int fd)
  
return descriptor;
  }
++#  endif
 +#endif
  
  
  /* Evaluate EXPR with the variable `descriptor' bound to a pointer to the
-@@ -137,6 +141,9 @@ _hurd_fd_get (int fd)
+@@ -137,6 +143,9 @@ _hurd_fd_get (int fd)
  /* Check if ERR should generate a signal.
 Returns the signal to take, or zero if none.  */
  
@@ -72,7 +78,7 @@ 
glibc-2.8/debian/patches/hurd-i386/submitted-extern_inline.diff 3057
  _HURD_FD_H_EXTERN_INLINE int
  _hurd_fd_error_signal (error_t err)
  {
-@@ -153,11 +160,15 @@ _hurd_fd_error_signal (error_t err)
+@@ -153,11 +162,15 @@ _hurd_fd_error_signal (error_t err)
return 0;
  }
  }
@@ -88,7 +94,7 @@ 
glibc-2.8/debian/patches/hurd-i386/submitted-extern_inline.diff 3057
  _HURD_FD_H_EXTERN_INLINE error_t
  _hurd_fd_error (int fd, error_t err)
  {
-@@ -170,20 +181,28 @@ _hurd_fd_error (int fd, error_t err)
+@@ -170,20 +183,28 @@ _hurd_fd_error (int fd, error_t err)
  }
return err;
  }
@@ -117,7 +123,7 @@ 
glibc-2.8/debian/patches/hurd-i386/submitted-extern_inline.diff 3057
  _HURD_FD_H_EXTERN_INLINE int
  __hurd_sockfail (int fd, int flags, error_t err)
  {
-@@ -192,6 +211,7 @@ __hurd_sockfail (int fd, int flags, erro
+@@ -192,6 +213,7 @@ __hurd_sockfail (int fd, int flags, erro
errno = err;
return -1;
  }
@@ -125,27 +131,31 @@ 
glibc-2.8/debian/patches/hurd-i386/submitted-extern_inline.diff 3057
  
  /* Set up *FD to have PORT its server port, doing appropriate ctty magic.
 Does no locking or unlocking.  */
 a/hurd/hurd/port.h
-+++ b/hurd/hurd/port.h
-@@ -60,6 +60,9 @@ struct hurd_port
+Index: glibc-2.23/hurd/hurd/port.h
+===
+--- glibc-2.23.orig/hurd/hurd/port.h
 glibc-2.23/hurd/hurd/port.h
+@@ -60,6 +60,10 @@ struct hurd_port
  
  /* Initialize *PORT to INIT.  */
  
 +void _hurd_port_init (struct hurd_port *port, mach_port_t init);
 +
-+#if defined __USE_EXTERN_INLINES && defined _LIBC && !defined NOT_IN_libc
++#if defined __USE_EXTERN_INLINES && defined _LIBC
++#  if IS_IN (libc)
  _HURD_PORT_H_EXTERN_INLINE void
  _hurd_port_init (struct hurd_port *port, mach_port_t init)
  {
-@@ -67,6 +70,7 @@ _hurd_port_init (struct hurd_port *port,
+@@ -67,6 +71,8 @@ _hurd_port_init (struct hu

[glibc] 01/01: hurd-i386/tg-gsync-libc.diff: Add errno values to manual

2016-08-23 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 6bd7e65ccc78b69042230d425a18710d02306aff
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Tue Aug 23 21:16:21 2016 +0200

hurd-i386/tg-gsync-libc.diff: Add errno values to manual
---
 debian/patches/hurd-i386/tg-gsync-libc.diff | 27 ++-
 1 file changed, 26 insertions(+), 1 deletion(-)

diff --git a/debian/patches/hurd-i386/tg-gsync-libc.diff 
b/debian/patches/hurd-i386/tg-gsync-libc.diff
index 1263d0e..d600dff 100644
--- a/debian/patches/hurd-i386/tg-gsync-libc.diff
+++ b/debian/patches/hurd-i386/tg-gsync-libc.diff
@@ -17,6 +17,7 @@ Subject: [PATCH] Introduce gsync-based locks to glibc.
 * sysdeps/mach/Makefile: Add libmachuser as dependencies for some libs.
 * sysdeps/mach/libc-lock.h: Reimplemented libc internal locks
   with lll, cleanup routines now use gcc's cleanup attribute
+* manual/errno.texi: New errno values.
 * sysdeps/mach/hurd/bits/errno.h: New errno values.
 * sysdeps/mach/hurd/libc-lock.h: Removed file.
 * sysdeps/mach/hurd/malloc-machine.h: Reimplemented malloc locks.
@@ -36,6 +37,7 @@ Subject: [PATCH] Introduce gsync-based locks to glibc.
  mach/lock-intern.h |  84 -
  mach/lowlevellock.h|  80 
  mach/mutex-init.c  |   7 +-
+ manual/errno.texi  |  12 ++
  sysdeps/mach/Makefile  |  18 +++
  sysdeps/mach/libc-lock.h   | 170 +++--
  sysdeps/mach/hurd/bits/errno.h |   8 +-
@@ -43,7 +45,7 @@ Subject: [PATCH] Introduce gsync-based locks to glibc.
  sysdeps/mach/hurd/malloc-machine.h |  11 +-
  sysdeps/mach/hurd/setpgid.c|  10 +-
  sysdeps/mach/hurd/setsid.c |  10 +-
- 19 files changed, 681 insertions(+), 323 deletions(-)
+ 20 files changed, 693 insertions(+), 323 deletions(-)
 
 Index: glibc-2.23/hurd/Makefile
 ===
@@ -804,6 +806,29 @@ Index: glibc-2.23/mach/mutex-init.c
 -  mutex_init ((struct mutex *) lock);
 +  *(int *)lock = LLL_INITIALIZER;
  }
+diff --git a/manual/errno.texi b/manual/errno.texi
+index 1068be3..5b400fe 100644
+--- a/manual/errno.texi
 b/manual/errno.texi
+@@ -993,6 +993,18 @@ the normal result is for the operations affected to 
complete with this
+ error; @pxref{Cancel AIO Operations}.
+ @end deftypevr
+ 
++@comment errno.h
++@comment GNU: Owner died
++@deftypevr Macro int EOWNERDEAD
++@comment errno 120
++@end deftypevr
++
++@comment errno.h
++@comment GNU: State not recoverable
++@deftypevr Macro int ENOTRECOVERABLE
++@comment errno 121
++@end deftypevr
++
+ 
+ @emph{The following error codes are defined by the Linux/i386 kernel.
+ They are not yet documented.}
 Index: glibc-2.23/sysdeps/mach/Makefile
 ===
 --- glibc-2.23.orig/sysdeps/mach/Makefile

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



[glibc] branch sid updated (6076f90 -> 6bd7e65)

2016-08-23 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  6076f90   refresh
   new  6bd7e65   hurd-i386/tg-gsync-libc.diff: Add errno values to manual

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-gsync-libc.diff | 27 ++-
 1 file changed, 26 insertions(+), 1 deletion(-)

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



[glibc] branch sid updated (6bd7e65 -> 7463bcb)

2016-08-23 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  6bd7e65   hurd-i386/tg-gsync-libc.diff: Add errno values to manual
   new  7463bcb   Revert "hurd-i386/tg-gsync-libc.diff: Add errno values to 
manual"

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-gsync-libc.diff | 27 +--
 1 file changed, 1 insertion(+), 26 deletions(-)

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



[glibc] 01/01: upload

2016-08-23 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 3bfece62be04d3d7b49bb710602d42dd386dbda9
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Tue Aug 23 22:51:33 2016 +0200

upload
---
 debian/changelog | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 9e3faa7..fd4119c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-glibc (2.23-5) UNRELEASED; urgency=medium
+glibc (2.23-5) unstable; urgency=medium
 
   * patches/hurd-i386/git-recvmsg.diff: New patch, fixes recvmsg on PF_LOCAL
 sockets with msg_name != NULL.  Closes: #833558.
@@ -13,7 +13,7 @@ glibc (2.23-5) UNRELEASED; urgency=medium
   * hurd-i386/tg-gsync-libc.diff: New patch, use gsync for libc
 synchronization primitives.
 
- -- Samuel Thibault <sthiba...@debian.org>  Tue, 09 Aug 2016 01:45:00 +0200
+ -- Samuel Thibault <sthiba...@debian.org>  Tue, 23 Aug 2016 21:16:41 +0200
 
 glibc (2.23-4) unstable; urgency=medium
 

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



[glibc] branch sid updated (7463bcb -> 3bfece6)

2016-08-23 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  7463bcb   Revert "hurd-i386/tg-gsync-libc.diff: Add errno values to 
manual"
   new  3bfece6   upload

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 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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



[glibc] annotated tag debian/2.23-5 created (now a3f33b9)

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

sthibault pushed a change to annotated tag debian/2.23-5
in repository glibc.

at  a3f33b9   (tag)
   tagging  3bfece62be04d3d7b49bb710602d42dd386dbda9 (commit)
  replaces  debian/2.23-4
 tagged by  Samuel Thibault
on  Tue Aug 23 22:54:29 2016 +0200

- Log -
glibc Debian release 2.23-5

Samuel Thibault (12):
  Fix recvmsg on PF_LOCAL sockets with msg_name != NULL
  hurd: Really fix pthread_setcancelstate aliasing
  libc0.3.symbols.hurd-i386: Update symbols
  hurd-i386/tg-sysvshm.diff: Update from topgit
  hurd-i386/cvs-check-local-headers.diff: Update from git
  hurd-i386/tg-extern_inline.diff: Fix using inlines in libc
  hurd-i386/cvs-libpthread-2.23.diff: Fix calling pthread functions from 
libc
  hurd-i386/tg-gsync-libc.diff: New patch, use gsync
  refresh
  hurd-i386/tg-gsync-libc.diff: Add errno values to manual
  Revert "hurd-i386/tg-gsync-libc.diff: Add errno values to manual"
  upload

---

No new revisions were added by this update.

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



[glibc] branch sid updated (404db42 -> 1f50ccd)

2016-08-23 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  404db42   hurd-i386/cvs-check-local-headers.diff: Update from git
   new  4013b1b   hurd-i386/tg-extern_inline.diff: Fix using inlines in libc
   new  f8b47e0   hurd-i386/cvs-libpthread-2.23.diff: Fix calling pthread 
functions from libc
   new  1f50ccd   hurd-i386/tg-gsync-libc.diff: New patch, use gsync

The 3 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/cvs-libpthread-2.23.diff |2 +-
 debian/patches/hurd-i386/tg-extern_inline.diff|  166 ++-
 debian/patches/hurd-i386/tg-gsync-libc.diff   | 1403 +
 debian/patches/series |1 +
 5 files changed, 1517 insertions(+), 60 deletions(-)
 create mode 100644 debian/patches/hurd-i386/tg-gsync-libc.diff

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



[glibc] branch sid updated (1f50ccd -> 6076f90)

2016-08-23 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  1f50ccd   hurd-i386/tg-gsync-libc.diff: New patch, use gsync
   new  6076f90   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-sigstate_thread_reference.diff | 10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

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



[glibc] 01/01: Revert "hurd-i386/tg-gsync-libc.diff: Add errno values to manual"

2016-08-23 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 7463bcb04a7365edc6415b4f0b843ef1411ab9ae
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Tue Aug 23 21:17:45 2016 +0200

Revert "hurd-i386/tg-gsync-libc.diff: Add errno values to manual"

This reverts commit 6bd7e65ccc78b69042230d425a18710d02306aff.

There is no manual in the debian package...
---
 debian/patches/hurd-i386/tg-gsync-libc.diff | 27 +--
 1 file changed, 1 insertion(+), 26 deletions(-)

diff --git a/debian/patches/hurd-i386/tg-gsync-libc.diff 
b/debian/patches/hurd-i386/tg-gsync-libc.diff
index d600dff..1263d0e 100644
--- a/debian/patches/hurd-i386/tg-gsync-libc.diff
+++ b/debian/patches/hurd-i386/tg-gsync-libc.diff
@@ -17,7 +17,6 @@ Subject: [PATCH] Introduce gsync-based locks to glibc.
 * sysdeps/mach/Makefile: Add libmachuser as dependencies for some libs.
 * sysdeps/mach/libc-lock.h: Reimplemented libc internal locks
   with lll, cleanup routines now use gcc's cleanup attribute
-* manual/errno.texi: New errno values.
 * sysdeps/mach/hurd/bits/errno.h: New errno values.
 * sysdeps/mach/hurd/libc-lock.h: Removed file.
 * sysdeps/mach/hurd/malloc-machine.h: Reimplemented malloc locks.
@@ -37,7 +36,6 @@ Subject: [PATCH] Introduce gsync-based locks to glibc.
  mach/lock-intern.h |  84 -
  mach/lowlevellock.h|  80 
  mach/mutex-init.c  |   7 +-
- manual/errno.texi  |  12 ++
  sysdeps/mach/Makefile  |  18 +++
  sysdeps/mach/libc-lock.h   | 170 +++--
  sysdeps/mach/hurd/bits/errno.h |   8 +-
@@ -45,7 +43,7 @@ Subject: [PATCH] Introduce gsync-based locks to glibc.
  sysdeps/mach/hurd/malloc-machine.h |  11 +-
  sysdeps/mach/hurd/setpgid.c|  10 +-
  sysdeps/mach/hurd/setsid.c |  10 +-
- 20 files changed, 693 insertions(+), 323 deletions(-)
+ 19 files changed, 681 insertions(+), 323 deletions(-)
 
 Index: glibc-2.23/hurd/Makefile
 ===
@@ -806,29 +804,6 @@ Index: glibc-2.23/mach/mutex-init.c
 -  mutex_init ((struct mutex *) lock);
 +  *(int *)lock = LLL_INITIALIZER;
  }
-diff --git a/manual/errno.texi b/manual/errno.texi
-index 1068be3..5b400fe 100644
 a/manual/errno.texi
-+++ b/manual/errno.texi
-@@ -993,6 +993,18 @@ the normal result is for the operations affected to 
complete with this
- error; @pxref{Cancel AIO Operations}.
- @end deftypevr
- 
-+@comment errno.h
-+@comment GNU: Owner died
-+@deftypevr Macro int EOWNERDEAD
-+@comment errno 120
-+@end deftypevr
-+
-+@comment errno.h
-+@comment GNU: State not recoverable
-+@deftypevr Macro int ENOTRECOVERABLE
-+@comment errno 121
-+@end deftypevr
-+
- 
- @emph{The following error codes are defined by the Linux/i386 kernel.
- They are not yet documented.}
 Index: glibc-2.23/sysdeps/mach/Makefile
 ===
 --- glibc-2.23.orig/sysdeps/mach/Makefile

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



[glibc] 01/02: hurd-i386/unsubmitted-libc_alloca_cutoff.diff: Rename to hurd-i386/tg-allocalim.diff.

2016-10-02 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 67aae490e49d25d011a684b13a1548de1ead2ef0
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Sun Oct 2 20:24:17 2016 +0200

hurd-i386/unsubmitted-libc_alloca_cutoff.diff: Rename to 
hurd-i386/tg-allocalim.diff.
---
 debian/changelog| 2 ++
 .../{unsubmitted-libc_alloca_cutoff.diff => tg-allocalim.diff}  | 0
 debian/patches/series   | 2 +-
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index c279838..c687d1b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -28,6 +28,8 @@ glibc (2.24-4) UNRELEASED; urgency=medium
   * testsuite-xfail-debian.mk: Clear fixed hurd-i386 test.
   * control: Drop hurd dependency from libc-bin: the reason for the dep has
 disappeared.
+  * hurd-i386/unsubmitted-libc_alloca_cutoff.diff: Rename to
+hurd-i386/tg-allocalim.diff.
 
  -- Aurelien Jarno <aure...@debian.org>  Sat, 17 Sep 2016 20:03:04 +0200
 
diff --git a/debian/patches/hurd-i386/unsubmitted-libc_alloca_cutoff.diff 
b/debian/patches/hurd-i386/tg-allocalim.diff
similarity index 100%
rename from debian/patches/hurd-i386/unsubmitted-libc_alloca_cutoff.diff
rename to debian/patches/hurd-i386/tg-allocalim.diff
diff --git a/debian/patches/series b/debian/patches/series
index 88769c6..a0a10b3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -116,7 +116,7 @@ hurd-i386/local-libpthread-stacksize.diff
 hurd-i386/tg-WRLCK-upgrade.diff
 hurd-i386/tg-reboot-startup.diff
 hurd-i386/cvs-revert-gnu-gnu-cleanup.diff
-hurd-i386/unsubmitted-libc_alloca_cutoff.diff
+hurd-i386/tg-allocalim.diff
 hurd-i386/libpthread_pthread_types.diff
 hurd-i386/local-bootstrap.diff
 hurd-i386/local-mach_print.diff

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



[glibc] 02/02: hurd-i386/unsubmitted-timer_routines.diff: Rename to hurd-i386/tg-timer_routines.diff.

2016-10-02 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 a43c663dce2bdfbeab44f13eb1f4de878b9d3d67
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Sun Oct 2 20:25:45 2016 +0200

hurd-i386/unsubmitted-timer_routines.diff: Rename to 
hurd-i386/tg-timer_routines.diff.
---
 debian/changelog| 2 ++
 .../{unsubmitted-timer_routines.diff => tg-timer_routines.diff} | 0
 debian/patches/series.hurd-i386 | 2 +-
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index c687d1b..8d9bb3e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -30,6 +30,8 @@ glibc (2.24-4) UNRELEASED; urgency=medium
 disappeared.
   * hurd-i386/unsubmitted-libc_alloca_cutoff.diff: Rename to
 hurd-i386/tg-allocalim.diff.
+  * hurd-i386/unsubmitted-timer_routines.diff: Rename to
+hurd-i386/tg-timer_routines.diff.
 
  -- Aurelien Jarno <aure...@debian.org>  Sat, 17 Sep 2016 20:03:04 +0200
 
diff --git a/debian/patches/hurd-i386/unsubmitted-timer_routines.diff 
b/debian/patches/hurd-i386/tg-timer_routines.diff
similarity index 100%
rename from debian/patches/hurd-i386/unsubmitted-timer_routines.diff
rename to debian/patches/hurd-i386/tg-timer_routines.diff
diff --git a/debian/patches/series.hurd-i386 b/debian/patches/series.hurd-i386
index 3bc9ee3..399d788 100644
--- a/debian/patches/series.hurd-i386
+++ b/debian/patches/series.hurd-i386
@@ -10,7 +10,7 @@ hurd-i386/tg-verify.h.diff
 hurd-i386/tg-fcntl-internal.h.diff
 hurd-i386/tg-pagesize.diff
 hurd-i386/local-no-bootstrap-fs-access.diff
-hurd-i386/unsubmitted-timer_routines.diff 
+hurd-i386/tg-timer_routines.diff
 hurd-i386/local-versions-hack.diff
 hurd-i386/unsubmitted-prof-eintr.diff
 hurd-i386/submitted-malloc-setstate.diff

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



[glibc] branch sid updated (302575c -> a43c663)

2016-10-02 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  302575c   control: Drop hurd dependency from libc-bin
   new  67aae49   hurd-i386/unsubmitted-libc_alloca_cutoff.diff: Rename to 
hurd-i386/tg-allocalim.diff.
   new  a43c663   hurd-i386/unsubmitted-timer_routines.diff: Rename to 
hurd-i386/tg-timer_routines.diff.

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  | 4 
 .../{unsubmitted-libc_alloca_cutoff.diff => tg-allocalim.diff}| 0
 .../{unsubmitted-timer_routines.diff => tg-timer_routines.diff}   | 0
 debian/patches/series | 2 +-
 debian/patches/series.hurd-i386   | 2 +-
 5 files changed, 6 insertions(+), 2 deletions(-)
 rename debian/patches/hurd-i386/{unsubmitted-libc_alloca_cutoff.diff => 
tg-allocalim.diff} (100%)
 rename debian/patches/hurd-i386/{unsubmitted-timer_routines.diff => 
tg-timer_routines.diff} (100%)

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



[glibc] branch sid updated (67440d8 -> dcb6fbc)

2016-10-10 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  67440d8   Update cvs-libpthread.diff again to get atfork+dlclose fix
   new  dcb6fbc   Drop unused variable

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-tls-threadvar.diff | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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



[glibc] 01/01: Drop unused variable

2016-10-10 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 dcb6fbc5de8816e4b879b2b5d4779b52f35863d0
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Mon Oct 10 22:21:53 2016 +0200

Drop unused variable
---
 debian/patches/hurd-i386/tg-tls-threadvar.diff | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/patches/hurd-i386/tg-tls-threadvar.diff 
b/debian/patches/hurd-i386/tg-tls-threadvar.diff
index 91ff19f..9988363 100644
--- a/debian/patches/hurd-i386/tg-tls-threadvar.diff
+++ b/debian/patches/hurd-i386/tg-tls-threadvar.diff
@@ -613,14 +613,14 @@ Note: the added reply_port and _hurd_sigstate fields 
should be kept last.
/* Copy the argdata from the old stack to the new one.  */
newsp = memcpy (newsp - ((char *) [1] - (char *) data), data,
  (char *) d - (char *) data);
-@@ -278,25 +257,11 @@
+@@ -278,25 +257,10 @@
  }
else
  {
 -  /* We are not using cthreads, so we will have just a single allocated
 -   area for the per-thread variables of the main user thread.  */
 -  unsigned long int *array;
-   unsigned int i;
+-  unsigned int i;
int usercode;
  
void call_init1 (void);

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



[glibc] 01/01: hurd: Restore march version _pthread_spin_lock

2016-11-06 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 fd76a49313eb7dbe51a86304e067be5913c0b190
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Sun Nov 6 13:39:07 2016 +0100

hurd: Restore march version _pthread_spin_lock

to further reduce the disruption of using gsync in pthread_spin_lock
---
 .../hurd-i386/tg-libpthread-gsync-spin.diff| 45 --
 1 file changed, 7 insertions(+), 38 deletions(-)

diff --git a/debian/patches/hurd-i386/tg-libpthread-gsync-spin.diff 
b/debian/patches/hurd-i386/tg-libpthread-gsync-spin.diff
index 7436286..0462e4f 100644
--- a/debian/patches/hurd-i386/tg-libpthread-gsync-spin.diff
+++ b/debian/patches/hurd-i386/tg-libpthread-gsync-spin.diff
@@ -1,4 +1,4 @@
-commit eccb1958dd0f8eb9d4ce15d7350ef16c0608d4f2
+commit 2d2ca1268f863437bad07c6abbbc23f33bbfe9f1
 Author: Agustina Arzille <avarzi...@riseup.net>
 Date:   Tue Oct 18 00:20:45 2016 +0200
 
@@ -239,44 +239,13 @@ index 5ae81e1..000
 -
 -#endif /* bits/spin-lock.h */
 diff --git a/libpthread/sysdeps/mach/pt-spin.c 
b/libpthread/sysdeps/mach/pt-spin.c
-deleted file mode 100644
-index d9a2a32..000
+index d9a2a32..0f49ca3 100644
 --- a/libpthread/sysdeps/mach/pt-spin.c
-+++ /dev/null
-@@ -1,36 +0,0 @@
--/* Spin locks.  Mach version.
--   Copyright (C) 2002, 2004 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 Library General Public License as
--   published by the Free Software Foundation; either version 2 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
--   Library General Public License for more details.
--
--   You should have received a copy of the GNU Library General Public
--   License along with the GNU C Library; see the file COPYING.LIB.  If not,
--   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
--   Boston, MA 02111-1307, USA.  */
--
--#include 
--#include 
--
--/* In glibc.  */
--extern void __spin_lock_solid (__pthread_spinlock_t *lock);
--
--/* Lock the spin lock object LOCK.  If the lock is held by another
--   thread spin until it becomes available.  */
--int
--_pthread_spin_lock (__pthread_spinlock_t *lock)
--{
--  __spin_lock_solid (lock);
--  return 0;
--}
 b/libpthread/sysdeps/mach/pt-spin.c
+@@ -31,6 +31,3 @@ _pthread_spin_lock (__pthread_spinlock_t *lock)
+   __spin_lock_solid (lock);
+   return 0;
+ }
 -
 -weak_alias (_pthread_spin_lock, pthread_spin_lock);
 -weak_alias (_pthread_spin_lock, __pthread_spin_lock);

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



[glibc] branch sid updated (a5a376f -> fd76a49)

2016-11-06 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  a5a376f   hurd: Drop spurious pthread_spin_lock aliases
   new  fd76a49   hurd: Restore march version _pthread_spin_lock

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:
 .../hurd-i386/tg-libpthread-gsync-spin.diff| 45 --
 1 file changed, 7 insertions(+), 38 deletions(-)

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



[glibc] 01/01: hurd: fix pt-spin.c build

2016-11-07 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 1f1acab8dfad0f8736d4a04bdbd9a4124b4af2e1
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Mon Nov 7 16:14:53 2016 +0100

hurd: fix pt-spin.c build
---
 .../hurd-i386/tg-libpthread-gsync-spin.diff| 22 +++---
 1 file changed, 19 insertions(+), 3 deletions(-)

diff --git a/debian/patches/hurd-i386/tg-libpthread-gsync-spin.diff 
b/debian/patches/hurd-i386/tg-libpthread-gsync-spin.diff
index 0462e4f..78b8cba 100644
--- a/debian/patches/hurd-i386/tg-libpthread-gsync-spin.diff
+++ b/debian/patches/hurd-i386/tg-libpthread-gsync-spin.diff
@@ -1,4 +1,4 @@
-commit 2d2ca1268f863437bad07c6abbbc23f33bbfe9f1
+commit cd7e69c545200949cfd1b3c595568556ff9a76e3
 Author: Agustina Arzille <avarzi...@riseup.net>
 Date:   Tue Oct 18 00:20:45 2016 +0200
 
@@ -239,10 +239,26 @@ index 5ae81e1..000
 -
 -#endif /* bits/spin-lock.h */
 diff --git a/libpthread/sysdeps/mach/pt-spin.c 
b/libpthread/sysdeps/mach/pt-spin.c
-index d9a2a32..0f49ca3 100644
+index d9a2a32..0cf1c49 100644
 --- a/libpthread/sysdeps/mach/pt-spin.c
 +++ b/libpthread/sysdeps/mach/pt-spin.c
-@@ -31,6 +31,3 @@ _pthread_spin_lock (__pthread_spinlock_t *lock)
+@@ -17,20 +17,16 @@
+write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA.  */
+ 
+-#include 
+ #include 
+ 
+ /* In glibc.  */
+-extern void __spin_lock_solid (__pthread_spinlock_t *lock);
++extern void __spin_lock_solid (__spin_lock_t *lock);
+ 
+ /* Lock the spin lock object LOCK.  If the lock is held by another
+thread spin until it becomes available.  */
+ int
+-_pthread_spin_lock (__pthread_spinlock_t *lock)
++_pthread_spin_lock (__spin_lock_t *lock)
+ {
__spin_lock_solid (lock);
return 0;
  }

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



[glibc] branch sid updated (ee6ffab -> 1f1acab)

2016-11-07 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  ee6ffab   debian/patches/git-updates.diff: update from upstream 
stable branch:
   new  1f1acab   hurd: fix pt-spin.c build

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:
 .../hurd-i386/tg-libpthread-gsync-spin.diff| 22 +++---
 1 file changed, 19 insertions(+), 3 deletions(-)

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



Bug#841068: hurd: system() is broken if exe/lib which links to pthread calls dlclose() of SO which links to curl-gnutls

2016-10-19 Thread Samuel Thibault
Samuel Thibault, on Wed 19 Oct 2016 18:15:03 +0200, wrote:
> Eugene V. Lyubimkin, on Mon 17 Oct 2016 13:26:58 +0200, wrote:
> > Unfortunately, it was not enough for Cupt test suite on Hurd, since the
> > bug still happens under another circumstances - namely, if the
> > caller itself (executable or shared library) links to pthread.
> 
> A fix has been uploaded in libc0.3 2.24-5. We however now need to wait
> for p11-kit to be rebuilt with that libc in order to get the fix in (you
> don't want to know why).

Yep, cupt now built fine!

Thanks,
Samuel



[glibc] 01/01: hurd-i386/cvs-setcancelstate.diff: work around a bug with newer libpthread snapshot.

2016-10-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 22d5b04819ac6adb8874719386419881de31baa4
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Fri Oct 14 15:59:10 2016 +

hurd-i386/cvs-setcancelstate.diff: work around a bug with newer libpthread 
snapshot.
---
 debian/changelog |  2 ++
 debian/patches/hurd-i386/cvs-setcancelstate.diff | 24 
 debian/patches/series|  1 +
 3 files changed, 27 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 232ebce..23e7969 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -35,6 +35,8 @@ glibc (2.24-4) UNRELEASED; urgency=medium
 hurd-i386/tg-timer_routines.diff.
   * hurd-i386/tg-glibc-2.24-restore-malloc-hook.diff: Restore malloc_hook for
 now for mach-defpager.
+  * hurd-i386/cvs-setcancelstate.diff: New patch to work around a bug with
+newer libpthread snapshot.
 
   [ Adam Conrad ]
   * debian/rules.d/tarball.mk: Apply --no-renames to make the diff readable.
diff --git a/debian/patches/hurd-i386/cvs-setcancelstate.diff 
b/debian/patches/hurd-i386/cvs-setcancelstate.diff
new file mode 100644
index 000..e8d7465
--- /dev/null
+++ b/debian/patches/hurd-i386/cvs-setcancelstate.diff
@@ -0,0 +1,24 @@
+For some yet unknown reason, fixes exec crash at boot due to ext2fs.static
+including this.
+
+Index: glibc-2.24/libpthread/pthread/pt-exit.c
+===
+--- glibc-2.24.orig/libpthread/pthread/pt-exit.c
 glibc-2.24/libpthread/pthread/pt-exit.c
+@@ -39,14 +39,14 @@ __pthread_exit (void *status)
+   /* Run any cancelation handlers.  According to POSIX, the
+  cancellation cleanup handlers should be called with cancellation
+  disabled.  */
+-  __pthread_setcancelstate (PTHREAD_CANCEL_DISABLE, );
++  pthread_setcancelstate (PTHREAD_CANCEL_DISABLE, );
+ 
+   for (handlers = __pthread_get_cleanup_stack ();
+*handlers;
+*handlers = (*handlers)->__next)
+ (*handlers)->__handler ((*handlers)->__arg);
+ 
+-  __pthread_setcancelstate (oldstate, );
++  pthread_setcancelstate (oldstate, );
+ 
+   /* Decrease the number of threads.  We use an atomic operation to
+  make sure that only the last thread calls `exit'.  */
diff --git a/debian/patches/series b/debian/patches/series
index a0a10b3..1f04c9d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -131,6 +131,7 @@ hurd-i386/tg-gsync-libc.diff
 hurd-i386/cvs-adjtime-NULL.diff
 hurd-i386/tg-pthread_deps.diff
 hurd-i386/cvs-mallocfork.diff
+hurd-i386/cvs-setcancelstate.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-libpthread.diff: Update to latest upstream version.

2016-10-24 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 0a4ca2751c98639073ae88e2fbe8476fbc450980
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Mon Oct 24 06:23:56 2016 +

hurd-i386/cvs-libpthread.diff: Update to latest upstream version.

- hurd-i386/cvs-libpthread-static-weak.diff: Drop, merged upstream.
- hurd-i386/cvs-pthread-atfork.diff: Drop, merged upstream.
- hurd-i386/cvs-setcancelstate.diff: Drop, merged upstream.
---
 debian/changelog   |   4 +
 .../hurd-i386/cvs-libpthread-static-weak.diff  |  22 
 debian/patches/hurd-i386/cvs-libpthread.diff   | 114 ++
 debian/patches/hurd-i386/cvs-pthread-atfork.diff   | 133 -
 debian/patches/hurd-i386/cvs-setcancelstate.diff   |  24 
 debian/patches/series  |   3 -
 6 files changed, 97 insertions(+), 203 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 2df4aaa..6f40928 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,10 @@ glibc (2.24-6) UNRELEASED; urgency=medium
 
   [ Samuel Thibault ]
   * libc0.3.symbols.hurd-i386: Drop removed RPCs.
+  * hurd-i386/cvs-libpthread.diff: Update to latest upstream version.
+- hurd-i386/cvs-libpthread-static-weak.diff: Drop, merged upstream.
+- hurd-i386/cvs-pthread-atfork.diff: Drop, merged upstream.
+- hurd-i386/cvs-setcancelstate.diff: Drop, merged upstream.
 
  -- Aurelien Jarno <aure...@debian.org>  Tue, 18 Oct 2016 23:17:42 +0200
 
diff --git a/debian/patches/hurd-i386/cvs-libpthread-static-weak.diff 
b/debian/patches/hurd-i386/cvs-libpthread-static-weak.diff
deleted file mode 100644
index dbd52e7..000
--- a/debian/patches/hurd-i386/cvs-libpthread-static-weak.diff
+++ /dev/null
@@ -1,22 +0,0 @@
-commit 2ca42af6c07afed6a5e94e8e3c889c728869fd2f
-Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
-Date:   Mon Oct 17 02:30:14 2016 +0200
-
-Fix too weak references when linking libpthread statically
-
-* sysdeps/pthread/libc-lockP.h [IS_IN (libpthread)]: Do not make __pthread
-symbols weak.
-
-diff --git a/libpthread/sysdeps/pthread/libc-lockP.h 
b/libpthread/sysdeps/pthread/libc-lockP.h
-index 2631e0c..c04881d 100644
 a/libpthread/sysdeps/pthread/libc-lockP.h
-+++ b/libpthread/sysdeps/pthread/libc-lockP.h
-@@ -106,7 +106,7 @@ extern int __pthread_atfork (void (*__prepare) (void),
- 
- /* Make the pthread functions weak so that we can elide them from
-single-threaded processes.  */
--#ifndef __NO_WEAK_PTHREAD_ALIASES
-+#if !defined(__NO_WEAK_PTHREAD_ALIASES) && !IS_IN (libpthread)
- # ifdef weak_extern
- weak_extern (__pthread_mutex_init)
- weak_extern (__pthread_mutex_destroy)
diff --git a/debian/patches/hurd-i386/cvs-libpthread.diff 
b/debian/patches/hurd-i386/cvs-libpthread.diff
index b335553..022df25 100644
--- a/debian/patches/hurd-i386/cvs-libpthread.diff
+++ b/debian/patches/hurd-i386/cvs-libpthread.diff
@@ -1,11 +1,11 @@
-git diff empty --patch-with-stat --src-prefix=glibc/libpthread/ 
--dst-prefix=glibc/libpthread/ 9705f94a6126281c2a909d8bf3c23fad818183fc
+git diff empty --patch-with-stat --src-prefix=glibc/libpthread/ 
--dst-prefix=glibc/libpthread/ 05babf965ec39be7e1c8a7306ec1c60b1e614654
 from git.savannah.gnu.org:/srv/git/hurd/libpthread.git/
 thus by construction only libpthread/ files, thus hurd-only
-Date:   Sun Oct 9 13:25:00 2016 +0200
+Date:   Tue Oct 18 02:10:41 2016 +0200
 
  ChangeLog |   6 +
- Makeconfig|  12 +
- Makefile  | 335 +++
+ Makeconfig|  13 +
+ Makefile  | 371 
  TODO  | 131 
  Versions  | 146 +
  configure |   2 +
@@ -43,7 +43,8 @@ Date:   Sun Oct 9 13:25:00 2016 +0200
  pthreadP.h|  26 +
  shlib-versions|   1 +
  sysdeps/generic/fork.h|  29 +
- sysdeps/generic/pt-atfork.c   |  33 +
+ sysdeps/generic/old_pt-atfork.c   |  27 +
+ sysdeps/generic/pt-atfork.c   |  34 ++
  sysdeps/generic/pt-attr-destroy.c |  28 +
  sysdeps/generic/pt-attr-getdetachstate.c  |  31 +
  sysdeps/generic/pt-attr-getguardsize.c|  29 +
@@ -232,7 +233,7 @@ Date:   Sun Oct 9 13:25:00 2016 +0200
  tests/test-8.c|  60 ++
  tests/test-9.c|  88 +++
  tests/test-__pthread_destroy_specific-skip.c  |  83 +++
- 229 files changed, 13084 insertions(+)
+ 230 files changed, 13149 insertions(+)
 
 diff --git glibc/libpthread/ChangeLog glibc/libpthread/Chang

[glibc] 01/02: hurd: fix unregistering atfork handlers at library unload.

2016-10-17 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 3702fb1de6c7642b21d4af21e131c2143aa7af9d
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Tue Oct 18 00:18:27 2016 +

hurd: fix unregistering atfork handlers at library unload.

hurd-i386/cvs-pthread-atfork.diff: New patch.
Closes: #841068.
---
 debian/changelog |   2 +
 debian/patches/hurd-i386/cvs-pthread-atfork.diff | 133 +++
 debian/patches/series|   1 +
 3 files changed, 136 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index a6a5d33..24d89bb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,8 @@ glibc (2.24-5) UNRELEASED; urgency=medium
   [ Samuel Thibault ]
   * hurd-i386/cvs-libpthread-static-weak.diff: New patch to fix weak
 references when linking in libpthread statically.
+  * hurd-i386/cvs-pthread-atfork.diff: New patch to fix unregistering atfork
+handlers at library unload. Closes: #841068.
 
  -- Aurelien Jarno <aure...@debian.org>  Sun, 16 Oct 2016 13:08:40 +0200
 
diff --git a/debian/patches/hurd-i386/cvs-pthread-atfork.diff 
b/debian/patches/hurd-i386/cvs-pthread-atfork.diff
new file mode 100644
index 000..57887e1
--- /dev/null
+++ b/debian/patches/hurd-i386/cvs-pthread-atfork.diff
@@ -0,0 +1,133 @@
+commit 05babf965ec39be7e1c8a7306ec1c60b1e614654
+Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Date:   Tue Oct 18 02:10:41 2016 +0200
+
+Fix unregistering atfork handlers on library unload
+
+* sysdeps/generic/old_pt-atfork.c: New file.
+* Makefile (libpthread-routines): Add old_pt-atfork.
+(libpthread-static-only-routines): Add pt-atfork.
+[build-shared=yes] (install): Explicit $(inst_libdir)/libpthread.so
+[build-shared=yes] $(inst_libdir)/libpthread.so: Replace with script to
+link libpthread_nonshared.a in.
+[build-shared=yes] (tests): Link libpthread_nonshared.a in addition to
+libpthread.so.
+(generated): Add libpthread_nonshared.a.
+
+Index: glibc-2.24/libpthread/Makefile
+===
+--- glibc-2.24.orig/libpthread/Makefile
 glibc-2.24/libpthread/Makefile
+@@ -139,6 +139,7 @@ libpthread-routines := pt-attr pt-attr-d
+   pt-sigstate \
+   \
+   pt-atfork   \
++  old_pt-atfork   \
+   pt-kill \
+   pt-getcpuclockid\
+   \
+@@ -154,6 +155,8 @@ libpthread-routines := pt-attr pt-attr-d
+   cthreads-compat \
+   $(SYSDEPS)
+ 
++libpthread-static-only-routines = pt-atfork
++
+ ifeq ($(IN_GLIBC),no)
+ SRCS := $(addsuffix .c,$(libpthread-routines))
+ OBJS = $(addsuffix .o,$(basename $(notdir $(SRCS
+@@ -281,6 +284,39 @@ extra-B-pthread.so = -B$(common-objpfx)l
+ 
+ include ../Rules
+ 
++ifeq (yes,$(build-shared))
++# What we install as libpthread.so for programs to link against is in fact a
++# link script.  It contains references for the various libraries we need.
++# The libpthread.so object is not complete since some functions are only
++# defined in libpthread_nonshared.a.
++# We need to use absolute paths since otherwise local copies (if they exist)
++# of the files are taken by the linker.
++install: $(inst_libdir)/libpthread.so
++
++$(inst_libdir)/libpthread.so: $(common-objpfx)format.lds \
++$(objpfx)libpthread.so$(libpthread.so-version) \
++$(inst_libdir)/$(patsubst %,$(libtype.oS),\
++  $(libprefix)pthread) \
++$(+force)
++  (echo '/* GNU ld script';\
++   echo '   Use the shared library, but some functions are only in';\
++   echo '   the static library, so try that secondarily.  */';\
++   cat $<; \
++   echo 'GROUP ( $(slibdir)/libpthread.so$(libpthread.so-version)' \
++'$(libdir)/$(patsubst %,$(libtype.oS),$(libprefix)pthread)'\
++')' \
++  ) > $@.new
++  mv -f $@.new $@
++
++$(addprefix $(objpfx), \
++  $(filter-out $(tests-static) $(xtests-static) $(tests-reverse) \
++$(tests-nolibpthread), \
++$(tests) $(xtests) $(test-srcs))): $(objpfx)libpthread.so \
++ $(objpfx)libpthread_nonshared.a
++endif
++
++generated += libpthread_nonshared.a
++
+ # Depend on libc.so so a DT_NEEDED is generated in the shared objects.
+ # This ensure

[glibc] 02/02: Merge branch 'sid' of ssh://hurd/usr/src/glibc-2.24 into sid

2016-10-17 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 a5175f336056b00533951dfa6ef7d686b01d9126
Merge: f4ce4cc 3702fb1
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Tue Oct 18 02:21:37 2016 +0200

Merge branch 'sid' of ssh://hurd/usr/src/glibc-2.24 into sid

 debian/changelog |   2 +
 debian/patches/hurd-i386/cvs-pthread-atfork.diff | 133 +++
 debian/patches/series|   1 +
 3 files changed, 136 insertions(+)


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



[glibc] branch sid updated (f4ce4cc -> a5175f3)

2016-10-17 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  f4ce4cc   Fix a typo
   new  3702fb1   hurd: fix unregistering atfork handlers at library unload.
   new  a5175f3   Merge branch 'sid' of ssh://hurd/usr/src/glibc-2.24 into 
sid

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-pthread-atfork.diff | 133 +++
 debian/patches/series|   1 +
 3 files changed, 136 insertions(+)
 create mode 100644 debian/patches/hurd-i386/cvs-pthread-atfork.diff

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



[glibc] 02/02: Merge branch 'sid' of ssh://hurd/usr/src/glibc-2.24 into sid

2016-10-17 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 11f5f65dd4ca80d674acece1f561cf40b7dfd5d1
Merge: a5175f3 37393bd
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Tue Oct 18 02:59:06 2016 +0200

Merge branch 'sid' of ssh://hurd/usr/src/glibc-2.24 into sid

 debian/changelog   | 1 +
 debian/debhelper.in/libc-dev.install.hurd-i386 | 1 +
 2 files changed, 2 insertions(+)


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



[glibc] 01/02: debhelper.in/libc-dev.install.hurd-i386: Install libpthread_nonshared.a

2016-10-17 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 37393bd804dd22f3fd2fc5d779c832edd317fb7d
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Tue Oct 18 00:57:57 2016 +

debhelper.in/libc-dev.install.hurd-i386: Install libpthread_nonshared.a
---
 debian/changelog   | 1 +
 debian/debhelper.in/libc-dev.install.hurd-i386 | 1 +
 2 files changed, 2 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 24d89bb..31abded 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,7 @@ glibc (2.24-5) UNRELEASED; urgency=medium
 references when linking in libpthread statically.
   * hurd-i386/cvs-pthread-atfork.diff: New patch to fix unregistering atfork
 handlers at library unload. Closes: #841068.
+  * debhelper.in/libc-dev.install.hurd-i386: Install libpthread_nonshared.a.
 
  -- Aurelien Jarno <aure...@debian.org>  Sun, 16 Oct 2016 13:08:40 +0200
 
diff --git a/debian/debhelper.in/libc-dev.install.hurd-i386 
b/debian/debhelper.in/libc-dev.install.hurd-i386
index acec73f..32201fb 100644
--- a/debian/debhelper.in/libc-dev.install.hurd-i386
+++ b/debian/debhelper.in/libc-dev.install.hurd-i386
@@ -13,6 +13,7 @@ TMPDIR/LIBDIR/libmcheck.a LIBDIR
 TMPDIR/LIBDIR/libnsl.a LIBDIR
 TMPDIR/LIBDIR/libpthread.a LIBDIR
 TMPDIR/LIBDIR/libpthread2.a LIBDIR
+TMPDIR/LIBDIR/libpthread_nonshared.a LIBDIR
 TMPDIR/LIBDIR/libresolv.a LIBDIR
 TMPDIR/LIBDIR/librpcsvc.a LIBDIR
 TMPDIR/LIBDIR/librt.a LIBDIR

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



[glibc] branch sid updated (a5175f3 -> 11f5f65)

2016-10-17 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  a5175f3   Merge branch 'sid' of ssh://hurd/usr/src/glibc-2.24 into 
sid
   new  37393bd   debhelper.in/libc-dev.install.hurd-i386: Install 
libpthread_nonshared.a
   new  11f5f65   Merge branch 'sid' of ssh://hurd/usr/src/glibc-2.24 into 
sid

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   | 1 +
 debian/debhelper.in/libc-dev.install.hurd-i386 | 1 +
 2 files changed, 2 insertions(+)

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



[glibc] 01/01: hurd: fix SS_ONSTACK support.

2016-10-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 19762292652e99f8fa1e3bc2f66fd5081c484067
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Tue Oct 25 18:35:10 2016 +

hurd: fix SS_ONSTACK support.

hurd-i386/tg-ONSTACK.diff: New patch. Closes: #551470.
---
 debian/changelog |   2 +
 debian/patches/hurd-i386/tg-ONSTACK.diff | 109 +++
 debian/patches/series|   1 +
 3 files changed, 112 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 46c0901..20c86df 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,8 @@ glibc (2.24-6) UNRELEASED; urgency=medium
 - hurd-i386/cvs-setcancelstate.diff: Drop, merged upstream.
   * hurd-i386/tg-libpthread-gsync-spin.diff: New patch to make spinlocks use
 gsync too.
+  * hurd-i386/tg-ONSTACK.diff: New patch to fix SS_ONSTACK support.
+Closes: #551470.
 
   [ Aurelien Jarno ]
   * debian/patches/git-updates.diff: update from upstream stable branch:
diff --git a/debian/patches/hurd-i386/tg-ONSTACK.diff 
b/debian/patches/hurd-i386/tg-ONSTACK.diff
new file mode 100644
index 000..903cb67
--- /dev/null
+++ b/debian/patches/hurd-i386/tg-ONSTACK.diff
@@ -0,0 +1,109 @@
+From: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Subject: [PATCH] Fix SS_ONSTACK support
+
+* sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn2): New function,
+unlocks SS and returns to the saved PC.
+(__sigreturn): Do not unlock SS, and "return" into __sigreturn2 on the
+thread stack instead of the saved PC.
+
+---
+ sysdeps/mach/hurd/i386/sigreturn.c | 68 +++---
+ 1 file changed, 42 insertions(+), 26 deletions(-)
+
+diff --git a/sysdeps/mach/hurd/i386/sigreturn.c 
b/sysdeps/mach/hurd/i386/sigreturn.c
+index 83c0246..204bd47 100644
+--- a/sysdeps/mach/hurd/i386/sigreturn.c
 b/sysdeps/mach/hurd/i386/sigreturn.c
+@@ -24,6 +24,36 @@ register int *sp asm ("%esp");
+ #include 
+ #include 
+ 
++/* This is run on the thread stack after restoring it, to be able to
++   unlock SS off sigstack.  */
++static void
++__sigreturn2 (int *usp)
++{
++  struct hurd_sigstate *ss = _hurd_self_sigstate ();
++  _hurd_sigstate_unlock (ss);
++
++  sp = usp;
++#define A(line) asm volatile (#line)
++  /* The members in the sigcontext are arranged in this order
++ so we can pop them easily.  */
++
++  /* Pop the segment registers (except %cs and %ss, done last).  */
++  A (popl %gs);
++  A (popl %fs);
++  A (popl %es);
++  A (popl %ds);
++  /* Pop the general registers.  */
++  A (popa);
++  /* Pop the processor flags.  */
++  A (popf);
++  /* Return to the saved PC.  */
++  A (ret);
++
++  /* Firewall.  */
++  A (hlt);
++#undef A
++}
++
+ int
+ __sigreturn (struct sigcontext *scp)
+ {
+@@ -67,13 +97,7 @@ __sigreturn (struct sigcontext *scp)
+ }
+ 
+   if (scp->sc_onstack)
+-{
+-  ss->sigaltstack.ss_flags &= ~SS_ONSTACK;
+-  /* XXX cannot unlock until off sigstack */
+-  abort ();
+-}
+-  else
+-_hurd_sigstate_unlock (ss);
++ss->sigaltstack.ss_flags &= ~SS_ONSTACK;
+ 
+   /* Destroy the MiG reply port used by the signal handler, and restore the
+  reply port in use by the thread when interrupted.  */
+@@ -108,27 +132,19 @@ __sigreturn (struct sigcontext *scp)
+ *--usp = scp->sc_efl;
+ memcpy (usp -= 12, >sc_i386_thread_state, 12 * sizeof (int));
+ 
+-sp = usp;
+-
+-#define A(line) asm volatile (#line)
+-/* The members in the sigcontext are arranged in this order
+-   so we can pop them easily.  */
+-
+-/* Pop the segment registers (except %cs and %ss, done last).  */
+-A (popl %gs);
+-A (popl %fs);
+-A (popl %es);
+-A (popl %ds);
+-/* Pop the general registers.  */
+-A (popa);
+-/* Pop the processor flags.  */
+-A (popf);
+-/* Return to the saved PC.  */
+-A (ret);
++/* Pass usp to __sigreturn2 so it can unwind itself easily.  */
++*(usp-1) = (int) usp;
++--usp;
++/* Bogus return address for __sigreturn2 */
++*--usp = 0;
++*--usp = (int) __sigreturn2;
+ 
++/* Restore thread stack */
++sp = usp;
++/* Return into __sigreturn2.  */
++asm volatile ("ret");
+ /* Firewall.  */
+-A (hlt);
+-#undef A
++asm volatile ("hlt");
+   }
+ 
+   /* NOTREACHED */
+-- 
+tg: (ab44f81..) t/ONSTACK (depends on: t/tls-threadvar 
t/hurdsig-global-dispositions)
diff --git a/debian/patches/series b/debian/patches/series
index 9f60b1d..cfb64ec 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -133,6 +133,7 @@ hurd-i386/cvs-adjtime-NULL.diff
 hurd-i386/tg-pthread_deps.diff
 hurd-i386/cvs-mallocfork.diff
 hurd-i386/tg-libpthread-gsync-spin.diff
+hurd-i386/tg-ONSTACK.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 sid updated (3ddb7a5 -> 1976229)

2016-10-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  3ddb7a5   debian/patches/git-updates.diff: update from upstream 
stable branch:
   new  1976229   hurd: fix SS_ONSTACK support.

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/tg-ONSTACK.diff | 109 +++
 debian/patches/series|   1 +
 3 files changed, 112 insertions(+)
 create mode 100644 debian/patches/hurd-i386/tg-ONSTACK.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-libpthread.diff: Update to latest upstream version

2016-10-24 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 15e1c6cc42feae850d8b0c0bb334f0ba4d9194d1
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Mon Oct 24 22:39:58 2016 +0200

hurd-i386/cvs-libpthread.diff: Update to latest upstream version

Avoids raise loop when called before libpthread init.
---
 debian/patches/hurd-i386/cvs-libpthread.diff | 29 +++-
 1 file changed, 16 insertions(+), 13 deletions(-)

diff --git a/debian/patches/hurd-i386/cvs-libpthread.diff 
b/debian/patches/hurd-i386/cvs-libpthread.diff
index 022df25..99f344d 100644
--- a/debian/patches/hurd-i386/cvs-libpthread.diff
+++ b/debian/patches/hurd-i386/cvs-libpthread.diff
@@ -1,13 +1,13 @@
-git diff empty --patch-with-stat --src-prefix=glibc/libpthread/ 
--dst-prefix=glibc/libpthread/ 05babf965ec39be7e1c8a7306ec1c60b1e614654
+git diff empty --patch-with-stat --src-prefix=glibc/libpthread/ 
--dst-prefix=glibc/libpthread/ 79e9d2b78ec0747a94731d45e0e5149269e96159
 from git.savannah.gnu.org:/srv/git/hurd/libpthread.git/
 thus by construction only libpthread/ files, thus hurd-only
-Date:   Tue Oct 18 02:10:41 2016 +0200
+Date:   Mon Oct 24 22:34:36 2016 +0200
 
  ChangeLog |   6 +
  Makeconfig|  13 +
  Makefile  | 371 
  TODO  | 131 
- Versions  | 146 +
+ Versions  | 147 +
  configure |   2 +
  configure.in  |   4 +
  forward.c | 280 +
@@ -40,7 +40,7 @@ Date:   Tue Oct 18 02:10:41 2016 +0200
  pthread/pt-spin-inlines.c |  34 ++
  pthread/pt-testcancel.c   |  36 ++
  pthread/pt-yield.c|  26 +
- pthreadP.h|  26 +
+ pthreadP.h|  27 +
  shlib-versions|   1 +
  sysdeps/generic/fork.h|  29 +
  sysdeps/generic/old_pt-atfork.c   |  27 +
@@ -138,7 +138,7 @@ Date:   Tue Oct 18 02:10:41 2016 +0200
  sysdeps/generic/pt-setschedprio.c |  29 +
  sysdeps/generic/pt-setspecific.c  |  27 +
  sysdeps/generic/pt-startup.c  |  25 +
- sysdeps/generic/raise.c   |  50 ++
+ sysdeps/generic/raise.c   |  51 ++
  sysdeps/generic/sem-close.c   |  32 +
  sysdeps/generic/sem-destroy.c |  38 ++
  sysdeps/generic/sem-getvalue.c|  33 +
@@ -233,7 +233,7 @@ Date:   Tue Oct 18 02:10:41 2016 +0200
  tests/test-8.c|  60 ++
  tests/test-9.c|  88 +++
  tests/test-__pthread_destroy_specific-skip.c  |  83 +++
- 230 files changed, 13149 insertions(+)
+ 230 files changed, 13152 insertions(+)
 
 diff --git glibc/libpthread/ChangeLog glibc/libpthread/ChangeLog
 new file mode 100644
@@ -782,10 +782,10 @@ index 000..979c38c
 +   http://sources.redhat.com/ml/libc-alpha/2002-08/msg00278.html.
 diff --git glibc/libpthread/Versions glibc/libpthread/Versions
 new file mode 100644
-index 000..089c6b5
+index 000..4ad3c3e
 --- /dev/null
 +++ glibc/libpthread/Versions
-@@ -0,0 +1,146 @@
+@@ -0,0 +1,147 @@
 +libc {
 +  GLIBC_2.13 {
 +pthread_attr_destroy; pthread_attr_getdetachstate;
@@ -930,6 +930,7 @@ index 000..089c6b5
 +  }
 +  GLIBC_PRIVATE {
 +__shm_directory;
++__pthread_threads;
 +  }
 +}
 diff --git glibc/libpthread/configure glibc/libpthread/configure
@@ -4305,10 +4306,10 @@ index 000..27848bb
 +}
 diff --git glibc/libpthread/pthreadP.h glibc/libpthread/pthreadP.h
 new file mode 100644
-index 000..f1fd625
+index 000..97e3028
 --- /dev/null
 +++ glibc/libpthread/pthreadP.h
-@@ -0,0 +1,26 @@
+@@ -0,0 +1,27 @@
 +/* Copyright (C) 2016 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +
@@ -4333,6 +4334,7 @@ index 000..f1fd625
 +
 +extern pthread_t __pthread_self (void);
 +extern int __pthread_kill (pthread_t threadid, int signo);
++extern struct __pthread **__pthread_threads;
 +
 +#endif/* pthreadP.h */
 diff --git glibc/libpthread/shlib-versions glibc/libpthread/shlib-versions
@@ -8906,10 +8908,10 @@ index 000..c21a181
 +}
 diff --git glibc/libpthread/sysdeps/generic/raise.c 
glibc/libpthread/sysdeps/generic/raise.c
 new file mode 100644
-index 000..cc18b39
+index 000..b98cf51
 --- /dev/null
 +++ glibc/libpthread/sysdeps/generic/raise.c
-@@ -0,0 +1,50 @@
+@@ -0,0 +1,51 @@
 +/* raise.c - Generic raise implementation.
 +   Copyright (C) 2008 Free Software Foundation, Inc.
 +   Written by Neal H. Walfield <n...@gnu.org>

[glibc] branch sid updated (ce63088 -> 15e1c6c)

2016-10-24 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  ce63088   hurd: make spinlocks use gsync too
   new  15e1c6c   hurd-i386/cvs-libpthread.diff: Update to latest upstream 
version

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/cvs-libpthread.diff | 29 +++-
 1 file changed, 16 insertions(+), 13 deletions(-)

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



[glibc] 01/01: hurd: Fix passing address to legacy SIGBUS handlers

2016-11-22 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 d6afedeea4f84c3b7ae4999ef402ef0bb53d821e
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Tue Nov 22 13:29:12 2016 +0100

hurd: Fix passing address to legacy SIGBUS handlers

  * hurd-i386/tg-hurdsig-SA_SIGINFO.diff
---
 debian/changelog| 4 +++-
 debian/patches/hurd-i386/tg-hurdsig-SA_SIGINFO.diff | 4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 6aec291..8764990 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
 glibc (2.24-7) UNRELEASED; urgency=medium
 
-  * 
+  [ Samuel Thibault ]
+  * hurd-i386/tg-hurdsig-SA_SIGINFO.diff: Fix passing address to legacy SIGBUS
+handlers.
 
  -- Aurelien Jarno <aure...@debian.org>  Mon, 21 Nov 2016 19:24:59 +0100
 
diff --git a/debian/patches/hurd-i386/tg-hurdsig-SA_SIGINFO.diff 
b/debian/patches/hurd-i386/tg-hurdsig-SA_SIGINFO.diff
index 8cd10cb..af85e72 100644
--- a/debian/patches/hurd-i386/tg-hurdsig-SA_SIGINFO.diff
+++ b/debian/patches/hurd-i386/tg-hurdsig-SA_SIGINFO.diff
@@ -193,7 +193,7 @@ index 6d15b03..8b8586a 100644
  #define FPE_INTOVF_TRAP   0x1 /* integer overflow */
  #define FPE_INTDIV_FAULT  0x2 /* integer divide by zero */
 diff --git a/sysdeps/mach/hurd/i386/exc2signal.c 
b/sysdeps/mach/hurd/i386/exc2signal.c
-index bf0ca2e..b2606c4 100644
+index bf0ca2e..feb9e2d 100644
 --- a/sysdeps/mach/hurd/i386/exc2signal.c
 +++ b/sysdeps/mach/hurd/i386/exc2signal.c
 @@ -23,8 +23,8 @@
@@ -234,7 +234,7 @@ index bf0ca2e..b2606c4 100644
 +
 +  default:
 +*signo = SIGBUS;
-+detail->code = 0;
++detail->code = posix ? BUS_ADRERR : detail->exc_subcode;
 +break;
 +  }
detail->error = detail->exc_code;

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



[glibc] branch sid updated (2abdf5b -> d6afede)

2016-11-22 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  2abdf5b   New changelog entry
   new  d6afede   hurd: Fix passing address to legacy SIGBUS handlers

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/tg-hurdsig-SA_SIGINFO.diff | 4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)

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



[glibc] branch sid updated (d6afede -> f0a8190)

2016-11-22 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  d6afede   hurd: Fix passing address to legacy SIGBUS handlers
   new  f0a8190   hurd-i386/tg-libpthread-gsync-mutex.diff: New patch to 
make mutexes use gsync too.

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 +
 .../hurd-i386/tg-libpthread-gsync-mutex.diff   | 822 +
 debian/patches/series  |   1 +
 3 files changed, 825 insertions(+)
 create mode 100644 debian/patches/hurd-i386/tg-libpthread-gsync-mutex.diff

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



[glibc] branch sid updated (3c1709f -> 07efa62)

2016-11-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  3c1709f   hurd: work around fakeroot-tcp issue
   new  07efa62   hurd-i386/cvs-hurd_signal.h_c++.diff: New patch to fix 
building gdb

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   |  1 +
 .../patches/hurd-i386/cvs-hurd_signal.h_c++.diff   | 35 ++
 debian/patches/series  |  1 +
 3 files changed, 37 insertions(+)
 create mode 100644 debian/patches/hurd-i386/cvs-hurd_signal.h_c++.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-hurd_signal.h_c++.diff: New patch to fix building gdb

2016-11-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 07efa6207f56ecbcb429897b967b1df74bd31460
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Sun Nov 27 17:30:52 2016 +0100

hurd-i386/cvs-hurd_signal.h_c++.diff: New patch to fix building gdb
---
 debian/changelog   |  1 +
 .../patches/hurd-i386/cvs-hurd_signal.h_c++.diff   | 35 ++
 debian/patches/series  |  1 +
 3 files changed, 37 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 8a468d3..edee79f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ glibc (2.24-8) UNRELEASED; urgency=medium
   [ Samuel Thibault ]
   * hurd-i386/tg-libc_rwlock_recursive.diff: New patch to work around
 fakeroot-tcp issue, see #845930.
+  * hurd-i386/cvs-hurd_signal.h_c++.diff: New patch to fix building gdb.
 
  -- Aurelien Jarno <aure...@debian.org>  Fri, 25 Nov 2016 23:09:39 +0100
 
diff --git a/debian/patches/hurd-i386/cvs-hurd_signal.h_c++.diff 
b/debian/patches/hurd-i386/cvs-hurd_signal.h_c++.diff
new file mode 100644
index 000..1fddeb9
--- /dev/null
+++ b/debian/patches/hurd-i386/cvs-hurd_signal.h_c++.diff
@@ -0,0 +1,35 @@
+commit 2dacdc5eb0171078eeb96b12b0761f533a62f70e
+Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Date:   Sun Nov 27 17:22:22 2016 +0100
+
+hurd: fix using hurd/signal.h in C++ programs
+
+* hurd/hurd/signal.h (HURD_MSGPORT_RPC): Cast expressions results 
to
+error_t to fix usage in C++ programs.
+
+diff --git a/hurd/hurd/signal.h b/hurd/hurd/signal.h
+index 85e5152..96f42d5 100644
+--- a/hurd/hurd/signal.h
 b/hurd/hurd/signal.h
+@@ -340,18 +340,18 @@ extern mach_msg_timeout_t _hurd_interrupted_rpc_timeout;
+ do
  \
+   {   
  \
+   /* Get the message port.  */  \
+-  __err = (fetch_msgport_expr); \
++  __err = (error_t) (fetch_msgport_expr);   \
+   if (__err)\
+ break;  \
+   /* Get the reference port.  */\
+-  __err = (fetch_refport_expr); \
++  __err = (error_t) (fetch_refport_expr);   \
+   if (__err)\
+ {   \
+   /* Couldn't get it; deallocate MSGPORT and fail.  */  \
+   __mach_port_deallocate (__mach_task_self (), msgport);\
+   break;\
+ }   \
+-  __err = (rpc_expr);   \
++  __err = (error_t) (rpc_expr); \
+   __mach_port_deallocate (__mach_task_self (), msgport);\
+   if ((dealloc_refport) && refport != MACH_PORT_NULL)   \
+ __mach_port_deallocate (__mach_task_self (), refport);  \
diff --git a/debian/patches/series b/debian/patches/series
index c4d05ee..b829544 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -139,6 +139,7 @@ hurd-i386/tg-libpthread-gsync-mutex.diff
 hurd-i386/tg-NOFOLLOW.diff
 hurd-i386/tg-NOFOLLOW-DIRECTORY.diff
 hurd-i386/tg-libc_rwlock_recursive.diff
+hurd-i386/cvs-hurd_signal.h_c++.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 sid updated (f0a8190 -> 5832eb4)

2016-11-22 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  f0a8190   hurd-i386/tg-libpthread-gsync-mutex.diff: New patch to 
make mutexes use gsync too.
   new  5832eb4   hurd-i386/tg-NOFOLLOW.diff: New patch to fix O_NOFOLLOW 
errors

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  |  1 +
 debian/patches/hurd-i386/tg-NOFOLLOW.diff | 73 +++
 debian/patches/series |  1 +
 3 files changed, 75 insertions(+)
 create mode 100644 debian/patches/hurd-i386/tg-NOFOLLOW.diff

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



[glibc] 01/01: hurd-i386/tg-NOFOLLOW-DIRECTORY.diff: New patch to fix O_NOFOLLOW | O_DIRECTORY errors.

2016-11-22 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 670b030516b7106ae8fda67396d874c164b0a7b7
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Wed Nov 23 01:08:19 2016 +0100

hurd-i386/tg-NOFOLLOW-DIRECTORY.diff: New patch to fix O_NOFOLLOW | 
O_DIRECTORY errors.
---
 debian/changelog   |  2 +
 .../patches/hurd-i386/tg-NOFOLLOW-DIRECTORY.diff   | 44 ++
 debian/patches/series  |  1 +
 3 files changed, 47 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 478f46b..8057df7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,8 @@ glibc (2.24-7) UNRELEASED; urgency=medium
   * hurd-i386/tg-libpthread-gsync-mutex.diff: New patch to make mutexes use
 gsync too.
   * hurd-i386/tg-NOFOLLOW.diff: New patch to fix O_NOFOLLOW errors.
+  * hurd-i386/tg-NOFOLLOW-DIRECTORY.diff: New patch to fix O_NOFOLLOW |
+O_DIRECTORY errors.
 
  -- Aurelien Jarno <aure...@debian.org>  Mon, 21 Nov 2016 19:24:59 +0100
 
diff --git a/debian/patches/hurd-i386/tg-NOFOLLOW-DIRECTORY.diff 
b/debian/patches/hurd-i386/tg-NOFOLLOW-DIRECTORY.diff
new file mode 100644
index 000..cf93670
--- /dev/null
+++ b/debian/patches/hurd-i386/tg-NOFOLLOW-DIRECTORY.diff
@@ -0,0 +1,44 @@
+From: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Subject: [PATCH] hurd: Fix O_DIRECTORY | O_NOFOLLOW
+
+Appending / to the path to be looked up makes us always follow a final
+symlink, even with O_NOTRANS (since the final resolution is after the
+'/').  In the O_DIRECTORY | O_NOFOLLOW case, we thus have to really open
+the node and stat it, which we already do anyway, and check for
+directory type.
+
+Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+
+---
+ hurd/hurdlookup.c   | 2 +-
+ hurd/lookup-retry.c | 2 ++
+ 2 files changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/hurd/hurdlookup.c b/hurd/hurdlookup.c
+index dbff009..bd720c2 100644
+--- a/hurd/hurdlookup.c
 b/hurd/hurdlookup.c
+@@ -72,7 +72,7 @@ __hurd_file_name_lookup (error_t (*use_init_port)
+   if (flags & O_NOFOLLOW) /* See lookup-retry.c about O_NOFOLLOW.  */
+ flags |= O_NOTRANS;
+ 
+-  if (flags & O_DIRECTORY)
++  if (flags & O_DIRECTORY && !(flags & O_NOFOLLOW))
+ {
+   /* The caller wants to require that the file we look up is a directory.
+We can do this without an extra RPC by appending a trailing slash
+diff --git a/hurd/lookup-retry.c b/hurd/lookup-retry.c
+index b7a6a2b..d372959 100644
+--- a/hurd/lookup-retry.c
 b/hurd/lookup-retry.c
+@@ -147,6 +147,8 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port)
+ err = __io_stat (*result, );
+ if (!err)
+   {
++if (flags & O_DIRECTORY && !S_ISDIR(st.st_mode))
++  err = ENOTDIR;
+ if (S_ISLNK(st.st_mode))
+   err = ELOOP;
+ else if (st.st_mode & (S_IPTRANS|S_IATRANS))
+-- 
+tg: (2bc1a49..) t/NOFOLLOW-DIRECTORY (depends on: t/NOFOLLOW)
diff --git a/debian/patches/series b/debian/patches/series
index 575ca65..e56c952 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -137,6 +137,7 @@ hurd-i386/tg-libpthread-gsync-spin.diff
 hurd-i386/tg-ONSTACK.diff
 hurd-i386/tg-libpthread-gsync-mutex.diff
 hurd-i386/tg-NOFOLLOW.diff
+hurd-i386/tg-NOFOLLOW-DIRECTORY.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 sid updated (5832eb4 -> 670b030)

2016-11-22 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  5832eb4   hurd-i386/tg-NOFOLLOW.diff: New patch to fix O_NOFOLLOW 
errors
   new  670b030   hurd-i386/tg-NOFOLLOW-DIRECTORY.diff: New patch to fix 
O_NOFOLLOW | O_DIRECTORY errors.

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 +
 .../patches/hurd-i386/tg-NOFOLLOW-DIRECTORY.diff   | 44 ++
 debian/patches/series  |  1 +
 3 files changed, 47 insertions(+)
 create mode 100644 debian/patches/hurd-i386/tg-NOFOLLOW-DIRECTORY.diff

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



[glibc] 01/01: new changelog entry

2016-11-26 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 e5d4f5df7c48e55f48e80e361f457490b88610a3
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Sun Nov 27 02:18:37 2016 +0100

new changelog entry
---
 debian/changelog | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index a362694..936ee75 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+glibc (2.24-8) UNRELEASED; urgency=medium
+
+  * 
+
+ -- Aurelien Jarno <aure...@debian.org>  Fri, 25 Nov 2016 23:09:39 +0100
+
 glibc (2.24-7) unstable; urgency=medium
 
   [ Samuel Thibault ]

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



[glibc] 01/01: hurd-i386/tg-libpthread-gsync-mutex.diff: New patch to make mutexes use gsync too.

2016-11-22 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 f0a819028741b56fa93406653b0a529f1ba3c686
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Tue Nov 22 19:13:02 2016 +

hurd-i386/tg-libpthread-gsync-mutex.diff: New patch to make mutexes use 
gsync too.
---
 debian/changelog   |   2 +
 .../hurd-i386/tg-libpthread-gsync-mutex.diff   | 822 +
 debian/patches/series  |   1 +
 3 files changed, 825 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 8764990..a1c3a85 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ glibc (2.24-7) UNRELEASED; urgency=medium
   [ Samuel Thibault ]
   * hurd-i386/tg-hurdsig-SA_SIGINFO.diff: Fix passing address to legacy SIGBUS
 handlers.
+  * hurd-i386/tg-libpthread-gsync-mutex.diff: New patch to make mutexes use
+gsync too.
 
  -- Aurelien Jarno <aure...@debian.org>  Mon, 21 Nov 2016 19:24:59 +0100
 
diff --git a/debian/patches/hurd-i386/tg-libpthread-gsync-mutex.diff 
b/debian/patches/hurd-i386/tg-libpthread-gsync-mutex.diff
new file mode 100644
index 000..f245153
--- /dev/null
+++ b/debian/patches/hurd-i386/tg-libpthread-gsync-mutex.diff
@@ -0,0 +1,822 @@
+commit 7343f91b7ec3487c1f0b63bfd437bb9dd82ae2a5
+Author: Agustina Arzille <avarzi...@riseup.net>
+Date:   Mon Oct 17 00:56:58 2016 +0200
+
+Make pthread_mutex use gsync
+
+diff --git a/libpthread/include/pthread/pthread.h 
b/libpthread/include/pthread/pthread.h
+index 3aa6a93..c7742e8 100644
+--- a/libpthread/include/pthread/pthread.h
 b/libpthread/include/pthread/pthread.h
+@@ -271,6 +271,11 @@ extern pthread_t pthread_self (void) __THROW;
+ #define PTHREAD_MUTEX_FAST_NP PTHREAD_MUTEX_TIMED_NP
+ #endif
+ 
++#ifdef __USE_XOPEN2K
++#define PTHREAD_MUTEX_STALLED __PTHREAD_MUTEX_STALLED
++#define PTHREAD_MUTEX_ROBUST __PTHREAD_MUTEX_ROBUST
++#endif
++
+ #include 
+ 
+ /* Initialize the mutex attribute object in *ATTR to the default
+@@ -399,6 +404,18 @@ extern int pthread_mutex_setprioceiling (pthread_mutex_t 
*__restrict __mutex,
+   __THROW __nonnull ((1, 3));
+ #endif
+ 
++#ifdef __USE_XOPEN2K8
++
++/* Declare the state protected by robust mutex MTXP as consistent. */
++extern int pthread_mutex_consistent (pthread_mutex_t *__mtxp)
++  __THROW __nonnull ((1));
++
++#  ifdef __USE_GNU
++extern int pthread_mutex_consistent_np (pthread_mutex_t *__mtxp)
++  __THROW __nonnull ((1));
++#  endif
++#endif
++
+ 
+ 
+ /* Condition attributes.  */
+diff --git a/libpthread/include/pthread/pthreadtypes.h 
b/libpthread/include/pthread/pthreadtypes.h
+index 33bd009..d8aed4d 100644
+--- a/libpthread/include/pthread/pthreadtypes.h
 b/libpthread/include/pthread/pthreadtypes.h
+@@ -77,6 +77,12 @@ enum __pthread_mutex_type
+ __PTHREAD_MUTEX_RECURSIVE
+   };
+ 
++enum __pthread_mutex_robustness
++  {
++__PTHREAD_MUTEX_STALLED,
++__PTHREAD_MUTEX_ROBUST = 0x100
++  };
++
+ #include 
+ typedef struct __pthread_mutexattr pthread_mutexattr_t;
+ 
+diff --git a/libpthread/sysdeps/mach/hurd/bits/mutex.h 
b/libpthread/sysdeps/mach/hurd/bits/mutex.h
+new file mode 100644
+index 000..a52a2ad
+--- /dev/null
 b/libpthread/sysdeps/mach/hurd/bits/mutex.h
+@@ -0,0 +1,64 @@
++/* Mutex type.  Generic version.
++
++   Copyright (C) 2000-2016
++ 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 Library General Public License as
++   published by the Free Software Foundation; either version 2 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
++   Library General Public License for more details.
++
++   You should have received a copy of the GNU Library General Public
++   License along with the GNU C Library; see the file COPYING.LIB.  If not,
++   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
++   Boston, MA 02111-1307, USA.  */
++
++#ifndef _BITS_MUTEX_H
++
++#ifndef __need_pthread_mutex
++# define _BITS_MUTEX_H1
++#endif
++
++#ifndef __pthread_mutex_defined
++# if defined __need_pthread_mutex || defined _BITS_MUTEX_H
++#  undef __need_pthread_mutex
++#  define __pthread_mutex_defined
++
++#  include 
++
++/* User visible part of a mutex.  */
++struct __pthread_mutex
++{
++  unsigned int __lock;
++  unsigned int __owner_id;
++  unsigned int __cnt;
++  int __shpid;
++  int __type;
++  int __flags;
++  unsigned int __reserved1;
++  unsigned int __reserved2;
++};
++
++/* Static mutex initializers. */
++#define __PTHREAD_MUTEX_INITIALIZER   \
++  { 0, 0, 0, 0, __PTHREAD_MU

[glibc] 01/01: hurd-i386/tg-hurdsig-SA_SIGINFO.diff: Update to upstream

2016-11-16 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 e3180c4a212e948741ae19ebad8fd8feea650a1a
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Wed Nov 16 23:30:00 2016 +0100

hurd-i386/tg-hurdsig-SA_SIGINFO.diff: Update to upstream
---
 debian/changelog   |  1 +
 .../patches/hurd-i386/tg-hurdsig-SA_SIGINFO.diff   | 95 ++
 2 files changed, 80 insertions(+), 16 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index dc0ad3f..8fdb356 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -14,6 +14,7 @@ glibc (2.24-6) UNRELEASED; urgency=medium
   * hurd-i386/tg-extern_inline.diff: Update to upstream.
 - hurd-i386/tg-sigstate_thread_reference.diff: Refresh.
 - hurd-i386/tg-gsync-libc.diff: Refresh.
+  * hurd-i386/tg-hurdsig-SA_SIGINFO.diff: Update to upstream.
 
   [ Aurelien Jarno ]
   * debian/patches/git-updates.diff: update from upstream stable branch:
diff --git a/debian/patches/hurd-i386/tg-hurdsig-SA_SIGINFO.diff 
b/debian/patches/hurd-i386/tg-hurdsig-SA_SIGINFO.diff
index f002216..8cd10cb 100644
--- a/debian/patches/hurd-i386/tg-hurdsig-SA_SIGINFO.diff
+++ b/debian/patches/hurd-i386/tg-hurdsig-SA_SIGINFO.diff
@@ -6,21 +6,24 @@ Subject: [PATCH] implement SA_SIGINFO signal handlers.
 1831cfe Hurd signals: Use POSIX sigcodes
 
 ---
- hurd/hurd/signal.h   |5 +
+ hurd/hurd/signal.h   |   5 ++
+ hurd/hurd/sigpreempt.h   |   4 +-
  hurd/hurdfault.c |2 +-
  hurd/hurdinit.c  |2 +-
  hurd/hurdsig.c   |2 +-
  sysdeps/mach/hurd/bits/sigaction.h   |   81 
  sysdeps/mach/hurd/i386/bits/sigcontext.h |4 +
- sysdeps/mach/hurd/i386/exc2signal.c  |  123 
+++
- sysdeps/mach/hurd/i386/trampoline.c  |  113 ++--
- sysdeps/mach/hurd/kill.c |2 
- sysdeps/mach/hurd/setitimer.c|2 
- 8 files changed, 274 insertions(+), 58 deletions(-)
+ sysdeps/mach/hurd/i386/exc2signal.c  | 123 +++---
+ sysdeps/mach/hurd/i386/trampoline.c  | 126 ---
+ sysdeps/mach/hurd/kill.c |   2 +-
+ sysdeps/mach/hurd/setitimer.c|   2 +-
+ 12 files changed, 316 insertions(+), 71 deletions(-)
 
+diff --git a/hurd/hurd/signal.h b/hurd/hurd/signal.h
+index 14955c4..206fd81 100644
 --- a/hurd/hurd/signal.h
 +++ b/hurd/hurd/signal.h
-@@ -274,6 +274,11 @@ extern void _hurd_raise_signal (struct h
+@@ -261,6 +261,11 @@ extern int _hurd_raise_signal (struct hurd_sigstate *ss, 
int signo,
  extern void _hurd_exception2signal (struct hurd_signal_detail *detail,
int *signo);
  
@@ -32,6 +35,24 @@ Subject: [PATCH] implement SA_SIGINFO signal handlers.
  
  /* Make the thread described by SS take the signal described by SIGNO and
 DETAIL.  If the process is traced, this will in fact stop with a SIGNO
+diff --git a/hurd/hurd/sigpreempt.h b/hurd/hurd/sigpreempt.h
+index 3a1eaf2..75dcd59 100644
+--- a/hurd/hurd/sigpreempt.h
 b/hurd/hurd/sigpreempt.h
+@@ -46,9 +46,9 @@ struct hurd_signal_preemptor
+ struct hurd_signal_preemptor *next;   /* List structure.  */
+   };
+ 
+-#define HURD_PREEMPT_SIGNAL_P(preemptor, signo, sigcode) \
++#define HURD_PREEMPT_SIGNAL_P(preemptor, signo, address) \
+   (((preemptor)->signals & sigmask (signo)) && \
+-   (sigcode) >= (preemptor)->first && (sigcode) <= (preemptor)->last)
++   (address) >= (preemptor)->first && (address) <= (preemptor)->last)
+ 
+ 
+ /* Signal preemptors applying to all threads; locked by _hurd_siglock.  */
+diff --git a/hurd/hurdfault.c b/hurd/hurdfault.c
+index 9016227..e2f6e5c 100644
 --- a/hurd/hurdfault.c
 +++ b/hurd/hurdfault.c
 @@ -70,7 +70,7 @@ _hurdsig_fault_catch_exception_raise (mach_port_t port,
@@ -43,6 +64,8 @@ Subject: [PATCH] implement SA_SIGINFO signal handlers.
  ? 0 : EGREGIOUS;
  }
  
+diff --git a/hurd/hurdinit.c b/hurd/hurdinit.c
+index 02d0134..a310404 100644
 --- a/hurd/hurdinit.c
 +++ b/hurd/hurdinit.c
 @@ -174,7 +174,7 @@ _hurd_new_proc_init (char **argv,
@@ -54,6 +77,8 @@ Subject: [PATCH] implement SA_SIGINFO signal handlers.
  }
  
  #include 
+diff --git a/hurd/hurdsig.c b/hurd/hurdsig.c
+index fd04974..b03dad4 100644
 --- a/hurd/hurdsig.c
 +++ b/hurd/hurdsig.c
 @@ -710,7 +710,7 @@ post_signal (struct hurd_sigstate *ss,
@@ -65,10 +90,13 @@ Subject: [PATCH] implement SA_SIGINFO signal handlers.
  {
if (pe->preemptor)
  {
+diff --git a/sysdeps/mach/hurd/bits/sigaction.h 
b/sysdeps/mach/hurd/bits/sigaction.h
+new file mode 100644
+index 000..7204fc6
 --- /dev/null
 +++ b/sysdeps/mach/hurd/bits/sigaction.h

[glibc] branch sid updated (1966184 -> e3180c4)

2016-11-16 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  1966184   Add bug number
   new  e3180c4   hurd-i386/tg-hurdsig-SA_SIGINFO.diff: Update to upstream

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   |  1 +
 .../patches/hurd-i386/tg-hurdsig-SA_SIGINFO.diff   | 95 ++
 2 files changed, 80 insertions(+), 16 deletions(-)

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



[glibc] branch sid updated (e3180c4 -> 50f8127)

2016-11-20 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  e3180c4   hurd-i386/tg-hurdsig-SA_SIGINFO.diff: Update to upstream
   new  50f8127   fix grammar in french translation.

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/tg-EGREGIOUS-fr.diff | 26 ++
 debian/patches/series |  1 +
 3 files changed, 29 insertions(+)
 create mode 100644 debian/patches/hurd-i386/tg-EGREGIOUS-fr.diff

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



[glibc] 01/01: fix grammar in french translation.

2016-11-20 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 50f8127cd11b4761a499f841918d6ec36cf2de58
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Sun Nov 20 14:58:55 2016 +0100

fix grammar in french translation.

  * hurd-i386/tg-EGREGIOUS-fr.diff: New patch
---
 debian/changelog  |  2 ++
 debian/patches/hurd-i386/tg-EGREGIOUS-fr.diff | 26 ++
 debian/patches/series |  1 +
 3 files changed, 29 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 8fdb356..ecaad76 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -15,6 +15,8 @@ glibc (2.24-6) UNRELEASED; urgency=medium
 - hurd-i386/tg-sigstate_thread_reference.diff: Refresh.
 - hurd-i386/tg-gsync-libc.diff: Refresh.
   * hurd-i386/tg-hurdsig-SA_SIGINFO.diff: Update to upstream.
+  * hurd-i386/tg-EGREGIOUS-fr.diff: New patch to fix grammar in french
+translation.
 
   [ Aurelien Jarno ]
   * debian/patches/git-updates.diff: update from upstream stable branch:
diff --git a/debian/patches/hurd-i386/tg-EGREGIOUS-fr.diff 
b/debian/patches/hurd-i386/tg-EGREGIOUS-fr.diff
new file mode 100644
index 000..5e3f3fe
--- /dev/null
+++ b/debian/patches/hurd-i386/tg-EGREGIOUS-fr.diff
@@ -0,0 +1,26 @@
+From: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Subject: [PATCH] t/EGREGIOUS-fr
+
+Fix grammar in french translation for EGREGIOUS
+
+Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+
+---
+ po/fr.po | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/po/fr.po b/po/fr.po
+index 65f9a6a..0065098 100644
+--- a/po/fr.po
 b/po/fr.po
+@@ -6459,7 +6459,7 @@ msgstr " ?"
+ #. TRANS You did @strong{what}?
+ #: sysdeps/gnu/errlist.c:977
+ msgid "You really blew it this time"
+-msgstr "Vous avez vraiment tout gâcher cette fois-ci"
++msgstr "Vous avez vraiment tout gâché cette fois-ci"
+ 
+ #. TRANS Go home and have a glass of warm, dairy-fresh milk.
+ #: sysdeps/gnu/errlist.c:986
+-- 
+tg: (7bb5f8a..) t/EGREGIOUS-fr (depends on: baseline)
diff --git a/debian/patches/series b/debian/patches/series
index be2a3d0..3fc5692 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -99,6 +99,7 @@ hurd-i386/tg-ifaddrs_v6.diff
 hurd-i386/tg-remap_getcwd.diff
 hurd-i386/tg-exec-static.diff
 hurd-i386/tg-EIEIO-fr.diff
+hurd-i386/tg-EGREGIOUS-fr.diff
 hurd-i386/tg-io_select_timeout.diff
 hurd-i386/tg-poll_errors_fixes.diff
 hurd-i386/unsubmitted-clock_t_centiseconds.diff

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



[glibc] branch sid updated (dcb6fbc -> 032bb88)

2016-10-10 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  dcb6fbc   Drop unused variable
   new  032bb88   Fix warning by adding missing includes

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 | 14 ++
 1 file changed, 14 insertions(+)

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



[glibc] 01/01: Add missing include to fix warning

2016-10-10 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 d97930674d5b8ea2a557bc32220e7f8b70f2b45f
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Tue Oct 11 00:07:03 2016 +0200

Add missing include to fix warning
---
 debian/patches/hurd-i386/tg-sysvshm.diff | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/patches/hurd-i386/tg-sysvshm.diff 
b/debian/patches/hurd-i386/tg-sysvshm.diff
index 74c8c64..984d0eb 100644
--- a/debian/patches/hurd-i386/tg-sysvshm.diff
+++ b/debian/patches/hurd-i386/tg-sysvshm.diff
@@ -235,7 +235,7 @@ Subject: [PATCH] Implement SysV shared memory for GNU/Hurd.
 +}
 --- /dev/null
 +++ b/sysdeps/mach/hurd/shmat.c
-@@ -0,0 +1,78 @@
+@@ -0,0 +1,79 @@
 +/* Copyright (C) 2005 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +
@@ -257,6 +257,7 @@ Subject: [PATCH] Implement SysV shared memory for GNU/Hurd.
 +#include 
 +#include 
 +#include 
++#include 
 +#include 
 +#include 
 +#include 

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



[glibc] 01/01: Fix warning by adding missing includes

2016-10-10 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 032bb8840cc246f0edef446b27bd8aa83add9232
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Tue Oct 11 00:05:14 2016 +0200

Fix warning by adding missing includes
---
 debian/patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff | 14 ++
 1 file changed, 14 insertions(+)

diff --git a/debian/patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff 
b/debian/patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff
index 05eca27..7ce7a7f 100644
--- a/debian/patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff
+++ b/debian/patches/hurd-i386/tg-sendmsg-SCM_CREDS.diff
@@ -188,6 +188,20 @@ 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
+@@ -19,11 +19,13 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #include 
+ #include 
+ #include 
+ #include 
++#include 
+ #include "hurd/hurdsocket.h"
+ 
+ /* Send a message described MESSAGE on socket FD.
 @@ -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)))

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



[glibc] branch sid updated (032bb88 -> d979306)

2016-10-10 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  032bb88   Fix warning by adding missing includes
   new  d979306   Add missing include to fix warning

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-sysvshm.diff | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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



[glibc] 02/02: refresh

2016-10-10 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 195e2965db404f6b4a32887b96d46b6cc5495458
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Mon Oct 10 22:52:57 2016 +

refresh
---
 debian/patches/hurd-i386/libpthread_version.diff | 10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/debian/patches/hurd-i386/libpthread_version.diff 
b/debian/patches/hurd-i386/libpthread_version.diff
index 19661b4..4d78c86 100644
--- a/debian/patches/hurd-i386/libpthread_version.diff
+++ b/debian/patches/hurd-i386/libpthread_version.diff
@@ -124,9 +124,9 @@ Index: glibc-2.24/libpthread/forward.c
 ===
 --- glibc-2.24.orig/libpthread/forward.c
 +++ glibc-2.24/libpthread/forward.c
-@@ -23,20 +23,42 @@
- #include 
+@@ -24,20 +24,42 @@
  #include 
+ #include 
  
 +#include 
 +
@@ -168,7 +168,7 @@ Index: glibc-2.24/libpthread/forward.c
  
  /* Same as FORWARD2, only without return.  */
  # define FORWARD_NORETURN(name, rettype, decl, params, defaction) \
-@@ -47,10 +69,22 @@ name decl  
  \
+@@ -48,10 +70,22 @@ name decl  
  \
  defaction;
  \
  \
PTHFCT_CALL (ptr_##name, params); \
@@ -192,7 +192,7 @@ Index: glibc-2.24/libpthread/forward.c
  
  FORWARD (pthread_attr_destroy, (pthread_attr_t *attr), (attr), 0)
  
-@@ -107,7 +141,10 @@ FORWARD (pthread_equal, (pthread_t threa
+@@ -108,7 +142,10 @@ FORWARD (pthread_equal, (pthread_t threa
  
  /* Use an alias to avoid warning, as pthread_exit is declared noreturn.  */
  FORWARD_NORETURN (__pthread_exit, void, (void *retval), (retval), exit 
(EXIT_SUCCESS))
@@ -204,7 +204,7 @@ Index: glibc-2.24/libpthread/forward.c
  
  
  FORWARD (pthread_getschedparam,
-@@ -130,16 +167,21 @@ FORWARD (pthread_mutex_unlock, (pthread_
+@@ -131,16 +168,21 @@ FORWARD (pthread_mutex_unlock, (pthread_
  
  
  FORWARD2 (pthread_self, pthread_t, (void), (), return 0)

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



[glibc] 01/02: hurd: Restore malloc_hook for now for mach-defpager

2016-10-10 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 1a8d022184fcabf4d6734fca97d94e5910d38055
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Mon Oct 10 22:51:31 2016 +

hurd: Restore malloc_hook for now for mach-defpager

hurd-i386/tg-glibc-2.24-restore-malloc-hook.diff
---
 debian/changelog  |  2 ++
 .../hurd-i386/tg-glibc-2.24-restore-malloc-hook.diff  | 15 +++
 debian/patches/series.hurd-i386   |  1 +
 3 files changed, 18 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 8ad32b8..db80e12 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -33,6 +33,8 @@ glibc (2.24-4) UNRELEASED; urgency=medium
 hurd-i386/tg-allocalim.diff.
   * hurd-i386/unsubmitted-timer_routines.diff: Rename to
 hurd-i386/tg-timer_routines.diff.
+  * hurd-i386/tg-glibc-2.24-restore-malloc-hook.diff: Restore malloc_hook for
+now for mach-defpager.
 
  -- Aurelien Jarno <aure...@debian.org>  Sat, 17 Sep 2016 20:03:04 +0200
 
diff --git a/debian/patches/hurd-i386/tg-glibc-2.24-restore-malloc-hook.diff 
b/debian/patches/hurd-i386/tg-glibc-2.24-restore-malloc-hook.diff
new file mode 100644
index 000..a1a5a3e
--- /dev/null
+++ b/debian/patches/hurd-i386/tg-glibc-2.24-restore-malloc-hook.diff
@@ -0,0 +1,15 @@
+Restore malloc hooks for mach-defpager until we have mlockall ready.
+
+Index: glibc-2.24/malloc/malloc.c
+===
+--- glibc-2.24.orig/malloc/malloc.c
 glibc-2.24/malloc/malloc.c
+@@ -1852,8 +1852,6 @@ static void *memalign_hook_ini (size_t a
+ 
+ #if HAVE_MALLOC_INIT_HOOK
+ void weak_variable (*__malloc_initialize_hook) (void) = NULL;
+-compat_symbol (libc, __malloc_initialize_hook,
+- __malloc_initialize_hook, GLIBC_2_0);
+ #endif
+ 
+ void weak_variable (*__free_hook) (void *__ptr,
diff --git a/debian/patches/series.hurd-i386 b/debian/patches/series.hurd-i386
index 399d788..e83edf7 100644
--- a/debian/patches/series.hurd-i386
+++ b/debian/patches/series.hurd-i386
@@ -14,3 +14,4 @@ hurd-i386/tg-timer_routines.diff
 hurd-i386/local-versions-hack.diff
 hurd-i386/unsubmitted-prof-eintr.diff
 hurd-i386/submitted-malloc-setstate.diff
+hurd-i386/tg-glibc-2.24-restore-malloc-hook.diff

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



[glibc] branch sid updated (d979306 -> 195e296)

2016-10-10 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  d979306   Add missing include to fix warning
   new  1a8d022   hurd: Restore malloc_hook for now for mach-defpager
   new  195e296   refresh

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/libpthread_version.diff  | 10 +-
 .../hurd-i386/tg-glibc-2.24-restore-malloc-hook.diff  | 15 +++
 debian/patches/series.hurd-i386   |  1 +
 4 files changed, 23 insertions(+), 5 deletions(-)
 create mode 100644 
debian/patches/hurd-i386/tg-glibc-2.24-restore-malloc-hook.diff

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



[glibc] 01/02: Document that tg-gsync-libc contains both t/gsync-libc and t/libc_cleanup

2016-10-16 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 d2df8d2de1b715f5074a31d233c23c4fd717f2c1
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Mon Oct 17 00:25:59 2016 +0200

Document that tg-gsync-libc contains both t/gsync-libc and t/libc_cleanup
---
 debian/patches/hurd-i386/tg-gsync-libc.diff | 7 +++
 1 file changed, 7 insertions(+)

diff --git a/debian/patches/hurd-i386/tg-gsync-libc.diff 
b/debian/patches/hurd-i386/tg-gsync-libc.diff
index 5a58ae4..721d030 100644
--- a/debian/patches/hurd-i386/tg-gsync-libc.diff
+++ b/debian/patches/hurd-i386/tg-gsync-libc.diff
@@ -1,3 +1,4 @@
+t/gsync-libc
 From: Agustina Arzille <avarzi...@riseup.net>
 Subject: [PATCH] Introduce gsync-based locks to glibc.
 
@@ -23,6 +24,12 @@ Subject: [PATCH] Introduce gsync-based locks to glibc.
 * sysdeps/mach/hurd/setpgid.c: (setpgid): Use gsync for synchronization.
 * sysdeps/mach/hurd/setsid.c: (setsid): Likewise.
 
+t/libc_cleanup
+From: Agustina Arzille <avarzi...@riseup.net>
+Subject: [PATCH] Use gcc's cleanup attributes
+
+cleanup routines now use gcc's cleanup attribute
+
 ---
  hurd/Makefile  |   1 +
  hurd/Versions  |   9 ++

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



[glibc] 02/02: hurd: fix weak references when linking in libpthread statically.

2016-10-16 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 19a58de176cba6f7bc4fa089557965064cd45fbd
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Mon Oct 17 02:33:39 2016 +0200

hurd: fix weak references when linking in libpthread statically.

hurd-i386/cvs-libpthread-static-weak.diff: New patch
---
 debian/changelog   |  5 +
 .../hurd-i386/cvs-libpthread-static-weak.diff  | 22 ++
 debian/patches/series  |  1 +
 3 files changed, 28 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 1996eef..a6a5d33 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,7 +1,12 @@
 glibc (2.24-5) UNRELEASED; urgency=medium
 
+  [ Aurelien Jarno ]
   * 
 
+  [ Samuel Thibault ]
+  * hurd-i386/cvs-libpthread-static-weak.diff: New patch to fix weak
+references when linking in libpthread statically.
+
  -- Aurelien Jarno <aure...@debian.org>  Sun, 16 Oct 2016 13:08:40 +0200
 
 glibc (2.24-4) unstable; urgency=medium
diff --git a/debian/patches/hurd-i386/cvs-libpthread-static-weak.diff 
b/debian/patches/hurd-i386/cvs-libpthread-static-weak.diff
new file mode 100644
index 000..dbd52e7
--- /dev/null
+++ b/debian/patches/hurd-i386/cvs-libpthread-static-weak.diff
@@ -0,0 +1,22 @@
+commit 2ca42af6c07afed6a5e94e8e3c889c728869fd2f
+Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Date:   Mon Oct 17 02:30:14 2016 +0200
+
+Fix too weak references when linking libpthread statically
+
+* sysdeps/pthread/libc-lockP.h [IS_IN (libpthread)]: Do not make __pthread
+symbols weak.
+
+diff --git a/libpthread/sysdeps/pthread/libc-lockP.h 
b/libpthread/sysdeps/pthread/libc-lockP.h
+index 2631e0c..c04881d 100644
+--- a/libpthread/sysdeps/pthread/libc-lockP.h
 b/libpthread/sysdeps/pthread/libc-lockP.h
+@@ -106,7 +106,7 @@ extern int __pthread_atfork (void (*__prepare) (void),
+ 
+ /* Make the pthread functions weak so that we can elide them from
+single-threaded processes.  */
+-#ifndef __NO_WEAK_PTHREAD_ALIASES
++#if !defined(__NO_WEAK_PTHREAD_ALIASES) && !IS_IN (libpthread)
+ # ifdef weak_extern
+ weak_extern (__pthread_mutex_init)
+ weak_extern (__pthread_mutex_destroy)
diff --git a/debian/patches/series b/debian/patches/series
index 819834e..7486fb8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -133,6 +133,7 @@ hurd-i386/cvs-adjtime-NULL.diff
 hurd-i386/tg-pthread_deps.diff
 hurd-i386/cvs-mallocfork.diff
 hurd-i386/cvs-setcancelstate.diff
+hurd-i386/cvs-libpthread-static-weak.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 sid updated (8808c30 -> 19a58de)

2016-10-16 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  8808c30   New changelog entry
   new  d2df8d2   Document that tg-gsync-libc contains both t/gsync-libc 
and t/libc_cleanup
   new  19a58de   hurd: fix weak references when linking in libpthread 
statically.

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   |  5 +
 .../hurd-i386/cvs-libpthread-static-weak.diff  | 22 ++
 debian/patches/hurd-i386/tg-gsync-libc.diff|  7 +++
 debian/patches/series  |  1 +
 4 files changed, 35 insertions(+)
 create mode 100644 debian/patches/hurd-i386/cvs-libpthread-static-weak.diff

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



[glibc] branch sid updated (e55d268 -> 22d5b04)

2016-10-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  e55d268   Spell "path" correctly.
   new  22d5b04   hurd-i386/cvs-setcancelstate.diff: work around a bug with 
newer libpthread snapshot.

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-setcancelstate.diff | 24 
 debian/patches/series|  1 +
 3 files changed, 27 insertions(+)
 create mode 100644 debian/patches/hurd-i386/cvs-setcancelstate.diff

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



[glibc] 01/01: hurd: work around fakeroot-tcp issue

2016-11-26 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 3c1709fb5378514a177b474a3911c0d50da9c1b0
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Sun Nov 27 02:21:24 2016 +0100

hurd: work around fakeroot-tcp issue

  * hurd-i386/tg-libc_rwlock_recursive.diff: New patch, see #845930.
---
 debian/changelog   |  4 +-
 .../hurd-i386/tg-libc_rwlock_recursive.diff| 67 ++
 debian/patches/series  |  1 +
 3 files changed, 71 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 936ee75..8a468d3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
 glibc (2.24-8) UNRELEASED; urgency=medium
 
-  * 
+  [ Samuel Thibault ]
+  * hurd-i386/tg-libc_rwlock_recursive.diff: New patch to work around
+fakeroot-tcp issue, see #845930.
 
  -- Aurelien Jarno <aure...@debian.org>  Fri, 25 Nov 2016 23:09:39 +0100
 
diff --git a/debian/patches/hurd-i386/tg-libc_rwlock_recursive.diff 
b/debian/patches/hurd-i386/tg-libc_rwlock_recursive.diff
new file mode 100644
index 000..c6410d5
--- /dev/null
+++ b/debian/patches/hurd-i386/tg-libc_rwlock_recursive.diff
@@ -0,0 +1,67 @@
+From: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Subject: [PATCH] XXX: make libc_rwlock recursive
+
+Without making the rwlocks recursive, running fakeroot-tcp gets this:
+
+#0  0x0106e91c in mach_msg_trap () at 
/usr/src/glibc-2.24/build-tree/hurd-i386-libc/mach/mach_msg_trap.S:2
+#1  0x0106f090 in __mach_msg (msg=0x20034a0, option=3, send_size=64, 
rcv_size=32, rcv_name=421, timeout=0, notify=0) at msg.c:110
+#2  0x0125a241 in __gsync_wait (task=1, addr=19101080, val1=2, val2=0, msec=0, 
flags=0)
+at /usr/src/glibc-2.24/build-tree/hurd-i386-libc/mach/RPC_gsync_wait.c:175
+#3  0x010b0743 in __dcigettext (domainname=0x8050740 
<_libc_intl_domainname@@GLIBC_2.2.6> "libc", 
+msgid1=0x8051d88 "undefined symbol: acl_get_fd", msgid2=0x0, plural=0, 
n=0, category=5) at dcigettext.c:527
+#4  0x010af776 in __dcgettext (domainname=0x8050740 
<_libc_intl_domainname@@GLIBC_2.2.6> "libc", 
+msgid=0x8051d88 "undefined symbol: acl_get_fd", category=5) at 
dcgettext.c:47
+#5  0x0124e427 in __dlerror () at dlerror.c:94
+#6  0x01035ae3 in load_library_symbols () from 
/usr/lib/i386-gnu/libfakeroot/libfakeroot-tcp.so
+#7  0x01035cc3 in tmp___fxstat64 () from 
/usr/lib/i386-gnu/libfakeroot/libfakeroot-tcp.so
+#8  0x01036cd6 in __fxstat64 () from 
/usr/lib/i386-gnu/libfakeroot/libfakeroot-tcp.so
+#9  0x010ad831 in _nl_load_locale_from_archive (category=category@entry=0, 
namep=namep@entry=0x200399c) at loadarchive.c:211
+#10 0x010ac45b in _nl_find_locale (locale_path=0x0, locale_path_len=0, 
category=category@entry=0, name=0x200399c) at findlocale.c:154
+#11 0x010abde7 in setlocale (category=0, locale=0x804c2e4 "") at 
setlocale.c:417
+#12 0x0804947f in main (argc=2, argv=0x2003ad4) at programs/locale.c:191
+
+That's very unfortunate: libfakeroot gets initialized from a section
+where __libc_setlocale_lock is already locked, and thus the dlerror()
+call hangs inside __dcigettext. It happens that Linux doesn't have
+the problem probably because pthread_rwlock_wrlock returns a EDEADLK
+error instead of hanging, and then the first unlock unlocks, and the
+second unlock probably returns an EINVAL. This is all very unsafe, but
+that's fakeroot-tcp's matter (see http://bugs.debian.org/845930 for the
+follow-up)...
+
+We only use it when constructing the debian installer for -s -r options
+anyway.
+
+Signed-off-by: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+
+---
+ sysdeps/mach/libc-lock.h | 18 +-
+ 1 file changed, 9 insertions(+), 9 deletions(-)
+
+--- a/sysdeps/mach/libc-lock.h
 b/sysdeps/mach/libc-lock.h
+@@ -151,15 +151,15 @@ typedef cthread_key_t __libc_key_t;
+   __libc_lock_unlock_recursive (NAME)
+ 
+ /* XXX for now */
+-#define __libc_rwlock_define  __libc_lock_define
+-#define __libc_rwlock_define_initialized __libc_lock_define_initialized
+-#define __libc_rwlock_init__libc_lock_init
+-#define __libc_rwlock_fini__libc_lock_fini
+-#define __libc_rwlock_rdlock  __libc_lock_lock
+-#define __libc_rwlock_wrlock  __libc_lock_lock
+-#define __libc_rwlock_tryrdlock   __libc_lock_trylock
+-#define __libc_rwlock_trywrlock   __libc_lock_trylock
+-#define __libc_rwlock_unlock  __libc_lock_unlock
++#define __libc_rwlock_define  __libc_lock_define_recursive
++#define __libc_rwlock_define_initialized 
__libc_lock_define_initialized_recursive
++#define __libc_rwlock_init__libc_lock_init_recursive
++#define __libc_rwlock_fini__libc_lock_fini_recursive
++#define __libc_rwlock_rdlock  __libc_lock_lock_

[glibc] branch sid updated (cbbadae -> e5d4f5d)

2016-11-26 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  cbbadae   releasing package glibc version 2.24-7
   new  e5d4f5d   new changelog entry

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 | 6 ++
 1 file changed, 6 insertions(+)

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



[glibc] branch sid updated (e5d4f5d -> 3c1709f)

2016-11-26 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  e5d4f5d   new changelog entry
   new  3c1709f   hurd: work around fakeroot-tcp issue

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 +-
 .../hurd-i386/tg-libc_rwlock_recursive.diff| 67 ++
 debian/patches/series  |  1 +
 3 files changed, 71 insertions(+), 1 deletion(-)
 create mode 100644 debian/patches/hurd-i386/tg-libc_rwlock_recursive.diff

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



[glibc] branch sid updated (e7e22f8 -> 3a6d87e)

2016-12-08 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  e7e22f8   Merge branch 'sid' of /usr/src/glibc-debian/trunk into sid
   new  3a6d87e   hurd: fix trylock error return.

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| 7 +++
 debian/patches/hurd-i386/tg-libpthread-gsync-mutex.diff | 8 ++--
 2 files changed, 13 insertions(+), 2 deletions(-)

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



[glibc] 01/01: hurd: fix trylock error return.

2016-12-08 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 3a6d87e99cd8f7f916da2dc30d6fb35488009a08
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Fri Dec 9 01:51:19 2016 +0100

hurd: fix trylock error return.

hurd-i386/tg-libpthread-gsync-mutex.diff: Update patch.
---
 debian/changelog| 7 +++
 debian/patches/hurd-i386/tg-libpthread-gsync-mutex.diff | 8 ++--
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 470eda5..4a115b1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+glibc (2.24-9) UNRELEASED; urgency=medium
+
+  * hurd-i386/tg-libpthread-gsync-mutex.diff: Update patch, fixes trylock
+error return.
+
+ -- Samuel Thibault <sthiba...@debian.org>  Fri, 09 Dec 2016 01:51:00 +0100
+
 glibc (2.24-8) unstable; urgency=medium
 
   [ Samuel Thibault ]
diff --git a/debian/patches/hurd-i386/tg-libpthread-gsync-mutex.diff 
b/debian/patches/hurd-i386/tg-libpthread-gsync-mutex.diff
index f245153..705d40d 100644
--- a/debian/patches/hurd-i386/tg-libpthread-gsync-mutex.diff
+++ b/debian/patches/hurd-i386/tg-libpthread-gsync-mutex.diff
@@ -194,7 +194,7 @@ new file mode 100644
 index 000..8104fa3
 --- /dev/null
 +++ b/libpthread/sysdeps/mach/hurd/pt-mutex.c
-@@ -0,0 +1,548 @@
+@@ -0,0 +1,552 @@
 +/* Copyright (C) 2016 Free Software Foundation, Inc.
 +   Contributed by Agustina Arzille <avarzi...@riseup.net>, 2016.
 +
@@ -477,7 +477,7 @@ index 000..8104fa3
 +  switch (MTX_TYPE (mtxp))
 +{
 +  case PT_MTX_NORMAL:
-+ret = lll_trylock (>__lock);
++ret = lll_trylock (>__lock) == 0 ? 0 : EBUSY;
 +break;
 +
 +  case PT_MTX_RECURSIVE:
@@ -495,6 +495,8 @@ index 000..8104fa3
 +mtx_set_owner (mtxp, self, mtxp->__flags);
 +mtxp->__cnt = 1;
 +  }
++else
++  ret = EBUSY;
 +
 +break;
 +
@@ -502,6 +504,8 @@ index 000..8104fa3
 +self = _pthread_self ();
 +if ((ret = lll_trylock (>__lock)) == 0)
 +  mtx_set_owner (mtxp, self, mtxp->__flags);
++else
++  ret = EBUSY;
 +break;
 +
 +  case PT_MTX_NORMAL | PTHREAD_MUTEX_ROBUST:

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



[glibc] 01/02: upload

2016-12-05 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 aced38612686063565e9191404689dcbf9b374bc
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Mon Dec 5 23:51:28 2016 +0100

upload
---
 debian/changelog | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index feb6621..470eda5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-glibc (2.24-8) UNRELEASED; urgency=medium
+glibc (2.24-8) unstable; urgency=medium
 
   [ Samuel Thibault ]
   * hurd-i386/tg-libc_rwlock_recursive.diff: New patch to work around
@@ -6,7 +6,7 @@ glibc (2.24-8) UNRELEASED; urgency=medium
   * hurd-i386/cvs-hurd_signal.h_c++.diff: New patch to fix building gdb.
   * hurd-i386/tg-poll_errors_fixes.diff: Fix port leak.
 
- -- Aurelien Jarno <aure...@debian.org>  Fri, 25 Nov 2016 23:09:39 +0100
+ -- Samuel Thibault <sthiba...@debian.org>  Sun, 04 Dec 2016 22:49:53 +0100
 
 glibc (2.24-7) unstable; urgency=medium
 

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



[glibc] 02/02: Merge branch 'sid' of /usr/src/glibc-debian/trunk into sid

2016-12-05 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 e7e22f801e51017f3b11494c338a608d07d4c75d
Merge: 97d48af aced386
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Mon Dec 5 23:53:59 2016 +0100

Merge branch 'sid' of /usr/src/glibc-debian/trunk into sid

 debian/changelog | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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



[glibc] annotated tag debian/2.24-8 created (now 28e3b26)

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

sthibault pushed a change to annotated tag debian/2.24-8
in repository glibc.

at  28e3b26   (tag)
   tagging  e7e22f801e51017f3b11494c338a608d07d4c75d (commit)
  replaces  debian/2.24-7
 tagged by  Samuel Thibault
on  Mon Dec 5 23:55:08 2016 +0100

- Log -
glibc Debian release 2.24-8

Samuel Thibault (7):
  new changelog entry
  hurd: work around fakeroot-tcp issue
  hurd-i386/cvs-hurd_signal.h_c++.diff: New patch to fix building gdb
  hurd-i386/tg-poll_errors_fixes.diff: Fix port leak
  hurd: fix using hurd.h in C++ programs
  upload
  Merge branch 'sid' of /usr/src/glibc-debian/trunk into sid

---

No new revisions were added by this update.

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



[glibc] branch sid updated (97d48af -> e7e22f8)

2016-12-05 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  97d48af   hurd: fix using hurd.h in C++ programs
   new  aced386   upload
   new  e7e22f8   Merge branch 'sid' of /usr/src/glibc-debian/trunk into sid

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 | 4 ++--
 1 file changed, 2 insertions(+), 2 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-poll_errors_fixes.diff: Fix port leak

2016-12-04 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 8e8a064b720e0c186e3bea866acc552cbe3a092f
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Sun Dec 4 21:08:50 2016 +0100

hurd-i386/tg-poll_errors_fixes.diff: Fix port leak
---
 debian/changelog   |  1 +
 debian/patches/hurd-i386/tg-poll_errors_fixes.diff | 28 --
 2 files changed, 16 insertions(+), 13 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index edee79f..feb6621 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ glibc (2.24-8) UNRELEASED; urgency=medium
   * hurd-i386/tg-libc_rwlock_recursive.diff: New patch to work around
 fakeroot-tcp issue, see #845930.
   * hurd-i386/cvs-hurd_signal.h_c++.diff: New patch to fix building gdb.
+  * hurd-i386/tg-poll_errors_fixes.diff: Fix port leak.
 
  -- Aurelien Jarno <aure...@debian.org>  Fri, 25 Nov 2016 23:09:39 +0100
 
diff --git a/debian/patches/hurd-i386/tg-poll_errors_fixes.diff 
b/debian/patches/hurd-i386/tg-poll_errors_fixes.diff
index 6ab8648..7c6b093 100644
--- a/debian/patches/hurd-i386/tg-poll_errors_fixes.diff
+++ b/debian/patches/hurd-i386/tg-poll_errors_fixes.diff
@@ -30,11 +30,11 @@ case, or else POLLERR.
 
 
 ---
- hurd/hurdselect.c | 147 +++---
- 1 file changed, 106 insertions(+), 41 deletions(-)
+ hurd/hurdselect.c | 149 +++---
+ 1 file changed, 108 insertions(+), 41 deletions(-)
 
 diff --git a/hurd/hurdselect.c b/hurd/hurdselect.c
-index d453042..070ac1a 100644
+index 70780dd..dcda71b 100644
 --- a/hurd/hurdselect.c
 +++ b/hurd/hurdselect.c
 @@ -34,6 +34,7 @@
@@ -162,16 +162,18 @@ index d453042..070ac1a 100644
  }
  
  
-@@ -260,7 +288,7 @@ _hurd_select (int nfds,
+@@ -260,7 +288,9 @@ _hurd_select (int nfds,
portset = MACH_PORT_NULL;
  
for (i = firstfd; i <= lastfd; ++i)
 -  if (d[i].type)
-+  if (d[i].type & ~SELECT_ERROR)
++  if (!(d[i].type & ~SELECT_ERROR))
++d[i].reply_port = MACH_PORT_NULL;
++  else
  {
int type = d[i].type;
d[i].reply_port = __mach_reply_port ();
-@@ -294,11 +322,10 @@ _hurd_select (int nfds,
+@@ -294,11 +324,10 @@ _hurd_select (int nfds,
  }
else
  {
@@ -187,7 +189,7 @@ index d453042..070ac1a 100644
++got;
  }
_hurd_port_free ([i].cell->port, [i].ulink, d[i].io_port);
-@@ -404,9 +431,10 @@ _hurd_select (int nfds,
+@@ -404,9 +433,10 @@ _hurd_select (int nfds,
  #endif
  msg.head.msgh_size != sizeof msg.success)
{
@@ -200,7 +202,7 @@ index d453042..070ac1a 100644
}
  
  /* Look up the respondent's reply port and record its
-@@ -418,9 +446,18 @@ _hurd_select (int nfds,
+@@ -418,9 +448,18 @@ _hurd_select (int nfds,
if (d[i].type
&& d[i].reply_port == msg.head.msgh_local_port)
  {
@@ -222,16 +224,16 @@ index d453042..070ac1a 100644
  
d[i].type |= SELECT_RETURNED;
++got;
-@@ -458,7 +495,7 @@ _hurd_select (int nfds,
+@@ -454,7 +493,7 @@ _hurd_select (int nfds,
  
if (firstfd != -1)
  for (i = firstfd; i <= lastfd; ++i)
 -  if (d[i].type)
-+  if (d[i].type & ~(SELECT_ERROR | SELECT_RETURNED))
++  if (d[i].reply_port != MACH_PORT_NULL)
__mach_port_destroy (__mach_task_self (), d[i].reply_port);
if (firstfd == -1 || (firstfd != lastfd && portset != MACH_PORT_NULL))
  /* Destroy PORTSET, but only if it's not actually the reply port for a
-@@ -480,15 +517,29 @@ _hurd_select (int nfds,
+@@ -476,15 +515,29 @@ _hurd_select (int nfds,
int type = d[i].type;
int_fast16_t revents = 0;
  
@@ -270,7 +272,7 @@ index d453042..070ac1a 100644
  
pollfds[i].revents = revents;
}
-@@ -508,6 +559,20 @@ _hurd_select (int nfds,
+@@ -504,6 +557,20 @@ _hurd_select (int nfds,
if ((type & SELECT_RETURNED) == 0)
  type = 0;
  
@@ -292,4 +294,4 @@ index d453042..070ac1a 100644
  ready++;
else if (readfds)
 -- 
-tg: (ca390b5..) t/poll_errors_fixes (depends on: t/io_select_timeout)
+tg: (de946c7..) t/poll_errors_fixes (depends on: t/io_select_timeout)

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



[glibc] branch sid updated (8e8a064 -> 97d48af)

2016-12-04 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  8e8a064   hurd-i386/tg-poll_errors_fixes.diff: Fix port leak
   new  97d48af   hurd: fix using hurd.h in C++ programs

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:
 .../patches/hurd-i386/cvs-hurd_signal.h_c++.diff   | 33 ++
 1 file changed, 33 insertions(+)

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



[glibc] branch sid updated (07efa62 -> 8e8a064)

2016-12-04 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  07efa62   hurd-i386/cvs-hurd_signal.h_c++.diff: New patch to fix 
building gdb
   new  8e8a064   hurd-i386/tg-poll_errors_fixes.diff: Fix port leak

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   |  1 +
 debian/patches/hurd-i386/tg-poll_errors_fixes.diff | 28 --
 2 files changed, 16 insertions(+), 13 deletions(-)

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



[glibc] 01/01: hurd: fix using hurd.h in C++ programs

2016-12-04 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 97d48af5f8668b19887befffb542294f0157cd65
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Sun Dec 4 23:22:43 2016 +0100

hurd: fix using hurd.h in C++ programs
---
 .../patches/hurd-i386/cvs-hurd_signal.h_c++.diff   | 33 ++
 1 file changed, 33 insertions(+)

diff --git a/debian/patches/hurd-i386/cvs-hurd_signal.h_c++.diff 
b/debian/patches/hurd-i386/cvs-hurd_signal.h_c++.diff
index 1fddeb9..7b7a535 100644
--- a/debian/patches/hurd-i386/cvs-hurd_signal.h_c++.diff
+++ b/debian/patches/hurd-i386/cvs-hurd_signal.h_c++.diff
@@ -33,3 +33,36 @@ index 85e5152..96f42d5 100644
__mach_port_deallocate (__mach_task_self (), msgport);\
if ((dealloc_refport) && refport != MACH_PORT_NULL)   \
  __mach_port_deallocate (__mach_task_self (), refport);  \
+
+commit 71be79a25f1d9efeafa5c634c4499281e8c313f2
+Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
+Date:   Sun Dec 4 23:18:32 2016 +0100
+
+hurd: fix using hurd.h in C++ programs
+
+* hurd/hurd.h: Cast errno constants to error_t to fix usage in C++
+programs.
+
+diff --git a/hurd/hurd.h b/hurd/hurd.h
+index ec07827..022abb5 100644
+--- a/hurd/hurd.h
 b/hurd/hurd.h
+@@ -54,15 +54,15 @@ __hurd_fail (error_t err)
+ case EMACH_SEND_INVALID_DEST:
+ case EMIG_SERVER_DIED:
+   /* The server has disappeared!  */
+-  err = EIEIO;
++  err = (error_t) EIEIO;
+   break;
+ 
+ case KERN_NO_SPACE:
+-  err = ENOMEM;
++  err = (error_t) ENOMEM;
+   break;
+ 
+ case KERN_INVALID_ARGUMENT:
+-  err = EINVAL;
++  err = (error_t) EINVAL;
+   break;
+ 
+ case 0:

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



[glibc] branch sid updated (020407b -> 60d2b4b)

2017-01-02 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  020407b   hurd-i386/tg-gsync-libc.diff: Fix linking against built 
libmachuser
   new  60d2b4b   libc0.3.symbols.hurd-i386: Add vm_wire_all symbols.

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 | 1 +
 debian/libc0.3.symbols.hurd-i386 | 2 ++
 2 files changed, 3 insertions(+)

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



[glibc] 01/01: libc0.3.symbols.hurd-i386: Add vm_wire_all symbols.

2017-01-02 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 60d2b4b8960d361f01f2dc050ab1b17cbd0321b6
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Mon Jan 2 20:53:25 2017 +0100

libc0.3.symbols.hurd-i386: Add vm_wire_all symbols.
---
 debian/changelog | 1 +
 debian/libc0.3.symbols.hurd-i386 | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 107d099..76feea4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,7 @@ glibc (2.24-9) UNRELEASED; urgency=medium
 - control: Bump gnumach-dev build-depend accordingly.
   * hurd-i386/tg-gsync-libc.diff: Fix linking against built libmachuser
 instead of installed libmachuser.
+  * libc0.3.symbols.hurd-i386: Add vm_wire_all symbols.
 
   [ Aurelien Jarno ]
   * debian/sysdeps/{amd64,i386,x32}.mk: disable lock elision (aka Intel TSX)
diff --git a/debian/libc0.3.symbols.hurd-i386 b/debian/libc0.3.symbols.hurd-i386
index c7ee8b2..f117dd1 100644
--- a/debian/libc0.3.symbols.hurd-i386
+++ b/debian/libc0.3.symbols.hurd-i386
@@ -951,6 +951,7 @@ libmachuser.so.1 #PACKAGE# #MINVER#
  __vm_set_default_memory_manager@Base 2.11
  __vm_statistics@Base 2.11
  __vm_wire@Base 2.11
+ __vm_wire_all@Base 2.24-9~
  __vm_write@Base 2.11
  default_pager_info@Base 2.11
  default_pager_object_create@Base 2.11
@@ -1107,6 +1108,7 @@ libmachuser.so.1 #PACKAGE# #MINVER#
  vm_set_default_memory_manager@Base 2.11
  vm_statistics@Base 2.11
  vm_wire@Base 2.11
+ vm_wire_all@Base 2.24-9~
  vm_write@Base 2.11
 libpthread.so.0.3 #PACKAGE# #MINVER#
 #include "symbols.wildcards"

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



[glibc] 01/01: control: Bump gnumach-dev build-depend

2017-01-02 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 24e421982ad4820ee1ccc39ff29f7dbb2e167a1f
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Mon Jan 2 16:08:22 2017 +0100

control: Bump gnumach-dev build-depend

according to vm_wire_all
---
 debian/changelog   | 1 +
 debian/control | 2 +-
 debian/control.in/main | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index c753e51..c517285 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ glibc (2.24-9) UNRELEASED; urgency=medium
 error return.
   * hurd-i386/tg-magic-pid.diff: New patch, add support for /proc/self.
   * hurd-i386/tg-mlockall.diff: New patch, add support for mlockall.
+- control: Bump gnumach-dev build-depend accordingly.
 
   [ Aurelien Jarno ]
   * debian/sysdeps/{amd64,i386,x32}.mk: disable lock elision (aka Intel TSX)
diff --git a/debian/control b/debian/control
index 8e35787..8fe43e9 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,7 @@ Build-Depends: gettext, dpkg (>= 1.18.7), dpkg-dev (>= 
1.17.14), xz-utils, file,
  autoconf, gawk, debhelper (>= 9.20160709), 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], gnumach-dev (>= 2:1.4+git20141109~) [hurd-i386],
+ mig (>= 1.5-3) [hurd-i386], gnumach-dev (>= 2:1.8+git20170102-1~) [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],
diff --git a/debian/control.in/main b/debian/control.in/main
index fc14a55..a15dc8a 100644
--- a/debian/control.in/main
+++ b/debian/control.in/main
@@ -5,7 +5,7 @@ Build-Depends: gettext, dpkg (>= 1.18.7), dpkg-dev (>= 
1.17.14), xz-utils, file,
  autoconf, gawk, debhelper (>= 9.20160709), 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], gnumach-dev (>= 2:1.4+git20141109~) [hurd-i386],
+ mig (>= 1.5-3) [hurd-i386], gnumach-dev (>= 2:1.8+git20170102-1~) [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],

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



[glibc] 01/01: hurd-i386/tg-mlockall.diff: New patch, add support for mlockall

2017-01-02 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 48d7a18e3d13fd4ef611ffb435625acf62315abc
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Mon Jan 2 16:06:54 2017 +0100

hurd-i386/tg-mlockall.diff: New patch, add support for mlockall
---
 debian/changelog  |   1 +
 debian/patches/hurd-i386/tg-mlockall.diff | 106 ++
 debian/patches/series |   1 +
 3 files changed, 108 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index c6ace96..c753e51 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ glibc (2.24-9) UNRELEASED; urgency=medium
   * hurd-i386/tg-libpthread-gsync-mutex.diff: Update patch, fixes trylock
 error return.
   * hurd-i386/tg-magic-pid.diff: New patch, add support for /proc/self.
+  * hurd-i386/tg-mlockall.diff: New patch, add support for mlockall.
 
   [ Aurelien Jarno ]
   * debian/sysdeps/{amd64,i386,x32}.mk: disable lock elision (aka Intel TSX)
diff --git a/debian/patches/hurd-i386/tg-mlockall.diff 
b/debian/patches/hurd-i386/tg-mlockall.diff
new file mode 100644
index 000..3ee1020
--- /dev/null
+++ b/debian/patches/hurd-i386/tg-mlockall.diff
@@ -0,0 +1,106 @@
+Subject: [PATCH] Add mlockall support
+
+* sysdeps/mach/hurd/mlockall.c: New file
+* sysdeps/mach/hurd/munlockall.c: New file
+
+---
+ sysdeps/mach/hurd/mlockall.c   | 42 ++
+ sysdeps/mach/hurd/munlockall.c | 40 
+ 2 files changed, 82 insertions(+)
+
+diff --git a/sysdeps/mach/hurd/mlockall.c b/sysdeps/mach/hurd/mlockall.c
+new file mode 100644
+index 00..11a3deac8a
+--- /dev/null
 b/sysdeps/mach/hurd/mlockall.c
+@@ -0,0 +1,42 @@
++/* mlockall -- lock in core all the pages in this process.  Stub version.
++   Copyright (C) 2001-2016 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 
++#include 
++#include 
++#include 
++#include 
++
++/* Cause all currently mapped pages of the process to be memory resident
++   until unlocked by a call to the `munlockall', until the process exits,
++   or until the process calls `execve'.  */
++
++int
++mlockall (int flags)
++{
++  mach_port_t host;
++  error_t err;
++
++  err = __get_privileged_ports (, NULL);
++  if (err)
++return __hurd_fail (err);
++
++  err = __vm_wire_all (host, __mach_task_self (), flags);
++  __mach_port_deallocate (__mach_task_self (), host);
++  return err ? __hurd_fail (err) : 0;
++}
+diff --git a/sysdeps/mach/hurd/munlockall.c b/sysdeps/mach/hurd/munlockall.c
+new file mode 100644
+index 00..6fbb69435d
+--- /dev/null
 b/sysdeps/mach/hurd/munlockall.c
+@@ -0,0 +1,40 @@
++/* munlockall -- undo the effects of all prior mlock calls.  Stub version.
++   Copyright (C) 2001-2016 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 
++#include 
++#include 
++#include 
++#include 
++
++/* Undo the effects of all prior mlock calls in this process.  */
++
++int
++munlockall (void)
++{
++  mach_port_t host;
++  error_t err;
++
++  err = __get_privileged_ports (, NULL);
++  if (err)
++return __hurd_fail (err);
++
++  err = __vm_wire_all (host, __mach_task_self (), VM_WIRE_NONE);
++  __mach_port_deallocate (__mach_task_self (), host);
++  return err ? __hurd_fail (err) : 0;
++}
+-- 
+tg: (7bb5f8a836..) t/mlockall (depends on: baseline)
diff --git a/debian/patch

[glibc] 01/01: hurd-i386/tg-gsync-libc.diff: Fix linking against built libmachuser

2017-01-02 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 020407b9033ed9e5af7eacec3f07b5c57c5dabb8
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Mon Jan 2 17:56:33 2017 +0100

hurd-i386/tg-gsync-libc.diff: Fix linking against built libmachuser

instead of installed libmachuser
---
 debian/changelog|  2 ++
 debian/patches/hurd-i386/tg-gsync-libc.diff | 22 +++---
 2 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index c517285..107d099 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,8 @@ glibc (2.24-9) UNRELEASED; urgency=medium
   * hurd-i386/tg-magic-pid.diff: New patch, add support for /proc/self.
   * hurd-i386/tg-mlockall.diff: New patch, add support for mlockall.
 - control: Bump gnumach-dev build-depend accordingly.
+  * hurd-i386/tg-gsync-libc.diff: Fix linking against built libmachuser
+instead of installed libmachuser.
 
   [ Aurelien Jarno ]
   * debian/sysdeps/{amd64,i386,x32}.mk: disable lock elision (aka Intel TSX)
diff --git a/debian/patches/hurd-i386/tg-gsync-libc.diff 
b/debian/patches/hurd-i386/tg-gsync-libc.diff
index d316842..3c24049 100644
--- a/debian/patches/hurd-i386/tg-gsync-libc.diff
+++ b/debian/patches/hurd-i386/tg-gsync-libc.diff
@@ -811,21 +811,21 @@ Index: glibc-2.23/sysdeps/mach/Makefile
  endif
  
 +ifeq (crypt,$(subdir))
-+  LDLIBS-crypt.so += -lmachuser
++  LDLIBS-crypt.so += $(objdir)/mach/libmachuser.so
 +else ifeq (dlfcn,$(subdir))
-+  LDLIBS-dl.so += -lmachuser
++  LDLIBS-dl.so += $(objdir)/mach/libmachuser.so
 +else ifeq (nis,$(subdir))
-+  LDLIBS-nsl.so += -lmachuser
-+  LDLIBS-nss_nis.so += -lmachuser
-+  LDLIBS-nss_nisplus.so += -lmachuser
-+  LDLIBS-nss_compat.so += -lmachuser
++  LDLIBS-nsl.so += $(objdir)/mach/libmachuser.so
++  LDLIBS-nss_nis.so += $(objdir)/mach/libmachuser.so
++  LDLIBS-nss_nisplus.so += $(objdir)/mach/libmachuser.so
++  LDLIBS-nss_compat.so += $(objdir)/mach/libmachuser.so
 +else ifeq (nss,$(subdir))
-+  LDLIBS-nss.so += -lmachuser
-+  LDLIBS-nss_files.so += -lmachuser
++  LDLIBS-nss.so += $(objdir)/mach/libmachuser.so
++  LDLIBS-nss_files.so += $(objdir)/mach/libmachuser.so
 +else ifeq (posix,$(subdir))
-+  LDLIBS-tst-rfc3484 += -lmachuser
-+  LDLIBS-tst-rfc3484-2 += -lmachuser
-+  LDLIBS-tst-rfc3484-3 += -lmachuser
++  LDLIBS-tst-rfc3484 += $(objdir)/mach/libmachuser.so
++  LDLIBS-tst-rfc3484-2 += $(objdir)/mach/libmachuser.so
++  LDLIBS-tst-rfc3484-3 += $(objdir)/mach/libmachuser.so
 +endif
 +
  endif # in-Makerules

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



[glibc] branch sid updated (48d7a18 -> 24e4219)

2017-01-02 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  48d7a18   hurd-i386/tg-mlockall.diff: New patch, add support for 
mlockall
   new  24e4219   control: Bump gnumach-dev build-depend

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   | 1 +
 debian/control | 2 +-
 debian/control.in/main | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

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



[glibc] branch sid updated (5ae6713 -> 48d7a18)

2017-01-02 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  5ae6713   debian/patches/localedata/supported.diff: rename the 
kk_KZ locale with the RK1048 charset to kk_KZ.RK1048 to avoid conflicting with 
the kk_KZ locale with the PT154 charset.  Closes: #847596.
   new  48d7a18   hurd-i386/tg-mlockall.diff: New patch, add support for 
mlockall

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  |   1 +
 debian/patches/hurd-i386/tg-mlockall.diff | 106 ++
 debian/patches/series |   1 +
 3 files changed, 108 insertions(+)
 create mode 100644 debian/patches/hurd-i386/tg-mlockall.diff

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



[glibc] branch sid updated (24e4219 -> 020407b)

2017-01-02 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  24e4219   control: Bump gnumach-dev build-depend
   new  020407b   hurd-i386/tg-gsync-libc.diff: Fix linking against built 
libmachuser

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/tg-gsync-libc.diff | 22 +++---
 2 files changed, 13 insertions(+), 11 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-magic-pid.diff: New patch, add support for /proc/self

2016-12-18 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 eb123c94201494d030f7c1f75f5795fdbe5a71de
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Mon Dec 19 01:58:36 2016 +0100

hurd-i386/tg-magic-pid.diff: New patch, add support for /proc/self
---
 debian/changelog   |  1 +
 debian/patches/hurd-i386/tg-magic-pid.diff | 86 ++
 debian/patches/series  |  1 +
 3 files changed, 88 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 7aa4254..ab28e82 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ glibc (2.24-9) UNRELEASED; urgency=medium
   [ Samuel Thibault ]
   * hurd-i386/tg-libpthread-gsync-mutex.diff: Update patch, fixes trylock
 error return.
+  * hurd-i386/tg-magic-pid.diff: New patch, add support for /proc/self.
 
   [ Aurelien Jarno ]
   * debian/sysdeps/{amd64,i386,x32}.mk: disable lock elision (aka Intel TSX)
diff --git a/debian/patches/hurd-i386/tg-magic-pid.diff 
b/debian/patches/hurd-i386/tg-magic-pid.diff
new file mode 100644
index 000..14b41fd
--- /dev/null
+++ b/debian/patches/hurd-i386/tg-magic-pid.diff
@@ -0,0 +1,86 @@
+From: Justus Winter <4win...@informatik.uni-hamburg.de>
+Subject: [PATCH] hurd: Handle `pid' magical lookup retry
+
+* hurd/lookup-retry.c: Handle `pid' magical lookup
+retry.
+
+---
+ hurd/lookup-retry.c | 35 +++
+ 1 file changed, 35 insertions(+)
+
+diff --git a/hurd/lookup-retry.c b/hurd/lookup-retry.c
+index aee2ba8..845bc24 100644
+--- a/hurd/lookup-retry.c
 b/hurd/lookup-retry.c
+@@ -25,6 +25,7 @@
+ #include 
+ #include <_itoa.h>
+ #include 
++#include 
+ 
+ /* Translate the error from dir_lookup into the error the user sees.  */
+ static inline error_t
+@@ -59,6 +60,7 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port)
+   error_t err;
+   char *file_name;
+   int nloops;
++  file_t lastdir = MACH_PORT_NULL;
+ 
+   error_t lookup_op (file_t startdir)
+ {
+@@ -306,6 +308,26 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port)
+   goto bad_magic;
+ break;
+ 
++  case 'p':
++if (retryname[1] == 'i' && retryname[2] == 'd' &&
++(retryname[3] == '/' || retryname[3] == 0))
++  {
++char *p, buf[1024];  /* XXX */
++size_t len;
++p = _itoa (__getpid (), [sizeof buf], 10, 0);
++len = [sizeof buf] - p;
++memcpy (buf, p, len);
++strcpy (buf + len, [3]);
++strcpy (retryname, buf);
++
++/* Do a normal retry on the remaining components.  */
++startdir = lastdir;
++file_name = retryname;
++  }
++else
++  goto bad_magic;
++break;
++
+   default:
+   bad_magic:
+ return EGRATUITOUS;
+@@ -316,6 +338,16 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port)
+ return EGRATUITOUS;
+   }
+ 
++  if (MACH_PORT_VALID (*result) && *result != lastdir)
++  {
++if (MACH_PORT_VALID (lastdir))
++  __mach_port_deallocate (__mach_task_self (), lastdir);
++
++lastdir = *result;
++__mach_port_mod_refs (__mach_task_self (), lastdir,
++  MACH_PORT_RIGHT_SEND, 1);
++  }
++
+   if (startdir != MACH_PORT_NULL)
+   {
+ err = lookup_op (startdir);
+@@ -326,6 +358,9 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port)
+   err = (*use_init_port) (dirport, _op);
+ } while (! err);
+ 
++  if (MACH_PORT_VALID (lastdir))
++__mach_port_deallocate (__mach_task_self (), lastdir);
++
+   return err;
+ }
+ weak_alias (__hurd_file_name_lookup_retry, hurd_file_name_lookup_retry)
+-- 
+tg: (7bb5f8a..) t/magic-pid (depends on: baseline)
diff --git a/debian/patches/series b/debian/patches/series
index b829544..4c8f68a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -140,6 +140,7 @@ hurd-i386/tg-NOFOLLOW.diff
 hurd-i386/tg-NOFOLLOW-DIRECTORY.diff
 hurd-i386/tg-libc_rwlock_recursive.diff
 hurd-i386/cvs-hurd_signal.h_c++.diff
+hurd-i386/tg-magic-pid.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 sid updated (2af44b1 -> eb123c9)

2016-12-18 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  2af44b1   debian/rules.d/build.mk: pass --no-recursion before -T in 
the call to tar to workaround or fix bug#829738. This reduces the size of the 
glibc-source package by 40%
   new  eb123c9   hurd-i386/tg-magic-pid.diff: New patch, add support for 
/proc/self

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   |  1 +
 debian/patches/hurd-i386/tg-magic-pid.diff | 86 ++
 debian/patches/series  |  1 +
 3 files changed, 88 insertions(+)
 create mode 100644 debian/patches/hurd-i386/tg-magic-pid.diff

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



[glibc] 01/01: hurd: tg-magic-pid: fix spurious port deallocation

2016-12-18 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 a7f30bd811873d459a885682d3d5370c7cd96132
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Mon Dec 19 04:35:27 2016 +0100

hurd: tg-magic-pid: fix spurious port deallocation
---
 debian/patches/hurd-i386/tg-magic-pid.diff | 125 ++---
 1 file changed, 113 insertions(+), 12 deletions(-)

diff --git a/debian/patches/hurd-i386/tg-magic-pid.diff 
b/debian/patches/hurd-i386/tg-magic-pid.diff
index 14b41fd..6647c27 100644
--- a/debian/patches/hurd-i386/tg-magic-pid.diff
+++ b/debian/patches/hurd-i386/tg-magic-pid.diff
@@ -5,11 +5,11 @@ Subject: [PATCH] hurd: Handle `pid' magical lookup retry
 retry.
 
 ---
- hurd/lookup-retry.c | 35 +++
- 1 file changed, 35 insertions(+)
+ hurd/lookup-retry.c | 78 -
+ 1 file changed, 65 insertions(+), 13 deletions(-)
 
 diff --git a/hurd/lookup-retry.c b/hurd/lookup-retry.c
-index aee2ba8..845bc24 100644
+index aee2ba8..6ed8de1 100644
 --- a/hurd/lookup-retry.c
 +++ b/hurd/lookup-retry.c
 @@ -25,6 +25,7 @@
@@ -28,7 +28,100 @@ index aee2ba8..845bc24 100644
  
error_t lookup_op (file_t startdir)
  {
-@@ -306,6 +308,26 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port)
+@@ -107,14 +109,15 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port)
+   {
+   case FS_RETRY_REAUTH:
+ if (err = reauthenticate (*result))
+-  return err;
++  goto out;
+ /* Fall through.  */
+ 
+   case FS_RETRY_NORMAL:
+ if (nloops++ >= __eloop_threshold ())
+   {
+ __mach_port_deallocate (__mach_task_self (), *result);
+-return ELOOP;
++err = ELOOP;
++goto out;
+   }
+ 
+ /* An empty RETRYNAME indicates we have the final port.  */
+@@ -174,7 +177,7 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port)
+ 
+ if (err)
+   __mach_port_deallocate (__mach_task_self (), *result);
+-return err;
++goto out;
+   }
+ 
+ startdir = *result;
+@@ -189,7 +192,10 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port)
+ if (*result != MACH_PORT_NULL)
+   __mach_port_deallocate (__mach_task_self (), *result);
+ if (nloops++ >= __eloop_threshold ())
+-  return ELOOP;
++  {
++err = ELOOP;
++goto out;
++  }
+ file_name = [1];
+ break;
+ 
+@@ -208,7 +214,8 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port)
+ (*end != '/' && *end != '\0'))
+   {
+ errno = save;
+-return ENOENT;
++err = ENOENT;
++goto out;
+   }
+ if (! get_dtable_port)
+   err = EGRATUITOUS;
+@@ -226,9 +233,12 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port)
+   }
+ errno = save;
+ if (err)
+-  return err;
++  goto out;
+ if (*end == '\0')
+-  return 0;
++  {
++err = 0;
++goto out;
++  }
+ else
+   {
+ /* Do a normal retry on the remaining components.  */
+@@ -255,9 +265,12 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port)
+ if (err = __host_info (__mach_host_self (), HOST_BASIC_INFO,
+(integer_t *) ,
+))
+-  return err;
++  goto out;
+ if (hostinfocnt != HOST_BASIC_INFO_COUNT)
+-  return EGRATUITOUS;
++  {
++err = EGRATUITOUS;
++goto out;
++  }
+ p = _itoa (hostinfo.cpu_subtype, [8], 10, 0);
+ *--p = '/';
+ p = _itoa (hostinfo.cpu_type, [8], 10, 0);
+@@ -293,10 +306,11 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port)
+ }
+ 
+ case '\0':
+-  return opentty (result);
++  err = opentty (result);
++  goto out;
+ case '/':
+   if (err = opentty ())
+-return err;
++goto out;
+   strcpy (retryname, [4]);
+   break;
+ default:
+@@ -306,14 +320,48 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port)
goto bad_magic;
  break;
  
@@ -45,6 +138,8 @@ index aee2ba8..845bc24 100644
 +st

[glibc] branch sid updated (eb123c9 -> a7f30bd)

2016-12-18 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  eb123c9   hurd-i386/tg-magic-pid.diff: New patch, add support for 
/proc/self
   new  a7f30bd   hurd: tg-magic-pid: fix spurious port deallocation

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-magic-pid.diff | 125 ++---
 1 file changed, 113 insertions(+), 12 deletions(-)

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



[glibc] branch sid updated (a7f30bd -> d8d823b)

2016-12-19 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  a7f30bd   hurd: tg-magic-pid: fix spurious port deallocation
   new  d8d823b   fix whitespace

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-magic-pid.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: fix whitespace

2016-12-19 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 d8d823b9c7a5bcf05f1270d1d106a63220d7454e
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Mon Dec 19 12:12:40 2016 +0100

fix whitespace
---
 debian/patches/hurd-i386/tg-magic-pid.diff | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/patches/hurd-i386/tg-magic-pid.diff 
b/debian/patches/hurd-i386/tg-magic-pid.diff
index 6647c27..120ac6d 100644
--- a/debian/patches/hurd-i386/tg-magic-pid.diff
+++ b/debian/patches/hurd-i386/tg-magic-pid.diff
@@ -152,7 +152,7 @@ index aee2ba8..6ed8de1 100644
 -return EGRATUITOUS;
 +err = EGRATUITOUS;
 +goto out;
-   }
+   }
  break;
  
default:

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



[glibc] branch sid updated (e4103ef -> 937641b)

2017-03-04 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  e4103ef   New changelog entry
   new  937641b   hurd-i386/cvs-truncate64.diff: New patch to support 64bit 
truncate

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 |  3 +-
 debian/patches/hurd-i386/cvs-truncate64.diff | 97 
 debian/patches/series|  1 +
 3 files changed, 100 insertions(+), 1 deletion(-)
 create mode 100644 debian/patches/hurd-i386/cvs-truncate64.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-truncate64.diff: New patch to support 64bit truncate

2017-03-04 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 937641b7ab4087f8183a69e505afba771e86f496
Author: Samuel Thibault <samuel.thiba...@ens-lyon.org>
Date:   Sat Mar 4 14:31:33 2017 +0100

hurd-i386/cvs-truncate64.diff: New patch to support 64bit truncate
---
 debian/changelog |  3 +-
 debian/patches/hurd-i386/cvs-truncate64.diff | 97 
 debian/patches/series|  1 +
 3 files changed, 100 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 77cb166..2dbd3b6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 glibc (2.24-10) UNRELEASED; urgency=medium
 
-  * 
+  [ Samuel Thibault ]
+  * hurd-i386/cvs-truncate64.diff: New patch to support 64bit truncate.
 
  -- Aurelien Jarno <aure...@debian.org>  Mon, 16 Jan 2017 18:46:54 +0100
 
diff --git a/debian/patches/hurd-i386/cvs-truncate64.diff 
b/debian/patches/hurd-i386/cvs-truncate64.diff
new file mode 100644
index 000..2c0ad17
--- /dev/null
+++ b/debian/patches/hurd-i386/cvs-truncate64.diff
@@ -0,0 +1,97 @@
+commit 21d58b2a43cab26838ba57bcea52d5cef132f925
+Author: Justus Winter <jus...@gnupg.org>
+Date:   Fri Mar 3 21:27:27 2017 +0100
+
+hurd: Provide truncate64 and ftruncate64.
+
+* sysdeps/mach/hurd/ftruncate64.c: New file.
+* sysdeps/mach/hurd/truncate64.c: Likewise.
+
+diff --git a/sysdeps/mach/hurd/ftruncate64.c b/sysdeps/mach/hurd/ftruncate64.c
+new file mode 100644
+index 00..53c4f64afc
+--- /dev/null
 b/sysdeps/mach/hurd/ftruncate64.c
+@@ -0,0 +1,34 @@
++/* Copyright (C) 1991-2017 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 
++#include 
++#include 
++#include 
++#include 
++
++/* Truncate the file referenced by FD to LENGTH bytes.  */
++int
++__ftruncate64 (int fd, off64_t length)
++{
++  error_t err;
++  if (err = HURD_DPORT_USE (fd, __file_set_size (port, length)))
++return __hurd_dfail (fd, err);
++  return 0;
++}
++
++weak_alias (__ftruncate64, ftruncate64)
+diff --git a/sysdeps/mach/hurd/truncate64.c b/sysdeps/mach/hurd/truncate64.c
+new file mode 100644
+index 00..a2e2ed2190
+--- /dev/null
 b/sysdeps/mach/hurd/truncate64.c
+@@ -0,0 +1,42 @@
++/* Copyright (C) 1991-2017 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 
++#include 
++#include 
++#include 
++#include 
++
++/* Truncate FILE_NAME to LENGTH bytes.  */
++int
++__truncate64 (const char *file_name, off64_t length)
++{
++  error_t err;
++  file_t file = __file_name_lookup (file_name, O_WRITE, 0);
++
++  if (file == MACH_PORT_NULL)
++return -1;
++
++  err = __file_set_size (file, length);
++  __mach_port_deallocate (__mach_task_self (), file);
++
++  if (err)
++return __hurd_fail (err);
++  return 0;
++}
++
++weak_alias (__truncate64, truncate64)
diff --git a/debian/patches/series b/debian/patches/series
index 2f9d247..aff6f7e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -141,6 +141,7 @@ hurd-i386/tg-libc_rwlock_recursive.diff
 hurd-i386/cvs-hurd_signal.h_c++.diff
 hurd-i386/tg-magic-pid.diff
 hurd-i386/tg-mlockall.diff
+hurd-i386/cvs-truncate64.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



<    3   4   5   6   7   8   9   10   11   12   >