Bug#840260: glibc: please support the tilegx architecture

2016-10-09 Thread Helmut Grohne
Source: glibc
Version: 2.24-3
Severity: wishlist
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

Hi Aurelien,

Can you add support for the tilegx architecture to glibc? dpkg knows
about the architecture since 1.18.8 and gcc-6 has some preliminary
support already. The patch is quite small. Beyond adding it to
libc6_archs, care needs to be taken to use arch-specific linux headers
from /usr/include//arch. After applying the patch,
debian/control must be regeneratd (not included in the patch). Can you
maintain the diff?

Helmut
diff --minimal -Nru glibc-2.24/debian/changelog glibc-2.24/debian/changelog
--- glibc-2.24/debian/changelog 2016-09-17 20:00:44.0 +0200
+++ glibc-2.24/debian/changelog 2016-10-10 06:36:11.0 +0200
@@ -1,3 +1,10 @@
+glibc (2.24-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Support tilegx. (Closes: #-1)
+
+ -- Helmut Grohne   Mon, 10 Oct 2016 06:36:01 +0200
+
 glibc (2.24-3) unstable; urgency=medium
 
   [ Aurelien Jarno ]
diff --minimal -Nru glibc-2.24/debian/rules.d/control.mk 
glibc-2.24/debian/rules.d/control.mk
--- glibc-2.24/debian/rules.d/control.mk2016-09-04 01:26:39.0 
+0200
+++ glibc-2.24/debian/rules.d/control.mk2016-10-10 06:35:57.0 
+0200
@@ -1,7 +1,7 @@
 libc_packages := libc6 libc6.1 libc0.1 libc0.3
 libc0_1_archs := kfreebsd-amd64 kfreebsd-i386
 libc0_3_archs := hurd-i386
-libc6_archs   := amd64 arm64 armel armhf hppa i386 m68k mips mipsel mipsn32 
mipsn32el mips64 mips64el nios2 powerpc powerpcspe ppc64 ppc64el sparc sparc64 
s390x sh4 x32
+libc6_archs   := amd64 arm64 armel armhf hppa i386 m68k mips mipsel mipsn32 
mipsn32el mips64 mips64el nios2 powerpc powerpcspe ppc64 ppc64el sparc sparc64 
s390x sh4 tilegx x32
 libc6_1_archs := alpha
 
 control_deps := $(wildcard debian/control.in/*) $(addprefix 
debian/control.in/, $(libc_packages))
diff --minimal -Nru glibc-2.24/debian/sysdeps/linux.mk 
glibc-2.24/debian/sysdeps/linux.mk
--- glibc-2.24/debian/sysdeps/linux.mk  2016-09-04 01:26:39.0 +0200
+++ glibc-2.24/debian/sysdeps/linux.mk  2016-10-10 06:35:21.0 +0200
@@ -39,6 +39,11 @@
else \
ln -s $(LINUX_HEADERS)/asm debian/include ; \
fi
+   if [ -d "$(LINUX_ARCH_HEADERS)/arch" ]; then \
+   ln -s $(LINUX_ARCH_HEADERS)/arch debian/include ; \
+   else \
+   ln -s $(LINUX_HEADERS)/arch debian/include ; \
+   fi
ln -s $(LINUX_HEADERS)/asm-generic debian/include
ln -s $(LINUX_HEADERS)/linux debian/include
 


Bug#839742: hurd: system() is broken after dlclose() of SO which links to curl-gnutls

2016-10-09 Thread Eugene V. Lyubimkin
Hi Samuel,

On 09.10.2016 13:23, Samuel Thibault wrote:
> Samuel Thibault, on Tue 04 Oct 2016 15:33:58 +0200, wrote:
>> Eugene V. Lyubimkin, on Tue 04 Oct 2016 14:37:58 +0200, wrote:
>>> On Hurd, if one loads and unloads the shared object which was linked to
>>> curl-gnutls library, system() stops to work.
>>
>> It looks like gnutls calls pthread_atfork(), and thus on unload the
>> registered hook points to nowhere. glibc seems to have support to avoid
>> the issue, I had started to put the infrastructure for using it on
>> hurd-i386 but didn't finish. I'll see how easy it'll be to finish it :)
> 
> It's easy, will commit the fix :)

Cool, thanks :)



Processed: node-iconv still not fixed

2016-10-09 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

> reopen 837285 =
Bug #837285 {Done: Jérémy Lal } [src:node-iconv] node-iconv: 
FTBFS: Tests failures
'reopen' may be inappropriate when a bug has been closed with a version;
all fixed versions will be cleared, and you may need to re-add them.
Bug reopened
No longer marked as fixed in versions node-iconv/2.2.1-1.
> block 837285 by 840199
Bug #837285 [src:node-iconv] node-iconv: FTBFS: Tests failures
837285 was not blocked by any bugs.
837285 was not blocking any bugs.
Added blocking bug(s) of 837285: 840199
>
End of message, stopping processing here.

Please contact me if you need assistance.
-- 
837285: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=837285
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#840199: libc6: setlocale(LC_ALL, "C.UTF-8") used to work in jessie

2016-10-09 Thread Jérémy Lal
Package: libc6
Version: 2.24-3
Severity: normal

Hi,

This used to work in jessie:

export LC_ALL="C.UTF-8"
echo "ça va" | iconv -f UTF-8 -t "ascii//TRANSLIT"
> ca va

Now it doesn't:
> ?a va

Jérémy


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

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

Versions of packages libc6 depends on:
ii  libgcc1  1:6.2.0-5

libc6 recommends no packages.

Versions of packages libc6 suggests:
ii  debconf [debconf-2.0]  1.5.59
pn  glibc-doc  
ii  libc-l10n  2.24-3
ii  locales2.24-3

-- debconf information excluded



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

2016-10-09 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  a43c663   hurd-i386/unsubmitted-timer_routines.diff: Rename to 
hurd-i386/tg-timer_routines.diff.
   new  ae0904a   Use a git command to build cvs-libpthread.diff
   new  67440d8   Update cvs-libpthread.diff again to get atfork+dlclose fix

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/patches/hurd-i386/cvs-libpthread.diff| 7741 ---
 debian/patches/hurd-i386/tg-timer_routines.diff |   11 -
 3 files changed, 4135 insertions(+), 3618 deletions(-)

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



Processed: Bug#839742 marked as pending

2016-10-09 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

> tag 839742 pending
Bug #839742 [libc0.3] hurd: system() is broken after dlclose() of SO which 
links to curl-gnutls
Added tag(s) pending.
> thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
839742: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839742
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



[glibc] 02/02: Update cvs-libpthread.diff again to get atfork+dlclose fix

2016-10-09 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 67440d87ec8b25e8180d98fb163144773a2261b9
Author: Samuel Thibault 
Date:   Sun Oct 9 15:37:22 2016 +0200

Update cvs-libpthread.diff again to get atfork+dlclose fix

Closes: #839742.
---
 debian/changelog|   1 +
 debian/patches/hurd-i386/cvs-libpthread.diff| 126 ++--
 debian/patches/hurd-i386/tg-timer_routines.diff |  11 ---
 3 files changed, 99 insertions(+), 39 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 8d9bb3e..8ad32b8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,7 @@ glibc (2.24-4) UNRELEASED; urgency=medium
   * hurd-i386/cvs-mallocfork.diff: New patch to fix concurrency between
 hurd_malloc and fork, triggered by malloc/tst-malloc-fork-deadlock.
   * hurd-i386/cvs-libpthread.diff: Update to latest upstream version.
+Closes: #839742.
   * hurd-i386/libpthread_build.diff: Refresh.
   * hurd-i386/libpthread_version.diff: Refresh.
   * hurd-i386/unsubmitted-libc_alloca_cutoff.diff: Refresh.
diff --git a/debian/patches/hurd-i386/cvs-libpthread.diff 
b/debian/patches/hurd-i386/cvs-libpthread.diff
index 7ff62ef..b335553 100644
--- a/debian/patches/hurd-i386/cvs-libpthread.diff
+++ b/debian/patches/hurd-i386/cvs-libpthread.diff
@@ -1,7 +1,7 @@
-git diff empty --patch-with-stat --src-prefix=glibc/libpthread/ 
--dst-prefix=glibc/libpthread/ 1f32bdc2e2f54cf4279b720909ff9c2d64a1c406
+git diff empty --patch-with-stat --src-prefix=glibc/libpthread/ 
--dst-prefix=glibc/libpthread/ 9705f94a6126281c2a909d8bf3c23fad818183fc
 from git.savannah.gnu.org:/srv/git/hurd/libpthread.git/
 thus by construction only libpthread/ files, thus hurd-only
-Date:   Wed Sep 21 00:05:53 2016 +0200
+Date:   Sun Oct 9 13:25:00 2016 +0200
 
  ChangeLog |   6 +
  Makeconfig|  12 +
@@ -10,7 +10,7 @@ Date:   Wed Sep 21 00:05:53 2016 +0200
  Versions  | 146 +
  configure |   2 +
  configure.in  |   4 +
- forward.c | 249 
+ forward.c | 280 +
  include/pthread.h |   7 +
  include/pthread/pthread.h | 835 ++
  include/pthread/pthreadtypes.h| 125 
@@ -42,6 +42,7 @@ Date:   Wed Sep 21 00:05:53 2016 +0200
  pthread/pt-yield.c|  26 +
  pthreadP.h|  26 +
  shlib-versions|   1 +
+ sysdeps/generic/fork.h|  29 +
  sysdeps/generic/pt-atfork.c   |  33 +
  sysdeps/generic/pt-attr-destroy.c |  28 +
  sysdeps/generic/pt-attr-getdetachstate.c  |  31 +
@@ -187,7 +188,7 @@ Date:   Wed Sep 21 00:05:53 2016 +0200
  sysdeps/mach/pt-timedblock.c  |  68 +++
  sysdeps/mach/pt-wakeup.c  |  38 ++
  sysdeps/posix/pt-spin.c   |  54 ++
- sysdeps/pthread/Makefile  |   4 +
+ sysdeps/pthread/Makefile  |   7 +
  sysdeps/pthread/bits/barrier-attr.h   |  32 +
  sysdeps/pthread/bits/barrier.h|  39 ++
  sysdeps/pthread/bits/cancelation.h|  51 ++
@@ -231,7 +232,7 @@ Date:   Wed Sep 21 00:05:53 2016 +0200
  tests/test-8.c|  60 ++
  tests/test-9.c|  88 +++
  tests/test-__pthread_destroy_specific-skip.c  |  83 +++
- 228 files changed, 13021 insertions(+)
+ 229 files changed, 13084 insertions(+)
 
 diff --git glibc/libpthread/ChangeLog glibc/libpthread/ChangeLog
 new file mode 100644
@@ -913,10 +914,10 @@ index 000..4e140b1
 +libc_add_on_subdirs=.
 diff --git glibc/libpthread/forward.c glibc/libpthread/forward.c
 new file mode 100644
-index 000..c3a1f32
+index 000..c819357
 --- /dev/null
 +++ glibc/libpthread/forward.c
-@@ -0,0 +1,249 @@
+@@ -0,0 +1,280 @@
 +/* Copyright (C) 2002, 2003, 2012 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +   Contributed by Ulrich Drepper , 2002.
@@ -941,6 +942,7 @@ index 000..c3a1f32
 +#include 
 +#include 
 +#include 
++#include 
 +
 +/* Pointers to the libc functions.  */
 +struct pthread_functions __libc_pthread_functions attribute_hidden;
@@ -1090,13 +1092,13 @@ index 000..c3a1f32
 +return;
 +
 +  while(1)
-+  {
-+if (last_handler->prepare != NULL)
-+  last_handler->prepare ();
-+if (last_handler == handlers)
-+  break;
-+last_handler = last_handler->prev;
-+  }
++{
++  if (last_handler->prepare != NULL)
++  last_handler->prepare ();
++  if (last_handler == 

Bug#839742: hurd: system() is broken after dlclose() of SO which links to curl-gnutls

2016-10-09 Thread Samuel Thibault
Samuel Thibault, on Tue 04 Oct 2016 15:33:58 +0200, wrote:
> Eugene V. Lyubimkin, on Tue 04 Oct 2016 14:37:58 +0200, wrote:
> > On Hurd, if one loads and unloads the shared object which was linked to
> > curl-gnutls library, system() stops to work.
> 
> It looks like gnutls calls pthread_atfork(), and thus on unload the
> registered hook points to nowhere. glibc seems to have support to avoid
> the issue, I had started to put the infrastructure for using it on
> hurd-i386 but didn't finish. I'll see how easy it'll be to finish it :)

It's easy, will commit the fix :)

Samuel