glibc 2.23 branch merged into the sid one

2016-07-01 Thread Aurelien Jarno
Hi all,

In preparation for the upload of glibc 2.23 to sid, I have merged our
glibc 2.23 branch into the sid one. Therefore commits should now go to
this branch.

Aurelien

-- 
Aurelien Jarno  GPG: 4096R/1DDD8C9B
aurel...@aurel32.net http://www.aurel32.net



Processed: Bug#813187 marked as pending

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

> tag 813187 pending
Bug #813187 {Done: Aurelien Jarno } [src:glibc] glibc: 
CVE-2014-9761: Unbounded stack allocation in nan* functions
Added tag(s) pending.
> thanks
Stopping processing here.

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



Processed: Bug#534521 marked as pending

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

> tag 534521 pending
Bug #534521 {Done: Aurelien Jarno } [src:glibc] libc6-dev: 
/usr/include/fts.h cannot be compiled with -D_FILE_OFFSET_BITS=64
Bug #317466 {Done: Aurelien Jarno } [src:glibc] pax cannot 
access files >2gb
Added tag(s) pending.
Added tag(s) pending.
> thanks
Stopping processing here.

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



Processed: Bug#811574 marked as pending

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

> tag 811574 pending
Bug #811574 {Done: Aurelien Jarno } [glibc] FTBFS with GCC 
6: statement indented as if it were guarded by
Added tag(s) pending.
> thanks
Stopping processing here.

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



Processed: Bug#458611 marked as pending

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

> tag 458611 pending
Bug #458611 {Done: Aurelien Jarno } [libc6] strtoul("i", 
, 36) under tr_TR locale.
Added tag(s) pending.
> thanks
Stopping processing here.

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



Processed: Bug#829093 marked as pending

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

> tag 829093 pending
Bug #829093 [locales] Comment in locale C is misleading
Ignoring request to alter tags of bug #829093 to the same tags previously set
> thanks
Stopping processing here.

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



[glibc] branch sid updated (999254a -> ddeeb03)

2016-07-01 Thread Aurelien Jarno
This is an automated email from the git hooks/post-receive script.

aurel32 pushed a change to branch sid
in repository glibc.

  from  999254a   releasing package glibc version 2.22-13
  adds  6b629d6   New upstream release: version 2.23, with git updates up 
to 2016-03-12.
  adds  b66f24d   debian/testsuite-xfail-debian.mk (powerpc): mark 
tst-malloc-thread-fail test as xfail, it is a known issue and not a regression.
  adds  9f2704a   Remove old patches not applied for a long time
  adds  392dc43   Merge branch 'sid' into glibc-2.23
  adds  e280c57   Add a few bugs numbers
  adds  1d215b9   debian/testsuite-xfail-debian.mk (mipsel): mark a few 
math tests are failing, due to a bug in the Loongson 3 FPU.
  adds  1a9bc34   Update kfreebsd-i386 specific patches
  adds  cffca83   Update hurd-i386 specific patches
  adds  1b95d98   debian/patches/hurd-i386/cvs-libpthread.diff: updated.
  adds  03218fd   patches/kfreebsd/local-fbtl.diff: update to revision 5940 
(from glibc-bsd).
  adds  09dee41   Add a bug number
  adds  4513da3   releasing package glibc version 2.23-0experimental0
  adds  89a150e   mrk tst-malloc-thread-exit as xfail on powerpc and ppc64
  adds  47cda7a   hurd-i386/cvs-libpthread.diff: More updates to glibc-2.23.
  adds  e797f36   hurd-i386/cvs-openat.diff: Fix __openat prototype.
  adds  19bac1a   More glibc 2.23 fixes
  adds  b50873c   hurd-i386/cvs-aio_sigqueue.diff: Fix aio_sigqueue 
prototype.
  adds  b5caf67   refresh
  adds  e9b5470   hurd-only fixes
  adds  023a8c8   hurd-i386/cvs-libpthread.diff: Separate 2.23 changes to...
  adds  e05091e   Merge branch 'glibc-2.23' of 
ssh://git.debian.org/git/pkg-glibc/glibc into glibc-2.23
  adds  d29a682   Use testsuite-xfail-debian.mk's tests-unsupported instead 
of patching the test
  adds  f4168cd   debian/control.in/i386: Remove list of Breaks that 
predate oldstable.
  adds  1b8dbaf   debian/patches/any/cvs-tst-malloc-thread-exit.diff: 
Backport fix from upstream to make tst-malloc-thread-exit use fewer system 
resources.
  adds  27c8da3   debian/patches/any/cvs-resolver-leak.diff: Backport 
upstream patch by Andreas Schwab to fix a memory leak in the resolver (Closes: 
#818178)
  adds  0825aed   Spell "test" correctly for the tst-malloc-thread-exit 
XFAIL
  adds  93ffa69   debian/glibc-source.filelist: Refresh list of source 
files and sort.
  adds  ea1b20a   debian/control.in/*: Drop long obsolete file overlap 
Breaks/Replaces.
  adds  52941c9   Regenerate control for 
ea1b20a61db8f8a75ffac3a4c7e6a6c83a81cb79
  adds  be68b71   hurd-i386/cvs-pt-kill.diff: Fix pthread_kill locking
  adds  3fab7f8   Add missing 2.23-only change
  adds  d15e0b2   hurd-i386/cvs-open.diff: Fix __open in ld.so, thus fixing 
dlopen().
  adds  b471545   patches/kfreebsd/local-fbtl.diff: update to revision 5954 
(from glibc-bsd).
  adds  04ba824   Merge branch 'glibc-2.23' of 
ssh://git.debian.org/git/pkg-glibc/glibc into glibc-2.23
  adds  eec1976   hurd: Fix static linking
  adds  d45e182   hurd-i386/cvs-c++-types.diff: Add expected c++-types.data
  adds  988a158   note that c++-types-check should work with a more recent 
version of the hurd package
  adds  5263781   patches/kfreebsd/local-fbtl.diff: update to revision 5958 
(from glibc-bsd).
  adds  b83af76   Merge branch 'glibc-2.23' of 
ssh://git.debian.org/git/pkg-glibc/glibc into glibc-2.23
  adds  e9e5bb8   hurd-i386/local-versions.diff: New patch to fix symbol 
version
  adds  c3877dc   Update hurd testsuite expected results
  adds  37c25e7   Merge branch 'sid' into glibc-2.23
  adds  7e8241e   debian/patches/git-updates.diff: update from upstream 
stable branch.
  adds  be8dbc9   Merge branch 'glibc-2.23' of 
ssh://git.debian.org/git/pkg-glibc/glibc into glibc-2.23
  adds  66e14ee   hurd-i386/unsubmitted-libpthread.so.diff: use CVS commit
  adds  08d2637   debian/patches/kfreebsd/local-tst-malloc-fbtl.diff: drop, 
obsoleted by hurd-i386/cvs-libpthread.so.diff.
  adds  b983c54   patches/kfreebsd/local-fbtl.diff: update to revision 5969 
(from glibc-bsd).
  adds  3227d76   debian/patches/any/submitted-resolver-leak.diff: Drop, 
upstreamed.
  adds  5864e2b   Remove changelog entry already present in 2.22-4
  adds  c01d09c   debian/patches/kfreebsd/local-tst-unique.diff: disable 
tst-unique* on GNU/kFreeBSD, as they are not supported by the FreeBSD ELF OSABI.
  adds  cf7bcc4   debian/debhelper.in/locales.config: Make 
default_environment_locale get preseeded correctly both with and without 
/etc/default/locale.
  adds  39783db   debian/patches/alpha/submitted-fts64.diff: new patch to 
fix the new fts64 function on alpha.
  adds  1316490   releasing package glibc version 2.23-0experimental1
  adds  3db4321   New changelog entry
  adds  e28fbf4   debian/testsuite-xfail-debian.mk: Also 

[glibc] branch sid updated (ddeeb03 -> e9d8730)

2016-07-01 Thread Aurelien Jarno
This is an automated email from the git hooks/post-receive script.

aurel32 pushed a change to branch sid
in repository glibc.

  from  ddeeb03   debian/testsuite-xfail-debian.mk: allow 
malloc/tst-mallocfork2 to fail on hurd-i386, this is not a regression but a new 
test.
   new  e9d8730   Next upload will target sid

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


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

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



[glibc] 01/01: Next upload will target sid

2016-07-01 Thread Aurelien Jarno
This is an automated email from the git hooks/post-receive script.

aurel32 pushed a commit to branch sid
in repository glibc.

commit e9d8730ba0b2b8dd73557e04b5b18d8302e4bba7
Author: Aurelien Jarno 
Date:   Fri Jul 1 11:31:45 2016 +0200

Next upload will target sid
---
 debian/changelog | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 54dd87f..c93b017 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-glibc (2.23-0experimental5) UNRELEASED; urgency=medium
+glibc (2.23-1) UNRELEASED; urgency=medium
 
   [ Aurelien Jarno ]
   * debian/patches/localedata/locale-C.diff: update comment about the week

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



[glibc] 01/01: debian/patches/git-updates.diff: update from upstream stable branch:

2016-07-01 Thread Aurelien Jarno
This is an automated email from the git hooks/post-receive script.

aurel32 pushed a commit to branch sid
in repository glibc.

commit c804b7dd413b96794b8acba8b210f1ddd45d36fd
Author: Aurelien Jarno 
Date:   Fri Jul 1 15:03:19 2016 +0200

debian/patches/git-updates.diff: update from upstream stable branch:

* debian/patches/git-updates.diff: update from upstream stable branch:
  - debian/patches/hppa/submitted-start.diff: drop, upstreamed.
---
 debian/changelog |  2 ++
 debian/patches/git-updates.diff  | 46 
 debian/patches/hppa/submitted-start.diff | 21 ---
 debian/patches/series|  1 -
 4 files changed, 43 insertions(+), 27 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index c93b017..b9b7249 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
 glibc (2.23-1) UNRELEASED; urgency=medium
 
   [ Aurelien Jarno ]
+  * debian/patches/git-updates.diff: update from upstream stable branch:
+- debian/patches/hppa/submitted-start.diff: drop, upstreamed.
   * debian/patches/localedata/locale-C.diff: update comment about the week
 entry.  Closes: #829093.
   * debian/testsuite-xfail-debian.mk: allow malloc/tst-mallocfork2 to fail
diff --git a/debian/patches/git-updates.diff b/debian/patches/git-updates.diff
index 80bf75c..598bc54 100644
--- a/debian/patches/git-updates.diff
+++ b/debian/patches/git-updates.diff
@@ -1,10 +1,20 @@
 GIT update of git://sourceware.org/git/glibc.git/release/2.23/master from 
glibc-2.23
 
 diff --git a/ChangeLog b/ChangeLog
-index 2e4afb7..aaba8df 100644
+index 2e4afb7..4310cc0 100644
 --- a/ChangeLog
 +++ b/ChangeLog
-@@ -1,5 +1,588 @@
+@@ -1,5 +1,598 @@
++2016-06-30  Aurelien Jarno  
++
++  * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Add _Qp_cmp.
++
++2016-06-30  John David Anglin  
++
++  [BZ #20277]
++  * sysdeps/hppa/start.S (_start): Correct loading of global pointer
++  when SHARED is defined.
++
 +2016-06-30  Aurelien Jarno  
 +
 +  * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
@@ -594,10 +604,10 @@ index 2e4afb7..aaba8df 100644
(VERSION): Set to 2.23.
* include/feature.h (__GLIBC_MINOR__): Set to 23.
 diff --git a/NEWS b/NEWS
-index c0276cf..532cfe2 100644
+index c0276cf..07f3fe8 100644
 --- a/NEWS
 +++ b/NEWS
-@@ -5,6 +5,37 @@ See the end for copying conditions.
+@@ -5,6 +5,38 @@ See the end for copying conditions.
  Please send GNU C library bug reports via 
  using `glibc' in the "product" field.
  
@@ -630,12 +640,13 @@ index c0276cf..532cfe2 100644
 +  [19822] libm.so install clobbers old version
 +  [19879] network: nss_dns: Stack overflow in getnetbyname implementation
 +(CVE-2016-3075)
++  [20177] $dp is not initialized correctly in sysdeps/hppa/start.S
 +
 +
  Version 2.23
  
  * Unicode 8.0.0 Support: Character encoding, character type info, and
-@@ -38,7 +69,7 @@ Version 2.23
+@@ -38,7 +70,7 @@ Version 2.23
unnecessary serialization of memory allocation requests across threads.
The defect is now corrected.  Users should see a substantial increase in
the concurent throughput of allocation requests for applications which
@@ -59996,6 +60007,21 @@ index 1ed2d50..71b95c2 100644
  #ifndef atomic_full_barrier
  # define atomic_full_barrier() __asm ("" ::: "memory")
  #endif
+diff --git a/sysdeps/hppa/start.S b/sysdeps/hppa/start.S
+index 90d4331..b7ab830 100644
+--- a/sysdeps/hppa/start.S
 b/sysdeps/hppa/start.S
+@@ -131,8 +131,10 @@ _start:
+   stw %sp, -60(%sp)
+ 
+ #ifdef SHARED
++  /* load global */
+   addil   LT'.Lp__global, %r19
+   ldw RT'.Lp__global(%r1), %dp
++  ldw 0(%dp), %dp
+ #else
+   /* load global */
+   ldilL%$global$, %dp
 diff --git a/sysdeps/i386/configure b/sysdeps/i386/configure
 index 9515719..5b55c5a 100644
 --- a/sysdeps/i386/configure
@@ -61743,6 +61769,16 @@ index dc32e0a..0d0a3b5 100644
 -weak_alias (__vfork, vfork)
 -strong_alias (__vfork, __libc_vfork)
 +#endif
+diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data 
b/sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data
+index 633cfe4..2323551 100644
+--- a/sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data
 b/sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data
+@@ -1,4 +1,5 @@
+ libc.so: _Qp_add ?
++libc.so: _Qp_cmp ?
+ libc.so: _Qp_div ?
+ libc.so: _Qp_feq ?
+ libc.so: _Qp_fge ?
 diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S 
b/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S
 index 05be3c2..0818eba 100644
 --- a/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S
diff --git a/debian/patches/hppa/submitted-start.diff 
b/debian/patches/hppa/submitted-start.diff
deleted file mode 100644
index 55e9c36..000
--- a/debian/patches/hppa/submitted-start.diff
+++ /dev/null
@@ -1,21 

[glibc] branch sid updated (e9d8730 -> c804b7d)

2016-07-01 Thread Aurelien Jarno
This is an automated email from the git hooks/post-receive script.

aurel32 pushed a change to branch sid
in repository glibc.

  from  e9d8730   Next upload will target sid
   new  c804b7d   debian/patches/git-updates.diff: update from upstream 
stable branch:

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/git-updates.diff  | 46 
 debian/patches/hppa/submitted-start.diff | 21 ---
 debian/patches/series|  1 -
 4 files changed, 43 insertions(+), 27 deletions(-)
 delete mode 100644 debian/patches/hppa/submitted-start.diff

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



[glibc] branch sid updated (c804b7d -> b96a99b)

2016-07-01 Thread Aurelien Jarno
This is an automated email from the git hooks/post-receive script.

aurel32 pushed a change to branch sid
in repository glibc.

  from  c804b7d   debian/patches/git-updates.diff: update from upstream 
stable branch:
   new  b96a99b   debian/patches/sparc/cvs-sparc-nearbyint.diff: new patch 
from upstream to fix nearbyint* functions with a sNaN input on SPARC.

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/series |  1 +
 debian/patches/sparc/cvs-sparc-nearbyint.diff | 96 +++
 3 files changed, 99 insertions(+)
 create mode 100644 debian/patches/sparc/cvs-sparc-nearbyint.diff

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



[glibc] 01/01: debian/patches/sparc/cvs-sparc-nearbyint.diff: new patch from upstream to fix nearbyint* functions with a sNaN input on SPARC.

2016-07-01 Thread Aurelien Jarno
This is an automated email from the git hooks/post-receive script.

aurel32 pushed a commit to branch sid
in repository glibc.

commit b96a99b92c3524628721fa588fba4b78db9a6e0e
Author: Aurelien Jarno 
Date:   Fri Jul 1 17:29:55 2016 +0200

debian/patches/sparc/cvs-sparc-nearbyint.diff: new patch from upstream to 
fix nearbyint* functions with a sNaN input on SPARC.
---
 debian/changelog  |  2 +
 debian/patches/series |  1 +
 debian/patches/sparc/cvs-sparc-nearbyint.diff | 96 +++
 3 files changed, 99 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index b9b7249..efeb53b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,8 @@ glibc (2.23-1) UNRELEASED; urgency=medium
 entry.  Closes: #829093.
   * debian/testsuite-xfail-debian.mk: allow malloc/tst-mallocfork2 to fail
 on hurd-i386, this is not a regression but a new test.
+  * debian/patches/sparc/cvs-sparc-nearbyint.diff: new patch from upstream
+to fix nearbyint* functions with a sNaN input on SPARC.
 
  -- Aurelien Jarno   Fri, 01 Jul 2016 00:17:12 +0200
 
diff --git a/debian/patches/series b/debian/patches/series
index e50e161..30e9707 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -179,6 +179,7 @@ sh4/local-fpscr_values.diff
 
 sparc/local-sparcv9-target.diff
 sparc/submitted-sparc64-socketcall.diff
+sparc/cvs-sparc-nearbyint.diff
 
 all/local-alias-et_EE.diff
 all/local-remove-manual.diff
diff --git a/debian/patches/sparc/cvs-sparc-nearbyint.diff 
b/debian/patches/sparc/cvs-sparc-nearbyint.diff
new file mode 100644
index 000..6897022
--- /dev/null
+++ b/debian/patches/sparc/cvs-sparc-nearbyint.diff
@@ -0,0 +1,96 @@
+2016-07-01  Aurelien Jarno  
+
+   * sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint): Trigger an
+   invalid exception for a sNaN input.
+   * sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
+   * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
+   (__nearbyint_vis3): Likewise
+   * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
+   (__nearbyintf_vis3): Likewise
+   * sparc/sparc64/fpu/s_nearbyint.S (__nearbyint): Likewise.
+   * sparc/sparc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
+   * sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S (__nearbyint_vis3):
+   Likewise.
+   * sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S (__nearbyintf_vis3):
+   Likewise.
+
+--- a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
 b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
+@@ -36,6 +36,7 @@
+ #define SIGN_BIT  %f12/* -0.0 */
+ 
+ ENTRY (__nearbyint_vis3)
++  fcmpd   %fcc3, %f0, %f0 /* Check for sNaN */
+   st  %fsr, [%sp + 88]
+   sethi   %hi(TWO_FIFTYTWO), %o2
+   sethi   %hi(0xf8003e0), %o5
+--- a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
 b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
+@@ -35,6 +35,7 @@
+ #define SIGN_BIT  %f12/* -0.0 */
+ 
+ ENTRY (__nearbyintf_vis3)
++  fcmps   %fcc3, %f1, %f1 /* Check for sNaN */
+   st  %fsr, [%sp + 88]
+   movwtos %o0, %f1
+   sethi   %hi(TWO_TWENTYTHREE), %o2
+--- a/sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S
 b/sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S
+@@ -36,6 +36,7 @@
+ #define SIGN_BIT  %f12/* -0.0 */
+ 
+ ENTRY (__nearbyint)
++  fcmpd   %fcc3, %f0, %f0 /* Check for sNaN */
+   st  %fsr, [%sp + 88]
+   sethi   %hi(TWO_FIFTYTWO), %o2
+   sethi   %hi(0xf8003e0), %o5
+--- a/sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S
 b/sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S
+@@ -35,6 +35,7 @@
+ #define SIGN_BIT  %f12/* -0.0 */
+ 
+ ENTRY (__nearbyintf)
++  fcmps   %fcc3, %f1, %f1 /* Check for sNaN */
+   st  %fsr, [%sp + 88]
+   st  %o0, [%sp + 68]
+   sethi   %hi(TWO_TWENTYTHREE), %o2
+--- a/sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S
 b/sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S
+@@ -35,6 +35,7 @@
+ #define SIGN_BIT  %f12/* -0.0 */
+ 
+ ENTRY (__nearbyint_vis3)
++  fcmpd   %fcc3, %f0, %f0 /* Check for sNaN */
+   stx %fsr, [%sp + STACK_BIAS + 144]
+   sethi   %hi(TWO_FIFTYTWO), %o2
+   sllx%o2, 32, %o2
+--- a/sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S
 b/sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S
+@@ -35,6 +35,7 @@
+ #define SIGN_BIT  %f12/* -0.0 */
+ 
+ ENTRY (__nearbyintf_vis3)
++  fcmps   %fcc3, %f1, %f1 /* Check for sNaN */
+   stx %fsr, [%sp + STACK_BIAS + 144]
+   sethi   %hi(0xf8003e0), %o5

[glibc] branch sid updated (b96a99b -> 15c05a5)

2016-07-01 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  b96a99b   debian/patches/sparc/cvs-sparc-nearbyint.diff: new patch 
from upstream to fix nearbyint* functions with a sNaN input on SPARC.
   new  15c05a5   hurd: fix gettimeofday call from select

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-poll_errors_fixes.diff | 86 --
 2 files changed, 52 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 gettimeofday call from select

2016-07-01 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 15c05a525cae398d254a0da8e746d3f6bef0d9af
Author: Samuel Thibault 
Date:   Fri Jul 1 20:31:19 2016 +0200

hurd: fix gettimeofday call from select

patches/hurd-i386/tg-poll_errors_fixes.diff: Update from tg branch
---
 debian/changelog   |  4 +
 debian/patches/hurd-i386/tg-poll_errors_fixes.diff | 86 --
 2 files changed, 52 insertions(+), 38 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index efeb53b..800458b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,10 @@ glibc (2.23-1) UNRELEASED; urgency=medium
   * debian/patches/sparc/cvs-sparc-nearbyint.diff: new patch from upstream
 to fix nearbyint* functions with a sNaN input on SPARC.
 
+  [ Samuel Thibault ]
+  * patches/hurd-i386/tg-poll_errors_fixes.diff: Update from tg branch, fixes
+gettimeofday call from select.
+
  -- Aurelien Jarno   Fri, 01 Jul 2016 00:17:12 +0200
 
 glibc (2.23-0experimental4) experimental; urgency=medium
diff --git a/debian/patches/hurd-i386/tg-poll_errors_fixes.diff 
b/debian/patches/hurd-i386/tg-poll_errors_fixes.diff
index 488bb3d..6737be4 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 | 145 +-
- 1 file changed, 101 insertions(+), 44 deletions(-)
+ hurd/hurdselect.c | 147 +++---
+ 1 file changed, 106 insertions(+), 41 deletions(-)
 
 diff --git a/hurd/hurdselect.c b/hurd/hurdselect.c
-index d453042..22faac9 100644
+index d453042..070ac1a 100644
 --- a/hurd/hurdselect.c
 +++ b/hurd/hurdselect.c
 @@ -34,6 +34,7 @@
@@ -53,7 +53,15 @@ index d453042..22faac9 100644
  } d[nfds];
sigset_t oset;
  
-@@ -151,30 +153,42 @@ _hurd_select (int nfds,
+@@ -118,6 +120,7 @@ _hurd_select (int nfds,
+ 
+   if (pollfds)
+ {
++  int error = 0;
+   /* Collect interesting descriptors from the user's `pollfd' array.
+We do a first pass that reads the user's array before taking
+any locks.  The second pass then only touches our own stack,
+@@ -151,28 +154,47 @@ _hurd_select (int nfds,
if (fd < _hurd_dtablesize)
  {
d[i].cell = _hurd_dtable[fd];
@@ -78,42 +86,44 @@ index d453042..22faac9 100644
 +  /* Bogus descriptor, make it EBADF already.  */
 +  d[i].error = EBADF;
 +  d[i].type = SELECT_ERROR;
-+
-+  /* And set timeout to 0.  */
-+  {
-+struct timeval now;
-+err = __gettimeofday(, NULL);
-+if (err)
-+  {
-+err = errno;
-+while (i-- > 0)
-+  if (d[i].type & ~SELECT_ERROR != 0)
-+_hurd_port_free ([i].cell->port, [i].ulink,
-+ d[i].io_port);
-+errno = err;
-+return -1;
-+  }
-+ts.tv_sec = now.tv_sec;
-+ts.tv_nsec = now.tv_usec * 1000;
-+reply_msgid = IO_SELECT_TIMEOUT_REPLY_MSGID;
-+  }
++  error = 1;
  }
  
__mutex_unlock (&_hurd_dtable_lock);
HURD_CRITICAL_END;
  
 -  if (i < nfds)
--  {
++  if (error)
+   {
 -if (sigmask)
 -  __sigprocmask (SIG_SETMASK, , NULL);
 -errno = EBADF;
 -return -1;
--  }
--
++/* Set timeout to 0.  */
++struct timeval now;
++err = __gettimeofday(, NULL);
++if (err)
++  {
++/* Really bad luck.  */
++err = errno;
++HURD_CRITICAL_BEGIN;
++__mutex_lock (&_hurd_dtable_lock);
++while (i-- > 0)
++  if (d[i].type & ~SELECT_ERROR != 0)
++_hurd_port_free ([i].cell->port, [i].ulink,
++ d[i].io_port);
++__mutex_unlock (&_hurd_dtable_lock);
++HURD_CRITICAL_END;
++errno = err;
++return -1;
++  }
++ts.tv_sec = now.tv_sec;
++ts.tv_nsec = now.tv_usec * 1000;
++reply_msgid = IO_SELECT_TIMEOUT_REPLY_MSGID;
+   }
+ 
lastfd = i - 1;
-   firstfd = i == 0 ? lastfd : 0;
- }
-@@ -199,9 +213,6 @@ _hurd_select (int nfds,
+@@ -199,9 +221,6 @@ _hurd_select (int nfds,
HURD_CRITICAL_BEGIN;
__mutex_lock (&_hurd_dtable_lock);
  
@@ -123,7 +133,7 @@ index d453042..22faac9 100644
/* Collect the ports for interesting FDs.  */
firstfd = lastfd = -1;
for (i = 0; i < nfds; ++i)
-@@ -216,9 +227,15 @@ _hurd_select (int nfds,
+@@ -216,9 +235,15 @@ _hurd_select (int nfds,
  d[i].type = type;