Bug#763705: vlc: [kfreebsd] quits after ~30 seconds: xdg_screensaver_plugin

2014-11-16 Thread Petr Salinger



It seems that sigwait() returns EINTR,
which is not even a specified error for sigwait().


It is not specified for sigwait
http://pubs.opengroup.org/onlinepubs/9699919799/functions/sigwait.html
but is is specified for sigwaitinfo
http://pubs.opengroup.org/onlinepubs/9699919799/functions/sigwaitinfo.html

It is counterintuitive, I am testing a fix now.

Petr


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/alpine.lnx.2.00.1411161024080.30...@contest.felk.cvut.cz



Bug#761509: fix for jessie?

2014-11-16 Thread Petr Salinger

It would be good to have this fixed for jessie.
Correct handling of denormals which are controlled via this register is
very important for the performance of e.g. audio applications.


If we have a patch I guess it can still be included for Jessie.


It is slightly different to #761175 as the initial value of sse
control word is same in main() and in newly created thread.

The posix says (since Issue 6) 
http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_create.html

The floating-point environment shall be inherited from the creating thread.

I am unsure whether the proper fix should be in libc or kernel.
Especially as there might be more and more CPU specific settings.

Petr


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/alpine.lnx.2.00.1411161058170.30...@contest.felk.cvut.cz



r6333 - in glibc-package/trunk/debian: . patches/kfreebsd

2014-11-16 Thread Petr Salinger
Author: ps-guest
Date: 2014-11-16 11:29:46 + (Sun, 16 Nov 2014)
New Revision: 6333

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
Log:
kfreebsd/local-sysdeps.diff: update to revision 5688 (from glibc-bsd) - do not 
return EINTR from sigwait. Closes: #763705.



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2014-11-15 14:27:10 UTC (rev 
6332)
+++ glibc-package/trunk/debian/changelog2014-11-16 11:29:46 UTC (rev 
6333)
@@ -7,6 +7,10 @@
   [ Adam Conrad ]
   * debian/rules.d/tarball.mk: Fix update-from-upstream manual/* filter rule.
 
+ [ Petr Salinger ]
+  * kfreebsd/local-sysdeps.diff: update to revision 5688 (from glibc-bsd).
+Do not return EINTR from sigwait. Closes: #763705.
+
  -- Samuel Thibault sthiba...@debian.org  Fri, 07 Nov 2014 13:48:08 +
 
 glibc (2.19-13) unstable; urgency=medium

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2014-11-15 14:27:10 UTC (rev 6332)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2014-11-16 11:29:46 UTC (rev 6333)
@@ -11201,7 +11201,7 @@
 +weak_alias (__sigtimedwait, sigtimedwait)
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/fbtl/sigwait.c
-@@ -0,0 +1,73 @@
+@@ -0,0 +1,78 @@
 +/* Copyright (C) 1997-2013 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +
@@ -11234,6 +11234,8 @@
 +static int
 +do_sigwait (const sigset_t *set, int *sig)
 +{
++  int ret;
++
 +#ifdef SIGCANCEL
 +  sigset_t tmpset;
 +  if (set != NULL
@@ -11252,8 +11254,11 @@
 +  set = tmpset;
 +}
 +#endif
-+
-+  return INLINE_SYSCALL (sigwait, 2, set, sig);
++  do {
++  ret = INLINE_SYSCALL (sigwait, 2, set, sig);
++  } while (ret == EINTR);
++  
++  return ret;
 +}
 +
 +int


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/e1xpy1a-000821...@moszumanska.debian.org



r6279 - in glibc-package/trunk/debian: . testsuite-checking

2014-10-04 Thread Petr Salinger
Author: ps-guest
Date: 2014-10-04 12:21:59 + (Sat, 04 Oct 2014)
New Revision: 6279

Modified:
   glibc-package/trunk/debian/changelog
   
glibc-package/trunk/debian/testsuite-checking/expected-results-i586-kfreebsd-gnu-libc
   
glibc-package/trunk/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i386
   
glibc-package/trunk/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i686
   
glibc-package/trunk/debian/testsuite-checking/expected-results-x86_64-kfreebsd-gnu-libc
Log:
update testsuite-checking/expected-results-*-kfreebsd-gnu-* under 10.x kernels, 
provided by Steven Chamberlain. Closes: #762404.



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2014-09-28 21:54:13 UTC (rev 
6278)
+++ glibc-package/trunk/debian/changelog2014-10-04 12:21:59 UTC (rev 
6279)
@@ -7,6 +7,10 @@
 libpthread stacks size default to 8MiB like on Linux, to avoid surprises
 with packages which assume the Linuxish default.
 
+  [ Petr Salinger ]
+  * update testsuite-checking/expected-results-*-kfreebsd-gnu-*
+under 10.x kernels, provided by Steven Chamberlain. Closes: #762404.
+
  -- Aurelien Jarno aure...@debian.org  Sat, 13 Sep 2014 07:22:45 +0200
 
 glibc (2.19-11) unstable; urgency=medium

Modified: 
glibc-package/trunk/debian/testsuite-checking/expected-results-i586-kfreebsd-gnu-libc
===
--- 
glibc-package/trunk/debian/testsuite-checking/expected-results-i586-kfreebsd-gnu-libc
   2014-09-28 21:54:13 UTC (rev 6278)
+++ 
glibc-package/trunk/debian/testsuite-checking/expected-results-i586-kfreebsd-gnu-libc
   2014-10-04 12:21:59 UTC (rev 6279)
@@ -21,6 +21,13 @@
 tst-timer5.out, Error 1
 tst-waitid.out, Error 1
 #
+# will expectedly SIGSEGV on kfreebsd 10.0 and later, due to having
+# nxstack=1 by default (bug #762404)
+#
+tst-execstack-needed.out, Error 1
+tst-execstack.out, Error 1
+tst-execstack-prog.out, Error 1
+#
 # needs newer kernel - see #716746
 #
 tst-cpuclock1.out, Error 1

Modified: 
glibc-package/trunk/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i386
===
--- 
glibc-package/trunk/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i386
   2014-09-28 21:54:13 UTC (rev 6278)
+++ 
glibc-package/trunk/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i386
   2014-10-04 12:21:59 UTC (rev 6279)
@@ -23,6 +23,13 @@
 tst-timer5.out, Error 1
 tst-waitid.out, Error 1
 #
+# will expectedly SIGSEGV on kfreebsd 10.0 and later, due to having
+# nxstack=1 by default (bug #762404)
+#
+tst-execstack-needed.out, Error 1
+tst-execstack.out, Error 1
+tst-execstack-prog.out, Error 1
+#
 # needs newer kernel - see #716746
 #
 tst-cpuclock1.out, Error 1

Modified: 
glibc-package/trunk/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i686
===
--- 
glibc-package/trunk/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i686
   2014-09-28 21:54:13 UTC (rev 6278)
+++ 
glibc-package/trunk/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i686
   2014-10-04 12:21:59 UTC (rev 6279)
@@ -21,6 +21,13 @@
 tst-timer5.out, Error 1
 tst-waitid.out, Error 1
 #
+# will expectedly SIGSEGV on kfreebsd 10.0 and later, due to having
+# nxstack=1 by default (bug #762404)
+#
+tst-execstack-needed.out, Error 1
+tst-execstack.out, Error 1
+tst-execstack-prog.out, Error 1
+#
 # needs newer kernel - see #716746
 #
 tst-cpuclock1.out, Error 1

Modified: 
glibc-package/trunk/debian/testsuite-checking/expected-results-x86_64-kfreebsd-gnu-libc
===
--- 
glibc-package/trunk/debian/testsuite-checking/expected-results-x86_64-kfreebsd-gnu-libc
 2014-09-28 21:54:13 UTC (rev 6278)
+++ 
glibc-package/trunk/debian/testsuite-checking/expected-results-x86_64-kfreebsd-gnu-libc
 2014-10-04 12:21:59 UTC (rev 6279)
@@ -22,6 +22,13 @@
 tst-waitid.out, Error 1
 tst-writev.out, Error 1
 #
+# will expectedly SIGSEGV on kfreebsd 10.0 and later, due to having
+# nxstack=1 by default (bug #762404)
+#
+tst-execstack-needed.out, Error 1
+tst-execstack.out, Error 1
+tst-execstack-prog.out, Error 1
+#
 # needs newer kernel - see #716746
 #
 tst-cpuclock1.out, Error 1


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/e1xaolx-0006ck...@moszumanska.debian.org



r6269 - in glibc-package/trunk/debian: . patches/kfreebsd

2014-09-12 Thread Petr Salinger
Author: ps-guest
Date: 2014-09-12 13:25:27 + (Fri, 12 Sep 2014)
New Revision: 6269

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-fbtl.diff
Log:
kfreebsd/local-fbtl.diff: update to revision 5520 - fixes x87 precision mode in 
newly created pthreads. Closes: #761175.



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2014-09-04 13:40:39 UTC (rev 
6268)
+++ glibc-package/trunk/debian/changelog2014-09-12 13:25:27 UTC (rev 
6269)
@@ -17,6 +17,10 @@
 conffiles /etc/ld.so.conf.d/i486-{kfreebsd-gnu.conf,gnu-gnu.conf,gnu.conf}.
 Closes: #759568.
 
+  [ Petr Salinger ]
+  * kfreebsd/local-fbtl.diff: update to revision 5520 (from glibc-bsd).
+Fixes x87 precision mode in newly created pthreads. Closes: #761175.
+
  -- Aurelien Jarno aure...@debian.org  Wed, 27 Aug 2014 08:22:41 +0200
 
 glibc (2.19-10) unstable; urgency=medium

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-fbtl.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-fbtl.diff 2014-09-04 
13:40:39 UTC (rev 6268)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-fbtl.diff 2014-09-12 
13:25:27 UTC (rev 6269)
@@ -16948,7 +16948,7 @@
 +fi
 --- /dev/null
 +++ b/fbtl/descr.h
-@@ -0,0 +1,406 @@
+@@ -0,0 +1,410 @@
 +/* Copyright (C) 2002-2013 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +   Contributed by Ulrich Drepper drep...@redhat.com, 2002.
@@ -16989,6 +16989,7 @@
 +#define __need_res_state
 +#include resolv.h
 +#include kernel-features.h
++#include fpu_control.h
 +
 +#ifndef TCB_ALIGNMENT
 +# define TCB_ALIGNMENTsizeof (double)
@@ -17346,6 +17347,9 @@
 +  /* Resolver state.  */
 +  struct __res_state res;
 +
++  /* FPU initial control word */
++  fpu_control_t fpu_control_init;
++  
 +  /* This member must be last.  */
 +  char end_padding[];
 +
@@ -23186,7 +23190,7 @@
 +}
 --- /dev/null
 +++ b/fbtl/pthread_create.c
-@@ -0,0 +1,664 @@
+@@ -0,0 +1,672 @@
 +/* Copyright (C) 2002-2013 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +   Contributed by Ulrich Drepper drep...@redhat.com, 2002.
@@ -23428,6 +23432,10 @@
 +  THREAD_SETMEM (pd, cpuclock_offset, now);
 +#endif
 +
++#if 1
++  _FPU_SETCW(pd-fpu_control_init);
++#endif
++
 +  /* Initialize resolver state pointer.  */
 +  __resp = pd-res;
 +
@@ -23719,6 +23727,10 @@
 +  pd-schedpolicy = self-schedpolicy;
 +  pd-schedparam = self-schedparam;
 +
++#if 1
++  _FPU_GETCW(pd-fpu_control_init); 
++#endif
++  
 +  /* Copy the stack guard canary.  */
 +#ifdef THREAD_COPY_STACK_GUARD
 +  THREAD_COPY_STACK_GUARD (pd);


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/e1xsqqu-00017n...@moszumanska.debian.org



Bug#761175: kfreebsd i386 changing x87 precision mode in pthreads

2014-09-11 Thread Petr Salinger

Package: libc0.1
Version: 2.13-38+deb7u2
X-Debbugs-CC: jtaylor.deb...@googlemail.com , debian-...@lists.debian.org

On Sat, 6 Sep 2014, Julian Taylor wrote:

I encountered a weird issue on kfreebsd i386 using pthreads. It seems to
change the x87 fpu precision mode (bits 8 and 9 of the control word) in
threads compared to the master. In the master its set to extended
precision, in child threads it changes to double precision. This breaks
equality of e.g. python-numpy's threaded and serial random number generator.

Is this expected? it doesn't happen on linux i386.


The thread started in kernel have different default precision
in FreeBSD compared to Linux.

The initial value of precision is set-up before main() starts,
but not in each thread.

We should think about how it should be fixed.
The new thread should either inherit FPU control word from parent, or it 
should be created with the same value as original main().


Julian, please, could you verify behaviour of linux-i386 ?

Hint:

typedef unsigned int fpu_control_t __attribute__ ((__mode__ (__HI__)));
#define _FPU_GETCW(cw) __asm__ __volatile__ (fnstcw %0 : =m (*cw))
#define _FPU_SETCW(cw) __asm__ __volatile__ (fldcw %0 : : m (*cw))

test with values 0x037f, 0x027f, 0x007f


To reproduce use this simple file and gdb on fischer.debian.org:

$ cat test.c
#include pthread.h
#include stdio.h

void *thread_fun(void *x_void_ptr)
{
   printf(thread\n);
   return NULL;
}

int main()
{
   pthread_t thread;

   if(pthread_create(thread, NULL, thread_fun, NULL)) {
   fprintf(stderr, Error creating thread\n);
   return 1;
   }
   if(pthread_join(thread, NULL)) {
   fprintf(stderr, Error joining thread\n);
   return 2;
   }
   return 0;

}

$ gcc test.c -g -pthreads

$ gdb ./a.out

(gdb) break main
Breakpoint 1 at 0x8048589: file test.c, line 14.
(gdb) break thread_fun
Breakpoint 2 at 0x8048561: file test.c, line 6.
(gdb) r
Starting program: /home/jtaylor/a.out

Breakpoint 1, main () at test.c:14
14  if(pthread_create(thread, NULL, thread_fun, NULL)) {
(gdb) p $fctrl
$1 = 4991
(gdb) c
Continuing.

Breakpoint 2, thread_fun (x_void_ptr=0x0) at test.c:6
6   printf(thread\n);
(gdb) p $fctrl
$2 = 4735



--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/alpine.lnx.2.00.140944300.8...@contest.felk.cvut.cz



r6207 - in glibc-package/trunk/debian: . patches/kfreebsd testsuite-checking

2014-07-12 Thread Petr Salinger
Author: ps-guest
Date: 2014-07-12 10:47:31 + (Sat, 12 Jul 2014)
New Revision: 6207

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-fbtl.diff
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
   
glibc-package/trunk/debian/testsuite-checking/expected-results-i586-kfreebsd-gnu-libc
   
glibc-package/trunk/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i386
   
glibc-package/trunk/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i686
   
glibc-package/trunk/debian/testsuite-checking/expected-results-x86_64-kfreebsd-gnu-libc
Log:
* kfreebsd/local-sysdeps.diff: update to revision 5490 (from glibc-bsd).
* kfreebsd/local-fbtl.diff: likewise.
* update testsuite-checking/expected-results-*-kfreebsd-gnu-*



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2014-07-10 21:12:23 UTC (rev 
6206)
+++ glibc-package/trunk/debian/changelog2014-07-12 10:47:31 UTC (rev 
6207)
@@ -14,6 +14,11 @@
   * debian/rules.d/debhelper.mk: fix dh_strip call in stage1.  Closes: 
 #754350.
 
+  [ Petr Salinger ]
+  * kfreebsd/local-sysdeps.diff: update to revision 5490 (from glibc-bsd).
+  * kfreebsd/local-fbtl.diff: likewise.
+  * update testsuite-checking/expected-results-*-kfreebsd-gnu-*
+
  -- Aurelien Jarno aure...@debian.org  Sun, 06 Jul 2014 22:34:19 +0200
 
 glibc (2.19-5) unstable; urgency=medium

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-fbtl.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-fbtl.diff 2014-07-10 
21:12:23 UTC (rev 6206)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-fbtl.diff 2014-07-12 
10:47:31 UTC (rev 6207)
@@ -22114,7 +22114,7 @@
 +#endif
 --- /dev/null
 +++ b/fbtl/pthread_cond_broadcast.c
-@@ -0,0 +1,97 @@
+@@ -0,0 +1,98 @@
 +/* Copyright (C) 2003-2013 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +   Contributed by Martin Schwidefsky schwidef...@de.ibm.com, 2003.
@@ -22202,6 +22202,7 @@
 +#endif
 +wake_all:
 +  lll_futex_wake (cond-__data.__futex, INT_MAX, pshared);
++  return 0;
 +}
 +
 +  /* We are done.  */
@@ -41128,7 +41129,7 @@
 +#include ../test-skeleton.c
 --- /dev/null
 +++ b/fbtl/tst-cancel-wrappers.sh
-@@ -0,0 +1,93 @@
+@@ -0,0 +1,92 @@
 +#! /bin/sh
 +# Test whether all cancelable functions are cancelable.
 +# Copyright (C) 2002-2013 Free Software Foundation, Inc.
@@ -41185,7 +41186,6 @@
 +C[sigsuspend]=1
 +C[sigwait]=1
 +C[sigwaitinfo]=1
-+C[system]=1
 +C[tcdrain]=1
 +C[wait]=1
 +C[waitid]=1

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2014-07-10 21:12:23 UTC (rev 6206)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2014-07-12 10:47:31 UTC (rev 6207)
@@ -9994,8 +9994,8 @@
 +#include fbtl/pthread_mutex_lock.c
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/fbtl/pthread_once.c
-@@ -0,0 +1,93 @@
-+/* Copyright (C) 2003-2013 Free Software Foundation, Inc.
+@@ -0,0 +1,131 @@
++/* Copyright (C) 2003-2014 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +   Contributed by Jakub Jelinek ja...@redhat.com, 2003.
 +
@@ -10015,6 +10015,7 @@
 +
 +#include pthreadP.h
 +#include lowlevellock.h
++#include atomic.h
 +
 +
 +unsigned long int __fork_generation attribute_hidden;
@@ -10025,11 +10026,33 @@
 +{
 +  pthread_once_t *once_control = (pthread_once_t *) arg;
 +
++  /* Reset to the uninitialized state here.  We don't need a stronger memory
++ order because we do not need to make any other of our writes visible to
++ other threads that see this value: This function will be called if we
++ get interrupted (see __pthread_once), so all we need to relay to other
++ threads is the state being reset again.  */
 +  *once_control = 0;
 +  lll_futex_wake (once_control, INT_MAX, LLL_PRIVATE);
 +}
 +
 +
++/* This is similar to a lock implementation, but we distinguish between three
++   states: not yet initialized (0), initialization finished (2), and
++   initialization in progress (__fork_generation | 1).  If in the first state,
++   threads will try to run the initialization by moving to the second state;
++   the first thread to do so via a CAS on once_control runs init_routine,
++   other threads block.
++   When forking the process, some threads can be interrupted during the second
++   state; they won't be present in the forked child, so we need to restart
++   initialization in the child.  To distinguish an in-progress initialization
++   from an interrupted initialization (in which case we need to reclaim the
++   lock), we look at the fork generation that's part of the second state: We
++   can

Bug#751565: libc: clock regression from wheezy on kfreebsd

2014-06-15 Thread Petr Salinger

notfound 751565 2.18-7

The regression is due to

2013-12-17  Joseph Myers  jos...@codesourcery.com

* sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
* sysdeps/unix/bsd/clock.c: Likewise.
* sysdeps/unix/bsd/times.c: Likewise.

I will resurrect the clock.c file into kfreebsd specific sysdeps,
and I will look at other deleted files.

Petr


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/alpine.lnx.2.00.1406151039250.4...@contest.felk.cvut.cz



r6024 - in glibc-package/branches/eglibc-2.19/debian: . patches patches/kfreebsd

2014-04-25 Thread Petr Salinger
Author: ps-guest
Date: 2014-04-25 12:36:52 + (Fri, 25 Apr 2014)
New Revision: 6024

Removed:
   
glibc-package/branches/eglibc-2.19/debian/patches/kfreebsd/local-nscd-nosendfile-fix.diff
Modified:
   glibc-package/branches/eglibc-2.19/debian/changelog
   glibc-package/branches/eglibc-2.19/debian/patches/series.kfreebsd-amd64
   glibc-package/branches/eglibc-2.19/debian/patches/series.kfreebsd-i386
Log:
kfreebsd/local-nscd-nosendfile-fix.diff: remove, fixed upstream.



Modified: glibc-package/branches/eglibc-2.19/debian/changelog
===
--- glibc-package/branches/eglibc-2.19/debian/changelog 2014-04-23 01:55:39 UTC 
(rev 6023)
+++ glibc-package/branches/eglibc-2.19/debian/changelog 2014-04-25 12:36:52 UTC 
(rev 6024)
@@ -76,6 +76,11 @@
 - debian/patches/hurd-i386/unsubmitted-gnumach.defs.diff: Rebased.
 - update testsuite hurd-i386 results.
 
+  [ Petr Salinger ]
+  * kfreebsd/local-nscd-nosendfile-fix.diff: remove, fixed upstream.
+  * kfreebsd/local-sysdeps.diff: update to revision  (from glibc-bsd).
+  * kfreebsd/local-fbtl.diff: likewise.
+
  -- Adam Conrad adcon...@0c3.net  Sun, 09 Feb 2014 09:46:13 -0700
 
 eglibc (2.18-5) UNRELEASED; urgency=medium

Deleted: 
glibc-package/branches/eglibc-2.19/debian/patches/kfreebsd/local-nscd-nosendfile-fix.diff
===
--- 
glibc-package/branches/eglibc-2.19/debian/patches/kfreebsd/local-nscd-nosendfile-fix.diff
   2014-04-23 01:55:39 UTC (rev 6023)
+++ 
glibc-package/branches/eglibc-2.19/debian/patches/kfreebsd/local-nscd-nosendfile-fix.diff
   2014-04-25 12:36:52 UTC (rev 6024)
@@ -1,11 +0,0 @@
 a/nscd/netgroupcache.c
-+++ b/nscd/netgroupcache.c
-@@ -587,6 +587,8 @@
- # ifndef __ASSUME_SENDFILE
-   use_write:
- # endif
-+#else
-+{
- #endif
- writeall (fd, dataset-resp, sizeof (innetgroup_response_header));
-   }

Modified: 
glibc-package/branches/eglibc-2.19/debian/patches/series.kfreebsd-amd64
===
--- glibc-package/branches/eglibc-2.19/debian/patches/series.kfreebsd-amd64 
2014-04-23 01:55:39 UTC (rev 6023)
+++ glibc-package/branches/eglibc-2.19/debian/patches/series.kfreebsd-amd64 
2014-04-25 12:36:52 UTC (rev 6024)
@@ -3,5 +3,4 @@
 kfreebsd/local-undef-glibc.diff
 kfreebsd/local-initgroups-order.diff
 kfreebsd/local-no-pldd.diff
-kfreebsd/local-nscd-nosendfile-fix.diff
 kfreebsd/local-nscd-no-sockcloexec.diff

Modified: glibc-package/branches/eglibc-2.19/debian/patches/series.kfreebsd-i386
===
--- glibc-package/branches/eglibc-2.19/debian/patches/series.kfreebsd-i386  
2014-04-23 01:55:39 UTC (rev 6023)
+++ glibc-package/branches/eglibc-2.19/debian/patches/series.kfreebsd-i386  
2014-04-25 12:36:52 UTC (rev 6024)
@@ -3,5 +3,4 @@
 kfreebsd/local-undef-glibc.diff
 kfreebsd/local-initgroups-order.diff
 kfreebsd/local-no-pldd.diff
-kfreebsd/local-nscd-nosendfile-fix.diff
 kfreebsd/local-nscd-no-sockcloexec.diff


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/e1wdfn6-0001yj...@moszumanska.debian.org



r6025 - in glibc-package/branches/eglibc-2.19/debian: . patches patches/kfreebsd testsuite-checking

2014-04-25 Thread Petr Salinger
Author: ps-guest
Date: 2014-04-25 17:15:15 + (Fri, 25 Apr 2014)
New Revision: 6025

Added:
   
glibc-package/branches/eglibc-2.19/debian/patches/kfreebsd/local-no-execfn.diff
Modified:
   glibc-package/branches/eglibc-2.19/debian/changelog
   glibc-package/branches/eglibc-2.19/debian/patches/kfreebsd/local-fbtl.diff
   glibc-package/branches/eglibc-2.19/debian/patches/series
   
glibc-package/branches/eglibc-2.19/debian/testsuite-checking/expected-results-i586-kfreebsd-gnu-libc
   
glibc-package/branches/eglibc-2.19/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i386
   
glibc-package/branches/eglibc-2.19/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i686
   
glibc-package/branches/eglibc-2.19/debian/testsuite-checking/expected-results-x86_64-kfreebsd-gnu-libc
Log:
* kfreebsd/local-no-execfn.diff: new patch, to handle systems without AT_EXECFN
* update to revision 5466 (from glibc-bsd).
* update testsuite-checking/expected-results-*-kfreebsd-gnu-*



Modified: glibc-package/branches/eglibc-2.19/debian/changelog
===
--- glibc-package/branches/eglibc-2.19/debian/changelog 2014-04-25 12:36:52 UTC 
(rev 6024)
+++ glibc-package/branches/eglibc-2.19/debian/changelog 2014-04-25 17:15:15 UTC 
(rev 6025)
@@ -78,8 +78,11 @@
 
   [ Petr Salinger ]
   * kfreebsd/local-nscd-nosendfile-fix.diff: remove, fixed upstream.
-  * kfreebsd/local-sysdeps.diff: update to revision  (from glibc-bsd).
+  * kfreebsd/local-no-execfn.diff: new patch, 
+  to handle systems without AT_EXECFN
+  * kfreebsd/local-sysdeps.diff: update to revision 5466 (from glibc-bsd).
   * kfreebsd/local-fbtl.diff: likewise.
+  * update testsuite-checking/expected-results-*-kfreebsd-gnu-*
 
  -- Adam Conrad adcon...@0c3.net  Sun, 09 Feb 2014 09:46:13 -0700
 

Modified: 
glibc-package/branches/eglibc-2.19/debian/patches/kfreebsd/local-fbtl.diff
===
--- glibc-package/branches/eglibc-2.19/debian/patches/kfreebsd/local-fbtl.diff  
2014-04-25 12:36:52 UTC (rev 6024)
+++ glibc-package/branches/eglibc-2.19/debian/patches/kfreebsd/local-fbtl.diff  
2014-04-25 17:15:15 UTC (rev 6025)
@@ -34098,7 +34098,7 @@
 +#endif/* pthread-functions.h */
 --- /dev/null
 +++ b/fbtl/sysdeps/pthread/pthread.h
-@@ -0,0 +1,1181 @@
+@@ -0,0 +1,1177 @@
 +/* Copyright (C) 2002-2013 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +
@@ -34495,8 +34495,6 @@
 +
 +#ifdef __USE_GNU
 +
-+#ifdef _LIBC /* not yet supported, so do not expose outside libc */
-+
 +/* Thread created with attribute ATTR will be limited to run only on
 +   the processors represented in CPUSET.  */
 +extern int pthread_attr_setaffinity_np (pthread_attr_t *__attr,
@@ -34511,6 +34509,8 @@
 +  cpu_set_t *__cpuset)
 + __THROW __nonnull ((1, 3));
 +
++#ifdef _LIBC /* not yet supported, so do not expose outside libc */
++
 +/* Get the default attributes used by pthread_create in this process.  */
 +extern int pthread_getattr_default_np (pthread_attr_t *__attr)
 + __THROW __nonnull ((1));
@@ -34550,6 +34550,7 @@
 +/* Set the scheduling priority for TARGET_THREAD.  */
 +extern int pthread_setschedprio (pthread_t __target_thread, int __prio)
 + __THROW;
++#endif /* not yet supported, so do not expose outside libc */
 +
 +
 +#ifdef __USE_GNU
@@ -34563,7 +34564,6 @@
 + __THROW __nonnull ((2));
 +#endif
 +
-+#endif /* not yet supported, so do not expose outside libc */
 +
 +#ifdef __USE_UNIX98
 +/* Determine level of concurrency.  */
@@ -34580,8 +34580,6 @@
 +   implementation.  */
 +extern int pthread_yield (void) __THROW;
 +
-+#ifdef _LIBC /* not yet supported, so do not expose outside libc */
-+
 +/* Limit specified thread TH to run only on the processors represented
 +   in CPUSET.  */
 +extern int pthread_setaffinity_np (pthread_t __th, size_t __cpusetsize,
@@ -34593,8 +34591,6 @@
 + cpu_set_t *__cpuset)
 + __THROW __nonnull ((3));
 +
-+#endif /* not yet supported, so do not expose outside libc */
-+
 +#endif
 +
 +

Added: 
glibc-package/branches/eglibc-2.19/debian/patches/kfreebsd/local-no-execfn.diff
===
--- 
glibc-package/branches/eglibc-2.19/debian/patches/kfreebsd/local-no-execfn.diff 
(rev 0)
+++ 
glibc-package/branches/eglibc-2.19/debian/patches/kfreebsd/local-no-execfn.diff 
2014-04-25 17:15:15 UTC (rev 6025)
@@ -0,0 +1,17 @@
+
+AT_EXECFN is Linux specific
+
+--- a/elf/rtld.c
 b/elf/rtld.c
+@@ -1119,9 +1119,11 @@
+ case AT_ENTRY:
+   av-a_un.a_val = *user_entry;
+   break;
++# ifdef AT_EXECFN 
+ case AT_EXECFN:
+   av-a_un.a_val = (uintptr_t) _dl_argv[0];
+   break;
++# endif   
+ }
+ #endif
+ }

Modified: glibc-package/branches/eglibc-2.19/debian/patches

Bug#742965: libc0.1: openpty()/forkpty() fail on kfreebsd =9.0

2014-04-04 Thread Petr Salinger
I wonder how to fix it.  Merely documenting the restriction isn't really 
anoption, as no widespread system has it.  Saving the signal handler,

disabling it then restoring would work but introduces a slight race
condition (a child process can exit while we're in grantpt()).


In fact, it is documented:

http://pubs.opengroup.org/onlinepubs/9699919799/functions/grantpt.html

  The behavior of the grantpt() function is unspecified if the application
  has installed a signal handler to catch SIGCHLD signals.

What is the real package, which hits this problem ?

Petr


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/alpine.lnx.2.00.1404040929190.25...@contest.felk.cvut.cz



r6009 - in glibc-package/trunk/debian: . patches/kfreebsd

2014-04-03 Thread Petr Salinger
Author: ps-guest
Date: 2014-04-03 15:10:59 + (Thu, 03 Apr 2014)
New Revision: 6009

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-fbtl.diff
Log:
update pthread.h for kfreebsd


Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2014-04-02 07:11:23 UTC (rev 
6008)
+++ glibc-package/trunk/debian/changelog2014-04-03 15:10:59 UTC (rev 
6009)
@@ -8,6 +8,10 @@
   * control.in/main: Bump hurd dependency to version with newer RPCs.
   * libc0.3.symbols.hurd-i386: Update accordingly.
 
+  [ Petr Salinger ]
+  * kfreebsd/local-sysdeps.diff: update to revision 5460 (from glibc-bsd).
+  * kfreebsd/local-fbtl.diff: likewise
+
  -- Aurelien Jarno aure...@debian.org  Sun, 02 Mar 2014 16:19:49 +0100
 
 eglibc (2.18-4) unstable; urgency=high

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-fbtl.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-fbtl.diff 2014-04-02 
07:11:23 UTC (rev 6008)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-fbtl.diff 2014-04-03 
15:10:59 UTC (rev 6009)
@@ -34098,7 +34098,7 @@
 +#endif/* pthread-functions.h */
 --- /dev/null
 +++ b/fbtl/sysdeps/pthread/pthread.h
-@@ -0,0 +1,1181 @@
+@@ -0,0 +1,1177 @@
 +/* Copyright (C) 2002-2013 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +
@@ -34495,8 +34495,6 @@
 +
 +#ifdef __USE_GNU
 +
-+#ifdef _LIBC /* not yet supported, so do not expose outside libc */
-+
 +/* Thread created with attribute ATTR will be limited to run only on
 +   the processors represented in CPUSET.  */
 +extern int pthread_attr_setaffinity_np (pthread_attr_t *__attr,
@@ -34511,6 +34509,8 @@
 +  cpu_set_t *__cpuset)
 + __THROW __nonnull ((1, 3));
 +
++#ifdef _LIBC /* not yet supported, so do not expose outside libc */
++
 +/* Get the default attributes used by pthread_create in this process.  */
 +extern int pthread_getattr_default_np (pthread_attr_t *__attr)
 + __THROW __nonnull ((1));
@@ -34550,6 +34550,7 @@
 +/* Set the scheduling priority for TARGET_THREAD.  */
 +extern int pthread_setschedprio (pthread_t __target_thread, int __prio)
 + __THROW;
++#endif /* not yet supported, so do not expose outside libc */
 +
 +
 +#ifdef __USE_GNU
@@ -34563,7 +34564,6 @@
 + __THROW __nonnull ((2));
 +#endif
 +
-+#endif /* not yet supported, so do not expose outside libc */
 +
 +#ifdef __USE_UNIX98
 +/* Determine level of concurrency.  */
@@ -34580,8 +34580,6 @@
 +   implementation.  */
 +extern int pthread_yield (void) __THROW;
 +
-+#ifdef _LIBC /* not yet supported, so do not expose outside libc */
-+
 +/* Limit specified thread TH to run only on the processors represented
 +   in CPUSET.  */
 +extern int pthread_setaffinity_np (pthread_t __th, size_t __cpusetsize,
@@ -34593,8 +34591,6 @@
 + cpu_set_t *__cpuset)
 + __THROW __nonnull ((3));
 +
-+#endif /* not yet supported, so do not expose outside libc */
-+
 +#endif
 +
 +


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/e1wvjib-0001gu...@moszumanska.debian.org



Bug#742965: libc0.1: openpty()/forkpty() fail on kfreebsd =9.0

2014-04-02 Thread Petr Salinger

Hi.

I doubt that the testcase worked under previous kernels.
The problem is not the handler for SIGCHLD, but it's content.

The openpty() uses internally fork and waitpid.
The waitpid in the testcase signal handler eats result needed by
openpty implementation.

Petr


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/alpine.lnx.2.00.1404020934590.2...@contest.felk.cvut.cz



r5955 - in glibc-package/trunk/debian: . patches/kfreebsd

2014-02-22 Thread Petr Salinger
Author: ps-guest
Date: 2014-02-22 16:20:50 + (Sat, 22 Feb 2014)
New Revision: 5955

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
Log:
kfreebsd/local-sysdeps.diff: update to revision 5443 (from glibc-bsd).   



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2014-02-21 07:09:14 UTC (rev 
5954)
+++ glibc-package/trunk/debian/changelog2014-02-22 16:20:50 UTC (rev 
5955)
@@ -3,6 +3,8 @@
   !!! PLEASE MOVE ALL MAJOR DEVELOPMENT TO THE 2.19 BRANCH OR UPSTREAM !!!
 
   * 
+  [ Petr Salinger ]
+  * kfreebsd/local-sysdeps.diff: update to revision 5443 (from glibc-bsd).
 
  -- Adam Conrad adcon...@0c3.net  Thu, 20 Feb 2014 23:39:37 -0700
 

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2014-02-21 07:09:14 UTC (rev 5954)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2014-02-22 16:20:50 UTC (rev 5955)
@@ -46,7 +46,7 @@
 +gnu
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/Makefile
-@@ -0,0 +1,134 @@
+@@ -0,0 +1,138 @@
 +# Use bash, not /bin/sh, for executing scripts, because the native
 +# FreeBSD /bin/sh does not interpret the  IFS=tab read ...  command
 +# in localedata/tst-fmon.sh correctly.
@@ -181,6 +181,10 @@
 +ifeq ($(subdir),sunrpc)
 +sysdep_headers += nfs/nfs.h
 +endif
++
++ifeq ($(subdir),rt)
++librt-routines += sys_shm_open
++endif
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/Versions
 @@ -0,0 +1,126 @@
@@ -1890,7 +1894,7 @@
 +
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/bits/param.h
-@@ -0,0 +1,192 @@
+@@ -0,0 +1,189 @@
 +/* Copyright (C) 1995,1996,1997,2000,2001,2003 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +
@@ -1971,9 +1975,6 @@
 +#ifndef MAXDUMPPGS
 +#define MAXDUMPPGS(DFLTPHYS/PAGE_SIZE)
 +#endif
-+#ifndef MAXHOSTNAMELEN
-+#define MAXHOSTNAMELEN 64 /* XXX */
-+#endif /* No MAXHOSTNAMELEN.  */
 +
 +/*
 + * Constants related to network buffer management.
@@ -19511,7 +19512,7 @@
 +#endif/* net/ethernet.h */
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/net/if.h
-@@ -0,0 +1,460 @@
+@@ -0,0 +1,438 @@
 +/*-
 + * Copyright (c) 1982, 1986, 1989, 1993
 + *The Regents of the University of California.  All rights reserved.
@@ -19586,8 +19587,8 @@
 +  unsigned char   ifi_addrlen;/* media address length */
 +  unsigned char   ifi_hdrlen; /* media header length */
 +  unsigned char   ifi_link_state; /* current link state */
-+  unsigned char   ifi_spare_char1;/* spare byte */
-+  unsigned char   ifi_spare_char2;/* spare byte */
++  unsigned char   ifi_vhid;   /* carp vhid */
++  unsigned char   ifi_baudrate_pf;/* baudrate power factor */
 +  unsigned char   ifi_datalen;/* length of this data struct */
 +  unsigned long   ifi_mtu;/* maximum transmission unit */
 +  unsigned long   ifi_metric; /* routing metric (external 
only) */
@@ -19853,30 +19854,8 @@
 +   (sizeof(struct ifreq) - sizeof(struct sockaddr) + \
 +(ifr).ifr_addr.sa_len) : sizeof(struct ifreq))
 +
-+struct ifaliasreq {
-+  charifra_name[IFNAMSIZ];/* if name, e.g. en0 */
-+  struct  sockaddr ifra_addr;
-+  struct  sockaddr ifra_broadaddr;
-+  struct  sockaddr ifra_mask;
-+};
++#include sys/kglue/net/if.h
 +
-+struct ifmediareq {
-+  charifm_name[IFNAMSIZ]; /* if name, e.g. en0 */
-+  int ifm_current;/* current media options */
-+  int ifm_mask;   /* don't care mask */
-+  int ifm_status; /* media status */
-+  int ifm_active; /* active options */
-+  int ifm_count;  /* # entries in ifm_ulist array */
-+  int *ifm_ulist; /* media words */
-+};
-+
-+struct  ifdrv {
-+  charifd_name[IFNAMSIZ]; /* if name, e.g. en0 */
-+  unsigned long   ifd_cmd;
-+  size_t  ifd_len;
-+  void*ifd_data;
-+};
-+
 +/*
 + * Structure used to retrieve aux status data from interfaces.
 + * Kernel suppliers to this interface should respect the formatting
@@ -20081,7 +20060,7 @@
 +#endif/* net/if_ether.h */
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/netinet/icmp6.h
-@@ -0,0 +1,525 @@
+@@ -0,0 +1,561 @@
 +/* Copyright (C) 1991-1997,2000,2006,2009 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +
@@ -20392,7 +20371,43 @@
 +#define ICMP6_FQDN_REPLY140 /* FQDN reply */
 +#define ICMP6_NI_QUERY  139 /* node information request

r5830 - in glibc-package/branches/glibc-branch-wheezy/debian: . patches patches/kfreebsd

2013-11-30 Thread Petr Salinger
Author: ps-guest
Date: 2013-11-30 08:22:58 + (Sat, 30 Nov 2013)
New Revision: 5830

Added:
   
glibc-package/branches/glibc-branch-wheezy/debian/patches/kfreebsd/local-initgroups-order.diff
Modified:
   glibc-package/branches/glibc-branch-wheezy/debian/changelog
   
glibc-package/branches/glibc-branch-wheezy/debian/patches/kfreebsd/local-sysdeps.diff
   
glibc-package/branches/glibc-branch-wheezy/debian/patches/series.kfreebsd-amd64
   
glibc-package/branches/glibc-branch-wheezy/debian/patches/series.kfreebsd-i386
Log:
bring kfreebsd changes from branch eglibc-2.13 into glibc-branch-wheezy


Modified: glibc-package/branches/glibc-branch-wheezy/debian/changelog
===
--- glibc-package/branches/glibc-branch-wheezy/debian/changelog 2013-11-30 
03:30:29 UTC (rev 5829)
+++ glibc-package/branches/glibc-branch-wheezy/debian/changelog 2013-11-30 
08:22:58 UTC (rev 5830)
@@ -1,5 +1,6 @@
 eglibc (2.13-39) UNRELEASED; urgency=low
 
+  [ Aurelien Jarno ]
   * debian/testsuite-checking/compare.sh: Disable failing the build on test
 regressions to ease the pain of ongoing stable/security maintenance.
   * patches/any/cvs-CVE-2012-44xx.diff: backport overflow fixes in strcoll
@@ -7,6 +8,12 @@
   * patches/any/CVE-2013-0242.diff: Backport buffer overrun in regexp matcher
 addressing CVE-2013-0242 (Closes: #699399).
 
+  [ Petr Salinger ]
+  * patches/kfreebsd/local-initgroups-order.diff: always put supplied extra
+gid as the first entry of group list in setgroups(). Closes: #699593.
+  * inline is not keyword in c89 mode, use __inline. Closes: #704598.
+  * sys_ktimer_settime have 4 parameters. Closes: #712196.
+
  -- Aurelien Jarno aure...@debian.org  Fri, 29 Nov 2013 21:59:21 +0100
 
 eglibc (2.13-38) unstable; urgency=low

Added: 
glibc-package/branches/glibc-branch-wheezy/debian/patches/kfreebsd/local-initgroups-order.diff
===
--- 
glibc-package/branches/glibc-branch-wheezy/debian/patches/kfreebsd/local-initgroups-order.diff
  (rev 0)
+++ 
glibc-package/branches/glibc-branch-wheezy/debian/patches/kfreebsd/local-initgroups-order.diff
  2013-11-30 08:22:58 UTC (rev 5830)
@@ -0,0 +1,38 @@
+
+ setgroups(size, groups) changes egid on kfreebsd, 
+ precisely groups[0] is the new egid
+
+ initgroups(user, gid) prepares the groups list
+ via internal_getgrouplist(). 
+ It puts supplied gid as the first entry in all but NSCD cases.
+ Fix the remaining NSCD case, see #698102, #699593.
+
+
+--- a/nscd/nscd_initgroups.c
 b/nscd/nscd_initgroups.c
+@@ -145,15 +145,23 @@
+ }
+ 
+   /* Check whether GROUP is part of the mix.  If not, add it.  */
++  /* The GROUP have to be in the first entry */
+   if (retval = 0)
+ {
+   int cnt;
++  gid_t sg, tg;
++  sg = group;
+   for (cnt = 0; cnt  retval; ++cnt)
+-  if ((*groupsp)[cnt] == group)
++  {
++tg = (*groupsp)[cnt];
++(*groupsp)[cnt] = sg;
++if (tg == group)
+ break;
++sg = tg;
++  }  
+ 
+   if (cnt == retval)
+-  (*groupsp)[retval++] = group;
++  (*groupsp)[retval++] = sg;
+ }
+ 
+  out_close:

Modified: 
glibc-package/branches/glibc-branch-wheezy/debian/patches/kfreebsd/local-sysdeps.diff
===
--- 
glibc-package/branches/glibc-branch-wheezy/debian/patches/kfreebsd/local-sysdeps.diff
   2013-11-30 03:30:29 UTC (rev 5829)
+++ 
glibc-package/branches/glibc-branch-wheezy/debian/patches/kfreebsd/local-sysdeps.diff
   2013-11-30 08:22:58 UTC (rev 5830)
@@ -23159,7 +23159,7 @@
 + * Given a filesystem name, determine if it is resident in the kernel,
 + * and if it is resident, return its xvfsconf structure.
 + */
-+static inline int
++static __inline int
 +getvfsbyname(const char *fsname, struct xvfsconf *vfcp)
 +{
 +  struct xvfsconf *xvfsp;
@@ -24889,7 +24889,7 @@
 +sys_clock_settime -   clock_settime   i:ip
__syscall_clock_settime
 +sys_ktimer_create -   ktimer_create   i:iPp   
__syscall_ktimer_create
 +sys_ktimer_gettime-   ktimer_gettime  i:ip
__syscall_ktimer_gettime
-+sys_ktimer_settime-   ktimer_settime  i:ip
__syscall_ktimer_settime
++sys_ktimer_settime-   ktimer_settime  i:iipp  
__syscall_ktimer_settime
 +sys_ktimer_getoverrun -   ktimer_getoverrun   i:i 
__syscall_ktimer_getoverrun
 +sys_ktimer_delete -   ktimer_delete   i:i 
__syscall_ktimer_delete
 +sys_execve-   execve  i:ppp   
__syscall_execve

Modified: 
glibc-package/branches/glibc-branch-wheezy/debian/patches/series.kfreebsd-amd64
===
--- 
glibc-package/branches/glibc-branch-wheezy/debian/patches

r5793 - glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd

2013-11-28 Thread Petr Salinger
Author: ps-guest
Date: 2013-11-28 09:40:49 + (Thu, 28 Nov 2013)
New Revision: 5793

Modified:
   
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/submitted-auxv.diff
Log:
added include of bits/auxv.h into elf.h.



Modified: 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/submitted-auxv.diff
===
--- 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/submitted-auxv.diff  
2013-11-24 18:24:33 UTC (rev 5792)
+++ 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/submitted-auxv.diff  
2013-11-28 09:40:49 UTC (rev 5793)
@@ -106,7 +106,7 @@
 index f372271..cd086ab 100644
 --- a/elf/elf.h
 +++ b/elf/elf.h
-@@ -972,66 +972,6 @@ typedef struct
+@@ -972,66 +972,7 @@ typedef struct
  } a_un;
  } Elf64_auxv_t;
  
@@ -170,6 +170,7 @@
 -#define AT_L2_CACHESHAPE  36
 -#define AT_L3_CACHESHAPE  37
 -
++#include bits/auxv.h
  /* Note section contents.  Each entry in the note section begins with
 a header of a fixed form.  */
  


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1vly5z-00019p...@moszumanska.debian.org



r5794 - in glibc-package/branches/eglibc-2.18/debian: . patches/kfreebsd

2013-11-28 Thread Petr Salinger
Author: ps-guest
Date: 2013-11-28 12:27:03 + (Thu, 28 Nov 2013)
New Revision: 5794

Modified:
   glibc-package/branches/eglibc-2.18/debian/changelog
   glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-sysdeps.diff
Log:
kfreebsd/local-sysdeps.diff: update to revision 5173 (from glibc-bsd).



Modified: glibc-package/branches/eglibc-2.18/debian/changelog
===
--- glibc-package/branches/eglibc-2.18/debian/changelog 2013-11-28 09:40:49 UTC 
(rev 5793)
+++ glibc-package/branches/eglibc-2.18/debian/changelog 2013-11-28 12:27:03 UTC 
(rev 5794)
@@ -102,7 +102,7 @@
 
   [ Petr Salinger ]
   * debian/*: change version occurences from 2.17 to 2.18 for upgrades/deps.
-  * kfreebsd/local-sysdeps.diff: update to revision 5148 (from glibc-bsd).
+  * kfreebsd/local-sysdeps.diff: update to revision 5173 (from glibc-bsd).
   * kfreebsd/local-fbtl.diff: likewise
   * sysdeps/kfreebsd.mk: pt_chown is mandatory
   * update symbols file for kfreebsd

Modified: 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-sysdeps.diff
===
--- 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-sysdeps.diff   
2013-11-28 09:40:49 UTC (rev 5793)
+++ 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-sysdeps.diff   
2013-11-28 12:27:03 UTC (rev 5794)
@@ -1945,9 +1945,9 @@
 +
 +#define MAXCOMLEN   19  /* max command name remembered */
 +#define MAXINTERP   32  /* max interpreter file name length */
-+#define MAXLOGNAME  17  /* max login name length (incl. NUL) 
*/
++#define MAXLOGNAME  33  /* max login name length (incl. NUL) 
*/
 +#define MAXUPRC CHILD_MAX   /* max simultaneous processes */
-+#define NGROUPS NGROUPS_MAX /* max number groups */
++#define NGROUPS (NGROUPS_MAX+1) /* max number groups */
 +#define MAXHOSTNAMELEN  256 /* max hostname size */
 +#define SPECNAMELEN 63  /* max length of devicename */
 +#define TTY_NAME_MAX  SPECNAMELEN
@@ -13623,7 +13623,7 @@
 +  if (__getlogin_cache == NULL)
 +{
 +  if (INLINE_SYSCALL (getlogin, 2, __getlogin_cache_room, MAXLOGNAME)  0)
-+  return -1;
++  return errno;
 +  /* The system call should return a NULL terminated name.  */
 +  if (__memchr (__getlogin_cache_room, '\0', MAXLOGNAME) == NULL)
 +  abort ();
@@ -13639,7 +13639,7 @@
 +  else
 +{
 +  __set_errno (ERANGE);
-+  return -1;
++  return ERANGE;
 +}
 +}
 +libc_hidden_def (getlogin_r)


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1vm0gs-0005a3...@moszumanska.debian.org



r5795 - in glibc-package/trunk/debian: . patches/kfreebsd

2013-11-28 Thread Petr Salinger
Author: ps-guest
Date: 2013-11-28 12:29:58 + (Thu, 28 Nov 2013)
New Revision: 5795

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
Log:
kfreebsd/local-sysdeps.diff: raise MAXLOGNAME



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-11-28 12:27:03 UTC (rev 
5794)
+++ glibc-package/trunk/debian/changelog2013-11-28 12:29:58 UTC (rev 
5795)
@@ -4,6 +4,9 @@
 
   * 
 
+  [ Petr Salinger ]
+  * kfreebsd/local-sysdeps.diff: raise MAXLOGNAME
+
  -- Adam Conrad adcon...@0c3.net  Wed, 20 Nov 2013 08:45:14 -0700
 
 eglibc (2.17-96) unstable; urgency=low

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-11-28 12:27:03 UTC (rev 5794)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-11-28 12:29:58 UTC (rev 5795)
@@ -1932,7 +1932,7 @@
 +
 +#define MAXCOMLEN   19  /* max command name remembered */
 +#define MAXINTERP   32  /* max interpreter file name length */
-+#define MAXLOGNAME  17  /* max login name length (incl. NUL) 
*/
++#define MAXLOGNAME  33  /* max login name length (incl. NUL) 
*/
 +#define MAXUPRC CHILD_MAX   /* max simultaneous processes */
 +#define NGROUPS NGROUPS_MAX /* max number groups */
 +#define MAXHOSTNAMELEN  256 /* max hostname size */


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1vm0jg-0006c6...@moszumanska.debian.org



r5777 - in glibc-package/branches/eglibc-2.18/debian: . patches/kfreebsd

2013-11-21 Thread Petr Salinger
Author: ps-guest
Date: 2013-11-21 08:48:39 + (Thu, 21 Nov 2013)
New Revision: 5777

Modified:
   glibc-package/branches/eglibc-2.18/debian/changelog
   glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-sysdeps.diff
Log:
kfreebsd/local-sysdeps.diff: update to revision 5148 (from glibc-bsd).  



Modified: glibc-package/branches/eglibc-2.18/debian/changelog
===
--- glibc-package/branches/eglibc-2.18/debian/changelog 2013-11-20 22:42:53 UTC 
(rev 5776)
+++ glibc-package/branches/eglibc-2.18/debian/changelog 2013-11-21 08:48:39 UTC 
(rev 5777)
@@ -83,7 +83,7 @@
   [ Petr Salinger ]
   * debian/*: change version occurences from 2.17 to 2.18 for upgrades/deps.
   * rules.d/build.mk: do not explicitly install symlink in rtlddir
-  * kfreebsd/local-sysdeps.diff: update to revision 5135 (from glibc-bsd).
+  * kfreebsd/local-sysdeps.diff: update to revision 5148 (from glibc-bsd).
   * kfreebsd/local-fbtl.diff: likewise
   * sysdeps/kfreebsd.mk: pt_chown is mandatory
   * update symbols file for kfreebsd

Modified: 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-sysdeps.diff
===
--- 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-sysdeps.diff   
2013-11-20 22:42:53 UTC (rev 5776)
+++ 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-sysdeps.diff   
2013-11-21 08:48:39 UTC (rev 5777)
@@ -1888,11 +1888,10 @@
 +extern int issetugid(void) __THROW;
 +
 +__END_DECLS
-+  
-\ No newline at end of file
++
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/bits/param.h
-@@ -0,0 +1,193 @@
+@@ -0,0 +1,192 @@
 +/* Copyright (C) 1995,1996,1997,2000,2001,2003 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +
@@ -1972,6 +1971,7 @@
 +#endif
 +#ifndef MAXDUMPPGS
 +#define MAXDUMPPGS(DFLTPHYS/PAGE_SIZE)
++#endif
 +#ifndef MAXHOSTNAMELEN
 +#define MAXHOSTNAMELEN 64 /* XXX */
 +#endif /* No MAXHOSTNAMELEN.  */
@@ -2022,8 +2022,6 @@
 +  ((off_t)(db)  DEV_BSHIFT)
 +#endif
 +
-+#endif /* _NO_NAMESPACE_POLLUTION */
-+
 +#define   PRIMASK 0x0ff
 +#define   PCATCH  0x100   /* OR'd with pri for tsleep to check 
signals */
 +#define   PDROP   0x200   /* OR'd with pri to stop re-entry of interlock 
mutex */


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1vjpwf-0003x9...@moszumanska.debian.org



r5756 - in glibc-package/branches/eglibc-2.18/debian: . sysdeps

2013-11-09 Thread Petr Salinger
Author: ps-guest
Date: 2013-11-09 11:30:00 + (Sat, 09 Nov 2013)
New Revision: 5756

Modified:
   glibc-package/branches/eglibc-2.18/debian/changelog
   glibc-package/branches/eglibc-2.18/debian/sysdeps/kfreebsd.mk
Log:
sysdeps/kfreebsd.mk: pt_chown is mandatory



Modified: glibc-package/branches/eglibc-2.18/debian/changelog
===
--- glibc-package/branches/eglibc-2.18/debian/changelog 2013-11-08 21:42:00 UTC 
(rev 5755)
+++ glibc-package/branches/eglibc-2.18/debian/changelog 2013-11-09 11:30:00 UTC 
(rev 5756)
@@ -65,6 +65,7 @@
   [ Petr Salinger ]
   * kfreebsd/local-sysdeps.diff: update to revision 5135 (from glibc-bsd).
   * kfreebsd/local-fbtl.diff: likewise
+  * sysdeps/kfreebsd.mk: pt_chown is mandatory
   * update symbols file for kfreebsd
   * update testsuite-checking/expected-results-*-kfreebsd-gnu-*
   * add kfreebsd/submitted-waitid.diff. Closes: #720188.

Modified: glibc-package/branches/eglibc-2.18/debian/sysdeps/kfreebsd.mk
===
--- glibc-package/branches/eglibc-2.18/debian/sysdeps/kfreebsd.mk   
2013-11-08 21:42:00 UTC (rev 5755)
+++ glibc-package/branches/eglibc-2.18/debian/sysdeps/kfreebsd.mk   
2013-11-09 11:30:00 UTC (rev 5756)
@@ -3,10 +3,10 @@
 MIN_KERNEL_SUPPORTED := 8.3.0
 libc = libc0.1
 
-# Linuxthreads Config
+# the pt_chown is mandatory for kfreebsd
 threads = yes
 libc_add-ons = ports fbtl $(add-ons)
-libc_extra_config_options = $(extra_config_options)
+libc_extra_config_options = --enable-pt_chown $(extra_config_options)
 
 ifndef KFREEBSD_SOURCE
   ifeq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1vf6jo-0001tm...@vasks.debian.org



r5757 - in glibc-package/branches/eglibc-2.18/debian: . rules.d

2013-11-09 Thread Petr Salinger
Author: ps-guest
Date: 2013-11-09 11:32:29 + (Sat, 09 Nov 2013)
New Revision: 5757

Modified:
   glibc-package/branches/eglibc-2.18/debian/changelog
   glibc-package/branches/eglibc-2.18/debian/rules.d/build.mk
Log:
rules.d/build.mk: do not explicitely install symlink in rtlddir



Modified: glibc-package/branches/eglibc-2.18/debian/changelog
===
--- glibc-package/branches/eglibc-2.18/debian/changelog 2013-11-09 11:30:00 UTC 
(rev 5756)
+++ glibc-package/branches/eglibc-2.18/debian/changelog 2013-11-09 11:32:29 UTC 
(rev 5757)
@@ -63,6 +63,7 @@
 expected-results-i686-gnu-xen: Update testsuite result.
 
   [ Petr Salinger ]
+  * rules.d/build.mk: do not explicitely install symlink in rtlddir
   * kfreebsd/local-sysdeps.diff: update to revision 5135 (from glibc-bsd).
   * kfreebsd/local-fbtl.diff: likewise
   * sysdeps/kfreebsd.mk: pt_chown is mandatory

Modified: glibc-package/branches/eglibc-2.18/debian/rules.d/build.mk
===
--- glibc-package/branches/eglibc-2.18/debian/rules.d/build.mk  2013-11-09 
11:30:00 UTC (rev 5756)
+++ glibc-package/branches/eglibc-2.18/debian/rules.d/build.mk  2013-11-09 
11:32:29 UTC (rev 5757)
@@ -256,7 +256,9 @@
fi
 
# Create the ld.so symlink to the multiarch directory
-   if [ $(curpass) = libc ]; then \
+   #if [ $(curpass) = libc ]; then \
+   # it seems that the 2.18 Makefile already install symlink in rtlddir
+   if false ; then \
  rtld_so=$$(LANG=C LC_ALL=C readelf -l 
debian/tmp-$(curpass)/usr/bin/iconv | grep 'interpreter' | sed -e 
's/.*interpreter: \(.*\)]/\1/g') ; \
  rtld_so=$$(basename $$rtld_so) ; \
  link_name=debian/tmp-$(curpass)/lib/$$rtld_so ; \


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1vf6me-00026f...@vasks.debian.org



r5758 - in glibc-package/branches/eglibc-2.18/debian: . control.in debhelper.in

2013-11-09 Thread Petr Salinger
Author: ps-guest
Date: 2013-11-09 11:50:11 + (Sat, 09 Nov 2013)
New Revision: 5758

Modified:
   glibc-package/branches/eglibc-2.18/debian/changelog
   glibc-package/branches/eglibc-2.18/debian/control
   glibc-package/branches/eglibc-2.18/debian/control.in/libc
   glibc-package/branches/eglibc-2.18/debian/copyright
   
glibc-package/branches/eglibc-2.18/debian/debhelper.in/libc-alt.lintian-overrides
   
glibc-package/branches/eglibc-2.18/debian/debhelper.in/libc-otherbuild.lintian-overrides
   glibc-package/branches/eglibc-2.18/debian/debhelper.in/libc.lintian-overrides
   glibc-package/branches/eglibc-2.18/debian/debhelper.in/libc.postinst
   glibc-package/branches/eglibc-2.18/debian/debhelper.in/libc.preinst
   glibc-package/branches/eglibc-2.18/debian/locales-depver
   glibc-package/branches/eglibc-2.18/debian/shlibver
   glibc-package/branches/eglibc-2.18/debian/symbols.wildcards
Log:
change version occurences from 2.17 to 2.18 for upgrades/deps.



Modified: glibc-package/branches/eglibc-2.18/debian/changelog
===
--- glibc-package/branches/eglibc-2.18/debian/changelog 2013-11-09 11:32:29 UTC 
(rev 5757)
+++ glibc-package/branches/eglibc-2.18/debian/changelog 2013-11-09 11:50:11 UTC 
(rev 5758)
@@ -63,6 +63,7 @@
 expected-results-i686-gnu-xen: Update testsuite result.
 
   [ Petr Salinger ]
+  * debian/*: change version occurences from 2.17 to 2.18 for upgrades/deps.
   * rules.d/build.mk: do not explicitely install symlink in rtlddir
   * kfreebsd/local-sysdeps.diff: update to revision 5135 (from glibc-bsd).
   * kfreebsd/local-fbtl.diff: likewise
@@ -79,7 +80,7 @@
  kfreebsd/submitted-libc_once.diff,
  local-pthread_at_fork.diff

- -- Adam Conrad adcon...@ubuntu.com  Sun, 25 Aug 2013 14:59:44 -0600
+ -- Adam Conrad adcon...@ubuntu.com  Sat, 09 Nov 2013 12:48:20 +0100
 
 eglibc (2.17-93) UNRELEASED; urgency=low
 

Modified: glibc-package/branches/eglibc-2.18/debian/control
===
--- glibc-package/branches/eglibc-2.18/debian/control   2013-11-09 11:32:29 UTC 
(rev 5757)
+++ glibc-package/branches/eglibc-2.18/debian/control   2013-11-09 11:50:11 UTC 
(rev 5758)
@@ -146,7 +146,7 @@
 Suggests: glibc-doc, debconf | debconf-2.0, locales [!hurd-i386]
 Provides: ${locale-compat:Depends}, libc6-sparcv9b [sparc sparc64]
 Conflicts: tzdata-etch, tzdata ( 2007k-1), prelink (= 0.0.20090311-1)
-Breaks: nscd ( 2.17), locales ( 2.17), locales-all ( 2.17), lsb-core (= 
3.2-27) [amd64 ppc64 sparc64]
+Breaks: nscd ( 2.18), locales ( 2.18), locales-all ( 2.18), lsb-core (= 
3.2-27) [amd64 ppc64 sparc64]
 Replaces: libc6-amd64 [amd64],
   libc6-i386 [i386],
   libc6-x32 [x32],
@@ -236,7 +236,7 @@
 Suggests: glibc-doc, debconf | debconf-2.0, locales [!hurd-i386]
 Provides: ${locale-compat:Depends}, libc6-sparcv9b [sparc sparc64]
 Conflicts: tzdata-etch, tzdata ( 2007k-1), prelink (= 0.0.20090311-1)
-Breaks: nscd ( 2.17), locales ( 2.17), locales-all ( 2.17), lsb-core (= 
3.2-27) [amd64 ppc64 sparc64]
+Breaks: nscd ( 2.18), locales ( 2.18), locales-all ( 2.18), lsb-core (= 
3.2-27) [amd64 ppc64 sparc64]
 Replaces: libc6-amd64 [amd64],
   libc6-i386 [i386],
   libc6-x32 [x32],
@@ -326,7 +326,7 @@
 Suggests: glibc-doc, debconf | debconf-2.0, locales [!hurd-i386]
 Provides: ${locale-compat:Depends}, libc6-sparcv9b [sparc sparc64]
 Conflicts: tzdata-etch, tzdata ( 2007k-1), prelink (= 0.0.20090311-1)
-Breaks: nscd ( 2.17), locales ( 2.17), locales-all ( 2.17), lsb-core (= 
3.2-27) [amd64 ppc64 sparc64]
+Breaks: nscd ( 2.18), locales ( 2.18), locales-all ( 2.18), lsb-core (= 
3.2-27) [amd64 ppc64 sparc64]
 Replaces: libc6-amd64 [amd64],
   libc6-i386 [i386],
   libc6-x32 [x32],
@@ -416,7 +416,7 @@
 Suggests: glibc-doc, debconf | debconf-2.0, locales [!hurd-i386]
 Provides: ${locale-compat:Depends}, libc6-sparcv9b [sparc sparc64]
 Conflicts: tzdata-etch, tzdata ( 2007k-1), prelink (= 0.0.20090311-1)
-Breaks: nscd ( 2.17), locales ( 2.17), locales-all ( 2.17), lsb-core (= 
3.2-27) [amd64 ppc64 sparc64]
+Breaks: nscd ( 2.18), locales ( 2.18), locales-all ( 2.18), lsb-core (= 
3.2-27) [amd64 ppc64 sparc64]
 Replaces: libc6-amd64 [amd64],
   libc6-i386 [i386],
   libc6-x32 [x32],

Modified: glibc-package/branches/eglibc-2.18/debian/control.in/libc
===
--- glibc-package/branches/eglibc-2.18/debian/control.in/libc   2013-11-09 
11:32:29 UTC (rev 5757)
+++ glibc-package/branches/eglibc-2.18/debian/control.in/libc   2013-11-09 
11:50:11 UTC (rev 5758)
@@ -8,7 +8,7 @@
 Suggests: glibc-doc, debconf | debconf-2.0, locales [!hurd-i386]
 Provides: ${locale-compat:Depends}, libc6-sparcv9b [sparc sparc64]
 Conflicts: tzdata-etch, tzdata ( 2007k-1), prelink (= 0.0.20090311-1)
-Breaks: nscd ( 2.17), locales ( 2.17), locales-all ( 2.17), lsb-core

r5754 - in glibc-package/branches/eglibc-2.18/debian: . patches/kfreebsd testsuite-checking

2013-11-08 Thread Petr Salinger
Author: ps-guest
Date: 2013-11-08 20:14:23 + (Fri, 08 Nov 2013)
New Revision: 5754

Modified:
   glibc-package/branches/eglibc-2.18/debian/changelog
   glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-fbtl.diff
   glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-sysdeps.diff
   
glibc-package/branches/eglibc-2.18/debian/testsuite-checking/expected-results-i486-kfreebsd-gnu-libc
   
glibc-package/branches/eglibc-2.18/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i386
   
glibc-package/branches/eglibc-2.18/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i686
   
glibc-package/branches/eglibc-2.18/debian/testsuite-checking/expected-results-x86_64-kfreebsd-gnu-libc
Log:
kfreebsd - sync with 2.18; use wait6 for waitid


Modified: glibc-package/branches/eglibc-2.18/debian/changelog
===
--- glibc-package/branches/eglibc-2.18/debian/changelog 2013-11-07 21:03:59 UTC 
(rev 5753)
+++ glibc-package/branches/eglibc-2.18/debian/changelog 2013-11-08 20:14:23 UTC 
(rev 5754)
@@ -62,11 +62,11 @@
 expected-results-i686-gnu-xen: Update testsuite result.
 
   [ Petr Salinger ]
-  * kfreebsd/local-sysdeps.diff: update to revision 5129 (from glibc-bsd).
+  * kfreebsd/local-sysdeps.diff: update to revision 5135 (from glibc-bsd).
   * kfreebsd/local-fbtl.diff: likewise
   * update symbols file for kfreebsd
   * update testsuite-checking/expected-results-*-kfreebsd-gnu-*
-  * add kfreebsd/submitted-waitid.diff
+  * add kfreebsd/submitted-waitid.diff. Closes: #720188.
   * add kfreebsd/submitted-auxv.diff. Closes: #717912.
   * drop obsolete patches/*/local-linuxthreads*
   * drop obsolete linuxthreads part of kfreebsd/local-scripts.diff

Modified: 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-fbtl.diff
===
--- glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-fbtl.diff  
2013-11-07 21:03:59 UTC (rev 5753)
+++ glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-fbtl.diff  
2013-11-08 20:14:23 UTC (rev 5754)
@@ -99,7 +99,16 @@
 +Native POSIX Threads Library by Ulrich Drepper et al
 --- /dev/null
 +++ b/fbtl/ChangeLog
-@@ -0,0 +1,12894 @@
+@@ -0,0 +1,12903 @@
++2013-06-24  Vladimir Nikulichev  v.nikulic...@gmail.com
++
++  [BZ #12310]
++  * pthread_exit.c: Add reference to pthread_create.
++
++2013-06-22  Joseph Myers  jos...@codesourcery.com
++
++  * pthread_getattr_default_np.c: Include string.h.
++
 +2013-06-15  Siddhesh Poyarekar  siddh...@redhat.com
 +
 +  * Versions (libpthread): Add GLIBC_2.18.
@@ -13595,6 +13604,7 @@
 +pthread_attr_getaffinity pthread_attr_setaffinity \
 +cleanup_routine unwind-forcedunwind \
 +pthread_setname pthread_getname \
++pthread_setattr_default_np pthread_getattr_default_np
 +
 +# lowlevelrobustlock
 +# pthread_sigqueue
@@ -13609,7 +13619,6 @@
 +#   pthread_mutexattr_setprioceiling tpp \
 +#   pthread_mutex_getprioceiling \
 +#   pthread_mutex_setprioceiling \
-+#   pthread_setattr_default_np pthread_getattr_default_np
 +
 +# commented out also in nptl
 +
@@ -14829,7 +14838,7 @@
 +  what to test?
 --- /dev/null
 +++ b/fbtl/Versions
-@@ -0,0 +1,245 @@
+@@ -0,0 +1,250 @@
 +libc {
 +  GLIBC_2.0 {
 +pthread_attr_destroy; pthread_attr_init;
@@ -15069,6 +15078,11 @@
 +pthread_setname_np; pthread_getname_np;
 +  };
 +
++  GLIBC_2.18 {
++pthread_getattr_default_np;
++pthread_setattr_default_np;
++  }
++
 +  GLIBC_PRIVATE {
 +__pthread_initialize_minimal;
 +__pthread_clock_gettime; __pthread_clock_settime;
@@ -23190,7 +23204,7 @@
 +}
 --- /dev/null
 +++ b/fbtl/pthread_create.c
-@@ -0,0 +1,672 @@
+@@ -0,0 +1,664 @@
 +/* Copyright (C) 2002-2013 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +   Contributed by Ulrich Drepper drep...@redhat.com, 2002.
@@ -23503,14 +23517,11 @@
 +#endif
 +}
 +
-+#warning call_tls_dtors will be available with 2.18 upload
-+#if 0
 +  /* Call destructors for the thread_local TLS variables.  */
 +#ifndef SHARED
 +  if (__call_tls_dtors != NULL)
 +#endif
 +__call_tls_dtors ();
-+#endif
 +
 +  /* Run the destructor for the thread-local data.  */
 +  __nptl_deallocate_tsd ();
@@ -23656,12 +23667,7 @@
 +  if (cpusetsize  0)
 +  {
 +cpu_set_t *cpuset;
-+#if 0   
 +if (__glibc_likely (__libc_use_alloca (cpusetsize)))
-+#else
-+#warning wait for 2.18  
-+if ((__libc_use_alloca (cpusetsize)))
-+#endif  
 +  cpuset = __alloca (cpusetsize);
 +else
 +  {
@@ -23956,7 +23962,7 @@
 +strong_alias (__pthread_equal, pthread_equal)
 --- /dev/null
 +++ b/fbtl/pthread_exit.c
-@@ -0,0 +1,31 @@
+@@ -0,0 +1,35 @@
 +/* Copyright (C) 2002-2013 Free

r5750 - in glibc-package/trunk/debian: . patches/kfreebsd

2013-11-07 Thread Petr Salinger
Author: ps-guest
Date: 2013-11-07 08:27:06 + (Thu, 07 Nov 2013)
New Revision: 5750

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-fbtl.diff
Log:
fbtl.diff: limit default stack size to 4 * ARCH_STACK_DEFAULT_SIZE


Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-11-03 16:24:27 UTC (rev 
5749)
+++ glibc-package/trunk/debian/changelog2013-11-07 08:27:06 UTC (rev 
5750)
@@ -28,6 +28,10 @@
   * control: Make libc0.3 break old hurd with overzealous inlines.
   * patches/hurd-i386/libpthread.diff: Synchronize with upstream.
 
+  [ Petr Salinger ]
+  * fbtl.diff: limit default stack size to 4 * ARCH_STACK_DEFAULT_SIZE.
+See #727009, #725516.
+
  -- Adam Conrad adcon...@0c3.net  Sun, 22 Sep 2013 23:39:33 -0600
 
 eglibc (2.17-93) unstable; urgency=low

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-fbtl.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-fbtl.diff 2013-11-03 
16:24:27 UTC (rev 5749)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-fbtl.diff 2013-11-07 
08:27:06 UTC (rev 5750)
@@ -17848,7 +17848,7 @@
 +#define lll_mutex_unlock(futex) __generic_mutex_unlock ((futex))
 --- /dev/null
 +++ b/fbtl/nptl-init.c
-@@ -0,0 +1,489 @@
+@@ -0,0 +1,493 @@
 +/* Copyright (C) 2002-2013 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +   Contributed by Ulrich Drepper drep...@redhat.com, 2002.
@@ -18280,6 +18280,10 @@
 +/* The system limit is unusably small.
 +   Use the minimal size acceptable.  */
 +limit.rlim_cur = PTHREAD_STACK_MIN;
++  else if (limit.rlim_cur  (4 * ARCH_STACK_DEFAULT_SIZE))
++/* The system limit is unusably high.
++   Use the maximal size acceptable.  */
++limit.rlim_cur = (4 * ARCH_STACK_DEFAULT_SIZE);
 +
 +  /* Make sure it meets the minimum size that allocate_stack
 + (allocatestack.c) will demand, which depends on the page size.  */


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1vekvj-0006zn...@vasks.debian.org



Re: hurd glibc upload?

2013-11-07 Thread Petr Salinger

Since 2.17-93 is already in testing, I guess it is fine for me to do
such upload?


Please do it, using current SVN.
kfreebsd-* will also benefit from such upload.

Thanks

Petr


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.lnx.2.00.1311071037170.8...@contest.felk.cvut.cz



r5751 - in glibc-package/branches/eglibc-2.18/debian: . patches/kfreebsd

2013-11-07 Thread Petr Salinger
Author: ps-guest
Date: 2013-11-07 12:13:47 + (Thu, 07 Nov 2013)
New Revision: 5751

Modified:
   glibc-package/branches/eglibc-2.18/debian/changelog
   glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-fbtl.diff
   glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-sysdeps.diff
Log:
kfreebsd bits - update to revision 5128 (from glibc-bsd).



Modified: glibc-package/branches/eglibc-2.18/debian/changelog
===
--- glibc-package/branches/eglibc-2.18/debian/changelog 2013-11-07 08:27:06 UTC 
(rev 5750)
+++ glibc-package/branches/eglibc-2.18/debian/changelog 2013-11-07 12:13:47 UTC 
(rev 5751)
@@ -62,7 +62,7 @@
 expected-results-i686-gnu-xen: Update testsuite result.
 
   [ Petr Salinger ]
-  * kfreebsd/local-sysdeps.diff: update to revision 5050 (from glibc-bsd).
+  * kfreebsd/local-sysdeps.diff: update to revision 5128 (from glibc-bsd).
   * kfreebsd/local-fbtl.diff: likewise
   * update symbols file for kfreebsd
   * update testsuite-checking/expected-results-*-kfreebsd-gnu-*

Modified: 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-fbtl.diff
===
--- glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-fbtl.diff  
2013-11-07 08:27:06 UTC (rev 5750)
+++ glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-fbtl.diff  
2013-11-07 12:13:47 UTC (rev 5751)
@@ -17894,7 +17894,7 @@
 +#define lll_mutex_unlock(futex) __generic_mutex_unlock ((futex))
 --- /dev/null
 +++ b/fbtl/nptl-init.c
-@@ -0,0 +1,489 @@
+@@ -0,0 +1,493 @@
 +/* Copyright (C) 2002-2013 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +   Contributed by Ulrich Drepper drep...@redhat.com, 2002.
@@ -18326,6 +18326,10 @@
 +/* The system limit is unusably small.
 +   Use the minimal size acceptable.  */
 +limit.rlim_cur = PTHREAD_STACK_MIN;
++  else if (limit.rlim_cur  (4 * ARCH_STACK_DEFAULT_SIZE))
++/* The system limit is unusably high.
++   Use the maximal size acceptable.  */
++limit.rlim_cur = (4 * ARCH_STACK_DEFAULT_SIZE);
 +
 +  /* Make sure it meets the minimum size that allocate_stack
 + (allocatestack.c) will demand, which depends on the page size.  */

Modified: 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-sysdeps.diff
===
--- 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-sysdeps.diff   
2013-11-07 08:27:06 UTC (rev 5750)
+++ 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-sysdeps.diff   
2013-11-07 12:13:47 UTC (rev 5751)
@@ -3394,7 +3394,7 @@
 +#endif /* ! _SIGSET_H_fns.  */
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/bits/socket.h
-@@ -0,0 +1,415 @@
+@@ -0,0 +1,421 @@
 +/* System-specific socket constants and types.  FreeBSD version.
 +   Copyright (C) 1991-1992,1994-1999,2000-2002 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
@@ -3793,6 +3793,12 @@
 +int l_linger; /* Time to linger.  */
 +  };
 +
++/* Magic IPv4 addresses defined in FreeBSD version of netinet/in.h, but not
++   included in Glibc version of the same header. */
++#define   INADDR_ALLRPTS_GROUP(u_int32_t)0xe016   /* 224.0.0.22, 
IGMPv3 */
++#define   INADDR_CARP_GROUP   (u_int32_t)0xe012   /* 224.0.0.18 */
++#define   INADDR_PFSYNC_GROUP (u_int32_t)0xe0f0   /* 224.0.0.240 
*/
++#define   INADDR_ALLMDNS_GROUP(u_int32_t)0xe0fb   /* 224.0.0.251 
*/
 +
 +#ifdef __USE_BSD
 +
@@ -21569,7 +21575,7 @@
 +#endif/* net/ethernet.h */
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/net/if.h
-@@ -0,0 +1,458 @@
+@@ -0,0 +1,460 @@
 +/*-
 + * Copyright (c) 1982, 1986, 1989, 1993
 + *The Regents of the University of California.  All rights reserved.
@@ -21885,6 +21891,7 @@
 +  int ifru_media;
 +  char *  ifru_data;
 +  int ifru_cap[2];
++  unsigned int ifru_fib;
 +  } ifr_ifru;
 +#define   ifr_addrifr_ifru.ifru_addr  /* address */
 +#define   ifr_dstaddr ifr_ifru.ifru_dstaddr   /* other end of p-to-p 
link */
@@ -21902,6 +21909,7 @@
 +#define   ifr_reqcap  ifr_ifru.ifru_cap[0]/* requested 
capabilities */
 +#define   ifr_curcap  ifr_ifru.ifru_cap[1]/* current capabilities 
*/
 +#define   ifr_index   ifr_ifru.ifru_index /* interface index */
++#define   ifr_fib ifr_ifru.ifru_fib   /* interface fib */
 +};
 +
 +#define   _SIZEOF_ADDR_IFREQ(ifr) \


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1veot6-0004ig...@vasks.debian.org



r5752 - in glibc-package/trunk/debian: . patches/kfreebsd

2013-11-07 Thread Petr Salinger
Author: ps-guest
Date: 2013-11-07 21:02:52 + (Thu, 07 Nov 2013)
New Revision: 5752

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
Log:
kfreebsd - sysdeps.diff: fixup get/set owner of socket



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-11-07 12:13:47 UTC (rev 
5751)
+++ glibc-package/trunk/debian/changelog2013-11-07 21:02:52 UTC (rev 
5752)
@@ -31,6 +31,7 @@
   [ Petr Salinger ]
   * fbtl.diff: limit default stack size to 4 * ARCH_STACK_DEFAULT_SIZE.
 See #727009, #725516.
+  * sysdeps.diff: fixup get/set owner of socket
 
  -- Adam Conrad adcon...@0c3.net  Sun, 22 Sep 2013 23:39:33 -0600
 

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-11-07 12:13:47 UTC (rev 5751)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-11-07 21:02:52 UTC (rev 5752)
@@ -1093,8 +1093,8 @@
 +#define F_SETLKW6413  /* Set record locking info (blocking).  */
 +
 +#if defined __USE_BSD || defined __USE_UNIX98
-+# define F_SETOWN 5   /* Get owner of socket (receiver of SIGIO).  */
-+# define F_GETOWN 6   /* Set owner of socket (receiver of SIGIO).  */
++# define F_GETOWN 5   /* Get owner of socket (receiver of SIGIO).  */
++# define F_SETOWN 6   /* Set owner of socket (receiver of SIGIO).  */
 +#endif
 +
 +/* For F_[GET|SET]FD.  */


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1vewj6-zm...@vasks.debian.org



r5753 - in glibc-package/branches/eglibc-2.18/debian: . patches/kfreebsd

2013-11-07 Thread Petr Salinger
Author: ps-guest
Date: 2013-11-07 21:03:59 + (Thu, 07 Nov 2013)
New Revision: 5753

Modified:
   glibc-package/branches/eglibc-2.18/debian/changelog
   glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-sysdeps.diff
Log:
kfreebsd/local-sysdeps.diff: update to revision 5129 (from glibc-bsd).



Modified: glibc-package/branches/eglibc-2.18/debian/changelog
===
--- glibc-package/branches/eglibc-2.18/debian/changelog 2013-11-07 21:02:52 UTC 
(rev 5752)
+++ glibc-package/branches/eglibc-2.18/debian/changelog 2013-11-07 21:03:59 UTC 
(rev 5753)
@@ -62,7 +62,7 @@
 expected-results-i686-gnu-xen: Update testsuite result.
 
   [ Petr Salinger ]
-  * kfreebsd/local-sysdeps.diff: update to revision 5128 (from glibc-bsd).
+  * kfreebsd/local-sysdeps.diff: update to revision 5129 (from glibc-bsd).
   * kfreebsd/local-fbtl.diff: likewise
   * update symbols file for kfreebsd
   * update testsuite-checking/expected-results-*-kfreebsd-gnu-*

Modified: 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-sysdeps.diff
===
--- 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-sysdeps.diff   
2013-11-07 21:02:52 UTC (rev 5752)
+++ 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-sysdeps.diff   
2013-11-07 21:03:59 UTC (rev 5753)
@@ -,8 +,8 @@
 +#define F_SETLKW6413  /* Set record locking info (blocking).  */
 +
 +#if defined __USE_BSD || defined __USE_UNIX98
-+# define F_SETOWN 5   /* Get owner of socket (receiver of SIGIO).  */
-+# define F_GETOWN 6   /* Set owner of socket (receiver of SIGIO).  */
++# define F_GETOWN 5   /* Get owner of socket (receiver of SIGIO).  */
++# define F_SETOWN 6   /* Set owner of socket (receiver of SIGIO).  */
 +#endif
 +
 +/* For F_[GET|SET]FD.  */


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1vewkc-0001af...@vasks.debian.org



Bug#722885: accept4 on kfreebsd

2013-10-14 Thread Petr Salinger

The accept4() prototype is marked as a stub.

I.e. usual configure.ac

 AC_INIT()
 AC_CHECK_FUNCS(accept4)

says

checking for accept4... no

The ruby uses own checking, which does not honour stub marking.


The way forward here will be to provide some day

#define SOCK_CLOEXEC  0x1000
#define SOCK_NONBLOCK 0x2000

matching FreeBSD 10.0 kernel and in the same time also wrappers for 
related functions with stub marking removed - not only accept4.


The eglibc still have to be functional under wheezy kernels,
i.e. (k)FreeBSD 8.3 and 9.0 to allow upgrades to jessie.
I hope that jessie will be released with 10.x kernel only.

Petr


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.lnx.2.00.1310140841080.31...@contest.felk.cvut.cz



r5722 - glibc-package/branches/eglibc-2.18/debian

2013-10-13 Thread Petr Salinger
Author: ps-guest
Date: 2013-10-13 10:30:15 + (Sun, 13 Oct 2013)
New Revision: 5722

Modified:
   glibc-package/branches/eglibc-2.18/debian/changelog
   glibc-package/branches/eglibc-2.18/debian/libc0.1.symbols.common
Log:
update symbols file for kfreebsd 


Modified: glibc-package/branches/eglibc-2.18/debian/changelog
===
--- glibc-package/branches/eglibc-2.18/debian/changelog 2013-10-10 07:24:52 UTC 
(rev 5721)
+++ glibc-package/branches/eglibc-2.18/debian/changelog 2013-10-13 10:30:15 UTC 
(rev 5722)
@@ -60,6 +60,11 @@
   * testsuite-checking/expected-results-i486-gnu-libc,
 expected-results-i686-gnu-i386: Update testsuite result.
 
+  [ Petr Salinger ]
+  * kfreebsd/local-sysdeps.diff: update to revision  (from glibc-bsd).
+  * kfreebsd/local-fbtl.diff: likewise
+  * update symbols file for kfreebsd
+
  -- Adam Conrad adcon...@ubuntu.com  Sun, 25 Aug 2013 14:59:44 -0600
 
 eglibc (2.17-93) UNRELEASED; urgency=low

Modified: glibc-package/branches/eglibc-2.18/debian/libc0.1.symbols.common
===
--- glibc-package/branches/eglibc-2.18/debian/libc0.1.symbols.common
2013-10-10 07:24:52 UTC (rev 5721)
+++ glibc-package/branches/eglibc-2.18/debian/libc0.1.symbols.common
2013-10-13 10:30:15 UTC (rev 5722)
@@ -54,5 +54,11 @@
 #include symbols.wildcards
  pthread_condattr_getclock@GLIBC_2.3.3 2.13-31
  pthread_condattr_setclock@GLIBC_2.3.3 2.13-31
+ pthread_getaffinity_np@GLIBC_2.3.4 2.18
+ pthread_setaffinity_np@GLIBC_2.3.4 2.18
+ pthread_attr_getaffinity_np@GLIBC_2.3.4 2.18
+ pthread_attr_setaffinity_np@GLIBC_2.3.4 2.18
+ pthread_setname_np@GLIBC_2.12 2.18
+ pthread_getname_np@GLIBC_2.12 2.18
 libthread_db.so.1 #PACKAGE# (= 2.17-91), #PACKAGE# #MINVER#
 #include symbols.wildcards


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1vviwb-0008jz...@vasks.debian.org



r5723 - in glibc-package/branches/eglibc-2.18/debian: . patches patches/kfreebsd

2013-10-13 Thread Petr Salinger
Author: ps-guest
Date: 2013-10-13 10:42:44 + (Sun, 13 Oct 2013)
New Revision: 5723

Added:
   
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/submitted-waitid.diff
Modified:
   glibc-package/branches/eglibc-2.18/debian/changelog
   glibc-package/branches/eglibc-2.18/debian/patches/series
Log:
add kfreebsd/submitted-waitid.diff


Modified: glibc-package/branches/eglibc-2.18/debian/changelog
===
--- glibc-package/branches/eglibc-2.18/debian/changelog 2013-10-13 10:30:15 UTC 
(rev 5722)
+++ glibc-package/branches/eglibc-2.18/debian/changelog 2013-10-13 10:42:44 UTC 
(rev 5723)
@@ -64,6 +64,7 @@
   * kfreebsd/local-sysdeps.diff: update to revision  (from glibc-bsd).
   * kfreebsd/local-fbtl.diff: likewise
   * update symbols file for kfreebsd
+  * add kfreebsd/submitted-waitid.diff
 
  -- Adam Conrad adcon...@ubuntu.com  Sun, 25 Aug 2013 14:59:44 -0600
 

Added: 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/submitted-waitid.diff
===
--- 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/submitted-waitid.diff
(rev 0)
+++ 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/submitted-waitid.diff
2013-10-13 10:42:44 UTC (rev 5723)
@@ -0,0 +1,70 @@
+
+
+http://sourceware.org/bugzilla/show_bug.cgi?id=15544
+
+
+
+diff --git a/bits/waitflags.h b/bits/waitflags.h
+index 59215f6..73fd714 100644
+--- a/bits/waitflags.h
 b/bits/waitflags.h
+@@ -24,3 +24,16 @@
+ /* Bits in the third argument to `waitpid'.  */
+ #define   WNOHANG 1   /* Don't block waiting.  */
+ #define   WUNTRACED   2   /* Report status of stopped children.  
*/
++
++/* The following values are used by the `waitid' function.  */
++#if defined __USE_SVID || defined __USE_XOPEN || defined __USE_XOPEN2K8
++# ifndef __ENUM_IDTYPE_T
++# define __ENUM_IDTYPE_T 1
++typedef enum
++{
++  P_ALL,  /* Wait for any child.  */
++  P_PID,  /* Wait for specified process.  */
++  P_PGID  /* Wait for members of process group.  */
++} idtype_t;
++# endif
++#endif
+diff --git a/posix/sys/wait.h b/posix/sys/wait.h
+index 3ecc493..5692b07 100644
+--- a/posix/sys/wait.h
 b/posix/sys/wait.h
+@@ -94,17 +94,6 @@ typedef union
+ # define W_STOPCODE(sig)  __W_STOPCODE (sig)
+ #endif
+ 
+-/* The following values are used by the `waitid' function.  */
+-#if defined __USE_SVID || defined __USE_XOPEN || defined __USE_XOPEN2K8
+-typedef enum
+-{
+-  P_ALL,  /* Wait for any child.  */
+-  P_PID,  /* Wait for specified process.  */
+-  P_PGID  /* Wait for members of process group.  */
+-} idtype_t;
+-#endif
+-
+-
+ /* Wait for a child to die.  When one does, put its status in *STAT_LOC
+and return its process ID.  For errors, return (pid_t) -1.
+ 
+diff --git a/sysdeps/unix/sysv/linux/bits/waitflags.h 
b/sysdeps/unix/sysv/linux/bits/waitflags.h
+index 2be017d..2ede21b 100644
+--- a/sysdeps/unix/sysv/linux/bits/waitflags.h
 b/sysdeps/unix/sysv/linux/bits/waitflags.h
+@@ -35,3 +35,16 @@
+ in this group */
+ #define __WALL0x4000 /* Wait for any child.  */
+ #define __WCLONE  0x8000 /* Wait for cloned process.  */
++
++/* The following values are used by the `waitid' function.  */
++#if defined __USE_SVID || defined __USE_XOPEN || defined __USE_XOPEN2K8
++# ifndef __ENUM_IDTYPE_T
++# define __ENUM_IDTYPE_T 1
++typedef enum
++{
++  P_ALL,  /* Wait for any child.  */
++  P_PID,  /* Wait for specified process.  */
++  P_PGID  /* Wait for members of process group.  */
++} idtype_t;
++# endif
++#endif

Modified: glibc-package/branches/eglibc-2.18/debian/patches/series
===
--- glibc-package/branches/eglibc-2.18/debian/patches/series2013-10-13 
10:30:15 UTC (rev 5722)
+++ glibc-package/branches/eglibc-2.18/debian/patches/series2013-10-13 
10:42:44 UTC (rev 5723)
@@ -142,6 +142,7 @@
 ia64/submitted-remainder.diff
 
 kfreebsd/submitted-libc_once.diff
+kfreebsd/submitted-waitid.diff
 kfreebsd/local-config_h_in.patch
 kfreebsd/local-grantpt.diff
 kfreebsd/local-sysdeps.diff


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1vvj8g-u0...@vasks.debian.org



r5724 - in glibc-package/branches/eglibc-2.18/debian: . patches patches/kfreebsd

2013-10-13 Thread Petr Salinger
Author: ps-guest
Date: 2013-10-13 10:48:16 + (Sun, 13 Oct 2013)
New Revision: 5724

Added:
   
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/submitted-auxv.diff
Modified:
   glibc-package/branches/eglibc-2.18/debian/changelog
   glibc-package/branches/eglibc-2.18/debian/patches/series
Log:
add kfreebsd/submitted-auxv.diff


Modified: glibc-package/branches/eglibc-2.18/debian/changelog
===
--- glibc-package/branches/eglibc-2.18/debian/changelog 2013-10-13 10:42:44 UTC 
(rev 5723)
+++ glibc-package/branches/eglibc-2.18/debian/changelog 2013-10-13 10:48:16 UTC 
(rev 5724)
@@ -65,6 +65,7 @@
   * kfreebsd/local-fbtl.diff: likewise
   * update symbols file for kfreebsd
   * add kfreebsd/submitted-waitid.diff
+  * add kfreebsd/submitted-auxv.diff. Closes: #717912.
 
  -- Adam Conrad adcon...@ubuntu.com  Sun, 25 Aug 2013 14:59:44 -0600
 

Added: 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/submitted-auxv.diff
===
--- 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/submitted-auxv.diff  
(rev 0)
+++ 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/submitted-auxv.diff  
2013-10-13 10:48:16 UTC (rev 5724)
@@ -0,0 +1,192 @@
+https://sourceware.org/bugzilla/show_bug.cgi?id=15794
+
+diff --git a/bits/auxv.h b/bits/auxv.h
+new file mode 100644
+index 000..76701c3
+--- /dev/null
 b/bits/auxv.h
+@@ -0,0 +1,76 @@
++/* Copyright (C) 1995-2013 Free Software Foundation, Inc.
++   This file is part of the GNU C Library.
++
++   The GNU C Library is free software; you can redistribute it and/or
++   modify it under the terms of the GNU Lesser General Public
++   License as published by the Free Software Foundation; either
++   version 2.1 of the License, or (at your option) any later version.
++
++   The GNU C Library is distributed in the hope that it will be useful,
++   but WITHOUT ANY WARRANTY; without even the implied warranty of
++   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
++   Lesser General Public License for more details.
++
++   You should have received a copy of the GNU Lesser General Public
++   License along with the GNU C Library; if not, see
++   http://www.gnu.org/licenses/.  */
++
++/* Legal values for a_type (entry type).  */
++
++#define AT_NULL   0   /* End of vector */
++#define AT_IGNORE 1   /* Entry should be ignored */
++#define AT_EXECFD 2   /* File descriptor of program */
++#define AT_PHDR   3   /* Program headers for program 
*/
++#define AT_PHENT  4   /* Size of program header entry */
++#define AT_PHNUM  5   /* Number of program headers */
++#define AT_PAGESZ 6   /* System page size */
++#define AT_BASE   7   /* Base address of interpreter 
*/
++#define AT_FLAGS  8   /* Flags */
++#define AT_ENTRY  9   /* Entry point of program */
++#define AT_NOTELF 10  /* Program is not ELF */
++#define AT_UID11  /* Real uid */
++#define AT_EUID   12  /* Effective uid */
++#define AT_GID13  /* Real gid */
++#define AT_EGID   14  /* Effective gid */
++#define AT_CLKTCK 17  /* Frequency of times() */
++
++/* Some more special a_type values describing the hardware.  */
++#define AT_PLATFORM   15  /* String identifying platform.  */
++#define AT_HWCAP  16  /* Machine-dependent hints about
++ processor capabilities.  */
++
++/* This entry gives some information about the FPU initialization
++   performed by the kernel.  */
++#define AT_FPUCW  18  /* Used FPU control word.  */
++
++/* Cache block sizes.  */
++#define AT_DCACHEBSIZE19  /* Data cache block size.  */
++#define AT_ICACHEBSIZE20  /* Instruction cache block 
size.  */
++#define AT_UCACHEBSIZE21  /* Unified cache block size.  */
++
++/* A special ignored value for PPC, used by the kernel to control the
++   interpretation of the AUXV. Must be  16.  */
++#define AT_IGNOREPPC  22  /* Entry should be ignored.  */
++
++#define   AT_SECURE   23  /* Boolean, was exec 
setuid-like?  */
++
++#define AT_BASE_PLATFORM 24   /* String identifying real platforms.*/
++
++#define AT_RANDOM 25  /* Address of 16 random bytes.  */
++
++#define AT_HWCAP2 26  /* More machine-dependent hints about
++ processor capabilities.  */
++
++#define AT_EXECFN 31  /* Filename of executable.  */
++
++/* Pointer to the global system page used for system calls and 

r5725 - glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd

2013-10-13 Thread Petr Salinger
Author: ps-guest
Date: 2013-10-13 15:03:52 + (Sun, 13 Oct 2013)
New Revision: 5725

Modified:
   
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/submitted-auxv.diff
Log:
update submitted-auxv.diff


Modified: 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/submitted-auxv.diff
===
--- 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/submitted-auxv.diff  
2013-10-13 10:48:16 UTC (rev 5724)
+++ 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/submitted-auxv.diff  
2013-10-13 15:03:52 UTC (rev 5725)
@@ -1,5 +1,25 @@
 https://sourceware.org/bugzilla/show_bug.cgi?id=15794
 
+--- a/misc/getauxval.c
 b/misc/getauxval.c
+@@ -24,10 +24,15 @@
+ {
+   ElfW(auxv_t) *p;
+ 
++#ifdef AT_HWCAP
+   if (type == AT_HWCAP)
+ return GLRO(dl_hwcap);
+-  else if (type == AT_HWCAP2)
++#endif
++
++#ifdef AT_HWCAP2
++  if (type == AT_HWCAP2)
+ return GLRO(dl_hwcap2);
++#endif
+ 
+   for (p = GLRO(dl_auxv); p-a_type != AT_NULL; p++)
+ if (p-a_type == type)
+
 diff --git a/bits/auxv.h b/bits/auxv.h
 new file mode 100644
 index 000..76701c3


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1vvncy-0004ud...@vasks.debian.org



r5727 - in glibc-package/branches/eglibc-2.18/debian: . patches/kfreebsd

2013-10-13 Thread Petr Salinger
Author: ps-guest
Date: 2013-10-13 15:16:10 + (Sun, 13 Oct 2013)
New Revision: 5727

Removed:
   
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-dosavesse.diff
   
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-nosavesse.diff
Modified:
   glibc-package/branches/eglibc-2.18/debian/changelog
Log:
drop obsolete kfreebsd/local-dosavesse.diff kfreebsd/local-nosavesse.diff  


Modified: glibc-package/branches/eglibc-2.18/debian/changelog
===
--- glibc-package/branches/eglibc-2.18/debian/changelog 2013-10-13 15:12:51 UTC 
(rev 5726)
+++ glibc-package/branches/eglibc-2.18/debian/changelog 2013-10-13 15:16:10 UTC 
(rev 5727)
@@ -67,6 +67,7 @@
   * add kfreebsd/submitted-waitid.diff
   * add kfreebsd/submitted-auxv.diff. Closes: #717912.
   * drop obsolete patches/*/local-linuxthreads*
+  * drop obsolete kfreebsd/local-dosavesse.diff kfreebsd/local-nosavesse.diff
 
  -- Adam Conrad adcon...@ubuntu.com  Sun, 25 Aug 2013 14:59:44 -0600
 

Deleted: 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-dosavesse.diff
===
--- 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-dosavesse.diff 
2013-10-13 15:12:51 UTC (rev 5726)
+++ 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-dosavesse.diff 
2013-10-13 15:16:10 UTC (rev 5727)
@@ -1,116 +0,0 @@
- unfortunately, it does not work
- in mean time use local-nosavesse.diff 
-
 a/linuxthreads/descr.h
-+++ b/linuxthreads/descr.h
-@@ -114,6 +114,7 @@
-   /* This overlaps tcbhead_t (see tls.h), as used for TLS without threads.  */
-   union
-   {
-+tcbhead_t tcbheader;
- struct
- {
-   void *tcb;  /* Pointer to the TCB.  This is not always
 a/linuxthreads/sysdeps/x86_64/tcb-offsets.sym
-+++ b/linuxthreads/sysdeps/x86_64/tcb-offsets.sym
-@@ -3,3 +3,4 @@
- 
- MULTIPLE_THREADS_OFFSET   offsetof (tcbhead_t, multiple_threads)
- POINTER_GUARD offsetof (tcbhead_t, pointer_guard)
-+RTLD_SAVESPACE_SSEoffsetof (tcbhead_t, rtld_savespace_sse)
 a/linuxthreads/sysdeps/x86_64/tls.h
-+++ b/linuxthreads/sysdeps/x86_64/tls.h
-@@ -26,6 +26,7 @@
- # include stdbool.h
- # include stddef.h
- # include stdint.h
-+# include xmmintrin.h
- 
- /* Type for the dtv.  */
- typedef union dtv
-@@ -46,6 +47,7 @@
-   dtv_t *dtv;
-   void *self; /* Pointer to the thread descriptor.  */
-   int multiple_threads;
-+  int __unused1;
-   uintptr_t sysinfo;
-   uintptr_t stack_guard;
-   uintptr_t pointer_guard;
-@@ -53,7 +55,13 @@
-   long gscope_flag;
- # else
-   int gscope_flag;
-+  int __unused2;
- # endif
-+  void *__padding1[7];
-+  int rtld_must_xmm_save;
-+  int __unused3;
-+   /* Have space for the post-AVX register size.  */
-+  __m128 rtld_savespace_sse[8][4];
- } tcbhead_t;
- 
- #else /* __ASSEMBLER__ */
-@@ -77,13 +85,19 @@
- #  define TLS_INIT_TCB_SIZE sizeof (tcbhead_t)
- 
- /* Alignment requirements for the initial TCB.  */
--#  define TLS_INIT_TCB_ALIGN __alignof__ (tcbhead_t)
-+//#  define TLS_INIT_TCB_ALIGN __alignof__ (tcbhead_t)
-+// Normally the above would be correct  But we have to store post-AVX
-+// vector registers in the TCB and we want the storage to be aligned.
-+// unfortunately there isn't yet a type for these values and hence no
-+// 32-byte alignment requirement.  Make this explicit, for now.
-+#  define TLS_INIT_TCB_ALIGN 32
- 
- /* This is the size of the TCB.  */
- #  define TLS_TCB_SIZE sizeof (struct _pthread_descr_struct)
- 
- /* Alignment requirements for the TCB.  */
- #  define TLS_TCB_ALIGN __alignof__ (struct _pthread_descr_struct)
-+// It is already 32B aligned
- 
- /* The TCB can have any size and the memory following the address the
-thread pointer points to is unspecified.  Allocate the TCB there.  */
-@@ -189,7 +203,42 @@
- #define THREAD_GSCOPE_WAIT() \
-   do { /* GL(dl_wait_lookup_done) () */ } while (0)
- 
-+
-+# ifdef SHARED
-+/* Defined in dl-trampoline.S.  */
-+extern void _dl_x86_64_save_sse (void);
-+extern void _dl_x86_64_restore_sse (void);
-+
-+# define RTLD_CHECK_FOREIGN_CALL \
-+  (THREAD_GETMEM (THREAD_SELF, p_header.tcbheader.rtld_must_xmm_save) != 0)
-+
-+/* NB: Don't use the xchg operation because that would imply a lock
-+   prefix which is expensive and unnecessary.  The cache line is also
-+   not contested at all.  */
-+#  define RTLD_ENABLE_FOREIGN_CALL \
-+  int old_rtld_must_xmm_save = THREAD_GETMEM (THREAD_SELF,  \
-+
p_header.tcbheader.rtld_must_xmm_save); \
-+  THREAD_SETMEM (THREAD_SELF, p_header.tcbheader.rtld_must_xmm_save, 1)
-+
-+#  define RTLD_PREPARE_FOREIGN_CALL \
-+  do if (THREAD_GETMEM (THREAD_SELF, p_header.tcbheader.rtld_must_xmm_save))  
\
-+{   \
-+  _dl_x86_64_save_sse ();  

r5728 - glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd

2013-10-13 Thread Petr Salinger
Author: ps-guest
Date: 2013-10-13 15:22:35 + (Sun, 13 Oct 2013)
New Revision: 5728

Modified:
   
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-undef-glibc.diff
Log:
refresh local-undef-glibc.diff


Modified: 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-undef-glibc.diff
===
--- 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-undef-glibc.diff
   2013-10-13 15:16:10 UTC (rev 5727)
+++ 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-undef-glibc.diff
   2013-10-13 15:22:35 UTC (rev 5728)
@@ -14,5 +14,5 @@
 these macros to test for features in specific releases.  */
 +#undef __GLIBC__
  #define   __GLIBC__   2
- #define   __GLIBC_MINOR__ 17
+ #define   __GLIBC_MINOR__ 18
  


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1vvnv5-0007sj...@vasks.debian.org



r5729 - in glibc-package/branches/eglibc-2.18/debian: . patches patches/kfreebsd

2013-10-13 Thread Petr Salinger
Author: ps-guest
Date: 2013-10-13 15:25:12 + (Sun, 13 Oct 2013)
New Revision: 5729

Removed:
   
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-pthread_at_fork.diff
   
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-use-thr-primitives.diff
   
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/submitted-libc_once.diff
Modified:
   glibc-package/branches/eglibc-2.18/debian/changelog
   glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-scripts.diff
   glibc-package/branches/eglibc-2.18/debian/patches/series
   glibc-package/branches/eglibc-2.18/debian/patches/series.kfreebsd-amd64
   glibc-package/branches/eglibc-2.18/debian/patches/series.kfreebsd-i386
Log:
drop another obsolete patches/parts


Modified: glibc-package/branches/eglibc-2.18/debian/changelog
===
--- glibc-package/branches/eglibc-2.18/debian/changelog 2013-10-13 15:22:35 UTC 
(rev 5728)
+++ glibc-package/branches/eglibc-2.18/debian/changelog 2013-10-13 15:25:12 UTC 
(rev 5729)
@@ -67,8 +67,13 @@
   * add kfreebsd/submitted-waitid.diff
   * add kfreebsd/submitted-auxv.diff. Closes: #717912.
   * drop obsolete patches/*/local-linuxthreads*
-  * drop obsolete kfreebsd/local-dosavesse.diff kfreebsd/local-nosavesse.diff
-
+  * drop obsolete linuxthreads part of kfreebsd/local-scripts.diff
+  * drop obsolete kfreebsd/local-dosavesse.diff,
+ kfreebsd/local-nosavesse.diff,
+ kfreebsd/local-use-thr-primitives.diff,
+ kfreebsd/submitted-libc_once.diff,
+ local-pthread_at_fork.diff
+   
  -- Adam Conrad adcon...@ubuntu.com  Sun, 25 Aug 2013 14:59:44 -0600
 
 eglibc (2.17-93) UNRELEASED; urgency=low

Deleted: 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-pthread_at_fork.diff
===
--- 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-pthread_at_fork.diff
   2013-10-13 15:22:35 UTC (rev 5728)
+++ 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-pthread_at_fork.diff
   2013-10-13 15:25:12 UTC (rev 5729)
@@ -1,15 +0,0 @@

- linuxthreads/old_pthread_atfork.c |2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
 a/linuxthreads/old_pthread_atfork.c
-+++ b/linuxthreads/old_pthread_atfork.c
-@@ -19,7 +19,7 @@
- 
- #include shlib-compat.h
- 
--#if SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_3)
-+#if SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_3_2)
- # define __pthread_atfork __dyn_pthread_atfork
- # include pthread_atfork.c
- # undef __pthread_atfork

Modified: 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-scripts.diff
===
--- 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-scripts.diff   
2013-10-13 15:22:35 UTC (rev 5728)
+++ 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-scripts.diff   
2013-10-13 15:25:12 UTC (rev 5729)
@@ -2,8 +2,6 @@
  abi-tags   |2 +-
  configure  |4 +++-
  configure.in   |4 +++-
- linuxthreads/shlib-versions|3 ++-
- linuxthreads_db/shlib-versions |1 +
  shlib-versions |4 
  6 files changed, 14 insertions(+), 4 deletions(-)
 
@@ -82,16 +80,3 @@
  
  # libmachuser.so.1 corresponds to mach/*.defs as of Utah's UK22 release.
  .*-.*-gnu-gnu.*   libmachuser=1
 a/linuxthreads/shlib-versions
-+++ b/linuxthreads/shlib-versions
-@@ -8,3 +8,4 @@
- x86_64-.*-linux.* libpthread=0GLIBC_2.2.5
- powerpc64-.*-linux.*  libpthread=0GLIBC_2.3
- .*-.*-linux.* libpthread=0
-+.*-.*-kfreebsd.*  libpthread=0GLIBC_2.3
 a/linuxthreads_db/shlib-versions
-+++ b/linuxthreads_db/shlib-versions
-@@ -1,2 +1,3 @@
- # The thread debug library
- .*-.*-linux.* libthread_db=1
-+.*-.*-kfreebsd.*  libthread_db=1

Deleted: 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-use-thr-primitives.diff
===
--- 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-use-thr-primitives.diff
2013-10-13 15:22:35 UTC (rev 5728)
+++ 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-use-thr-primitives.diff
2013-10-13 15:25:12 UTC (rev 5729)
@@ -1,715 +0,0 @@

- linuxthreads/Banner|2 
- linuxthreads/attr.c|4 -
- linuxthreads/cancel.c  |6 +-
- linuxthreads/descr.h   |   38 +
- linuxthreads/join.c|8 ++
- linuxthreads/manager.c |  136 
-
- linuxthreads/pthread.c |   95 --
- linuxthreads/signals.c |6 +-
- 8 files changed, 178 insertions(+), 117 deletions(-)
-
 a/linuxthreads/attr.c
-+++ b/linuxthreads/attr.c
-@@ 

r5730 - in glibc-package/branches/eglibc-2.18/debian: . testsuite-checking

2013-10-13 Thread Petr Salinger
Author: ps-guest
Date: 2013-10-13 18:03:56 + (Sun, 13 Oct 2013)
New Revision: 5730

Modified:
   glibc-package/branches/eglibc-2.18/debian/changelog
   
glibc-package/branches/eglibc-2.18/debian/testsuite-checking/expected-results-i486-kfreebsd-gnu-libc
   
glibc-package/branches/eglibc-2.18/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i386
   
glibc-package/branches/eglibc-2.18/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i686
   
glibc-package/branches/eglibc-2.18/debian/testsuite-checking/expected-results-x86_64-kfreebsd-gnu-libc
Log:
update testsuite-checking/expected-results-*-kfreebsd-gnu-*



Modified: glibc-package/branches/eglibc-2.18/debian/changelog
===
--- glibc-package/branches/eglibc-2.18/debian/changelog 2013-10-13 15:25:12 UTC 
(rev 5729)
+++ glibc-package/branches/eglibc-2.18/debian/changelog 2013-10-13 18:03:56 UTC 
(rev 5730)
@@ -64,6 +64,7 @@
   * kfreebsd/local-sysdeps.diff: update to revision  (from glibc-bsd).
   * kfreebsd/local-fbtl.diff: likewise
   * update symbols file for kfreebsd
+  * update testsuite-checking/expected-results-*-kfreebsd-gnu-*
   * add kfreebsd/submitted-waitid.diff
   * add kfreebsd/submitted-auxv.diff. Closes: #717912.
   * drop obsolete patches/*/local-linuxthreads*

Modified: 
glibc-package/branches/eglibc-2.18/debian/testsuite-checking/expected-results-i486-kfreebsd-gnu-libc
===
--- 
glibc-package/branches/eglibc-2.18/debian/testsuite-checking/expected-results-i486-kfreebsd-gnu-libc
2013-10-13 15:25:12 UTC (rev 5729)
+++ 
glibc-package/branches/eglibc-2.18/debian/testsuite-checking/expected-results-i486-kfreebsd-gnu-libc
2013-10-13 18:03:56 UTC (rev 5730)
@@ -31,7 +31,7 @@
 # fbtl, mainly unsupported PP, PI, ROBUST mutexes
 #
 tst-attr2.out, Error 1
-tst-attr3, Error 1
+tst-attr3.out, Error 1
 tst-cancel24-static.out, Error 1
 tst-cancel7.out, Error 1
 tst-cancelx7.out, Error 1
@@ -54,22 +54,22 @@
 tst-mutexpi8-static, Error 1
 tst-mutexpi9, Error 1
 tst-pthread-attr-affinity, Error 1
-tst-robust1.o, Error 1
-tst-robust2.o, Error 1
-tst-robust3.o, Error 1
-tst-robust4.o, Error 1
-tst-robust5.o, Error 1
-tst-robust6.o, Error 1
-tst-robust7.o, Error 1
-tst-robust8.o, Error 1
-tst-robust9.o, Error 1
-tst-robustpi1.o, Error 1
-tst-robustpi2.o, Error 1
-tst-robustpi3.o, Error 1
-tst-robustpi4.o, Error 1
-tst-robustpi5.o, Error 1
-tst-robustpi6.o, Error 1
-tst-robustpi7.o, Error 1
-tst-robustpi8.o, Error 1
-tst-robustpi9.o, Error 1
+tst-robust1, Error 1
+tst-robust2, Error 1
+tst-robust3, Error 1
+tst-robust4, Error 1
+tst-robust5, Error 1
+tst-robust6, Error 1
+tst-robust7, Error 1
+tst-robust8, Error 1
+tst-robust9, Error 1
+tst-robustpi1, Error 1
+tst-robustpi2, Error 1
+tst-robustpi3, Error 1
+tst-robustpi4, Error 1
+tst-robustpi5, Error 1
+tst-robustpi6, Error 1
+tst-robustpi7, Error 1
+tst-robustpi8, Error 1
+tst-robustpi9, Error 1
 tst-tls6.out, Error 1

Modified: 
glibc-package/branches/eglibc-2.18/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i386
===
--- 
glibc-package/branches/eglibc-2.18/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i386
2013-10-13 15:25:12 UTC (rev 5729)
+++ 
glibc-package/branches/eglibc-2.18/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i386
2013-10-13 18:03:56 UTC (rev 5730)
@@ -33,7 +33,7 @@
 # fbtl, mainly unsupported PP, PI, ROBUST mutexes
 #
 tst-attr2.out, Error 1
-tst-attr3, Error 1
+tst-attr3.out, Error 1
 tst-cancel24-static.out, Error 1
 tst-cancel7.out, Error 1
 tst-cancelx7.out, Error 1
@@ -56,22 +56,22 @@
 tst-mutexpi8-static, Error 1
 tst-mutexpi9, Error 1
 tst-pthread-attr-affinity, Error 1
-tst-robust1.o, Error 1
-tst-robust2.o, Error 1
-tst-robust3.o, Error 1
-tst-robust4.o, Error 1
-tst-robust5.o, Error 1
-tst-robust6.o, Error 1
-tst-robust7.o, Error 1
-tst-robust8.o, Error 1
-tst-robust9.o, Error 1
-tst-robustpi1.o, Error 1
-tst-robustpi2.o, Error 1
-tst-robustpi3.o, Error 1
-tst-robustpi4.o, Error 1
-tst-robustpi5.o, Error 1
-tst-robustpi6.o, Error 1
-tst-robustpi7.o, Error 1
-tst-robustpi8.o, Error 1
-tst-robustpi9.o, Error 1
+tst-robust1, Error 1
+tst-robust2, Error 1
+tst-robust3, Error 1
+tst-robust4, Error 1
+tst-robust5, Error 1
+tst-robust6, Error 1
+tst-robust7, Error 1
+tst-robust8, Error 1
+tst-robust9, Error 1
+tst-robustpi1, Error 1
+tst-robustpi2, Error 1
+tst-robustpi3, Error 1
+tst-robustpi4, Error 1
+tst-robustpi5, Error 1
+tst-robustpi6, Error 1
+tst-robustpi7, Error 1
+tst-robustpi8, Error 1
+tst-robustpi9, Error 1
 tst-tls6.out, Error 1

Modified: 
glibc-package/branches/eglibc-2.18/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i686
===
--- 

r5731 - glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd

2013-10-13 Thread Petr Salinger
Author: ps-guest
Date: 2013-10-13 18:06:36 + (Sun, 13 Oct 2013)
New Revision: 5731

Modified:
   
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-fbtl-depends.diff
Log:
refresh local-fbtl-depends.diff



Modified: 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-fbtl-depends.diff
===
--- 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-fbtl-depends.diff
  2013-10-13 18:03:56 UTC (rev 5730)
+++ 
glibc-package/branches/eglibc-2.18/debian/patches/kfreebsd/local-fbtl-depends.diff
  2013-10-13 18:06:36 UTC (rev 5731)
@@ -1,17 +1,20 @@
 --- a/nscd/Depend
 +++ b/nscd/Depend
-@@ -1 +1,2 @@
+@@ -1,2 +1,3 @@
  linuxthreads
 +fbtl
+ libpthread
 --- a/resolv/Depend
 +++ b/resolv/Depend
-@@ -1,2 +1,3 @@
+@@ -1,3 +1,4 @@
  linuxthreads
  nptl
 +fbtl
+ libpthread
 --- a/rt/Depend
 +++ b/rt/Depend
-@@ -1,2 +1,3 @@
+@@ -1,3 +1,4 @@
  linuxthreads
  nptl
 +fbtl
+ libpthread


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1vvq3o-wj...@vasks.debian.org



Bug#720188: kfreebsd: please implemente/expose waitid function wait6 syscall

2013-08-20 Thread Petr Salinger

It is planned, but (e)glibc 2.18 upload have to go first, due to changes of
idtype_t values. See also 218_waitid* in
http://anonscm.debian.org/viewvc/glibc-bsd/trunk/glibc-ports/

We also have to provide (reasonable) fallback implementation
under wheezy kernels.


Cool! Excellent stuff! I've tried applying 218_waitid* things against
the eglibc-package as is in the debian trunk (2.17 based) and failed
to compile it properly.
Is there a way for me to compile debs


The 218_waitid_common.diff is against main tree,
the 218_waitid_kbsd.diff is against kfreebsd/ subdir
and 218_waitid.c have to be placed as waitid.c in kfreebsd/ subdir.

It worked a month ago ;-)


or apt-get libc 2.18 with above patches applied?


The eglibc upstream have not yet merged glibc 2.18.

Petr


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.lnx.2.00.1308200815350.3...@contest.felk.cvut.cz



Bug#720188: kfreebsd: please implemente/expose waitid function wait6 syscall

2013-08-19 Thread Petr Salinger

Recently in FreeBSD waitid was implemented[1] this includes:
* waitid function, implemented via wait6 syscall
* option flags WEXITED WTRAPPED added

More details  patch in the PR linked.

This is now available in prerelease FreeBSD 9.2 (I'm using 9.2-rc2). I
have verified and tested that it works correctly for my needs.

[1] http://www.freebsd.org/cgi/query-pr.cgi?pr=170346cat=

Can it please be added to eglibc as used by Debian/kFreeBSD ports? the
9.2 kernel is already available in Debian. (If possible in sid, or
e.g. at least in experimental)

I can help writting a patch, but I have no prior knoweledge in hacking eglibc.


It is planned, but (e)glibc 2.18 upload have to go first, due to changes 
of idtype_t values. See also 218_waitid* in

http://anonscm.debian.org/viewvc/glibc-bsd/trunk/glibc-ports/

We also have to provide (reasonable) fallback implementation
under wheezy kernels.

Petr


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.lnx.2.00.1308191638450.8...@contest.felk.cvut.cz



r5680 - in glibc-package/trunk/debian: . patches/kfreebsd

2013-08-01 Thread Petr Salinger
Author: ps-guest
Date: 2013-08-01 11:03:59 + (Thu, 01 Aug 2013)
New Revision: 5680

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
Log:
* kfreebsd/local-sysdeps.diff: update to revision 4839 (from glibc-bsd).



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-07-31 21:39:14 UTC (rev 
5679)
+++ glibc-package/trunk/debian/changelog2013-08-01 11:03:59 UTC (rev 
5680)
@@ -1,5 +1,7 @@
 eglibc (2.17-92) UNRELEASED; urgency=low
 
+  [ Petr Salinger ]
+  * kfreebsd/local-sysdeps.diff: update to revision 4839 (from glibc-bsd).
   * 
 
  -- Adam Conrad adcon...@0c3.net  Wed, 31 Jul 2013 22:38:47 +0100

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-07-31 21:39:14 UTC (rev 5679)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-08-01 11:03:59 UTC (rev 5680)
@@ -9283,6 +9283,88 @@
 +  return INLINE_SYSCALL(clock_getcpuclockid2, 3, pd-tid, CPUCLOCK_WHICH_TID, 
clockid);
 +}
 --- /dev/null
 b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/fbtl/pthread_getschedparam.c
+@@ -0,0 +1,79 @@
++/* Copyright (C) 2002-2013 Free Software Foundation, Inc.
++   This file is part of the GNU C Library.
++   Contributed by Ulrich Drepper drep...@redhat.com, 2002.
++
++   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 errno.h
++#include string.h
++#include pthreadP.h
++#include lowlevellock.h
++
++
++int
++__pthread_getschedparam (threadid, policy, param)
++ pthread_t threadid;
++ int *policy;
++ struct sched_param *param;
++{
++  struct pthread *pd = (struct pthread *) threadid;
++
++  /* Make sure the descriptor is valid.  */
++  if (INVALID_TD_P (pd))
++/* Not a valid thread handle.  */
++return ESRCH;
++
++  int result = 0;
++#if 1
++#warning TODO scheduling 
++  *policy = SCHED_OTHER;
++  param-__sched_priority = 0;
++#else
++  
++  lll_lock (pd-lock, LLL_PRIVATE);
++
++  /* The library is responsible for maintaining the values at all
++ times.  If the user uses a interface other than
++ pthread_setschedparam to modify the scheduler setting it is not
++ the library's problem.  In case the descriptor's values have
++ not yet been retrieved do it now.  */
++  if ((pd-flags  ATTR_FLAG_SCHED_SET) == 0)
++{
++  if (__sched_getparam (pd-tid, pd-schedparam) != 0)
++  result = 1;
++  else
++  pd-flags |= ATTR_FLAG_SCHED_SET;
++}
++
++  if ((pd-flags  ATTR_FLAG_POLICY_SET) == 0)
++{
++  pd-schedpolicy = __sched_getscheduler (pd-tid);
++  if (pd-schedpolicy == -1)
++  result = 1;
++  else
++  pd-flags |= ATTR_FLAG_POLICY_SET;
++}
++
++  if (result == 0)
++{
++  *policy = pd-schedpolicy;
++  memcpy (param, pd-schedparam, sizeof (struct sched_param));
++}
++
++  lll_unlock (pd-lock, LLL_PRIVATE);
++#endif
++  return result;
++}
++strong_alias (__pthread_getschedparam, pthread_getschedparam)
+--- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/fbtl/pthread_kill.c
 @@ -0,0 +1,69 @@
 +/* Copyright (C) 2002-2012 Free Software Foundation, Inc.
@@ -9468,6 +9550,160 @@
 +weak_alias (__pthread_once, pthread_once)
 +hidden_def (__pthread_once)
 --- /dev/null
 b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/fbtl/pthread_setschedparam.c
+@@ -0,0 +1,78 @@
++/* Copyright (C) 2002-2013 Free Software Foundation, Inc.
++   This file is part of the GNU C Library.
++   Contributed by Ulrich Drepper drep...@redhat.com, 2002.
++
++   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

Bug#718181: missing declaration for issetugid

2013-07-28 Thread Petr Salinger

Package: libc0.1-dev
Version: 2.13-38
Severity: important
X-Debbugs-Cc: jcris...@debian.org, debian-...@lists.debian.org
User: debian-...@lists.debian.org
Usertags: kfreebsd

The pristine FreeBSD (and other BSD) provide it via unistd.h

The eglibc does not have reasonable file in bits,
where prototype can be included.
The best would be bits/unistd.h, but unfortunately,
it is included only for fortified builds

It remains to put it inside bits/posix_opt.h.

Petr

-- Forwarded message --
Date: Sun, 28 Jul 2013 12:27:53 + (GMT)
From: Julien Cristau jcris...@debian.org
Subject: Re: issetugid

On Fri, Apr 20, 2012 at 22:38:20 +0200, Petr Salinger wrote:


Hi,


Xlib uses AC_CHECK_FUNC(issetugid) in configure.ac, and then
#include unistd.h
issetugid();
in the code.  On Linux everything's fine because libc doesn't have that
function.  OTOH kfreebsd explodes with a missing prototype, see
https://buildd.debian.org/status/fetch.php?pkg=libx11arch=kfreebsd-amd64ver=2%3A1.4.99.901-1stamp=1334874367

Is that function defined somewhere on kfreebsd?  If so, where?  And
shouldn't unistd.h pull that in?


No, the prototype is not defined anywhere,
the function is available mainly for linking of old code.

The key problem is that configure uses different set of CFLAGS
compared to real build:

  checking for issetugid... yes

and

  error: implicit declaration of function 'issetugid' 
[-Werror=implicit-function-declaration]


Hi,

this issue came up again, this time for xorg-server.  See
the discussion at http://patchwork.freedesktop.org/patch/14158/

What is the reason for not declaring issetugid?
What am I supposed to use instead?

Cheers,
Julien


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.lnx.2.00.1307281523190.25...@contest.felk.cvut.cz



r5673 - glibc-package/trunk/debian

2013-07-28 Thread Petr Salinger
Author: ps-guest
Date: 2013-07-28 16:24:29 + (Sun, 28 Jul 2013)
New Revision: 5673

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/libc0.1-i386.symbols.kfreebsd-amd64
   glibc-package/trunk/debian/libc0.1.symbols.common
   glibc-package/trunk/debian/libc0.1.symbols.kfreebsd-amd64
   glibc-package/trunk/debian/libc0.1.symbols.kfreebsd-i386
Log:
raise shlibdeps and version to -91


Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-07-28 16:19:17 UTC (rev 
5672)
+++ glibc-package/trunk/debian/changelog2013-07-28 16:24:29 UTC (rev 
5673)
@@ -1,4 +1,4 @@
-eglibc (2.17-51) UNRELEASED; urgency=low
+eglibc (2.17-91) UNRELEASED; urgency=low
 
   [ Petr Salinger ]
   * switch libpthread implementation on kfreebsd-* to fbtl.

Modified: glibc-package/trunk/debian/libc0.1-i386.symbols.kfreebsd-amd64
===
--- glibc-package/trunk/debian/libc0.1-i386.symbols.kfreebsd-amd64  
2013-07-28 16:19:17 UTC (rev 5672)
+++ glibc-package/trunk/debian/libc0.1-i386.symbols.kfreebsd-amd64  
2013-07-28 16:24:29 UTC (rev 5673)
@@ -1,6 +1,6 @@
 #include libc0.1.symbols.common
-ld.so.1 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
+ld.so.1 #PACKAGE# (= 2.17-91), #PACKAGE# #MINVER#
 #include symbols.wildcards
-libc.so.0.1 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
+libc.so.0.1 #PACKAGE# (= 2.17-91), #PACKAGE# #MINVER#
 #include symbols.wildcards
 

Modified: glibc-package/trunk/debian/libc0.1.symbols.common
===
--- glibc-package/trunk/debian/libc0.1.symbols.common   2013-07-28 16:19:17 UTC 
(rev 5672)
+++ glibc-package/trunk/debian/libc0.1.symbols.common   2013-07-28 16:24:29 UTC 
(rev 5673)
@@ -1,19 +1,19 @@
-libc.so.0.1 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
+libc.so.0.1 #PACKAGE# (= 2.17-91), #PACKAGE# #MINVER#
 #include symbols.wildcards
-libBrokenLocale.so.1 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
+libBrokenLocale.so.1 #PACKAGE# (= 2.17-91), #PACKAGE# #MINVER#
 #include symbols.wildcards
-libSegFault.so #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
+libSegFault.so #PACKAGE# (= 2.17-91), #PACKAGE# #MINVER#
  __invoke_dynamic_linker__@Base 2.3.6
 #include symbols.wildcards
-libcidn.so.1 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
+libcidn.so.1 #PACKAGE# (= 2.17-91), #PACKAGE# #MINVER#
 #include symbols.wildcards
-libcrypt.so.1 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
+libcrypt.so.1 #PACKAGE# (= 2.17-91), #PACKAGE# #MINVER#
 #include symbols.wildcards
-libdl.so.2 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
+libdl.so.2 #PACKAGE# (= 2.17-91), #PACKAGE# #MINVER#
 #include symbols.wildcards
-libm.so.1 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
+libm.so.1 #PACKAGE# (= 2.17-91), #PACKAGE# #MINVER#
 #include symbols.wildcards
-libmemusage.so #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
+libmemusage.so #PACKAGE# (= 2.17-91), #PACKAGE# #MINVER#
  __invoke_dynamic_linker__@Base 2.3.6
  calloc@Base 2.3.6
  free@Base 2.3.6
@@ -23,36 +23,36 @@
  munmap@Base 2.3.6
  realloc@Base 2.3.6
 #include symbols.wildcards
-libnsl.so.1 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
+libnsl.so.1 #PACKAGE# (= 2.17-91), #PACKAGE# #MINVER#
 #include symbols.wildcards
-libnss_compat.so.2 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
+libnss_compat.so.2 #PACKAGE# (= 2.17-91), #PACKAGE# #MINVER#
 #include symbols.wildcards
-libnss_dns.so.2 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
+libnss_dns.so.2 #PACKAGE# (= 2.17-91), #PACKAGE# #MINVER#
 #include symbols.wildcards
-libnss_files.so.2 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
+libnss_files.so.2 #PACKAGE# (= 2.17-91), #PACKAGE# #MINVER#
 #include symbols.wildcards
-libnss_hesiod.so.2 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
+libnss_hesiod.so.2 #PACKAGE# (= 2.17-91), #PACKAGE# #MINVER#
 #include symbols.wildcards
-libnss_nis.so.2 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
+libnss_nis.so.2 #PACKAGE# (= 2.17-91), #PACKAGE# #MINVER#
 #include symbols.wildcards
-libnss_nisplus.so.2 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
+libnss_nisplus.so.2 #PACKAGE# (= 2.17-91), #PACKAGE# #MINVER#
 #include symbols.wildcards
-libpcprofile.so #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
+libpcprofile.so #PACKAGE# (= 2.17-91), #PACKAGE# #MINVER#
  __cyg_profile_func_enter@Base 2.3.6
  __cyg_profile_func_exit@Base 2.3.6
  __invoke_dynamic_linker__@Base 2.3.6
 #include symbols.wildcards
-libresolv.so.2 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
+libresolv.so.2 #PACKAGE# (= 2.17-91), #PACKAGE# #MINVER#
 #include symbols.wildcards
-librt.so.1 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
+librt.so.1 #PACKAGE# (= 2.17-91), #PACKAGE# #MINVER#
 #include symbols.wildcards
-libutil.so.1 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
+libutil.so.1 #PACKAGE# (= 2.17-91), #PACKAGE# #MINVER#
 #include symbols.wildcards
-libanl.so.1 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
+libanl.so.1

r5674 - glibc-package/trunk/debian

2013-07-28 Thread Petr Salinger
Author: ps-guest
Date: 2013-07-28 16:35:30 + (Sun, 28 Jul 2013)
New Revision: 5674

Modified:
   glibc-package/trunk/debian/changelog
Log:
symbols file have been prepared by Aurelien



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-07-28 16:24:29 UTC (rev 
5673)
+++ glibc-package/trunk/debian/changelog2013-07-28 16:35:30 UTC (rev 
5674)
@@ -14,6 +14,7 @@
 
   [ Aurelien Jarno ]
   * debian/rules.d/build.mk: run the testsuite in parallel again.
+  * prepare symbols file update for kfreebsd-* switch to fbtl.
 
   [ Samuel Thibault ]
   * hurd-i386/local-no-bootstrap-fs-access.diff: Do not call access at


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1v3twq-0002cc...@vasks.debian.org



r5672 - in glibc-package/trunk/debian: . patches/kfreebsd

2013-07-28 Thread Petr Salinger
Author: ps-guest
Date: 2013-07-28 16:19:17 + (Sun, 28 Jul 2013)
New Revision: 5672

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
Log:
* kfreebsd/local-sysdeps.diff: update to revision 4809 (from glibc-bsd).



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-07-27 16:37:42 UTC (rev 
5671)
+++ glibc-package/trunk/debian/changelog2013-07-28 16:19:17 UTC (rev 
5672)
@@ -7,8 +7,8 @@
 into  kfreebsd/local-nscd-no-sockcloexec.diff and
   kfreebsd/local-linuxthreads-tlsdesc.diff
   * add kfreebsd/local-fbtl.diff and kfreebsd/local-fbtl-depends.diff
-  * kfreebsd/local-sysdeps.diff: update to revision 4775 (from glibc-bsd).
-Addresses: #717032 in new binutils.
+  * kfreebsd/local-sysdeps.diff: update to revision 4809 (from glibc-bsd).
+Closes: #718181. Addresses: #717032 in new binutils.
   * update testsuite-checking/expected-results-*-kfreebsd-gnu-*
 by fbtl tests that are known to fail.
 

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-07-27 16:37:42 UTC (rev 5671)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-07-28 16:19:17 UTC (rev 5672)
@@ -46,7 +46,7 @@
 +gnu
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/Makefile
-@@ -0,0 +1,133 @@
+@@ -0,0 +1,134 @@
 +# Use bash, not /bin/sh, for executing scripts, because the native
 +# FreeBSD /bin/sh does not interpret the  IFS=tab read ...  command
 +# in localedata/tst-fmon.sh correctly.
@@ -57,6 +57,7 @@
 +ifeq ($(subdir),misc)
 +sysdep_headers += \
 + kenv.h \
++ bits/os-unistd.h \
 + sys/mount.h \
 + sys/kd.h \
 + sys/rfork.h
@@ -1864,6 +1865,18 @@
 +
 +#endif /* __USE_MISC */
 --- /dev/null
 b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/bits/os-unistd.h
+@@ -0,0 +1,8 @@
++
++__BEGIN_DECLS
++
++/* whether is current process tainted by uid or gid changes */
++extern int issetugid(void) __THROW;
++
++__END_DECLS
++  
+\ No newline at end of file
+--- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/bits/param.h
 @@ -0,0 +1,193 @@
 +/* Copyright (C) 1995,1996,1997,2000,2001,2003 Free Software Foundation, Inc.
@@ -2126,7 +2139,7 @@
 +#endif
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/bits/posix_opt.h
-@@ -0,0 +1,90 @@
+@@ -0,0 +1,92 @@
 +/* Define POSIX options for FreeBSD.
 +   Copyright (C) 1996-1997, 1999, 2000, 2002 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
@@ -2153,6 +2166,8 @@
 +#ifndef   _BITS_POSIX_OPT_H
 +#define   _BITS_POSIX_OPT_H   1
 +
++#include bits/os-unistd.h 
++
 +/* Job control is supported.  */
 +#define   _POSIX_JOB_CONTROL  1
 +
@@ -7224,7 +7239,7 @@
 +#define SEM_VALUE_MAX   (2147483647)
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/fbtl/bits/posix_opt.h
-@@ -0,0 +1,201 @@
+@@ -0,0 +1,203 @@
 +/* Define POSIX options for FreeBSD.
 +   Copyright (C) 1996-1997, 1999, 2000, 2002 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
@@ -7251,6 +7266,8 @@
 +#ifndef   _BITS_POSIX_OPT_H
 +#define   _BITS_POSIX_OPT_H   1
 +
++#include bits/os-unistd.h
++
 +/* Job control is supported.  */
 +#define   _POSIX_JOB_CONTROL  1
 +
@@ -17742,7 +17759,7 @@
 +#define DELAYTIMER_MAX2147483647
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/linuxthreads/bits/posix_opt.h
-@@ -0,0 +1,190 @@
+@@ -0,0 +1,192 @@
 +/* Define POSIX options for FreeBSD.
 +   Copyright (C) 1996-1997, 1999, 2000, 2002 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
@@ -17769,6 +17786,8 @@
 +#ifndef   _BITS_POSIX_OPT_H
 +#define   _BITS_POSIX_OPT_H   1
 +
++#include bits/os-unistd.h 
++
 +/* Job control is supported.  */
 +#define   _POSIX_JOB_CONTROL  1
 +
@@ -26623,7 +26642,7 @@
 +#endif/* sys/un.h  */
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/syscalls-inline.h
-@@ -0,0 +1,88 @@
+@@ -0,0 +1,82 @@
 +/* prototypes of generally used inline syscalls
 +   Copyright (C) 2006 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
@@ -26689,13 +26708,7 @@
 +libc_hidden_proto (__syscall_sigwaitinfo)
 +libc_hidden_proto (__syscall_sigtimedwait)
 +
-+#if 1
-+// interface might not be final
-+// see http://www.freebsd.org/cgi/query-pr.cgi?pr=180652
 +int __syscall_clock_getcpuclockid2(int64_t id, int which, clockid_t 
*clock_id);
-+#else
-+int __syscall_clock_getcpuclockid2(long id, int which, clockid_t *clock_id);
-+#endif
 +libc_hidden_proto (__syscall_clock_getcpuclockid2)
 +   
 +int __syscall_thr_exit(long *p);


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org

Bug#717912: libc0.1: getauxval() nonfunctional on kfreebsd

2013-07-27 Thread Petr Salinger

Yes, it is a header bug. It should not define AT_SECURE to
value with different meaning.


This part is now in
http://sourceware.org/bugzilla/show_bug.cgi?id=15794

Petr


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.lnx.2.00.1307271023250.29...@contest.felk.cvut.cz



Bug#717912: libc0.1: getauxval() nonfunctional on kfreebsd

2013-07-26 Thread Petr Salinger

Hi.

it does work. Try i.e.

~$ LD_SHOW_AUXV=1 /bin/true
AT_PHDR: 0x400040
AT_PHENT:56
AT_PHNUM:9
AT_PAGESZ:   4096
AT_FLAGS:0x0
AT_ENTRY:0x401274
AT_BASE: 0x800604000
AT_EXECPATH: /bin/true
AT_OSRELDATE:900044
AT_CANARY:   0x7fffef96
AT_CANARYLEN:64
AT_NCPUS:1
AT_PAGESIZES:0x7fffef7e
AT_PAGESIZESLEN: 24
AT_STACKPROT:0x7

The AT_* constant are standardized only partially,
FreeBSD kernel knows these:

/* Values for a_type. */
#define AT_NULL 0   /* Terminates the vector. */
#define AT_IGNORE   1   /* Ignored entry. */
#define AT_EXECFD   2   /* File descriptor of program to load. */
#define AT_PHDR 3   /* Program header of program already loaded. */
#define AT_PHENT4   /* Size of each program header entry. */
#define AT_PHNUM5   /* Number of program header entries. */
#define AT_PAGESZ   6   /* Page size in bytes. */
#define AT_BASE 7   /* Interpreter's base address. */
#define AT_FLAGS8   /* Flags (unused for i386). */
#define AT_ENTRY9   /* Where interpreter should transfer control. */
#define AT_NOTELF   10  /* Program is not ELF ?? */
#define AT_UID  11  /* Real uid. */
#define AT_EUID 12  /* Effective uid. */
#define AT_GID  13  /* Real gid. */
#define AT_EGID 14  /* Effective gid. */
#define AT_EXECPATH 15  /* Path to the executable. */
#define AT_CANARY   16  /* Canary for SSP. */
#define AT_CANARYLEN17  /* Length of the canary. */
#define AT_OSRELDATE18  /* OSRELDATE. */
#define AT_NCPUS19  /* Number of CPUs. */
#define AT_PAGESIZES20  /* Pagesizes. */
#define AT_PAGESIZESLEN 21  /* Number of pagesizes. */
#define AT_TIMEKEEP 22  /* Pointer to timehands. */
#define AT_STACKPROT23  /* Initial stack protection. */

#define AT_COUNT24  /* Count of defined aux entry types. */


The number 23 is AT_STACKPROT, and value 7 is correct one.
The {e,}{u,g}id values are not passed from kernel (see above)
and therefore On success, getauxval() returns the value corresponding to 
type. If type is not found, 0 is returned.


Unfortunately, glibc so far does not allow
to override AT_* constant lists by a sysdeps bits.

What is your use case for getauxval() ?

Petr


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.lnx.2.00.1307261703480.1...@contest.felk.cvut.cz



Bug#717912: libc0.1: getauxval() nonfunctional on kfreebsd

2013-07-26 Thread Petr Salinger

That means: AT_UID/et.al. are defined in the header, the kernel knows
about them, but they are not usable though getauxval().


Not exactly. These are defined, kernel does not supply them at all.
Which is perfectly valid behaviour.


That is where the actual bug is,
i.e. the headers are at odds with the kernel?


Yes, it is a header bug. It should not define AT_SECURE to
value with different meaning.


What is your use case for getauxval() ?


p11-kit 0.18.5 uses getauxval (AT_SECURE) to detect SUID or SGID 
execution.



It checks at configure time for the function with
AC_CHECK_FUNCS([getauxval], but not whether AT_SECURE works. If
getauxval is missing a replacement will be used. The fact that
getauxval(AT_SECURE) does not throw a compiler error on freebsd (as
in: error: 'AT_SECURE' undeclared) makes writing a configure test
unnecessarily complicated.


Blindly using getauxval() for detecting issetugid () is wrong approach,
especially for security detection.

Please see man page:

RETURN VALUE
   On success, getauxval() returns the value corresponding to type. 
If type is not found, 0 is returned.


ERRORS
   No errors are diagnosed.

There is no guarantee, that when AT_SECURE is defined,
it will be also supplied by kernel.

Similarly for other AT_* even under Linux.
Compare elf.h header under Linux and
  LD_SHOW_AUXV=1 /bin/true

Petr


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.lnx.2.00.1307262100210.1...@contest.felk.cvut.cz



r5668 - in glibc-package/trunk/debian: . patches sysdeps

2013-07-25 Thread Petr Salinger
Author: ps-guest
Date: 2013-07-25 06:56:58 + (Thu, 25 Jul 2013)
New Revision: 5668

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/libc0.1-i386.symbols.kfreebsd-amd64
   glibc-package/trunk/debian/libc0.1.symbols.common
   glibc-package/trunk/debian/libc0.1.symbols.kfreebsd-amd64
   glibc-package/trunk/debian/libc0.1.symbols.kfreebsd-i386
   glibc-package/trunk/debian/patches/series.kfreebsd-amd64
   glibc-package/trunk/debian/patches/series.kfreebsd-i386
   glibc-package/trunk/debian/sysdeps/kfreebsd-amd64.mk
   glibc-package/trunk/debian/sysdeps/kfreebsd-i386.mk
   glibc-package/trunk/debian/sysdeps/kfreebsd.mk
Log:
switch libpthread implementation on kfreebsd-* to fbtl.



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-07-19 20:19:19 UTC (rev 
5667)
+++ glibc-package/trunk/debian/changelog2013-07-25 06:56:58 UTC (rev 
5668)
@@ -1,15 +1,8 @@
-eglibc (2.17-8) UNRELEASED; urgency=low
+eglibc (2.17-51) UNRELEASED; urgency=low
 
-  [ Aurelien Jarno ]
-  * debian/rules.d/build.mk: run the testsuite in parallel again.
-
-  [ Samuel Thibault ]
-  * hurd-i386/local-no-bootstrap-fs-access.diff: Do not call access at
-process startup on hurd-i386. Fixes root filesystem startup.
-  * hurd-i386/unsubmitted-tls.diff: rename into tg-tls-threadvar.diff
-  * hurd-i386/tg-tls.diff: Move some hooks to tg-tls-threadvar.diff.
-
   [ Petr Salinger ]
+  * switch libpthread implementation on kfreebsd-* to fbtl.
+Closes: #703545. Closes: #665287. Closes #683825. Closes #489066.
   * split some parts of kfreebsd/local-linuxthreads29.diff
 into  kfreebsd/local-nscd-no-sockcloexec.diff and
   kfreebsd/local-linuxthreads-tlsdesc.diff
@@ -19,8 +12,17 @@
   * update testsuite-checking/expected-results-*-kfreebsd-gnu-*
 by fbtl tests that are known to fail.
 
- -- Aurelien Jarno aure...@debian.org  Sun, 30 Jun 2013 01:45:35 +0200
+  [ Aurelien Jarno ]
+  * debian/rules.d/build.mk: run the testsuite in parallel again.
 
+  [ Samuel Thibault ]
+  * hurd-i386/local-no-bootstrap-fs-access.diff: Do not call access at
+process startup on hurd-i386. Fixes root filesystem startup.
+  * hurd-i386/unsubmitted-tls.diff: rename into tg-tls-threadvar.diff
+  * hurd-i386/tg-tls.diff: Move some hooks to tg-tls-threadvar.diff.
+
+ -- Aurelien Jarno aure...@debian.org  Thu, 25 Jul 2013 08:45:35 +0200
+
 eglibc (2.17-7) unstable; urgency=medium
 
   [ Aurelien Jarno ]

Modified: glibc-package/trunk/debian/libc0.1-i386.symbols.kfreebsd-amd64
===
--- glibc-package/trunk/debian/libc0.1-i386.symbols.kfreebsd-amd64  
2013-07-19 20:19:19 UTC (rev 5667)
+++ glibc-package/trunk/debian/libc0.1-i386.symbols.kfreebsd-amd64  
2013-07-25 06:56:58 UTC (rev 5668)
@@ -1,5 +1,6 @@
 #include libc0.1.symbols.common
-ld.so.1 #PACKAGE# #MINVER#
+ld.so.1 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
 #include symbols.wildcards
-libc.so.0.1 #PACKAGE# #MINVER#
+libc.so.0.1 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
 #include symbols.wildcards
+

Modified: glibc-package/trunk/debian/libc0.1.symbols.common
===
--- glibc-package/trunk/debian/libc0.1.symbols.common   2013-07-19 20:19:19 UTC 
(rev 5667)
+++ glibc-package/trunk/debian/libc0.1.symbols.common   2013-07-25 06:56:58 UTC 
(rev 5668)
@@ -1,19 +1,19 @@
-libc.so.0.1 #PACKAGE# #MINVER#
+libc.so.0.1 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
 #include symbols.wildcards
-libBrokenLocale.so.1 #PACKAGE# #MINVER#
+libBrokenLocale.so.1 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
 #include symbols.wildcards
-libSegFault.so #PACKAGE# #MINVER#
+libSegFault.so #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
  __invoke_dynamic_linker__@Base 2.3.6
 #include symbols.wildcards
-libcidn.so.1 #PACKAGE# #MINVER#
+libcidn.so.1 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
 #include symbols.wildcards
-libcrypt.so.1 #PACKAGE# #MINVER#
+libcrypt.so.1 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
 #include symbols.wildcards
-libdl.so.2 #PACKAGE# #MINVER#
+libdl.so.2 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
 #include symbols.wildcards
-libm.so.1 #PACKAGE# #MINVER#
+libm.so.1 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
 #include symbols.wildcards
-libmemusage.so #PACKAGE# #MINVER#
+libmemusage.so #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
  __invoke_dynamic_linker__@Base 2.3.6
  calloc@Base 2.3.6
  free@Base 2.3.6
@@ -23,36 +23,36 @@
  munmap@Base 2.3.6
  realloc@Base 2.3.6
 #include symbols.wildcards
-libnsl.so.1 #PACKAGE# #MINVER#
+libnsl.so.1 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
 #include symbols.wildcards
-libnss_compat.so.2 #PACKAGE# #MINVER#
+libnss_compat.so.2 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
 #include symbols.wildcards
-libnss_dns.so.2 #PACKAGE# #MINVER#
+libnss_dns.so.2 #PACKAGE# (= 2.17-50), #PACKAGE# #MINVER#
 #include

r5669 - glibc-package/trunk/debian

2013-07-25 Thread Petr Salinger
Author: ps-guest
Date: 2013-07-25 07:33:04 + (Thu, 25 Jul 2013)
New Revision: 5669

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



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-07-25 06:56:58 UTC (rev 
5668)
+++ glibc-package/trunk/debian/changelog2013-07-25 07:33:04 UTC (rev 
5669)
@@ -2,7 +2,7 @@
 
   [ Petr Salinger ]
   * switch libpthread implementation on kfreebsd-* to fbtl.
-Closes: #703545. Closes: #665287. Closes #683825. Closes #489066.
+Closes: #703545. Closes: #665287. Closes: #683825. Closes: #489066.
   * split some parts of kfreebsd/local-linuxthreads29.diff
 into  kfreebsd/local-nscd-no-sockcloexec.diff and
   kfreebsd/local-linuxthreads-tlsdesc.diff


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1v2g2q-00068n...@vasks.debian.org



r5667 - in glibc-package/trunk/debian: . patches/kfreebsd

2013-07-19 Thread Petr Salinger
Author: ps-guest
Date: 2013-07-19 20:19:19 + (Fri, 19 Jul 2013)
New Revision: 5667

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
Log:
kfreebsd/local-sysdeps.diff: update to revision 4775 (from glibc-bsd).



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-07-18 15:57:51 UTC (rev 
5666)
+++ glibc-package/trunk/debian/changelog2013-07-19 20:19:19 UTC (rev 
5667)
@@ -14,7 +14,7 @@
 into  kfreebsd/local-nscd-no-sockcloexec.diff and
   kfreebsd/local-linuxthreads-tlsdesc.diff
   * add kfreebsd/local-fbtl.diff and kfreebsd/local-fbtl-depends.diff
-  * kfreebsd/local-sysdeps.diff: update to revision 4765 (from glibc-bsd).
+  * kfreebsd/local-sysdeps.diff: update to revision 4775 (from glibc-bsd).
 Addresses: #717032 in new binutils.
   * update testsuite-checking/expected-results-*-kfreebsd-gnu-*
 by fbtl tests that are known to fail.

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-07-18 15:57:51 UTC (rev 5666)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-07-19 20:19:19 UTC (rev 5667)
@@ -7563,7 +7563,7 @@
 +#endif /* bits/typesizes.h */
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/fbtl/clock_getcpuclockid.c
-@@ -0,0 +1,32 @@
+@@ -0,0 +1,28 @@
 +/* Copyright (C) 2013 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +
@@ -7586,10 +7586,6 @@
 +#include unistd.h
 +#include kernel-features.h
 +
-+int __syscall_clock_getcpuclockid2(long id, int which, clockid_t *clock_id);
-+libc_hidden_proto (__syscall_clock_getcpuclockid2)
-+
-+
 +int
 +__clock_getcpuclockid (pid_t pid, clockid_t *clock_id)
 +{
@@ -9230,7 +9226,7 @@
 +}
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/fbtl/pthread_getcpuclockid.c
-@@ -0,0 +1,41 @@
+@@ -0,0 +1,38 @@
 +/* Copyright (C) 2013 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +
@@ -9255,9 +9251,6 @@
 +#include pthreadP.h
 +#include tls.h
 +
-+int __syscall_clock_getcpuclockid2(long id, int which, clockid_t *clock_id);
-+libc_hidden_proto (__syscall_clock_getcpuclockid2)
-+
 +int
 +pthread_getcpuclockid (threadid, clockid)
 + pthread_t threadid;
@@ -10477,7 +10470,7 @@
 +SEM_VALUE_MAX SEM_VALUE_MAX
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/fbtl/sysconf.c
-@@ -0,0 +1,73 @@
+@@ -0,0 +1,70 @@
 +/* Get file-specific information about a file.
 +   Copyright (C) 2006 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
@@ -10508,9 +10501,6 @@
 +
 +static long int posix_sysconf (int name);
 +
-+int __syscall_clock_getcpuclockid2(long id, int which, clockid_t *clock_id);
-+libc_hidden_proto (__syscall_clock_getcpuclockid2)
-+
 +/* Get the value of the system variable NAME.  */
 +long int
 +__sysconf (int name)
@@ -26633,7 +26623,7 @@
 +#endif/* sys/un.h  */
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/syscalls-inline.h
-@@ -0,0 +1,79 @@
+@@ -0,0 +1,88 @@
 +/* prototypes of generally used inline syscalls
 +   Copyright (C) 2006 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
@@ -26698,6 +26688,15 @@
 +libc_hidden_proto (__syscall_sigwait)
 +libc_hidden_proto (__syscall_sigwaitinfo)
 +libc_hidden_proto (__syscall_sigtimedwait)
++
++#if 1
++// interface might not be final
++// see http://www.freebsd.org/cgi/query-pr.cgi?pr=180652
++int __syscall_clock_getcpuclockid2(int64_t id, int which, clockid_t 
*clock_id);
++#else
++int __syscall_clock_getcpuclockid2(long id, int which, clockid_t *clock_id);
++#endif
++libc_hidden_proto (__syscall_clock_getcpuclockid2)
 +   
 +int __syscall_thr_exit(long *p);
 +int __syscall_thr_kill(long id, int sig);


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1v0h96-0004cx...@vasks.debian.org



r5666 - in glibc-package/trunk/debian: . patches/kfreebsd

2013-07-18 Thread Petr Salinger
Author: ps-guest
Date: 2013-07-18 15:57:51 + (Thu, 18 Jul 2013)
New Revision: 5666

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
Log:
* kfreebsd/local-sysdeps.diff: update to revision 4765 (from glibc-bsd).
  Addresses: #717032 in new binutils.



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-07-14 18:46:05 UTC (rev 
5665)
+++ glibc-package/trunk/debian/changelog2013-07-18 15:57:51 UTC (rev 
5666)
@@ -14,7 +14,8 @@
 into  kfreebsd/local-nscd-no-sockcloexec.diff and
   kfreebsd/local-linuxthreads-tlsdesc.diff
   * add kfreebsd/local-fbtl.diff and kfreebsd/local-fbtl-depends.diff
-  * kfreebsd/local-sysdeps.diff: update to revision 4748 (from glibc-bsd).
+  * kfreebsd/local-sysdeps.diff: update to revision 4765 (from glibc-bsd).
+Addresses: #717032 in new binutils.
   * update testsuite-checking/expected-results-*-kfreebsd-gnu-*
 by fbtl tests that are known to fail.
 

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-07-14 18:46:05 UTC (rev 5665)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-07-18 15:57:51 UTC (rev 5666)
@@ -15184,6 +15184,161 @@
 +#define CALL_SIGHANDLER(handler, signo, ctx) \
 +  (handler)((signo), SIGCONTEXT_EXTRA_ARGS (ctx))
 --- /dev/null
 b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/i386/start.S
+@@ -0,0 +1,152 @@
++/* Startup code compliant to the ELF i386 ABI.
++   Copyright (C) 1995-2012 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.
++
++   In addition to the permissions in the GNU Lesser General Public
++   License, the Free Software Foundation gives you unlimited
++   permission to link the compiled version of this file with other
++   programs, and to distribute those programs without any restriction
++   coming from the use of this file. (The GNU Lesser General Public
++   License restrictions do apply in other respects; for example, they
++   cover modification of the file, and distribution when not linked
++   into another program.)
++
++   Note that people who make modified versions of this file are not
++   obligated to grant this special exception for their modified
++   versions; it is their choice whether to do so. The GNU Lesser
++   General Public License gives permission to release a modified
++   version without this exception; this exception also makes it
++   possible to release a modified version which carries forward this
++   exception.
++
++   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/.  */
++
++/* This is the canonical entry point, usually the first thing in the text
++   segment.  The SVR4/i386 ABI (pages 3-31, 3-32) says that when the entry
++   point runs, most registers' values are unspecified, except for:
++
++   %edx   Contains a function pointer to be registered with 
`atexit'.
++  This is how the dynamic linker arranges to have DT_FINI
++  functions called for shared libraries that have been loaded
++  before this code runs.
++
++   %esp   The stack contains the arguments and environment:
++  0(%esp) argc
++  4(%esp) argv[0]
++  ...
++  (4*argc)(%esp)  NULL
++  (4*(argc+1))(%esp)  envp[0]
++  ...
++  NULL
++*/
++
++#include bp-sym.h
++#include libc-symbols.h
++
++  weak_extern (_end)
++
++  .text
++  .globl _start
++  .type _start,@function
++_start:
++  /* Clear the frame pointer.  The ABI suggests this be done, to mark
++ the outermost frame obviously.  */
++  xorl %ebp, %ebp
++
++  /* Extract the arguments as encoded on the stack and set up
++ the arguments for `main': argc, argv.  envp will be determined
++ later in __libc_start_main.  */
++  popl %esi   /* Pop the argument count.  */
++  movl %esp, %ecx /* argv starts just at the current stack top.*/
++
++  /* 

r5665 - in glibc-package/trunk/debian: . patches/kfreebsd testsuite-checking

2013-07-14 Thread Petr Salinger
Author: ps-guest
Date: 2013-07-14 18:46:05 + (Sun, 14 Jul 2013)
New Revision: 5665

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
   
glibc-package/trunk/debian/testsuite-checking/expected-results-i486-kfreebsd-gnu-libc
   
glibc-package/trunk/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i386
   
glibc-package/trunk/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i686
   
glibc-package/trunk/debian/testsuite-checking/expected-results-x86_64-kfreebsd-gnu-libc
Log:
kfreebsd/local-sysdeps.diff: update to revision 4748 (from glibc-bsd).
update testsuite-checking/expected-results-*-kfreebsd-gnu-* by fbtl tests that 
are known to fail.



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-07-12 15:45:54 UTC (rev 
5664)
+++ glibc-package/trunk/debian/changelog2013-07-14 18:46:05 UTC (rev 
5665)
@@ -14,7 +14,9 @@
 into  kfreebsd/local-nscd-no-sockcloexec.diff and
   kfreebsd/local-linuxthreads-tlsdesc.diff
   * add kfreebsd/local-fbtl.diff and kfreebsd/local-fbtl-depends.diff
-  * kfreebsd/local-sysdeps.diff: update to revision 4739 (from glibc-bsd).
+  * kfreebsd/local-sysdeps.diff: update to revision 4748 (from glibc-bsd).
+  * update testsuite-checking/expected-results-*-kfreebsd-gnu-*
+by fbtl tests that are known to fail.
 
  -- Aurelien Jarno aure...@debian.org  Sun, 30 Jun 2013 01:45:35 +0200
 

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-07-12 15:45:54 UTC (rev 5664)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-07-14 18:46:05 UTC (rev 5665)
@@ -7598,7 +7598,7 @@
 +strong_alias (__clock_getcpuclockid, clock_getcpuclockid)
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/fbtl/clock_getres.c
-@@ -0,0 +1,42 @@
+@@ -0,0 +1,60 @@
 +/* Copyright (C) 2013 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +
@@ -7627,6 +7627,9 @@
 +int __syscall_clock_getres(clockid_t clock_id, struct timespec *tp);
 +libc_hidden_proto (__syscall_clock_getres)
 +
++int __syscall_clock_gettime(clockid_t clock_id, struct timespec *tp);
++libc_hidden_proto (__syscall_clock_gettime)
++
 +/* Get resolution of clock.  */
 +int
 +__clock_getres (clockid_t clock_id, struct timespec *tp)
@@ -7637,7 +7640,22 @@
 +   CLOCK_THREAD_CPUTIME_ID and related timers
 +
 + for now just pass it to kernel   
-+   */
++   */
++  /* the negative clock_id means a CPU-timer, the resolution is same for all 
of them
++ the kernel returns resolution regardless whether the timer is accessible,
++ but POSIX/testsuite expects EINVAL
++   */
++   
++  if (clock_id  0)
++  {
++int rv;
++/* we reuse user provided struct timespec */
++rv = INLINE_SYSCALL (clock_gettime, 2, clock_id, tp);
++if (rv != 0)
++  return rv;
++/* valid, now really get the resolution  */
++  }
++
 +  return INLINE_SYSCALL (clock_getres, 2, clock_id, tp);
 +}
 +strong_alias (__clock_getres, clock_getres)

Modified: 
glibc-package/trunk/debian/testsuite-checking/expected-results-i486-kfreebsd-gnu-libc
===
--- 
glibc-package/trunk/debian/testsuite-checking/expected-results-i486-kfreebsd-gnu-libc
   2013-07-12 15:45:54 UTC (rev 5664)
+++ 
glibc-package/trunk/debian/testsuite-checking/expected-results-i486-kfreebsd-gnu-libc
   2013-07-14 18:46:05 UTC (rev 5665)
@@ -12,8 +12,6 @@
 tst-backtrace4.out, Error 1
 tst-backtrace5.out, Error 1
 tst-backtrace6.out, Error 1
-tst-cputimer1.out, Error 1
-tst-cputimer2.out, Error 1
 tst-longjmp_chk.out, Error 1
 tst-mknodat.out, Error 1
 tst-renameat.out, Error 1
@@ -21,3 +19,57 @@
 tst-timer4.out, Error 1
 tst-timer5.out, Error 1
 tst-waitid.out, Error 1
+#
+# needs newer kernel - see #716746
+#
+tst-cpuclock1.out, Error 1
+tst-cpuclock2.out, Error 1
+tst-cputimer1.out, Error 1
+tst-cputimer2.out, Error 1
+tst-cputimer3.out, Error 1
+#
+# fbtl, mainly unsupported PP, PI, ROBUST mutexes
+#
+tst-attr2.out, Error 1
+tst-attr3, Error 1
+tst-cancel24-static.out, Error 1
+tst-cancel7.out, Error 1
+tst-cancelx7.out, Error 1
+tst-cond-except, Error 1
+tst-cond24, Error 1
+tst-cond25, Error 1
+tst-default-attr, Error 1
+tst-getpid1.o, Error 1
+tst-getpid2.o, Error 1
+tst-mutexpi1, Error 1
+tst-mutexpi2, Error 1
+tst-mutexpi3, Error 1
+tst-mutexpi4, Error 1
+tst-mutexpi5, Error 1
+tst-mutexpi5a, Error 1
+tst-mutexpi6, Error 1
+tst-mutexpi7, Error 1
+tst-mutexpi7a, Error 1
+tst-mutexpi8, Error 1
+tst-mutexpi8-static, Error 1
+tst-mutexpi9, Error 1
+tst-pthread-attr-affinity, Error 1
+tst-robust1.o, Error 1
+tst-robust2.o, Error 1
+tst-robust3.o, Error 1
+tst-robust4.o, 

r5664 - in glibc-package/trunk/debian: . patches/kfreebsd

2013-07-12 Thread Petr Salinger
Author: ps-guest
Date: 2013-07-12 15:45:54 + (Fri, 12 Jul 2013)
New Revision: 5664

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
Log:
 kfreebsd/local-sysdeps.diff: update to revision 4739 (from glibc-bsd).



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-07-10 05:52:02 UTC (rev 
5663)
+++ glibc-package/trunk/debian/changelog2013-07-12 15:45:54 UTC (rev 
5664)
@@ -14,7 +14,7 @@
 into  kfreebsd/local-nscd-no-sockcloexec.diff and
   kfreebsd/local-linuxthreads-tlsdesc.diff
   * add kfreebsd/local-fbtl.diff and kfreebsd/local-fbtl-depends.diff
-  * kfreebsd/local-sysdeps.diff: update to revision 4727 (from glibc-bsd).
+  * kfreebsd/local-sysdeps.diff: update to revision 4739 (from glibc-bsd).
 
  -- Aurelien Jarno aure...@debian.org  Sun, 30 Jun 2013 01:45:35 +0200
 

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-07-10 05:52:02 UTC (rev 5663)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-07-12 15:45:54 UTC (rev 5664)
@@ -4560,7 +4560,7 @@
 +
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/bits/time.h
-@@ -0,0 +1,98 @@
+@@ -0,0 +1,102 @@
 +/* System-dependent timing definitions.  FreeBSD version.
 +   Copyright (C) 1996-1997, 1999, 2000, 2002 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
@@ -4605,10 +4605,6 @@
 +#  ifdef __USE_POSIX199309
 +/* Identifier for system-wide realtime clock.  */
 +#   define CLOCK_REALTIME 0
-+/* High-resolution timer from the CPU.  */
-+#   define CLOCK_PROCESS_CPUTIME_ID   2
-+/* Thread-specific CPU-time clock.  */
-+#   define CLOCK_THREAD_CPUTIME_ID3
 +/* Monotonic system-wide clock.  */
 +#   define CLOCK_MONOTONIC4
 +/* These are BSD specific clocks.  */
@@ -4624,6 +4620,14 @@
 +#define CLOCK_MONOTONIC_FAST12  /* FreeBSD-specific. */
 +#define CLOCK_SECOND13  /* FreeBSD-specific. */
 +#   endif
++/* Thread-specific CPU-time clock.  */
++#   define CLOCK_THREAD_CPUTIME_ID14
++/* High-resolution timer from the CPU.  */
++#   define CLOCK_PROCESS_CPUTIME_ID   15
++#   ifdef __USE_BSD
++# define CPUCLOCK_WHICH_PID 0
++# define CPUCLOCK_WHICH_TID 1
++#   endif
 +
 +/* Flag to indicate time is absolute.  */
 +#   define TIMER_RELTIME  0   /* relative timer */
@@ -5097,7 +5101,7 @@
 +#include inet/check_pf.c
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/clock_getres.c
-@@ -0,0 +1,42 @@
+@@ -0,0 +1,43 @@
 +/* Copyright (C) 2006 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +
@@ -5123,15 +5127,16 @@
 +
 +# define SYSDEP_GETRES \
 +  case CLOCK_REALTIME:\
++  case CLOCK_VIRTUAL: \
++  case CLOCK_PROF:\
 +  case CLOCK_MONOTONIC:   \
++  case CLOCK_UPTIME:  \
++  case CLOCK_UPTIME_PRECISE:  \
++  case CLOCK_UPTIME_FAST: \
++  case CLOCK_REALTIME_PRECISE:\
 +  case CLOCK_REALTIME_FAST:   \
-+  case CLOCK_REALTIME_PRECISE:\
++  case CLOCK_MONOTONIC_PRECISE:   \
 +  case CLOCK_MONOTONIC_FAST:  \
-+  case CLOCK_MONOTONIC_PRECISE:   \
-+  case CLOCK_UPTIME:  \
-+  case CLOCK_UPTIME_FAST: \
-+  case CLOCK_UPTIME_PRECISE:  \
-+  case CLOCK_VIRTUAL: \
 +  case CLOCK_SECOND:  \
 +retval = INLINE_SYSCALL (clock_getres, 2, clock_id, res);   \
 +break
@@ -5142,7 +5147,7 @@
 +#include sysdeps/posix/clock_getres.c
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/clock_gettime.c
-@@ -0,0 +1,42 @@
+@@ -0,0 +1,43 @@
 +/* Copyright (C) 2006 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +
@@ -5169,15 +5174,16 @@
 +
 +# define SYSDEP_GETTIME \
 +  case CLOCK_REALTIME:\
++  case CLOCK_VIRTUAL: \
++  case CLOCK_PROF:\
 +  case CLOCK_MONOTONIC:   \
++  case CLOCK_UPTIME:  \
++  case CLOCK_UPTIME_PRECISE:  \
++  case CLOCK_UPTIME_FAST: \
++  case CLOCK_REALTIME_PRECISE:\
 +  case CLOCK_REALTIME_FAST:   \
-+  case CLOCK_REALTIME_PRECISE:\
++  case CLOCK_MONOTONIC_PRECISE:   \
 +  case CLOCK_MONOTONIC_FAST:  \
-+  case CLOCK_MONOTONIC_PRECISE:   \
-+  case CLOCK_UPTIME:  \
-+  case CLOCK_UPTIME_FAST: \
-+  case CLOCK_UPTIME_PRECISE:  \
-+  case CLOCK_VIRTUAL: \
 +  case CLOCK_SECOND:  \
 +retval = INLINE_SYSCALL (clock_gettime, 2, clock_id, tp);   \
 +  

Bug#665287: clockid_t types

2013-07-11 Thread Petr Salinger

The situation is now slightly different.

We are able to use ktimer_* facilities,
it only remains to support
CLOCK_THREAD_CPUTIME_ID, CLOCK_PROCESS_CPUTIME_ID
and clock_id's created
by clock_getcpuclockid() and pthread_getcpuclockid()

http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_getcpuclockid.html
http://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_getcpuclockid.html

The kernel support is available in HEAD (but not in STABLE-9).
It could be easier to backport (kernel part of)

http://www.freebsd.org/cgi/query-pr.cgi?pr=16841

into our kernel.

Or even persuade upstream to MFC it into STABLE-9 ;-)

Petr


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.lnx.2.00.1307111639040.32...@contest.felk.cvut.cz



Bug#703545: prototype for pthread_condattr_setclock

2013-07-11 Thread Petr Salinger

We are planning switch to NPTL-like pthread implementation, details in
http://lists.debian.org/debian-bsd/2013/07/msg00060.html

Prototype will be included after that switch.

Petr


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.lnx.2.00.1307111653550.32...@contest.felk.cvut.cz



Bug#683825: add assertion for non-zero status in _pthread_unlock()

2013-07-11 Thread Petr Salinger

We are planning switch to NPTL-like pthread implementation, details in
http://lists.debian.org/debian-bsd/2013/07/msg00060.html

It will not segfault in a very confusing way anymore after that switch.

Petr


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.lnx.2.00.1307111659320.32...@contest.felk.cvut.cz



Bug#24148: setproctitle(3) wanted

2013-07-11 Thread Petr Salinger

As far as I know,

the setproctitle(3) is now provided by libbsd-dev.

Petr


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.lnx.2.00.1307111718260.32...@contest.felk.cvut.cz



r5663 - in glibc-package/trunk/debian: . patches/kfreebsd

2013-07-10 Thread Petr Salinger
Author: ps-guest
Date: 2013-07-10 05:52:02 + (Wed, 10 Jul 2013)
New Revision: 5663

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
Log:

kfreebsd/local-sysdeps.diff: update to revision 4727 (from glibc-bsd).



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-07-09 20:07:42 UTC (rev 
5662)
+++ glibc-package/trunk/debian/changelog2013-07-10 05:52:02 UTC (rev 
5663)
@@ -10,11 +10,11 @@
   * hurd-i386/tg-tls.diff: Move some hooks to tg-tls-threadvar.diff.
 
   [ Petr Salinger ]
-  * kfreebsd/local-sysdeps.diff: update to revision 4717 (from glibc-bsd).
   * split some parts of kfreebsd/local-linuxthreads29.diff
 into  kfreebsd/local-nscd-no-sockcloexec.diff and
   kfreebsd/local-linuxthreads-tlsdesc.diff
   * add kfreebsd/local-fbtl.diff and kfreebsd/local-fbtl-depends.diff
+  * kfreebsd/local-sysdeps.diff: update to revision 4727 (from glibc-bsd).
 
  -- Aurelien Jarno aure...@debian.org  Sun, 30 Jun 2013 01:45:35 +0200
 

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-07-09 20:07:42 UTC (rev 5662)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-07-10 05:52:02 UTC (rev 5663)
@@ -545,7 +545,7 @@
 +weak_alias (__access, access)
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/aio_sigqueue.c
-@@ -0,0 +1,36 @@
+@@ -0,0 +1,40 @@
 +/* Copyright (C) 2013 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +
@@ -580,7 +580,11 @@
 + const union sigval val;
 + pid_t caller_pid;
 +{
++#ifdef NOT_IN_libc
 +return sigqueue(caller_pid, sig, val);
++#else
++return __sigqueue(caller_pid, sig, val);
++#endif
 +}
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/bind.c
@@ -6939,7 +6943,7 @@
 +pthread
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/fbtl/Makefile
-@@ -0,0 +1,59 @@
+@@ -0,0 +1,62 @@
 +# Copyright (C) 2002-2013 Free Software Foundation, Inc.
 +# This file is part of the GNU C Library.
 +# Contributed by Ulrich Drepper drep...@redhat.com, 2002.
@@ -6985,6 +6989,9 @@
 +libpthread-routines += ptw-sys_thr_self
 +libpthread-routines += ptw-sys_thr_set_name
 +libpthread-routines += ptw-sys_thr_exit
++libpthread-routines += ptw-exit-thread
++libpthread-routines += ptw-sigprocmask
++libpthread-routines += ptw-ioctl
 +endif
 +
 +ifeq ($(subdir),posix)
@@ -7001,7 +7008,7 @@
 +CFLAGS-sigaction.c = -DWRAPPER_INCLUDE='fbtl/sigaction.c'
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/fbtl/Versions
-@@ -0,0 +1,19 @@
+@@ -0,0 +1,16 @@
 +libc {
 +  GLIBC_2.3.2 {
 +__register_atfork;
@@ -7011,12 +7018,9 @@
 +__libc_current_sigrtmin_private; __libc_current_sigrtmax_private;
 +__libc_allocate_rtsig_private;
 +# needed by pthread library
-+__exit_thread;
 +__syscall_sigprocmask;
 +__syscall_sigwaitinfo;
-+__sigprocmask;
 +__syscall_sigsuspend;
-+__ioctl;
 +__syscall_sigaction;
 +__syscall__umtx_op;
 +  }
@@ -11552,7 +11556,7 @@
 +libc_hidden_def (__fxstatat64)
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/gai_sigqueue.c
-@@ -0,0 +1,36 @@
+@@ -0,0 +1,40 @@
 +/* Copyright (C) 2013 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +
@@ -11587,7 +11591,11 @@
 + const union sigval val;
 + pid_t caller_pid;
 +{
++#ifdef NOT_IN_libc
 +return sigqueue(caller_pid, sig, val);
++#else
++return __sigqueue(caller_pid, sig, val);
++#endif
 +}
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/getcwd.c
@@ -12889,7 +12897,7 @@
 +#include sysdeps/gnu/glob64.c
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/grantpt.c
-@@ -0,0 +1,34 @@
+@@ -0,0 +1,36 @@
 +#include assert.h
 +#include ctype.h
 +#include dirent.h
@@ -12903,6 +12911,8 @@
 +
 +#include pty-private.h
 +
++int __syscall_closefrom(int fd);
++libc_hidden_proto (__syscall_closefrom)
 +
 +/* Close all file descriptors except the one specified.  */
 +static void
@@ -12913,7 +12923,7 @@
 +for (i = 0 ; i  PTY_FILENO; i++)
 +close_not_cancel_no_status (i);
 +
-+syscall(SYS_closefrom, PTY_FILENO + 1L);
++INLINE_SYSCALL(closefrom, 1, PTY_FILENO + 1L);
 +
 +int nullfd = open_not_cancel_2 (_PATH_DEVNULL, O_RDONLY);
 +assert (nullfd == STDIN_FILENO);
@@ -19949,7 +19959,7 @@
 +#endif/* net/ethernet.h */
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/net/if.h
-@@ -0,0 +1,451 @@
+@@ -0,0 +1,458 @@
 +/*-
 + * Copyright (c) 1982, 1986, 1989, 1993
 + *The Regents of the University of California.  All rights reserved.
@@ -20162,12 +20172,19 @@
 +#define IFCAP_POLLING_NOCOUNT   0x2 /* polling ticks cannot be fragmented

r5662 - in glibc-package/trunk/debian: . patches/kfreebsd

2013-07-09 Thread Petr Salinger
Author: ps-guest
Date: 2013-07-09 20:07:42 + (Tue, 09 Jul 2013)
New Revision: 5662

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-fbtl.diff
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
Log:
kfreebsd/local-sysdeps.diff: update to revision 4717 (from glibc-bsd).



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-07-08 20:04:14 UTC (rev 
5661)
+++ glibc-package/trunk/debian/changelog2013-07-09 20:07:42 UTC (rev 
5662)
@@ -10,7 +10,7 @@
   * hurd-i386/tg-tls.diff: Move some hooks to tg-tls-threadvar.diff.
 
   [ Petr Salinger ]
-  * kfreebsd/local-sysdeps.diff: update to revision 4699 (from glibc-bsd).
+  * kfreebsd/local-sysdeps.diff: update to revision 4717 (from glibc-bsd).
   * split some parts of kfreebsd/local-linuxthreads29.diff
 into  kfreebsd/local-nscd-no-sockcloexec.diff and
   kfreebsd/local-linuxthreads-tlsdesc.diff

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-fbtl.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-fbtl.diff 2013-07-08 
20:04:14 UTC (rev 5661)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-fbtl.diff 2013-07-09 
20:07:42 UTC (rev 5662)
@@ -18156,8 +18156,8 @@
 +  /* Minimal initialization of the thread descriptor.  */
 +  struct pthread *pd = THREAD_SELF;
 +#if 1  
++  INLINE_SYSCALL(thr_self, 1, (pd-ktid)); 
 +  pd-pid = __getpid();
-+  INLINE_SYSCALL(thr_self, 1, (pd-ktid)); 
 +#else
 +  INTERNAL_SYSCALL_DECL (err);
 +  pd-pid = pd-tid = INTERNAL_SYSCALL (set_tid_address, err, 1, pd-tid);
@@ -24806,7 +24806,7 @@
 +}
 --- /dev/null
 +++ b/fbtl/pthread_mutex_init.c
-@@ -0,0 +1,149 @@
+@@ -0,0 +1,150 @@
 +/* Copyright (C) 2002-2013 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +   Contributed by Ulrich Drepper drep...@redhat.com, 2002.
@@ -24888,6 +24888,7 @@
 +  return ENOTSUP;
 +  break;
 +#else
++default:
 +  return ENOTSUP;
 +#endif  
 +}
@@ -27573,8 +27574,8 @@
 +#include lowlevellock.h
 +#include pthread.h
 +#include pthreadP.h
++#include sys/time.h
 +
-+
 +/* Try to acquire read lock for RWLOCK or return after specfied time.  */
 +int
 +pthread_rwlock_timedrdlock (rwlock, abstime)
@@ -27707,7 +27708,7 @@
 +}
 --- /dev/null
 +++ b/fbtl/pthread_rwlock_timedwrlock.c
-@@ -0,0 +1,145 @@
+@@ -0,0 +1,146 @@
 +/* Copyright (C) 2003-2013 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +   Contributed by Martin Schwidefsky schwidef...@de.ibm.com, 2003.
@@ -27731,6 +27732,7 @@
 +#include lowlevellock.h
 +#include pthread.h
 +#include pthreadP.h
++#include sys/time.h
 +
 +
 +/* Try to acquire write lock for RWLOCK or return after specfied time.
*/
@@ -29656,7 +29658,7 @@
 +#endif
 --- /dev/null
 +++ b/fbtl/sem_open.c
-@@ -0,0 +1,418 @@
+@@ -0,0 +1,465 @@
 +/* Copyright (C) 2002-2013 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +   Contributed by Ulrich Drepper drep...@redhat.com, 2002.
@@ -29708,13 +29710,52 @@
 +/* Protect the `mountpoint' variable above.  */
 +pthread_once_t __namedsem_once attribute_hidden = PTHREAD_ONCE_INIT;
 +
++#if 1
++
++/* This is the alternate debian mount point.  */
++static const char alternatemount[] = /run/shm;
++/* This is the alternate debian directory.  */
++static const char alternatedir[] = /run/shm/sem.;
++
 +/* Determine where the shmfs is mounted (if at all).  */
 +void
 +attribute_hidden
 +__where_is_shmfs (void)
 +{
-+#warning TODO - or ENOSYS
-+#if 0
++  struct statfs f;
++
++  /* The canonical place is /dev/shm.  This is at least what the
++ documentation tells everybody to do.  */
++  if (statfs (defaultmount, f) == 0)
++{
++  /* It is in the normal place.  */
++  mountpoint.dir = (char *) defaultdir;
++  mountpoint.dirlen = sizeof (defaultdir) - 1;
++
++  return;
++}
++
++  /* The alternate place is /run/shm.  */
++  if (statfs (alternatemount, f) == 0)
++{
++  /* It is in the normal place.  */
++  mountpoint.dir = (char *) alternatedir;
++  mountpoint.dirlen = sizeof (alternatedir) - 1;
++
++  return;
++}
++
++  /* Not configured = not supported */  
++}
++
++#else
++
++
++/* Determine where the shmfs is mounted (if at all).  */
++void
++attribute_hidden
++__where_is_shmfs (void)
++{
 +  char buf[512];
 +  struct statfs f;
 +  struct mntent resmem;
@@ -29781,9 +29822,9 @@
 +
 +  /* Close the stream.  */
 +  __endmntent (fp);
-+#endif
 +}
 +
++#endif
 +
 +/* Comparison function for search of existing mapping.  */
 +int
@@ -29811,7 +29852,7 @@
 +/* Lock to protect the search tree.  */
 +int __sem_mappings_lock attribute_hidden = LLL_LOCK_INITIALIZER;
 +
-+#if 0
++
 +/* Search for existing mapping and if possible add the one provided.  */
 +static sem_t

r5661 - in glibc-package/trunk/debian: . patches/kfreebsd

2013-07-08 Thread Petr Salinger
Author: ps-guest
Date: 2013-07-08 20:04:14 + (Mon, 08 Jul 2013)
New Revision: 5661

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-fbtl.diff
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
Log:
kfreebsd/local-sysdeps.diff: update to revision 4699 (from glibc-bsd).



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-07-08 11:53:47 UTC (rev 
5660)
+++ glibc-package/trunk/debian/changelog2013-07-08 20:04:14 UTC (rev 
5661)
@@ -10,7 +10,7 @@
   * hurd-i386/tg-tls.diff: Move some hooks to tg-tls-threadvar.diff.
 
   [ Petr Salinger ]
-  * kfreebsd/local-sysdeps.diff: update to revision 4693 (from glibc-bsd).
+  * kfreebsd/local-sysdeps.diff: update to revision 4699 (from glibc-bsd).
   * split some parts of kfreebsd/local-linuxthreads29.diff
 into  kfreebsd/local-nscd-no-sockcloexec.diff and
   kfreebsd/local-linuxthreads-tlsdesc.diff

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-fbtl.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-fbtl.diff 2013-07-08 
11:53:47 UTC (rev 5660)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-fbtl.diff 2013-07-08 
20:04:14 UTC (rev 5661)
@@ -33184,269 +33184,6 @@
 +  return res;
 +}
 --- /dev/null
-+++ b/fbtl/sysdeps/pthread/createthread.c~
-@@ -0,0 +1,260 @@
-+/* Copyright (C) 2002-2013 Free Software Foundation, Inc.
-+   This file is part of the GNU C Library.
-+   Contributed by Ulrich Drepper drep...@redhat.com, 2002.
-+
-+   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 sched.h
-+#include setjmp.h
-+#include signal.h
-+#include stdlib.h
-+#include atomic.h
-+#include ldsodefs.h
-+#include tls.h
-+#include stdint.h
-+
-+#include kernel-features.h
-+
-+
-+#define CLONE_SIGNAL  (CLONE_SIGHAND | CLONE_THREAD)
-+
-+/* Unless otherwise specified, the thread register is going to be
-+   initialized with a pointer to the TCB.  */
-+#ifndef TLS_VALUE
-+# define TLS_VALUE pd
-+#endif
-+
-+#ifndef ARCH_CLONE
-+# define ARCH_CLONE __clone
-+#endif
-+
-+
-+#ifndef TLS_MULTIPLE_THREADS_IN_TCB
-+/* Pointer to the corresponding variable in libc.  */
-+int *__libc_multiple_threads_ptr attribute_hidden;
-+#endif
-+
-+
-+static int
-+do_clone (struct pthread *pd, const struct pthread_attr *attr,
-+int clone_flags, int (*fct) (void *), STACK_VARIABLES_PARMS,
-+int stopped)
-+{
-+#ifdef PREPARE_CREATE
-+  PREPARE_CREATE;
-+#endif
-+
-+  if (__builtin_expect (stopped != 0, 0))
-+/* We make sure the thread does not run far by forcing it to get a
-+   lock.  We lock it here too so that the new thread cannot continue
-+   until we tell it to.  */
-+lll_lock (pd-lock, LLL_PRIVATE);
-+
-+  /* One more thread.  We cannot have the thread do this itself, since it
-+ might exist but not have been scheduled yet by the time we've returned
-+ and need to check the value to behave correctly.  We must do it before
-+ creating the thread, in case it does get scheduled first and then
-+ might mistakenly think it was the only thread.  In the failure case,
-+ we momentarily store a false value; this doesn't matter because there
-+ is no kosher thing a signal handler interrupting us right here can do
-+ that cares whether the thread count is correct.  */
-+  atomic_increment (__nptl_nthreads);
-+
-+  int rc = ARCH_CLONE (fct, STACK_VARIABLES_ARGS, clone_flags,
-+ pd, pd-tid, TLS_VALUE, pd-tid);
-+
-+  if (__builtin_expect (rc == -1, 0))
-+{
-+  atomic_decrement (__nptl_nthreads); /* Oops, we lied for a second.  */
-+
-+  /* Perhaps a thread wants to change the IDs and if waiting
-+   for this stillborn thread.  */
-+  if (__builtin_expect (atomic_exchange_acq (pd-setxid_futex, 0)
-+  == -2, 0))
-+  lll_futex_wake (pd-setxid_futex, 1, LLL_PRIVATE);
-+
-+  /* Free the resources.  */
-+  __deallocate_stack (pd);
-+
-+  /* We have to translate error codes.  */
-+  return errno == ENOMEM ? EAGAIN : errno;
-+}
-+#warning set scheduling parameters
-+#if 0
-+  /* Now we have the possibility to set

Bug#712196: timer_settime broken on kfreebsd-amd64

2013-06-21 Thread Petr Salinger

The fix is to annotate syscall description
with correct number of parameters.

--- kfreebsd/syscalls.list
+++ kfreebsd/syscalls.list
-sys_ktimer_settime -   ktimer_settime  i:ip
__syscall_ktimer_settime
+sys_ktimer_settime -   ktimer_settime  i:iipp  
__syscall_ktimer_settime

It is problem only on kfreebsd-amd64.
In functions with 4 and more parameters is necessary to
do movq %rcx, %r10 before syscall.

Test program:

**
#include signal.h
#include time.h
struct itimerspec nv, ov;

int main()
{
  timer_t tm;

  nv.it_value.tv_sec = 100;
  timer_create(CLOCK_MONOTONIC, NULL, tm);

  printf(should be zero: %ld\n, ov.it_value.tv_sec);
  timer_settime(tm, 0, nv, ov);
  printf(should be zero: %ld\n, ov.it_value.tv_sec);
  timer_settime(tm, 0, nv, ov);
  printf(should be 99 or 100: %ld\n, ov.it_value.tv_sec);
  sleep (5);
  timer_settime(tm, 0, nv, ov);
  printf(should be 94 or 95:  %ld\n, ov.it_value.tv_sec);
}
**


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.lnx.2.00.1306211323290.14...@contest.felk.cvut.cz



Bug#712074: [libc0.1-dev] provide F_DUPFD_CLOEXEC

2013-06-12 Thread Petr Salinger

Package: libc0.1-dev
Version: 2.17-5
Severity: wishlist
User: debian-...@lists.debian.org
Usertags: kfreebsd

Please sync bits/fcntl.h with current upstream, mainly

#define F_DUPFD_CLOEXEC 17  /* Like F_DUPFD, but FD_CLOEXEC is set */
#define F_DUP2FD_CLOEXEC 18 /* Like F_DUP2FD, but FD_CLOEXEC is set */

and provide appropriate wrapper of fcntl() to work also under older 
(wheezy: 8.3, 9.0) kernels. See #711529 for reasoning.


Mostly reminding myself

Petr


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.lnx.2.00.1306122033150.20...@contest.felk.cvut.cz



r5619 - in glibc-package/trunk/debian: . patches/kfreebsd

2013-06-03 Thread Petr Salinger
Author: ps-guest
Date: 2013-06-03 06:04:58 + (Mon, 03 Jun 2013)
New Revision: 5619

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
Log:
kfreebsd/local-sysdeps.diff: update to revision 4512 (from glibc-bsd).
Closes: #710841.



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-06-02 11:39:47 UTC (rev 
5618)
+++ glibc-package/trunk/debian/changelog2013-06-03 06:04:58 UTC (rev 
5619)
@@ -1,6 +1,8 @@
 eglibc (2.17-5) UNRELEASED; urgency=low
 
-  * 
+  [ Petr Salinger ]
+  * kfreebsd/local-sysdeps.diff: update to revision 4512 (from glibc-bsd).
+Closes: #710841.
 
  -- Aurelien Jarno aure...@debian.org  Sun, 02 Jun 2013 13:11:11 +0200
 

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-06-02 11:39:47 UTC (rev 5618)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-06-03 06:04:58 UTC (rev 5619)
@@ -19095,7 +19095,7 @@
 +/* 'posix_fadvise64' is the same as 'posix_fadvise', because __off64_t == 
__off_t.  */
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/posix_fallocate.c
-@@ -0,0 +1,60 @@
+@@ -0,0 +1,81 @@
 +/* Copyright (C) 2007-2013 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +
@@ -19155,7 +19155,28 @@
 +}  
 +return internal_fallocate (fd, offset, len);
 +}
++
++/* 'posix_fallocate64' is the same as 'posix_fallocate', because __off64_t == 
__off_t.  */
++/*  but previous prototype have different size of len parameter */
++
++#include shlib-compat.h
++#include bits/wordsize.h
++
++#if __WORDSIZE == 32  SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)
++
++int
++attribute_compat_text_section
++__posix_fallocate64_l32 (int fd, off64_t offset, size_t len)
++{
++  return posix_fallocate (fd, offset, len);
++}
++
++versioned_symbol (libc, posix_fallocate, posix_fallocate64,
++GLIBC_2_3_3);
++compat_symbol (libc, __posix_fallocate64_l32, posix_fallocate64, GLIBC_2_2);
++#else
 +strong_alias (posix_fallocate, posix_fallocate64)
++#endif
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/posix_fallocate64.c
 @@ -0,0 +1 @@


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1ujnt4-0007ya...@vasks.debian.org



Bug#635192: provide O_CLOEXEC on kfreebsd-*

2013-05-31 Thread Petr Salinger

I don't understand why this is taking so long.  O_CLOEXEC was defined on
Linux long before all supported kernels had it, and people (used to?)
have fallback code for the case where open(O_CLOEXEC) returned EINVAL,
to do the racy fcntl dance.  I don't see why the kernel running on
buildds matters one bit for whether userland gets the define...


May be they used to, but currently even eglibc itself does not have such 
fallback inside. Even inside elf loader, i.e. elf/dl-misc.c:


  int flags = O_RDONLY;
#ifdef O_CLOEXEC
  flags |= O_CLOEXEC;
#endif

The open with unknown flags fails and elf loader
does not try it again without O_CLOEXEC.

As we really want to run testsuite,
the kernel have to support O_CLOEXEC at least for open().

Petr


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.lnx.2.00.1305311417000.6...@contest.felk.cvut.cz



r5610 - in glibc-package/trunk/debian: . debhelper.in patches/kfreebsd sysdeps

2013-05-31 Thread Petr Salinger
Author: ps-guest
Date: 2013-05-31 15:38:17 + (Fri, 31 May 2013)
New Revision: 5610

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/debhelper.in/libc.preinst
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
   glibc-package/trunk/debian/sysdeps/kfreebsd.mk
Log:
bump minimal FreeBSD kernel version to 8.3, update sysdeps.diff from glibc-bsd



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-05-28 16:18:00 UTC (rev 
5609)
+++ glibc-package/trunk/debian/changelog2013-05-31 15:38:17 UTC (rev 
5610)
@@ -5,7 +5,10 @@
 all {Build-,}Essential and available in oldstable (Closes: #708504)
 
   [ Petr Salinger ]
-  * kfreebsd/local-sysdeps.diff: update to revision 4485 (from glibc-bsd).
+  * kfreebsd/local-sysdeps.diff: update to revision 4511 (from glibc-bsd).
+Closes: #635192. Closes: #667448.
+  * debian/sysdeps/kfreebsd.mk, debian/debhelper.in/libc.preinst:
+bump minimal FreeBSD kernel version to 8.3.
 
  -- Adam Conrad adcon...@0c3.net  Thu, 16 May 2013 16:09:55 -0600
 

Modified: glibc-package/trunk/debian/debhelper.in/libc.preinst
===
--- glibc-package/trunk/debian/debhelper.in/libc.preinst2013-05-28 
16:18:00 UTC (rev 5609)
+++ glibc-package/trunk/debian/debhelper.in/libc.preinst2013-05-31 
15:38:17 UTC (rev 5610)
@@ -406,10 +406,10 @@
 fi
 elif [ $system = GNU/kFreeBSD ] ; then
 kernel_ver=`uname -r`
-if kfreebsd_compare_versions $kernel_ver lt 8.1
+if kfreebsd_compare_versions $kernel_ver lt 8.3
 then
 echo WARNING: this version of the GNU libc requires kernel version
-echo 8.1 or later.  Please upgrade your kernel before installing
+echo 8.3 or later.  Please upgrade your kernel before installing
 echo glibc.
 exit 1
 fi

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-05-28 16:18:00 UTC (rev 5609)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-05-31 15:38:17 UTC (rev 5610)
@@ -897,7 +897,7 @@
 +
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/bits/fcntl.h
-@@ -0,0 +1,227 @@
+@@ -0,0 +1,226 @@
 +/* O_*, F_*, FD_* bit values for FreeBSD.
 +   Copyright (C) 1991-1992, 1997-2013 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
@@ -983,8 +983,7 @@
 +#if defined (__USE_XOPEN2K8) || defined (__USE_BSD)
 +/* Defined by POSIX 1003.1-2008; BSD default, but reserve for future use. */
 +#define   O_TTY_INIT  0x0008  /* Restore default termios 
attributes */
-+/* Defining O_CLOEXEC would break kfreebsd 8.1, see #635192 */
-+/* #defineO_CLOEXEC   0x0010 */
++#define   O_CLOEXEC   0x0010
 +#endif
 +
 +/* For now FreeBSD has synchronisity options for data and read operations.
@@ -5303,7 +5302,7 @@
 +weak_alias (__clone, clone)
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/configure
-@@ -0,0 +1,342 @@
+@@ -0,0 +1,432 @@
 +# This file is generated from configure.in by Autoconf.  DO NOT EDIT!
 + # Local configure fragment for sysdeps/unix/bsd/bsd4.4/kfreebsd.
 +
@@ -5328,78 +5327,180 @@
 +fi
 +
 +
-+echo $as_me:$LINENO: checking for egrep 5
-+echo $ECHO_N checking for egrep... $ECHO_C 6
-+if test ${ac_cv_prog_egrep+set} = set; then
-+  echo $ECHO_N (cached) $ECHO_C 6
++{ $as_echo $as_me:${as_lineno-$LINENO}: checking for grep that handles long 
lines and -e 5
++$as_echo_n checking for grep that handles long lines and -e...  6; }
++if test ${ac_cv_path_GREP+set} = set; then :
++  $as_echo_n (cached)  6
 +else
-+  if echo a | (grep -E '(a|b)') /dev/null 21
-+then ac_cv_prog_egrep='grep -E'
-+else ac_cv_prog_egrep='egrep'
++  if test -z $GREP; then
++  ac_path_GREP_found=false
++  # Loop through the user's path and test for each of PROGNAME-LIST
++  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
++do
++  IFS=$as_save_IFS
++  test -z $as_dir  as_dir=.
++for ac_prog in grep ggrep; do
++for ac_exec_ext in '' $ac_executable_extensions; do
++  ac_path_GREP=$as_dir/$ac_prog$ac_exec_ext
++  { test -f $ac_path_GREP  $as_test_x $ac_path_GREP; } || continue
++# Check for GNU ac_path_GREP and select it if it is found.
++  # Check for GNU $ac_path_GREP
++case `$ac_path_GREP --version 21` in
++*GNU*)
++  ac_cv_path_GREP=$ac_path_GREP ac_path_GREP_found=:;;
++*)
++  ac_count=0
++  $as_echo_n 0123456789 conftest.in
++  while :
++  do
++cat conftest.in conftest.in conftest.tmp
++mv conftest.tmp conftest.in
++cp conftest.in conftest.nl
++$as_echo 'GREP'  conftest.nl
++$ac_path_GREP -e 'GREP

r5609 - in glibc-package/trunk/debian: . patches/kfreebsd

2013-05-28 Thread Petr Salinger
Author: ps-guest
Date: 2013-05-28 16:18:00 + (Tue, 28 May 2013)
New Revision: 5609

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
Log:
kfreebsd/local-sysdeps.diff: update to revision 4485 (from glibc-bsd).



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-05-22 05:01:11 UTC (rev 
5608)
+++ glibc-package/trunk/debian/changelog2013-05-28 16:18:00 UTC (rev 
5609)
@@ -1,8 +1,12 @@
 eglibc (2.17-4) UNRELEASED; urgency=low
 
+  [ Adam Conrad ]
   * Drop versioned build-dependencies on tar, make, and sed, as they're
 all {Build-,}Essential and available in oldstable (Closes: #708504)
 
+  [ Petr Salinger ]
+  * kfreebsd/local-sysdeps.diff: update to revision 4485 (from glibc-bsd).
+
  -- Adam Conrad adcon...@0c3.net  Thu, 16 May 2013 16:09:55 -0600
 
 eglibc (2.17-3) unstable; urgency=medium

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-05-22 05:01:11 UTC (rev 5608)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-05-28 16:18:00 UTC (rev 5609)
@@ -897,9 +897,9 @@
 +
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/bits/fcntl.h
-@@ -0,0 +1,186 @@
+@@ -0,0 +1,227 @@
 +/* O_*, F_*, FD_* bit values for FreeBSD.
-+   Copyright (C) 1991-1992, 1997, 2002 Free Software Foundation, Inc.
++   Copyright (C) 1991-1992, 1997-2013 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +
 +   The GNU C Library is free software; you can redistribute it and/or
@@ -927,36 +927,66 @@
 +# include bits/uio.h
 +#endif
 +
++/*
++ * File status flags: these are used by open(2), fcntl(2).
++ * They are also used (indirectly) in the kernel file structure f_flags,
++ * which is a superset of the open/fcntl flags.  Open flags and f_flags
++ * are inter-convertible using OFLAGS(fflags) and FFLAGS(oflags).
++ * Open/fcntl flags begin with O_; kernel-internal flags begin with F.
++ */
++/* open-only flags */
++#define   O_RDONLY0x  /* open for reading only */
++#define   O_WRONLY0x0001  /* open for writing only */
++#define   O_RDWR  0x0002  /* open for reading and writing 
*/
++#define   O_ACCMODE   0x0003  /* mask for above modes */
 +
-+/* open/fcntl - O_SYNC is only implemented on blocks devices and on files
-+   located on an ext2 file system */
-+#define O_ACCMODE0003
-+#define O_RDONLY   00
-+#define O_WRONLY   01
-+#define O_RDWR 02
-+#define O_CREAT 01000 /* not fcntl */
-+#define O_EXCL  04000 /* not fcntl */
-+#define O_NOCTTY  010 /* not fcntl */
-+#define O_TRUNC 02000 /* not fcntl */
-+#define O_APPEND  010
-+#define O_NONBLOCK 04
-+#define O_NDELAY  O_NONBLOCK
-+#define O_SYNC   0200
-+#define O_FSYNCO_SYNC
-+#define O_ASYNC  0100
++/*
++ * Kernel encoding of open mode; separate read and write bits that are
++ * independently testable: 1 greater than the above.
++ */
++ 
++#define   O_NONBLOCK  0x0004  /* no delay */
++#define   O_NDELAYO_NONBLOCK  /* compat */
++#define   O_APPEND0x0008  /* set append mode */
 +
-+#ifdef __USE_GNU
-+# define O_DIRECT 020 /* Direct disk access.  */
-+enum { O_DIRECTORY = 0 }; /* Must be a directory.  */
++#if __USE_BSD
++#define   O_SHLOCK0x0010  /* open with shared file lock */
++#define   O_EXLOCK0x0020  /* open with exclusive file 
lock */
++#endif
++
++#define   O_ASYNC 0x0040  /* signal pgrp when data ready 
*/
++#define   O_FSYNC 0x0080  /* synchronous writes */
++#define   O_SYNC  O_FSYNC /* POSIX synonym for O_FSYNC */
++
++#if defined (__USE_XOPEN2K8) || defined (__USE_BSD)
++#define   O_NOFOLLOW  0x0100  /* don't follow symlinks */
++#endif
++
++#define   O_CREAT 0x0200  /* create if nonexistent */
++#define   O_TRUNC 0x0400  /* truncate to zero length */
++#define   O_EXCL  0x0800  /* error if already exists */
++/* Defined by POSIX 1003.1; BSD default, but must be distinct from O_RDONLY. 
*/
++#define   O_NOCTTY0x8000  /* don't assign controlling 
terminal */
++
++#if __USE_BSD
++/* Attempt to bypass buffer cache */
++#define   O_DIRECT0x0001
 +enum { O_NOATIME = 0};  /* Do not set atime.  */
-+# define O_NOFOLLOW  0400 /* Do not follow links.  */
 +#endif
 +
-+#ifdef __USE_BSD
-+#define O_SHLOCK  020 /* Open

r5592 - in glibc-package/trunk/debian: . testsuite-checking

2013-05-13 Thread Petr Salinger
Author: ps-guest
Date: 2013-05-13 05:58:39 + (Mon, 13 May 2013)
New Revision: 5592

Modified:
   glibc-package/trunk/debian/changelog
   
glibc-package/trunk/debian/testsuite-checking/expected-results-i486-kfreebsd-gnu-libc
   
glibc-package/trunk/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i386
   
glibc-package/trunk/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i686
   
glibc-package/trunk/debian/testsuite-checking/expected-results-x86_64-kfreebsd-gnu-libc
Log:
Allow failure of tst-secure-getenv on kfreebsd-*,
as the /proc/self/exe is provided only on best effort basis here,
especially under squeeze kernel as seen on buildd



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-05-12 18:22:19 UTC (rev 
5591)
+++ glibc-package/trunk/debian/changelog2013-05-13 05:58:39 UTC (rev 
5592)
@@ -1,6 +1,8 @@
 eglibc (2.17-3) UNRELEASED; urgency=low
 
-  * 
+  [ Petr Salinger ]
+  * Allow failure of tst-secure-getenv on kfreebsd-*,
+as the /proc/self/exe is provided only on best effort basis here
 
  -- Aurelien Jarno aure...@debian.org  Sun, 12 May 2013 20:22:06 +0200
 

Modified: 
glibc-package/trunk/debian/testsuite-checking/expected-results-i486-kfreebsd-gnu-libc
===
--- 
glibc-package/trunk/debian/testsuite-checking/expected-results-i486-kfreebsd-gnu-libc
   2013-05-12 18:22:19 UTC (rev 5591)
+++ 
glibc-package/trunk/debian/testsuite-checking/expected-results-i486-kfreebsd-gnu-libc
   2013-05-13 05:58:39 UTC (rev 5592)
@@ -17,6 +17,7 @@
 tst-longjmp_chk.out, Error 1
 tst-mknodat.out, Error 1
 tst-renameat.out, Error 1
+tst-secure-getenv.out, Error 255
 tst-timer4.out, Error 1
 tst-timer5.out, Error 1
 tst-waitid.out, Error 1

Modified: 
glibc-package/trunk/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i386
===
--- 
glibc-package/trunk/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i386
   2013-05-12 18:22:19 UTC (rev 5591)
+++ 
glibc-package/trunk/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i386
   2013-05-13 05:58:39 UTC (rev 5592)
@@ -19,6 +19,7 @@
 tst-longjmp_chk.out, Error 1
 tst-mknodat.out, Error 1
 tst-renameat.out, Error 1
+tst-secure-getenv.out, Error 255
 tst-timer4.out, Error 1
 tst-timer5.out, Error 1
 tst-waitid.out, Error 1

Modified: 
glibc-package/trunk/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i686
===
--- 
glibc-package/trunk/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i686
   2013-05-12 18:22:19 UTC (rev 5591)
+++ 
glibc-package/trunk/debian/testsuite-checking/expected-results-i686-kfreebsd-gnu-i686
   2013-05-13 05:58:39 UTC (rev 5592)
@@ -17,6 +17,7 @@
 tst-longjmp_chk.out, Error 1
 tst-mknodat.out, Error 1
 tst-renameat.out, Error 1
+tst-secure-getenv.out, Error 255
 tst-timer4.out, Error 1
 tst-timer5.out, Error 1
 tst-waitid.out, Error 1

Modified: 
glibc-package/trunk/debian/testsuite-checking/expected-results-x86_64-kfreebsd-gnu-libc
===
--- 
glibc-package/trunk/debian/testsuite-checking/expected-results-x86_64-kfreebsd-gnu-libc
 2013-05-12 18:22:19 UTC (rev 5591)
+++ 
glibc-package/trunk/debian/testsuite-checking/expected-results-x86_64-kfreebsd-gnu-libc
 2013-05-13 05:58:39 UTC (rev 5592)
@@ -17,6 +17,7 @@
 tst-longjmp_chk.out, Error 1
 tst-mknodat.out, Error 1
 tst-renameat.out, Error 1
+tst-secure-getenv.out, Error 255
 tst-timer4.out, Error 1
 tst-timer5.out, Error 1
 tst-waitid.out, Error 1


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1ublms-0001oz...@vasks.debian.org



Bug#635192: provide O_CLOEXEC on kfreebsd-*

2013-05-13 Thread Petr Salinger

Hi.

Both wheezy kernels (8.3 and 9.0) do support O_CLOEXEC.
Together with enabling O_CLOEXEC we have to
at least raise minimal kernel version to 8.3 in

  debian/debhelper.in/libc.preinst
  debian/sysdeps/kfreebsd.mk

We have to wait before buildd receives new kernel,
as current (squeezy one) does not suffice.

Petr


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.lnx.2.00.1305130909370.26...@contest.felk.cvut.cz



r5588 - in glibc-package/trunk/debian: . control.in

2013-05-12 Thread Petr Salinger
Author: ps-guest
Date: 2013-05-12 14:32:03 + (Sun, 12 May 2013)
New Revision: 5588

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/control
   glibc-package/trunk/debian/control.in/main
Log:
raise version dependency on g++-4.7 (= 4.7.3-4) [kfreebsd-amd64] 
due to multilib problems in earlier (experimentals) versions - #707957



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-05-12 14:25:08 UTC (rev 
5587)
+++ glibc-package/trunk/debian/changelog2013-05-12 14:32:03 UTC (rev 
5588)
@@ -51,6 +51,8 @@
   * kfreebsd/local-sysdeps.diff: update to revision 4431 (from glibc-bsd).
   * Add into testsuite-checking/expected-results-*-kfreebsd-gnu-*
 tst-timer5 test and new tst-backtrace[4-6] tests that are known to fail.
+  * raise version dependency on g++-4.7 (= 4.7.3-4) [kfreebsd-amd64] due to
+multilib problems in earlier versions
 
  -- Adam Conrad adcon...@0c3.net  Tue, 07 May 2013 13:58:05 -0600
 

Modified: glibc-package/trunk/debian/control
===
--- glibc-package/trunk/debian/control  2013-05-12 14:25:08 UTC (rev 5587)
+++ glibc-package/trunk/debian/control  2013-05-12 14:32:03 UTC (rev 5588)
@@ -9,6 +9,7 @@
  kfreebsd-kernel-headers [kfreebsd-any],
  binutils (= 2.21),
  g++-4.6 [ia64],
+ g++-4.7 (= 4.7.3-4) [kfreebsd-amd64],
  g++-4.7 (= 4.7.2-11), g++-4.7-multilib [amd64 i386 kfreebsd-amd64 mips 
mipsel powerpc ppc64 s390 s390x sparc x32]
 Build-Depends-Indep: perl, po-debconf (= 1.0)
 Build-Conflicts: binutils-gold

Modified: glibc-package/trunk/debian/control.in/main
===
--- glibc-package/trunk/debian/control.in/main  2013-05-12 14:25:08 UTC (rev 
5587)
+++ glibc-package/trunk/debian/control.in/main  2013-05-12 14:32:03 UTC (rev 
5588)
@@ -9,6 +9,7 @@
  kfreebsd-kernel-headers [kfreebsd-any],
  binutils (= 2.21),
  g++-4.6 [ia64],
+ g++-4.7 (= 4.7.3-4) [kfreebsd-amd64],
  g++-4.7 (= 4.7.2-11), g++-4.7-multilib [amd64 i386 kfreebsd-amd64 mips 
mipsel powerpc ppc64 s390 s390x sparc x32]
 Build-Depends-Indep: perl, po-debconf (= 1.0)
 Build-Conflicts: binutils-gold


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1ubxjj-0006bm...@vasks.debian.org



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

2013-05-11 Thread Petr Salinger
Author: ps-guest
Date: 2013-05-11 13:36:35 + (Sat, 11 May 2013)
New Revision: 5580

Removed:
   glibc-package/trunk/debian/patches/any/local-linuxthreads-lowlevellock.diff
   glibc-package/trunk/debian/patches/any/local-linuxthreads-unwind.diff
Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/series
Log:

drop obsolete any/local-linuxthreads-unwind.diff, 
any/local-linuxthreads-lowlevellock.diff



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-05-10 22:46:12 UTC (rev 
5579)
+++ glibc-package/trunk/debian/changelog2013-05-11 13:36:35 UTC (rev 
5580)
@@ -36,7 +36,9 @@
 changes in ctype initialization
   * reenable lost any/local-linuxthreads-XPG7.diff
   any/local-linuxthreads-setclock.diff
-  * kfreebsd/local-sysdeps.diff: update to revision 4427 (from glibc-bsd).
+  * drop obsolete any/local-linuxthreads-unwind.diff
+  any/local-linuxthreads-lowlevellock.diff
+  * kfreebsd/local-sysdeps.diff: update to revision 4428 (from glibc-bsd).
   * Add into testsuite-checking/expected-results-*-kfreebsd-gnu-*
 tst-timer5 test and new tst-backtrace[4-6] tests that are known to fail.
 

Deleted: 
glibc-package/trunk/debian/patches/any/local-linuxthreads-lowlevellock.diff
===
--- glibc-package/trunk/debian/patches/any/local-linuxthreads-lowlevellock.diff 
2013-05-10 22:46:12 UTC (rev 5579)
+++ glibc-package/trunk/debian/patches/any/local-linuxthreads-lowlevellock.diff 
2013-05-11 13:36:35 UTC (rev 5580)
@@ -1,160 +0,0 @@

- linuxthreads/sysdeps/unix/sysv/linux/rtld-lowlevel.h |  153 
+++
- 1 file changed, 153 insertions(+)
-
 /dev/null
-+++ b/linuxthreads/sysdeps/unix/sysv/linux/rtld-lowlevel.h
-@@ -0,0 +1,153 @@
-+/* Defintions for lowlevel handling in ld.so.
-+   Copyright (C) 2006 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, write to the Free
-+   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-+   02111-1307 USA.  */
-+
-+#ifndef _RTLD_LOWLEVEL_H
-+#define  _RTLD_LOWLEVEL_H 1
-+
-+#include atomic.h
-+#include lowlevellock.h
-+
-+
-+/* Special multi-reader lock used in ld.so.  */
-+#define __RTLD_MRLOCK_WRITER 1
-+#define __RTLD_MRLOCK_RWAIT 2
-+#define __RTLD_MRLOCK_WWAIT 4
-+#define __RTLD_MRLOCK_RBITS \
-+  ~(__RTLD_MRLOCK_WRITER | __RTLD_MRLOCK_RWAIT | __RTLD_MRLOCK_WWAIT)
-+#define __RTLD_MRLOCK_INC 8
-+#define __RTLD_MRLOCK_TRIES 5
-+
-+
-+typedef int __rtld_mrlock_t;
-+
-+
-+#define __rtld_mrlock_define(CLASS,NAME) \
-+  CLASS __rtld_mrlock_t NAME;
-+
-+
-+#define _RTLD_MRLOCK_INITIALIZER 0
-+#define __rtld_mrlock_initialize(NAME) \
-+  (void) ((NAME) = 0)
-+
-+
-+#define __rtld_mrlock_lock(lock) \
-+  do {
  \
-+__label__ out;  \
-+while (1)   \
-+  {   
  \
-+  int oldval;   \
-+  for (int tries = 0; tries  __RTLD_MRLOCK_TRIES; ++tries) \
-+{   \
-+  oldval = lock;\
-+  while (__builtin_expect ((oldval  \
-+ (__RTLD_MRLOCK_WRITER \
-+   | __RTLD_MRLOCK_WWAIT))  \
-+   == 0, 1))\
-+{   \
-+  int newval = ((oldval  __RTLD_MRLOCK_RBITS)  \
-++ __RTLD_MRLOCK_INC);   \
-+  int ret = atomic_compare_and_exchange_val_acq ((lock),   \
-+ newval,\
-+ 

r5575 - in glibc-package/trunk/debian: . patches patches/kfreebsd

2013-05-10 Thread Petr Salinger
Author: ps-guest
Date: 2013-05-10 15:28:31 + (Fri, 10 May 2013)
New Revision: 5575

Added:
   
glibc-package/trunk/debian/patches/kfreebsd/local-linuxthreads-ctype_init.diff
Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
   glibc-package/trunk/debian/patches/series.kfreebsd-amd64
   glibc-package/trunk/debian/patches/series.kfreebsd-i386
Log:
patches/kfreebsd/local-linuxthreads-ctype_init.diff: follow upstream changes in 
ctype initialization
update kfreebsd/local-sysdeps.diff



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-05-10 10:29:43 UTC (rev 
5574)
+++ glibc-package/trunk/debian/changelog2013-05-10 15:28:31 UTC (rev 
5575)
@@ -31,7 +31,9 @@
   * patches/kfreebsd/local-linuxthreads-stackguard.diff: handle elf subdir
 removal
   * patches/kfreebsd/local-freopen.diff: support architecture without dup3()
-  * kfreebsd/local-sysdeps.diff: update to revision 4426 (from glibc-bsd).
+  * patches/kfreebsd/local-linuxthreads-ctype_init.diff: follow upstream
+changes in ctype initialization
+  * kfreebsd/local-sysdeps.diff: update to revision 4427 (from glibc-bsd).
 
  -- Adam Conrad adcon...@0c3.net  Tue, 07 May 2013 13:58:05 -0600
 

Added: 
glibc-package/trunk/debian/patches/kfreebsd/local-linuxthreads-ctype_init.diff
===
--- 
glibc-package/trunk/debian/patches/kfreebsd/local-linuxthreads-ctype_init.diff  
(rev 0)
+++ 
glibc-package/trunk/debian/patches/kfreebsd/local-linuxthreads-ctype_init.diff  
2013-05-10 15:28:31 UTC (rev 5575)
@@ -0,0 +1,24 @@
+--- a/linuxthreads/manager.c
 b/linuxthreads/manager.c
+@@ -127,6 +127,10 @@
+ #ifdef INIT_THREAD_SELF
+   INIT_THREAD_SELF(self, 1);
+ #endif
++
++  /* Initialize pointers to locale data.  */
++  __ctype_init ();
++
+ #if !(USE_TLS  HAVE___THREAD)
+   /* Set the error variable.  */
+   self-p_errnop = self-p_errno;
+@@ -297,6 +301,10 @@
+SCHED_OTHER, default_params);
+ }
+ #endif
++
++  /* Initialize pointers to locale data.  */
++  __ctype_init ();
++
+ #if !(USE_TLS  HAVE___THREAD)
+   /* Initialize thread-locale current locale to point to the global one.
+  With __thread support, the variable's initializer takes care of this.  */

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-05-10 10:29:43 UTC (rev 5574)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-05-10 15:28:31 UTC (rev 5575)
@@ -27835,16 +27835,16 @@
 +  - exit will call _exit in near future
 +  */
 +
++  movq %rbx, %rdi /* argument for either syscall */
 +  testq %rbx, %rbx/* If it is zero exit.  */
 +  jz 2f
 +
-+  movq %rbx, %rdi
 +  callJUMPTARGET(__setcontext)
 +  /* If this returns (which can happen if the syscall fails) we'll
 + exit the program with the return error value (-1).  */
 +
-+2:movq %rax, %rdi
-+  callHIDDEN_JUMPTARGET(exit)
++  movq %rax, %rdi
++2:callHIDDEN_JUMPTARGET(exit)
 +  /* The 'exit' call should never return.  In case it does cause
 + the process to terminate.  */
 +  hlt

Modified: glibc-package/trunk/debian/patches/series.kfreebsd-amd64
===
--- glibc-package/trunk/debian/patches/series.kfreebsd-amd642013-05-10 
10:29:43 UTC (rev 5574)
+++ glibc-package/trunk/debian/patches/series.kfreebsd-amd642013-05-10 
15:28:31 UTC (rev 5575)
@@ -13,3 +13,4 @@
 kfreebsd/local-no-pldd.diff
 kfreebsd/local-nscd-nosendfile-fix.diff
 kfreebsd/local-linuxthreads-stackguard.diff
+kfreebsd/local-linuxthreads-ctype_init.diff

Modified: glibc-package/trunk/debian/patches/series.kfreebsd-i386
===
--- glibc-package/trunk/debian/patches/series.kfreebsd-i386 2013-05-10 
10:29:43 UTC (rev 5574)
+++ glibc-package/trunk/debian/patches/series.kfreebsd-i386 2013-05-10 
15:28:31 UTC (rev 5575)
@@ -13,3 +13,4 @@
 kfreebsd/local-no-pldd.diff
 kfreebsd/local-nscd-nosendfile-fix.diff
 kfreebsd/local-linuxthreads-stackguard.diff
+kfreebsd/local-linuxthreads-ctype_init.diff


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1uapfh-0007yd...@vasks.debian.org



r5567 - in glibc-package/trunk/debian: . patches/kfreebsd

2013-05-09 Thread Petr Salinger
Author: ps-guest
Date: 2013-05-09 08:31:08 + (Thu, 09 May 2013)
New Revision: 5567

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
Log:
kfreebsd/local-sysdeps.diff: update to revision 4419 (from glibc-bsd).


Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-05-08 16:59:12 UTC (rev 
5566)
+++ glibc-package/trunk/debian/changelog2013-05-09 08:31:08 UTC (rev 
5567)
@@ -26,7 +26,7 @@
   * patches/kfreebsd/local-no-pldd.diff: pldd is linux only utility
   * patches/kfreebsd/local-nscd-nosendfile-fix.diff: handle system without
 sendfile syscall
-  * kfreebsd/local-sysdeps.diff: update to revision 4418 (from glibc-bsd).
+  * kfreebsd/local-sysdeps.diff: update to revision 4419 (from glibc-bsd).
 Fixes sys/mount.h without C99.  Closes: #704598.
 
  -- Adam Conrad adcon...@0c3.net  Tue, 07 May 2013 13:58:05 -0600

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-05-08 16:59:12 UTC (rev 5566)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-05-09 08:31:08 UTC (rev 5567)
@@ -24920,7 +24920,7 @@
 +#endif
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/syscalls.list
-@@ -0,0 +1,199 @@
+@@ -0,0 +1,201 @@
 +# File name   Caller  Syscall name# args  Strong 
name Weak names
 +sys_access-   access  i:si
__syscall_access
 +acl_aclcheck_fd   -   acl_aclcheck_fd i:iip   
__acl_aclcheck_fd
@@ -24965,6 +24965,8 @@
 +sys_getcwd-   getcwd  i:bn
__syscall_getcwd
 +sys_getdents  -   getdentsi:ibn   
__syscall_getdents
 +sys_getdirentries -   getdirentries   i:ibnP  
__syscall_getdirentries
++getegid   -   getegid i:  
__getegid getegid
++geteuid   -   geteuid i:  
__geteuid geteuid
 +getfh -   getfh   i:spgetfh
 +sys_getlogin  -   getlogini:bn
__syscall_getlogin
 +getpgid   -   getpgid i:i 
__getpgid __getpgid_internal getpgid


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1uamfo-m9...@vasks.debian.org



r5571 - in glibc-package/trunk/debian: . patches patches/kfreebsd

2013-05-09 Thread Petr Salinger
Author: ps-guest
Date: 2013-05-09 12:13:07 + (Thu, 09 May 2013)
New Revision: 5571

Added:
   
glibc-package/trunk/debian/patches/kfreebsd/local-linuxthreads-stackguard.diff
Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-linuxthreads-initfini.diff
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
   glibc-package/trunk/debian/patches/series.kfreebsd-amd64
   glibc-package/trunk/debian/patches/series.kfreebsd-i386
Log:
* kfreebsd/local-sysdeps.diff: update and related fixes



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-05-09 10:02:31 UTC (rev 
5570)
+++ glibc-package/trunk/debian/changelog2013-05-09 12:13:07 UTC (rev 
5571)
@@ -28,7 +28,9 @@
   * patches/kfreebsd/local-no-pldd.diff: pldd is linux only utility
   * patches/kfreebsd/local-nscd-nosendfile-fix.diff: handle system without
 sendfile syscall
-  * kfreebsd/local-sysdeps.diff: update to revision 4419 (from glibc-bsd).
+  * patches/kfreebsd/local-linuxthreads-stackguard.diff: handle elf subdir
+removal
+  * kfreebsd/local-sysdeps.diff: update to revision 4422 (from glibc-bsd).
 
  -- Adam Conrad adcon...@0c3.net  Tue, 07 May 2013 13:58:05 -0600
 

Modified: 
glibc-package/trunk/debian/patches/kfreebsd/local-linuxthreads-initfini.diff
===
--- 
glibc-package/trunk/debian/patches/kfreebsd/local-linuxthreads-initfini.diff
2013-05-09 10:02:31 UTC (rev 5570)
+++ 
glibc-package/trunk/debian/patches/kfreebsd/local-linuxthreads-initfini.diff
2013-05-09 12:13:07 UTC (rev 5571)
@@ -25,12 +25,12 @@
  
  # Make sure we link with the thread library.
  ifeq ($(build-shared),yes)
-@@ -266,33 +265,6 @@
+@@ -266,32 +265,9 @@
  endif
  
  ifeq ($(build-shared),yes)
 -vpath pt-initfini.c $(sysdirs)
--
+ 
 -$(objpfx)pt-initfini.s: pt-initfini.c
 -  $(compile.c) -S $(CFLAGS-pt-initfini.s) -finhibit-size-directive \
 -  $(patsubst -f%,-fno-%,$(exceptions)) -o $@
@@ -55,10 +55,11 @@
 -
 -$(objpfx)crtn.o: $(objpfx)crtn.S $(objpfx)defs.h
 -  $(compile.S) -g0 $(ASFLAGS-.os) -o $@
--
++$(objpfx)crti.o: $(objpfx)pt-crti.o
++  ln -f $ $@
+ 
  ifneq ($(multidir),.)
  $(objpfx)$(multidir):
-   @mkdir -p $(objpfx)$(multidir)
 @@ -304,7 +275,7 @@
ln -f $ $@
  endif

Added: 
glibc-package/trunk/debian/patches/kfreebsd/local-linuxthreads-stackguard.diff
===
--- 
glibc-package/trunk/debian/patches/kfreebsd/local-linuxthreads-stackguard.diff  
(rev 0)
+++ 
glibc-package/trunk/debian/patches/kfreebsd/local-linuxthreads-stackguard.diff  
2013-05-09 12:13:07 UTC (rev 5571)
@@ -0,0 +1,11 @@
+--- a/linuxthreads/tst-stackguard1.c
 b/linuxthreads/tst-stackguard1.c
+@@ -24,7 +24,7 @@
+ #include stdlib.h
+ #include string.h
+ #include sys/wait.h
+-#include elf/stackguard-macros.h
++#include stackguard-macros.h
+ #include unistd.h
+ 
+ static const char *command;

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-05-09 10:02:31 UTC (rev 5570)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-05-09 12:13:07 UTC (rev 5571)
@@ -11049,6 +11049,39 @@
 +
 +weak_alias(__makecontext, makecontext)
 --- /dev/null
 b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/i386/pipe.S
+@@ -0,0 +1,30 @@
++/* Copyright (C) 1991,92,93,95,97,2002 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, write to the Free
++   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
++   02111-1307 USA.  */
++
++#include sysdep.h
++
++SYSCALL__ (pipe, 1)
++  movl 4(%esp), scratch
++  movl %eax, (scratch)
++  movl r1, 4(scratch)
++  xorl %eax, %eax
++  ret
++PSEUDO_END (__pipe)
++
++libc_hidden_def (__pipe)
++weak_alias (__pipe, pipe)
+--- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/i386/rfork.S
 @@ -0,0 +1,44 @@
 +/* Copyright (C) 1991-1992, 1994-1995, 1997, 2002 Free Software Foundation, 

r5572 - in glibc-package/trunk/debian: . patches patches/kfreebsd

2013-05-09 Thread Petr Salinger
Author: ps-guest
Date: 2013-05-09 19:23:10 + (Thu, 09 May 2013)
New Revision: 5572

Added:
   glibc-package/trunk/debian/patches/kfreebsd/local-freopen.diff
Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
   glibc-package/trunk/debian/patches/series
Log:
patches/kfreebsd/local-freopen.diff: support architecture without dup3()
freebsd/local-sysdeps.diff: update to revision 4423 (from glibc-bsd).



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-05-09 12:13:07 UTC (rev 
5571)
+++ glibc-package/trunk/debian/changelog2013-05-09 19:23:10 UTC (rev 
5572)
@@ -30,7 +30,8 @@
 sendfile syscall
   * patches/kfreebsd/local-linuxthreads-stackguard.diff: handle elf subdir
 removal
-  * kfreebsd/local-sysdeps.diff: update to revision 4422 (from glibc-bsd).
+  * patches/kfreebsd/local-freopen.diff: support architecture without dup3()
+  * kfreebsd/local-sysdeps.diff: update to revision 4423 (from glibc-bsd).
 
  -- Adam Conrad adcon...@0c3.net  Tue, 07 May 2013 13:58:05 -0600
 

Added: glibc-package/trunk/debian/patches/kfreebsd/local-freopen.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-freopen.diff  
(rev 0)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-freopen.diff  
2013-05-09 19:23:10 UTC (rev 5572)
@@ -0,0 +1,46 @@
+Index: eglibc-2.17/libio/freopen.c
+===
+--- eglibc-2.17.orig/libio/freopen.c
 eglibc-2.17/libio/freopen.c
+@@ -93,15 +93,16 @@
+   (result-_flags2  _IO_FLAGS2_CLOEXEC) != 0
+   ? O_CLOEXEC : 0);
+ #else
+-# define newfd 1
++# define newfd -1
+ #endif
+ 
+ #ifndef __ASSUME_DUP3
+ if (newfd  0)
+   {
++# ifdef O_CLOEXEC 
+ if (errno == ENOSYS)
+   __have_dup3 = -1;
+-
++# endif   
+ __dup2 (_IO_fileno (result), fd);
+ if ((result-_flags2  _IO_FLAGS2_CLOEXEC) != 0)
+   __fcntl (fd, F_SETFD, FD_CLOEXEC);
+Index: eglibc-2.17/libio/freopen64.c
+===
+--- eglibc-2.17.orig/libio/freopen64.c
 eglibc-2.17/libio/freopen64.c
+@@ -76,15 +76,16 @@
+   (result-_flags2  _IO_FLAGS2_CLOEXEC) != 0
+   ? O_CLOEXEC : 0);
+ #else
+-# define newfd 1
++# define newfd -1
+ #endif
+ 
+ #ifndef __ASSUME_DUP3
+ if (newfd  0)
+   {
++# ifdef O_CLOEXEC 
+ if (errno == ENOSYS)
+   __have_dup3 = -1;
+-
++# endif
+ __dup2 (_IO_fileno (result), fd);
+ if ((result-_flags2  _IO_FLAGS2_CLOEXEC) != 0)
+   __fcntl (fd, F_SETFD, FD_CLOEXEC);

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-05-09 12:13:07 UTC (rev 5571)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-05-09 19:23:10 UTC (rev 5572)
@@ -716,7 +716,7 @@
 +weak_alias (__bind, bind)
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/bits/dirent.h
-@@ -0,0 +1,52 @@
+@@ -0,0 +1,55 @@
 +/* Directory entry structure `struct dirent'.  FreeBSD version.
 +   Copyright (C) 1996-1998,2001-2002 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
@@ -769,6 +769,9 @@
 +#define _DIRENT_HAVE_D_RECLEN 1
 +#define _DIRENT_HAVE_D_NAMLEN 1
 +#define _DIRENT_HAVE_D_TYPE 1
++
++/* Inform libc code that these two types are effectively identical.  */
++# define _DIRENT_MATCHES_DIRENT64   1
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/bits/elf.h
 @@ -0,0 +1,37 @@
@@ -4685,9 +4688,9 @@
 +#endif/* need timeval */
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/bits/typesizes.h
-@@ -0,0 +1,95 @@
+@@ -0,0 +1,91 @@
 +/* bits/typesizes.h -- underlying types for *_t.  kFreeBSD version.
-+   Copyright (C) 2002, 2003, 2010, 2012 Free Software Foundation, Inc.
++   Copyright (C) 2002, 2003, 2010 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
@@ -4734,17 +4737,9 @@
 +#define   __FSFILCNT_T_TYPE   __ULONGWORD_TYPE
 +#define   __FSFILCNT64_T_TYPE __UQUAD_TYPE
 +#define   __ID_T_TYPE __U32_TYPE
++#define __CLOCK_T_TYPE__S32_TYPE
 +#define   __FSWORD_T_TYPE __SWORD_TYPE
 +
-+#if defined(__arm__) || defined(__powerpc__)
-+#define __CLOCK_T_TYPE__U32_TYPE
-+#elif defined(__i386__)
-+/* clock_t is unsigned in FreeBSD/i386, but it's too late to fix that now... 
*/

r5573 - in glibc-package/trunk/debian: . patches/kfreebsd

2013-05-09 Thread Petr Salinger
 ENTRY_POINT
++  .type ENTRY_POINT,@function
++ENTRY_POINT:
++#ifdef __PIC__
++  SETUP_GPX($0)
++  SETUP_GPX64($25,$0)
++#else
++  PTR_LA $28, _gp /* Setup GP correctly if we're non-PIC.  */
++  move $31, $0
++#endif
++
++  PTR_L $5, 0($4) /* argc */
++  PTR_ADDIU $6, $4, PTRSIZE   /* argv  */
++  PTR_LA $4, main /* main */
++  
++  /* Allocate space on the stack for seven arguments (o32 only)
++ and make sure the stack is aligned to double words (8 bytes) 
++ on o32 and quad words (16 bytes) on n32 and n64.  */
++  
++  and $29, -2 * SZREG
++#if _MIPS_SIM == _ABIO32
++  PTR_SUBIU $29, 32
++#endif
++  PTR_LA $7, __libc_csu_init  /* init */
++  PTR_LA $8, __libc_csu_fini
++#if _MIPS_SIM == _ABIO32
++  PTR_S $8, 16($29)   /* fini */
++  PTR_S $2, 20($29)   /* rtld_fini */
++  PTR_S $29, 24($29)  /* stack_end */
++#else
++  move $9, $2 /* rtld_fini */
++  move $10, $29   /* stack_end */
++#endif
++  jal __libc_start_main
++hlt:  b hlt   /* Crash if somehow it does return.  */
++
++/* Define a symbol for the first piece of initialized data.  */
++  .data
++  .globl __data_start
++__data_start:
++  .long 0
++  .weak data_start
++  data_start = __data_start
+--- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/mips/start_thread.S
 @@ -0,0 +1,56 @@
 +/* Copyright (C) 2002 Free Software Foundation, Inc.
@@ -27358,152 +27233,6 @@
 @@ -0,0 +1 @@
 +#include sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h
 --- /dev/null
-+++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/x86_64/elf/start.S
-@@ -0,0 +1,143 @@
-+/* Startup code for FreeBSD/amd64 ABI.
-+   Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-+   This file is part of the GNU C Library.
-+   Contributed by Andreas Jaeger a...@suse.de, 2001.
-+   FreeBSD modification by Petr Salinger, 2006.
-+
-+   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.
-+
-+   In addition to the permissions in the GNU Lesser General Public
-+   License, the Free Software Foundation gives you unlimited
-+   permission to link the compiled version of this file with other
-+   programs, and to distribute those programs without any restriction
-+   coming from the use of this file. (The GNU Lesser General Public
-+   License restrictions do apply in other respects; for example, they
-+   cover modification of the file, and distribution when not linked
-+   into another program.)
-+
-+   Note that people who make modified versions of this file are not
-+   obligated to grant this special exception for their modified
-+   versions; it is their choice whether to do so. The GNU Lesser
-+   General Public License gives permission to release a modified
-+   version without this exception; this exception also makes it
-+   possible to release a modified version which carries forward this
-+   exception.
-+
-+   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, write to the Free
-+   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-+   02111-1307 USA.  */
-+
-+/* This is the canonical entry point, usually the first thing in the text
-+   segment.  The SVR4/i386 ABI (pages 3-31, 3-32) says that when the entry
-+   point runs, most registers' values are unspecified, except for a few.
-+   Blindly applied on amd64:
-+
-+   %rdx   Contains a function pointer to be registered with 
`atexit'.
-+  This is how the dynamic linker arranges to have DT_FINI
-+  functions called for shared libraries that have been loaded
-+  before this code runs.
-+
-+   %rsp   The stack contains the arguments and environment:
-+  0(%rsp) argc
-+  8(%rsp) argv[0]
-+  ...
-+  (8*argc)(%rsp)  NULL
-+  (8*(argc+1))(%rsp)  envp[0]
-+  ...
-+  NULL
-+
-+   But on amd64 %rsp also have to be 16-byte aligned,
-+   standard C calling convention already passes arguments in registers.
-+
-+   FreeBSD uses %edi as pointer to arguments and environment, %rsp is passed 
aligned.
-+   On entry from kernel, %rsp=%rdi or %rsp=%rdi-8,
-+   on entry from ld.so, glibc might set up it slightly differently.
-+
-+   On FreeBSD, we use

r5560 - glibc-package/trunk/debian/patches/kfreebsd

2013-05-08 Thread Petr Salinger
Author: ps-guest
Date: 2013-05-08 12:30:04 + (Wed, 08 May 2013)
New Revision: 5560

Modified:
   
glibc-package/trunk/debian/patches/kfreebsd/local-linuxthreads-TLS-THREAD.diff
Log:
fixup local-linuxthreads-TLS-THREAD.diff



Modified: 
glibc-package/trunk/debian/patches/kfreebsd/local-linuxthreads-TLS-THREAD.diff
===
--- 
glibc-package/trunk/debian/patches/kfreebsd/local-linuxthreads-TLS-THREAD.diff  
2013-05-07 23:26:14 UTC (rev 5559)
+++ 
glibc-package/trunk/debian/patches/kfreebsd/local-linuxthreads-TLS-THREAD.diff  
2013-05-08 12:30:04 UTC (rev 5560)
@@ -44,7 +44,7 @@
  {
 --- a/linuxthreads/pthread.c
 +++ b/linuxthreads/pthread.c
-@@ -317,53 +317,6 @@
+@@ -317,51 +317,6 @@
/* Unlike in the dynamically linked case the dynamic linker has not
   taken care of initializing the TLS data structures.  */
__libc_setup_tls (TLS_TCB_SIZE, TLS_TCB_ALIGN);
@@ -93,11 +93,9 @@
 -
 -  __libc_malloc_pthread_startup (false);
 -}
--# endif
--
-   self = THREAD_SELF;
+ # endif
  
-   /* The memory for the thread descriptor was allocated elsewhere as
+   self = THREAD_SELF;
 @@ -464,17 +417,9 @@
  }
  


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1ua3vu-ej...@vasks.debian.org



r5561 - in glibc-package/trunk/debian: . patches patches/kfreebsd

2013-05-08 Thread Petr Salinger
Author: ps-guest
Date: 2013-05-08 12:39:03 + (Wed, 08 May 2013)
New Revision: 5561

Added:
   glibc-package/trunk/debian/patches/kfreebsd/local-linuxthreads-initfini.diff
   glibc-package/trunk/debian/patches/kfreebsd/local-no-pldd.diff
   glibc-package/trunk/debian/patches/kfreebsd/local-nscd-nosendfile-fix.diff
Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
   glibc-package/trunk/debian/patches/series.kfreebsd-amd64
   glibc-package/trunk/debian/patches/series.kfreebsd-i386
Log:
kfreebsd patches


Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-05-08 12:30:04 UTC (rev 
5560)
+++ glibc-package/trunk/debian/changelog2013-05-08 12:39:03 UTC (rev 
5561)
@@ -13,7 +13,14 @@
 conditional defines on USE___THREAD and HAVE_TLS_SUPPORT.
   * patches/kfreebsd/local-linuxthreads-mutex-initializer.diff: New patch to
 define MUTEX_INITIALIZER.
-  * kfreebsd/local-sysdeps.diff: update to revision 4412 (from glibc-bsd).
+  
+  [ Petr Salinger ]
+  * patches/kfreebsd/local-linuxthreads-initfini.diff: follow upstream
+changes in startup code
+  * patches/kfreebsd/local-no-pldd.diff: pldd is linux only utility
+  * patches/kfreebsd/local-nscd-nosendfile-fix.diff: handle system without
+sendfile syscall
+  * kfreebsd/local-sysdeps.diff: update to revision 4417 (from glibc-bsd).
 
  -- Adam Conrad adcon...@0c3.net  Tue, 07 May 2013 13:58:05 -0600
 

Added: 
glibc-package/trunk/debian/patches/kfreebsd/local-linuxthreads-initfini.diff
===
--- 
glibc-package/trunk/debian/patches/kfreebsd/local-linuxthreads-initfini.diff
(rev 0)
+++ 
glibc-package/trunk/debian/patches/kfreebsd/local-linuxthreads-initfini.diff
2013-05-08 12:39:03 UTC (rev 5561)
@@ -0,0 +1,70 @@
+--- a/linuxthreads/Makefile
 b/linuxthreads/Makefile
+@@ -97,12 +97,11 @@
+ generated-dirs := $(firstword $(subst /, , $(multidir)))
+ crti-objs += $(multidir)/crti.o
+ crtn-objs += $(multidir)/crtn.o
+-omit-deps += $(multidir)/crti $(multidir)/crtn
++$(objpfx)$(multidir):
++  mkdir -p $@
+ endif
+ extra-objs += $(crti-objs) $(crtn-objs)
+-omit-deps += crti crtn
+-
+-CFLAGS-pt-initfini.s = -g0 -fPIC -fno-inline-functions $(fno-unit-at-a-time)
++extra-objs += pt-crti.o
+ endif
+ 
+ librt-tests = ex10 ex11 tst-clock1
+@@ -234,7 +234,7 @@
+ # a statically-linked program that hasn't already loaded it.
+ # Depend on ld.so too to get proper versions of ld.so symbols.
+ $(objpfx)libpthread.so: $(libc-link.so) $(common-objpfx)libc_nonshared.a \
+-  $(if $(filter yes,$(elf)), $(elfobjdir)/ld.so)
++  $(elfobjdir)/ld.so
+ 
+ # Make sure we link with the thread library.
+ ifeq ($(build-shared),yes)
+@@ -266,33 +265,6 @@
+ endif
+ 
+ ifeq ($(build-shared),yes)
+-vpath pt-initfini.c $(sysdirs)
+-
+-$(objpfx)pt-initfini.s: pt-initfini.c
+-  $(compile.c) -S $(CFLAGS-pt-initfini.s) -finhibit-size-directive \
+-  $(patsubst -f%,-fno-%,$(exceptions)) -o $@
+-
+-# We only have one kind of startup code files.  Static binaries and
+-# shared libraries are build using the PIC version.
+-$(objpfx)crti.S: $(objpfx)pt-initfini.s
+-  sed -n -e '1,/@HEADER_ENDS/p' \
+- -e '/@_.*_PROLOG_BEGINS/,/@_.*_PROLOG_ENDS/p' \
+- -e '/@TRAILER_BEGINS/,$$p' $  $@
+-$(objpfx)crtn.S: $(objpfx)pt-initfini.s
+-  sed -n -e '1,/@HEADER_ENDS/p' \
+- -e '/@_.*_EPILOG_BEGINS/,/@_.*_EPILOG_ENDS/p' \
+- -e '/@TRAILER_BEGINS/,$$p' $  $@
+-
+-$(objpfx)defs.h: $(objpfx)pt-initfini.s
+-  sed -n -e '/@TESTS_BEGIN/,/@TESTS_END/p' $ | \
+-  $(AWK) -f ../csu/defs.awk  $@
+-
+-$(objpfx)crti.o: $(objpfx)crti.S $(objpfx)defs.h
+-  $(compile.S) -g0 $(ASFLAGS-.os) -o $@
+-
+-$(objpfx)crtn.o: $(objpfx)crtn.S $(objpfx)defs.h
+-  $(compile.S) -g0 $(ASFLAGS-.os) -o $@
+-
+ ifneq ($(multidir),.)
+ $(objpfx)$(multidir):
+   @mkdir -p $(objpfx)$(multidir)
+@@ -304,7 +275,7 @@
+   ln -f $ $@
+ endif
+ 
+-generated += crti.S crtn.S defs.h pt-initfini.s libpthread_nonshared.a
++generated += libpthread_nonshared.a
+ endif
+ 
+ ifeq (yes,$(build-static-nss))

Added: glibc-package/trunk/debian/patches/kfreebsd/local-no-pldd.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-no-pldd.diff  
(rev 0)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-no-pldd.diff  
2013-05-08 12:39:03 UTC (rev 5561)
@@ -0,0 +1,35 @@
+--- a/elf/pldd.c
 b/elf/pldd.c
+@@ -90,6 +90,11 @@
+ int
+ main (int argc, char *argv[])
+ {
++#if !defined(__linux__)
++  fprintf (stderr, Unsupported utility\n);
++  return 1;
++#else  
++
+   /* Parse and process arguments.  */
+   int remaining

Bug#696556: ldd: segfault with binaries with big segment

2013-04-21 Thread Petr Salinger


The problem is default load address for PIE/DSO.
There is not enough space between default address for binaries
and default address for PIE/DSO. There is at most 12 MB :-(

The base address for binaries (/usr/lib/ldscripts/*)
kfreebsd-i386  - 0x08048000.
kfreebsd-amd64 -   0x40.

Default address for PIE/DSO (inside kernel sources)
kfreebsd-i386  - 0x01001000
kfreebsd-amd64 - 0x01021000

The linux kernel does not use fixed address for PIE,
it uses the place where DSO could be loaded.

We could either alter default address for PIE/DSO (inside kernel sources),
or alter base address for binaries (binary would be loaded after default 
PIE/DSO) or specify address for ld.so during libc build.


The new reasonable ET_DYN_LOAD_ADDR might be 0x101021000.


# /lib/ld-kfreebsd-x86-64.so.1 /bin/cat /proc/self/maps | cut -f 1-2,6- -d  
0040-0040c000 r-xp /bin/cat
0060b000-0060c000 r--p /bin/cat
0060c000-0060d000 rw-p /bin/cat
01021000-0104 r-xp /lib/x86_64-kfreebsd-gnu/ld-2.13.so
0123f000-0124 r--p /lib/x86_64-kfreebsd-gnu/ld-2.13.so
0124-01242000 rw-p
59ec9f000-59eca1000 rw-p
59eca1000-59ecbd000 r--p /etc/ld.so.cache
59ecbd000-59edff000 r-xp /lib/x86_64-kfreebsd-gnu/libc-2.13.so
59edff000-59efff000 ---p /lib/x86_64-kfreebsd-gnu/libc-2.13.so
59efff000-59f003000 r--p /lib/x86_64-kfreebsd-gnu/libc-2.13.so
59f003000-59f005000 rw-p /lib/x86_64-kfreebsd-gnu/libc-2.13.so
59f005000-59f10b000 rw-p
7ffdf000-7000 rwxp
7000-8000 r-xp


# /bin/cat /proc/self/maps | cut -f 1-2,6- -d  
0040-0040c000 r-xp /bin/cat
0060b000-0060c000 r--p /bin/cat
0060c000-0062e000 rw-p
59e06b000-59e08a000 r-xp /lib/x86_64-kfreebsd-gnu/ld-2.13.so
59e08a000-59e08c000 rw-p
59e08c000-59e0a8000 r--p /etc/ld.so.cache
59e0a8000-59e0aa000 rw-p
59e289000-59e28a000 r--p /lib/x86_64-kfreebsd-gnu/ld-2.13.so
59e28a000-59e28c000 rw-p
59e28c000-59e3ce000 r-xp /lib/x86_64-kfreebsd-gnu/libc-2.13.so
59e3ce000-59e5ce000 ---p /lib/x86_64-kfreebsd-gnu/libc-2.13.so
59e5ce000-59e5d2000 r--p /lib/x86_64-kfreebsd-gnu/libc-2.13.so
59e5d2000-59e5d4000 rw-p /lib/x86_64-kfreebsd-gnu/libc-2.13.so
59e5d4000-59e5d8000 rw-p
7ffdf000-7000 rwxp
7000-8000 r-xp


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.lrh.2.02.1304211006400.8...@sci.felk.cvut.cz



r5530 - in glibc-package/trunk/debian: . patches/kfreebsd

2013-04-14 Thread Petr Salinger
Author: ps-guest
Date: 2013-04-14 08:43:32 + (Sun, 14 Apr 2013)
New Revision: 5530

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
Log:
inline is not keyword in c89 mode, use __inline


Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-03-28 04:18:39 UTC (rev 
5529)
+++ glibc-package/trunk/debian/changelog2013-04-14 08:43:32 UTC (rev 
5530)
@@ -23,6 +23,7 @@
   [ Petr Salinger ]
   * patches/kfreebsd/local-initgroups-order.diff: always put supplied extra
 gid as the first entry of group list in setgroups(). Closes: #699593.
+  * inline is not keyword in c89 mode, use __inline. Closes: #704598.
 
  -- Adam Conrad adcon...@0c3.net  Sun, 30 Dec 2012 10:22:43 -0700
 

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-03-28 04:18:39 UTC (rev 5529)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2013-04-14 08:43:32 UTC (rev 5530)
@@ -23159,7 +23159,7 @@
 + * Given a filesystem name, determine if it is resident in the kernel,
 + * and if it is resident, return its xvfsconf structure.
 + */
-+static inline int
++static __inline int
 +getvfsbyname(const char *fsname, struct xvfsconf *vfcp)
 +{
 +  struct xvfsconf *xvfsp;


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1urix6-0007va...@vasks.debian.org



Bug#704598: libc0.1-dev: sys/mount.h requires C99

2013-04-14 Thread Petr Salinger

clone 704598 kfreebsd-kernel-headers
--

At first glance at this, I think it was made 'static inline' because the
function (copied from FreeBSD libc) really is being inlined into the
header;  it wouldn't be linked into the executable otherwise as glibc
does not have it.

I think 'static' is essential (so the function does not get exported /
defined more than once), but maybe the 'inline' can be dropped without
ill effects (a compiler might choose to inline it anyway).

An alternative might have been the __inline GCC extension and the
necessary defines for that macro to work, but that sounds messy - making
something standards-compliant by using a nonstandard feature...


The use of __inline should suffice,
it is handled in sys/cdefs.h, which is included by features.h,
which is included by sys/mount.h early,

There is another problematic case for -std=c89,

/usr/include/sys/sysctl.h:893:32: error: unknown type name 'u_int'
verbatim u_int - unsigned int suffices.

The sys/sysctl.h comes from kfreebsd-kernel-headers package.

Petr


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.lrh.2.02.1304141040380.19...@sci.felk.cvut.cz



r5481 - in glibc-package/trunk/debian: . patches patches/kfreebsd

2013-02-05 Thread Petr Salinger
Author: ps-guest
Date: 2013-02-05 14:59:09 + (Tue, 05 Feb 2013)
New Revision: 5481

Added:
   glibc-package/trunk/debian/patches/kfreebsd/local-initgroups-order.diff
Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/series.kfreebsd-amd64
   glibc-package/trunk/debian/patches/series.kfreebsd-i386
Log:
patches/kfreebsd/local-initgroups-order.diff: always put supplied extra gid as 
the first entry of group list in setgroups()



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2013-02-04 13:10:53 UTC (rev 
5480)
+++ glibc-package/trunk/debian/changelog2013-02-05 14:59:09 UTC (rev 
5481)
@@ -12,6 +12,10 @@
   * debian/testsuite-checking/compare.sh: Disable failing the build on test
 regressions to ease the pain of ongoing stable/security maintenance.
 
+  [ Petr Salinger ]
+  * patches/kfreebsd/local-initgroups-order.diff: always put supplied extra
+gid as the first entry of group list in setgroups(). Closes: #699593.
+
  -- Adam Conrad adcon...@0c3.net  Sun, 30 Dec 2012 10:22:43 -0700
 
 eglibc (2.13-38) unstable; urgency=low

Added: glibc-package/trunk/debian/patches/kfreebsd/local-initgroups-order.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-initgroups-order.diff 
(rev 0)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-initgroups-order.diff 
2013-02-05 14:59:09 UTC (rev 5481)
@@ -0,0 +1,38 @@
+
+ setgroups(size, groups) changes egid on kfreebsd, 
+ precisely groups[0] is the new egid
+
+ initgroups(user, gid) prepares the groups list
+ via internal_getgrouplist(). 
+ It puts supplied gid as the first entry in all but NSCD cases.
+ Fix the remaining NSCD case, see #698102, #699593.
+
+
+--- a/nscd/nscd_initgroups.c
 b/nscd/nscd_initgroups.c
+@@ -145,15 +145,23 @@
+ }
+ 
+   /* Check whether GROUP is part of the mix.  If not, add it.  */
++  /* The GROUP have to be in the first entry */
+   if (retval = 0)
+ {
+   int cnt;
++  gid_t sg, tg;
++  sg = group;
+   for (cnt = 0; cnt  retval; ++cnt)
+-  if ((*groupsp)[cnt] == group)
++  {
++tg = (*groupsp)[cnt];
++(*groupsp)[cnt] = sg;
++if (tg == group)
+ break;
++sg = tg;
++  }  
+ 
+   if (cnt == retval)
+-  (*groupsp)[retval++] = group;
++  (*groupsp)[retval++] = sg;
+ }
+ 
+  out_close:

Modified: glibc-package/trunk/debian/patches/series.kfreebsd-amd64
===
--- glibc-package/trunk/debian/patches/series.kfreebsd-amd642013-02-04 
13:10:53 UTC (rev 5480)
+++ glibc-package/trunk/debian/patches/series.kfreebsd-amd642013-02-05 
14:59:09 UTC (rev 5481)
@@ -10,3 +10,4 @@
 kfreebsd/local-sysdeps.diff
 kfreebsd/local-undef-glibc.diff
 kfreebsd/local-use-thr-primitives.diff
+kfreebsd/local-initgroups-order.diff

Modified: glibc-package/trunk/debian/patches/series.kfreebsd-i386
===
--- glibc-package/trunk/debian/patches/series.kfreebsd-i386 2013-02-04 
13:10:53 UTC (rev 5480)
+++ glibc-package/trunk/debian/patches/series.kfreebsd-i386 2013-02-05 
14:59:09 UTC (rev 5481)
@@ -10,3 +10,4 @@
 kfreebsd/local-sysdeps.diff
 kfreebsd/local-undef-glibc.diff
 kfreebsd/local-use-thr-primitives.diff
+kfreebsd/local-initgroups-order.diff


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1u2jzk-00042o...@vasks.debian.org



Bug#699593: login: wrong egid

2013-02-04 Thread Petr Salinger

Maybe this is related to the problem (a wild guess really - the first
thing that jumped out at me as being wrong).  There are checks for
__FreeBSD__ relating to euid/egid, and they may also need to check for
__FreeBSD_kernel__


It is not needed, we have wrapper in our glibc sysdeps:

/*
   The FreeBSD kernel do not test file access correctly when the
   process' real user ID is superuser. In particular, they always return
   zero when testing execute permissions without regard to whether the
   file is executable.

   While this behaviour conforms to POSIX.1-2008, it is explicitely
   discouraged. This wrapper implements the recommended behaviour.
 */

These check fo __FreeBSD__  are unrelated to the original problem.

Petr


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.lrh.2.02.1302040929350.15...@sci.felk.cvut.cz



Bug#698102: initgroups changes egid on kfreebsd

2013-02-04 Thread Petr Salinger

Hi Michael,

please would you mind to try patch bellow ?

The function internal_getgrouplist() in grp/initgroups.c 
puts supplied group as the first entry in all but NSCD cases.


Please could you test whether it fixes the problem in your 
environment.


--- nscd/nscd_initgroups.c
+++ nscd/nscd_initgroups.c
@@ -144,15 +144,23 @@
 }

   /* Check whether GROUP is part of the mix.  If not, add it.  */
+  /* The GROUP have to be in the first entry */
   if (retval = 0)
 {
   int cnt;
+  gid_t sg, tg;
+  sg = group;
   for (cnt = 0; cnt  retval; ++cnt)
-   if ((*groupsp)[cnt] == group)
- break;
+  {
+tg = (*groupsp)[cnt];
+(*groupsp)[cnt] = sg;
+if (tg == group)
+  break;
+sg = tg;
+  }

   if (cnt == retval)
-   (*groupsp)[retval++] = group;
+   (*groupsp)[retval++] = sg;
 }

  out_close:


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.lrh.2.02.1302041035540.15...@sci.felk.cvut.cz



Bug#698102: eglibc: initgroups changes egid on kfreebsd

2013-01-28 Thread Petr Salinger

Unfortuantely, POSIX declined to specify setgroups() and initgroups() is
not in any standard, so it's hard to say which behavior is right and
which is wrong.  It seems possible to argue any of the following:

1. The bug is in kFreeBSD's implementation of setgroups(), which must
   be fixed so that eglibc's initgroups() implementation works as
   expected.

2. The bug is in eglibc's implementation of initgroups(), which must be
   fixed so that it works properly with kFreeBSD's setgroups().

3. Since both behaviors of setgroups() and initgroups() are seen in
   the wild, programs that depend on the linux kernel behavior are
   broken and should be fixed as they become known.

Personally I'm leaning towards 3 here, since these are buggy not only on
debian/kFreeBSD but on real FreeBSD as well.


Even POSIX point out that egid might be somewhere in supplementary groups
http://pubs.opengroup.org/onlinepubs/9699919799/functions/getgroups.html

  The getgroups() function shall fill in the array grouplist with the
  current supplementary group IDs of the calling process. It is
  implementation-defined whether getgroups() also returns the effective
  group ID in the grouplist array.

Under FreeBSD kernel, the egid is groups[0], see
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/kern_prot.c

IMO, there is no bug, the behaviour is implementation-defined.

Petr


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.lrh.2.02.1301281117220.24...@sci.felk.cvut.cz



r5302 - in glibc-package/trunk/debian: . patches/kfreebsd

2012-07-12 Thread Petr Salinger
Author: ps-guest
Date: 2012-07-12 18:03:30 + (Thu, 12 Jul 2012)
New Revision: 5302

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-use-thr-primitives.diff
Log:
fixup kfreebsd/local-use-thr-primitives.diff. Closes: #681113.



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2012-07-04 22:08:02 UTC (rev 
5301)
+++ glibc-package/trunk/debian/changelog2012-07-12 18:03:30 UTC (rev 
5302)
@@ -4,6 +4,9 @@
   * patches/arm/unsubmitted-ldconfig-cache-abi.diff: disable, as it will 
 conflict with upstream x32 support.
 
+  [ Petr Salinger ]
+  * fixup kfreebsd/local-use-thr-primitives.diff. Closes: #681113.
+
  -- Aurelien Jarno aure...@debian.org  Wed, 04 Jul 2012 23:26:09 +0200
 
 eglibc (2.13-34) unstable; urgency=low

Modified: 
glibc-package/trunk/debian/patches/kfreebsd/local-use-thr-primitives.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-use-thr-primitives.diff   
2012-07-04 22:08:02 UTC (rev 5301)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-use-thr-primitives.diff   
2012-07-12 18:03:30 UTC (rev 5302)
@@ -616,7 +616,7 @@
  #endif
/* Since all threads have been asynchronously terminated
 (possibly holding locks), free cannot be used any more.
-@@ -1128,9 +1135,11 @@
+@@ -1128,11 +1135,19 @@
 children, so that timings for main thread account for all threads. */
  if (self == __pthread_main_thread) {
  #ifdef USE_TLS
@@ -629,8 +629,16 @@
 +#error TLS required
  #endif
  }
++else
++{
++   __thr_kill(__manager_thread-p_ktid, __pthread_sig_cancel);
++   __thr_exit((self-p_ktid));
++   /* should not return */
++}
  _exit(__pthread_exit_code);
-@@ -1170,6 +1179,7 @@
+   }
+   if (__builtin_expect (THREAD_GETMEM(self, p_canceled), 0)
+@@ -1170,6 +1185,7 @@
  
  void __pthread_reset_main_thread(void)
  {
@@ -638,7 +646,7 @@
pthread_descr self = thread_self();
  
if (__pthread_manager_request != -1) {
-@@ -1183,7 +1193,8 @@
+@@ -1183,7 +1199,8 @@
}
  
/* Update the pid of the main thread */
@@ -648,7 +656,7 @@
/* Make the forked thread the main thread */
__pthread_main_thread = self;
THREAD_SETMEM(self, p_nextlive, self);
-@@ -1289,7 +1300,7 @@
+@@ -1289,7 +1306,7 @@
  void __pthread_restart_old(pthread_descr th)
  {
if (pthread_atomic_increment(th-p_resume_count) == -1)
@@ -657,7 +665,7 @@
  }
  
  void __pthread_suspend_old(pthread_descr self)
-@@ -1383,7 +1394,7 @@
+@@ -1384,7 +1401,7 @@
   memory so the woken thread will have a consistent view.  Complementary
   read barriers are present to the suspend functions. */
WRITE_MEMORY_BARRIER();


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1spnjg-0004at...@vasks.debian.org



Bug#628493: perl: FTBFS on kfreebsd-i386: t/op/threads failed

2012-06-10 Thread Petr Salinger

Hi!

I just bisected on past eglibc versions and this is reproducible for me
(segfault 5% of the time) on kfreebsd-i386, up until this version, with
which I can't reproduce the problem any more (10,000+ test runs) :


 eglibc  (2.13-22) unstable; urgency=low
 -- Aurelien Jarno aure...@debian.org  Sat, 10 Dec 2011 21:49:03 +0100


The changelog for that version was quite long, but probably these
changes are what fixed this:


   [ Petr Salinger ]
   * kfreebsd/local-sysdeps.diff: update to revision 3763 (from glibc-bsd).
   * add kfreebsd/local-use-thr-primitives.diff to use kernel thr*
 primitives inside linuxthreads. Closes: #639658.


Therefore I'm marking this as fixed in that eglibc upload and I'll try
to let upstream know.  Thanks!



IMO, my suggested change (Perl_atfork_reinit) in Message #54 [1]
still should be aplied by perl upstream. While it might not be problem 
for this testcase, the unlocking in forked child is fragile.


Petr

[1] http://bugs.debian.org//cgi-bin/bugreport.cgi?bug=628493#54



--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.lrh.2.02.1206110657060.10...@sci.felk.cvut.cz



r5196 - glibc-package/trunk/debian

2012-04-21 Thread Petr Salinger
Author: ps-guest
Date: 2012-04-21 15:08:01 + (Sat, 21 Apr 2012)
New Revision: 5196

Modified:
   glibc-package/trunk/debian/changelog
Log:
also add buglist from Robert Millan


Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2012-04-21 14:36:11 UTC (rev 
5195)
+++ glibc-package/trunk/debian/changelog2012-04-21 15:08:01 UTC (rev 
5196)
@@ -3,6 +3,7 @@
   [ Petr Salinger ]
   * alter kfreebsd/local-use-thr-primitives.diff. See: #654783.
   * kfreebsd/local-sysdeps.diff: update to revision 4221 (from glibc-bsd).
+Closes: #642112, #662018, #669424.
 
  -- Adam Conrad adcon...@0c3.net  Thu, 19 Apr 2012 17:12:08 -0600
 


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1slbur-0008fe...@vasks.debian.org



r5197 - in glibc-package/trunk/debian: . patches/kfreebsd

2012-04-21 Thread Petr Salinger
Author: ps-guest
Date: 2012-04-21 15:31:08 + (Sat, 21 Apr 2012)
New Revision: 5197

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
Log:
kfreebsd/local-sysdeps.diff: update to revision 4222 (from glibc-bsd).



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2012-04-21 15:08:01 UTC (rev 
5196)
+++ glibc-package/trunk/debian/changelog2012-04-21 15:31:08 UTC (rev 
5197)
@@ -2,7 +2,7 @@
 
   [ Petr Salinger ]
   * alter kfreebsd/local-use-thr-primitives.diff. See: #654783.
-  * kfreebsd/local-sysdeps.diff: update to revision 4221 (from glibc-bsd).
+  * kfreebsd/local-sysdeps.diff: update to revision 4222 (from glibc-bsd).
 Closes: #642112, #662018, #669424.
 
  -- Adam Conrad adcon...@0c3.net  Thu, 19 Apr 2012 17:12:08 -0600

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2012-04-21 15:08:01 UTC (rev 5196)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2012-04-21 15:31:08 UTC (rev 5197)
@@ -978,7 +978,7 @@
 +
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/bits/fcntl.h
-@@ -0,0 +1,185 @@
+@@ -0,0 +1,186 @@
 +/* O_*, F_*, FD_* bit values for FreeBSD.
 +   Copyright (C) 1991-1992, 1997, 2002 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
@@ -1048,7 +1048,8 @@
 +
 +#if _POSIX_C_SOURCE = 200809L
 +#define O_TTY_INIT0x0008  /* Restore default termios attributes */
-+#define O_CLOEXEC 0x0010
++/* Defining O_CLOEXEC would break kfreebsd 8.1, see #635192 */
++/* #define O_CLOEXEC  0x0010 */
 +#endif
 +
 +/* Since 'off_t' is 64-bit, O_LARGEFILE is a no-op.  */


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1slchf-0002b4...@vasks.debian.org



r5194 - in glibc-package/trunk/debian: . patches/kfreebsd

2012-04-20 Thread Petr Salinger
Author: ps-guest
Date: 2012-04-20 06:10:38 + (Fri, 20 Apr 2012)
New Revision: 5194

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-use-thr-primitives.diff
Log:
alter kfreebsd/local-use-thr-primitives.diff. See: #654783.



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2012-04-19 23:12:53 UTC (rev 
5193)
+++ glibc-package/trunk/debian/changelog2012-04-20 06:10:38 UTC (rev 
5194)
@@ -1,6 +1,7 @@
 eglibc (2.13-31) UNRELEASED; urgency=low
 
-  * 
+  [ Petr Salinger ]
+  * alter kfreebsd/local-use-thr-primitives.diff. See: #654783.
 
  -- Adam Conrad adcon...@0c3.net  Thu, 19 Apr 2012 17:12:08 -0600
 

Modified: 
glibc-package/trunk/debian/patches/kfreebsd/local-use-thr-primitives.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-use-thr-primitives.diff   
2012-04-19 23:12:53 UTC (rev 5193)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-use-thr-primitives.diff   
2012-04-20 06:10:38 UTC (rev 5194)
@@ -142,7 +142,7 @@
 +#endif
  /* Check for dead children */
 -if (terminated_children) {
-+if (terminated_children || main_thread_exiting) {
++if (1 || terminated_children || main_thread_exiting) {
terminated_children = 0;
pthread_reap_children();
  }


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1sl73g-0004jl...@vasks.debian.org



Bug#654783: race condition in libpthread causes hangs in python2.7 testsuite

2012-04-20 Thread Petr Salinger

That's really nice.  Petr, could you give some explanation on that
one-line patch you provided?  Is it supposed to be the correct fix or
is more work necessary?  I'm not familiar with the whole picture but
if you give some pointers I may be able to help.


In the original (plain linuxthreads) code, with thread implemented as 
freebsd process, the wakeup signal is sent to thread manager from kernel, 
after exit of thread.


In current variant, with thread implemented as freebsd kernel thread,
the wakeup signal is sent to thread manager from userspace, a few moments 
before exit. It is an expected race condition. It is also the reason, 
why || main_thread_exiting have been added. I expected, that loss of a
wakeup does not matter, the child thread will be eaten only slightly 
later, when another thread exits and sends wake up. The only problem 
should be, when there is no another thread, it should be solved by

|| main_thread_exiting. But it does not suffice.

The try eat dead child everytime is just workaround.
The better way might be to add atomic counter
[using gcc's __sync_fetch_and_add()] to track 
the number of expected dead or soon to be dead child

and try to eat dead child when the number is above zero.

And (of course) in long term, do not use manager thread anymore.

Petr



--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.lrh.2.02.1204200833090.20...@sci.felk.cvut.cz



Bug#657810: sys/syscall.h and sys/errno.h

2012-01-29 Thread Petr Salinger

kfreebsd-kernel-headers 0.70 includes properly patched versions of
sys/syscall.h and sys/errno.h which could be used to compile glibc.

Please consider using those instead of the in-tree copies. A patch for
bits/errno.h is attached. sys/syscall.h can be used directly.


No, the  bits/errno.h have to be part of eglibc,
you can silently break ABI, by changing errno.h.
In fact, due to changes of ELAST it just happened, see
glibc-ports/kfreebsd/Versions and lines
  # The comment lines with #errlist-compat are magic; see errlist-compat.awk.
  # When you get an error from errlist-compat.awk, you need to add a new
#errlist-compat 87
#errlist-compat 93
#errlist-compat 94

The sys/syscall.h problem is similar,  FreeBSD upstream sometimes 
changes ABI of a syscall, it usually gives the new number for same syscall 
name. The eglibc have to know which one is used, i.e. the exact interface.

See i.e. mmap.c. Again, silent upgrade of sys/syscall.h might be disaster.

Petr



--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.lrh.2.02.1201291328570.25...@sci.felk.cvut.cz



r5132 - glibc-package/trunk/debian

2012-01-28 Thread Petr Salinger
Author: ps-guest
Date: 2012-01-28 16:35:59 + (Sat, 28 Jan 2012)
New Revision: 5132

Modified:
   glibc-package/trunk/debian/changelog
Log:
bug report arrived in mean time, add Close 657687


Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2012-01-24 09:09:37 UTC (rev 
5131)
+++ glibc-package/trunk/debian/changelog2012-01-28 16:35:59 UTC (rev 
5132)
@@ -21,7 +21,7 @@
   [ Petr Salinger ]
   * kfreebsd/local-sysdeps.diff: update to revision 4002 (from glibc-bsd).
 Closes: #630203.
-  * fixup kfreebsd/local-use-thr-primitives.diff
+  * fixup kfreebsd/local-use-thr-primitives.diff. Closes #657687.
 
  -- Samuel Thibault sthiba...@debian.org  Tue, 27 Dec 2011 02:02:41 +0100
 


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1rrbfv-0007sa...@vasks.debian.org



r5133 - glibc-package/trunk/debian

2012-01-28 Thread Petr Salinger
Author: ps-guest
Date: 2012-01-28 20:34:37 + (Sat, 28 Jan 2012)
New Revision: 5133

Modified:
   glibc-package/trunk/debian/changelog
Log:
Closes: #657687.


Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2012-01-28 16:35:59 UTC (rev 
5132)
+++ glibc-package/trunk/debian/changelog2012-01-28 20:34:37 UTC (rev 
5133)
@@ -21,7 +21,7 @@
   [ Petr Salinger ]
   * kfreebsd/local-sysdeps.diff: update to revision 4002 (from glibc-bsd).
 Closes: #630203.
-  * fixup kfreebsd/local-use-thr-primitives.diff. Closes #657687.
+  * fixup kfreebsd/local-use-thr-primitives.diff. Closes: #657687.
 
  -- Samuel Thibault sthiba...@debian.org  Tue, 27 Dec 2011 02:02:41 +0100
 


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1rreys-0006gs...@vasks.debian.org



r5130 - in glibc-package/trunk/debian: . patches/kfreebsd

2012-01-24 Thread Petr Salinger
Author: ps-guest
Date: 2012-01-24 08:01:42 + (Tue, 24 Jan 2012)
New Revision: 5130

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-use-thr-primitives.diff
Log:
fixup kfreebsd/local-use-thr-primitives.diff



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2012-01-23 23:27:10 UTC (rev 
5129)
+++ glibc-package/trunk/debian/changelog2012-01-24 08:01:42 UTC (rev 
5130)
@@ -18,6 +18,9 @@
   * patches/hurd-i386/submitted-hurd-socket-EAFNOSUPPORT.diff: New patch to
 fix error value.
 
+  [ Petr Salinger ]
+  * fixup kfreebsd/local-use-thr-primitives.diff
+
  -- Samuel Thibault sthiba...@debian.org  Tue, 27 Dec 2011 02:02:41 +0100
 
 eglibc (2.13-24) unstable; urgency=low

Modified: 
glibc-package/trunk/debian/patches/kfreebsd/local-use-thr-primitives.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-use-thr-primitives.diff   
2012-01-23 23:27:10 UTC (rev 5129)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-use-thr-primitives.diff   
2012-01-24 08:01:42 UTC (rev 5130)
@@ -99,7 +99,24 @@
char end_padding[];
 --- a/linuxthreads/join.c
 +++ b/linuxthreads/join.c
-@@ -89,6 +89,9 @@
+@@ -76,12 +76,15 @@
+   /* If this is the initial thread, block until all threads have terminated.
+  If another thread calls exit, we'll be terminated from our signal
+  handler. */
+-  if (self == __pthread_main_thread  __pthread_manager_request = 0) {
++  if (self == __pthread_main_thread)
++  {
++   if (__pthread_manager_request = 0) {
+ request.req_thread = self;
+ request.req_kind = REQ_MAIN_THREAD_EXIT;
+ TEMP_FAILURE_RETRY(write_not_cancel(__pthread_manager_request,
+   (char *)request, sizeof(request)));
+ suspend(self);
++   }
+ /* Main thread flushes stdio streams and runs atexit functions.
+It also calls a handler within LinuxThreads which sends a process exit
+request to the thread manager. */
+@@ -89,6 +92,9 @@
}
/* Threads other than the main one  terminate without flushing stdio streams
   or running atexit functions. */


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1rpbk2-0001kg...@vasks.debian.org



r5131 - in glibc-package/trunk/debian: . patches/kfreebsd

2012-01-24 Thread Petr Salinger
Author: ps-guest
Date: 2012-01-24 09:09:37 + (Tue, 24 Jan 2012)
New Revision: 5131

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
Log:
kfreebsd/local-sysdeps.diff: update to revision 4002 (from glibc-bsd).
Closes: #630203.



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2012-01-24 08:01:42 UTC (rev 
5130)
+++ glibc-package/trunk/debian/changelog2012-01-24 09:09:37 UTC (rev 
5131)
@@ -19,6 +19,8 @@
 fix error value.
 
   [ Petr Salinger ]
+  * kfreebsd/local-sysdeps.diff: update to revision 4002 (from glibc-bsd).
+Closes: #630203.
   * fixup kfreebsd/local-use-thr-primitives.diff
 
  -- Samuel Thibault sthiba...@debian.org  Tue, 27 Dec 2011 02:02:41 +0100

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2012-01-24 08:01:42 UTC (rev 5130)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2012-01-24 09:09:37 UTC (rev 5131)
@@ -4394,9 +4394,9 @@
 +#endif/* need timeval */
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/bits/typesizes.h
-@@ -0,0 +1,82 @@
+@@ -0,0 +1,90 @@
 +/* bits/typesizes.h -- underlying types for *_t.  kFreeBSD version.
-+   Copyright (C) 2002, 2003, 2010 Free Software Foundation, Inc.
++   Copyright (C) 2002, 2003, 2010, 2012 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
@@ -4443,7 +4443,15 @@
 +#define   __FSFILCNT_T_TYPE   __ULONGWORD_TYPE
 +#define   __FSFILCNT64_T_TYPE __UQUAD_TYPE
 +#define   __ID_T_TYPE __U32_TYPE
++
++#if defined(__arm__) || defined(__powerpc__)
++#define __CLOCK_T_TYPE__U32_TYPE
++#elif defined(__i386__)
++/* clock_t is unsigned in FreeBSD/i386, but it's too late to fix that now... 
*/
 +#define __CLOCK_T_TYPE__S32_TYPE
++#else
++#define __CLOCK_T_TYPE__S32_TYPE
++#endif
 +
 +/*
 + * This one is a bit tricky.  It needs to match the size
@@ -20768,7 +20776,7 @@
 +#endif/* sys/kd.h */
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/sys/mount.h
-@@ -0,0 +1,437 @@
+@@ -0,0 +1,454 @@
 +/* Header file for handling mounted filesystems.  FreeBSD version.
 +   Copyright (C) 2002 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
@@ -20963,8 +20971,23 @@
 +typedef struct fhandlefhandle_t;
 +
 +/*
++ * Old export arguments without security flavor list
++ */
++struct oexport_args {
++  int ex_flags;   /* export related flags */
++  uid_t   ex_root;/* mapping for root uid */
++  struct  xucred ex_anon; /* mapping for anonymous user */
++  struct  sockaddr *ex_addr;  /* net address to which exported */
++  __u_char ex_addrlen;/* and the net address length */
++  struct  sockaddr *ex_mask;  /* mask of valid bits in saddr */
++  __u_char ex_masklen;/* and the smask length */
++  char*ex_indexfile;  /* index file for WebNFS URLs */
++};
++
++/*
 + * Export arguments for local filesystem mount calls.
 + */
++#define   MAXSECFLAVORS   5
 +struct export_args {
 +  int ex_flags;   /* export related flags */
 +  uid_t   ex_root;/* mapping for root uid */
@@ -20974,6 +20997,8 @@
 +  struct  sockaddr *ex_mask;  /* mask of valid bits in saddr 
*/
 +  __u_charex_masklen; /* and the smask length */
 +  char*ex_indexfile;  /* index file for WebNFS URLs */
++  int ex_numsecflavors;   /* security flavor count */
++  int ex_secflavors[MAXSECFLAVORS]; /* list of security 
flavors */
 +};
 +
 +/*
@@ -21208,7 +21233,7 @@
 +#endif /* _SYS_MOUNT_H */
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/sys/param.h
-@@ -0,0 +1,238 @@
+@@ -0,0 +1,239 @@
 +/* Copyright (C) 1995,1996,1997,2000,2001,2003 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +
@@ -21305,6 +21330,7 @@
 +#else
 +# define roundup(x, y)x) + ((y) - 1)) / (y)) * (y))
 +#endif
++#define   roundup2(x, y)  (((x)+((y)-1))(~((y)-1))) /* if y is powers of 
two */
 +#define powerof2(x)   x) - 1)  (x)) == 0)
 +
 +/* Macros for min/max.  */


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1rpcnm-0005vd...@vasks.debian.org



r5041 - in glibc-package/trunk/debian: . debhelper.in patches patches/kfreebsd sysdeps

2011-11-26 Thread Petr Salinger
Author: ps-guest
Date: 2011-11-26 10:20:34 + (Sat, 26 Nov 2011)
New Revision: 5041

Added:
   glibc-package/trunk/debian/patches/kfreebsd/local-use-thr-primitives.diff
Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/debhelper.in/libc.preinst
   glibc-package/trunk/debian/patches/series.kfreebsd-amd64
   glibc-package/trunk/debian/patches/series.kfreebsd-i386
   glibc-package/trunk/debian/sysdeps/kfreebsd.mk
Log:
* add kfreebsd/local-use-thr-primitives.diff to use kernel thr*  primitives 
inside linuxthreads.
* bump minimal FreeBSD kernel version to 8.1.



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2011-11-21 21:41:07 UTC (rev 
5040)
+++ glibc-package/trunk/debian/changelog2011-11-26 10:20:34 UTC (rev 
5041)
@@ -51,6 +51,10 @@
 
   [ Petr Salinger ]
   * kfreebsd/local-sysdeps.diff: update to revision 3763 (from glibc-bsd).
+  * add kfreebsd/local-use-thr-primitives.diff to use kernel thr*
+primitives inside linuxthreads. Closes: #639658.
+  * debian/sysdeps/sysdeps/kfreebsd.mk, debhelper.in/libc.preinst:
+bump minimal FreeBSD kernel version to 8.1.
 
   [ Steve Langasek ]
   * Add a new debconf template, libraries/restart-without-asking, shared

Modified: glibc-package/trunk/debian/debhelper.in/libc.preinst
===
--- glibc-package/trunk/debian/debhelper.in/libc.preinst2011-11-21 
21:41:07 UTC (rev 5040)
+++ glibc-package/trunk/debian/debhelper.in/libc.preinst2011-11-26 
10:20:34 UTC (rev 5041)
@@ -396,10 +396,10 @@
 fi
 elif [ $system = GNU/kFreeBSD ] ; then
 kernel_ver=`uname -r`
-if kfreebsd_compare_versions $kernel_ver lt 8.0
+if kfreebsd_compare_versions $kernel_ver lt 8.1
 then
 echo WARNING: this version of the GNU libc requires kernel version
-echo 8.0 or later.  Please upgrade your kernel before installing
+echo 8.1 or later.  Please upgrade your kernel before installing
 echo glibc.
 exit 1
 fi

Added: glibc-package/trunk/debian/patches/kfreebsd/local-use-thr-primitives.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-use-thr-primitives.diff   
(rev 0)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-use-thr-primitives.diff   
2011-11-26 10:20:34 UTC (rev 5041)
@@ -0,0 +1,673 @@
+--- a/linuxthreads/attr.c
 b/linuxthreads/attr.c
+@@ -365,11 +365,11 @@
+? PTHREAD_CREATE_DETACHED
+: PTHREAD_CREATE_JOINABLE);
+ 
+-  attr-__schedpolicy = __sched_getscheduler (descr-p_pid);
++  attr-__schedpolicy = __sched_getscheduler (getpid());
+   if (attr-__schedpolicy == -1)
+ return errno;
+ 
+-  if (__sched_getparam (descr-p_pid,
++  if (__sched_getparam (getpid(),
+   (struct sched_param *) attr-__schedparam) != 0)
+ return errno;
+ 
+--- a/linuxthreads/cancel.c
 b/linuxthreads/cancel.c
+@@ -89,7 +89,7 @@
+ int pthread_cancel(pthread_t thread)
+ {
+   pthread_handle handle = thread_handle(thread);
+-  int pid;
++  long ktid;
+   int dorestart = 0;
+   pthread_descr th;
+   pthread_extricate_if *pextricate;
+@@ -112,7 +112,7 @@
+   }
+ 
+   pextricate = th-p_extricate;
+-  pid = th-p_pid;
++  ktid = th-p_ktid;
+ 
+   /* If the thread has registered an extrication interface, then
+  invoke the interface. If it returns 1, then we succeeded in
+@@ -139,7 +139,7 @@
+   if (dorestart)
+ restart(th);
+   else
+-kill(pid, __pthread_sig_cancel);
++__thr_kill(ktid, __pthread_sig_cancel);
+ 
+   return 0;
+ }
+--- a/linuxthreads/descr.h
 b/linuxthreads/descr.h
+@@ -26,6 +26,42 @@
+ #include lowlevellock.h
+ #include tls.h
+ 
++
++extern long int syscall (long int __sysno, ...);
++#include sys/syscall.h
++// should be in sys/thr.h 
++struct rtprio;
++struct thr_param {
++void(*start_func)(void *);  /* thread entry function. */
++void*arg;   /* argument for entry function. */
++char*stack_base;/* stack base address. */
++size_t  stack_size; /* stack size. */
++char*tls_base;  /* tls base address. */
++size_t  tls_size;   /* tls size. */
++long*child_tid; /* address to store new TID. */
++long*parent_tid;/* parent accesses the new TID here. 
*/
++int flags;  /* thread flags. */
++struct rtprio   *rtp;   /* Real-time scheduling priority */
++void*spare[3];  /* TODO: cpu affinity mask etc. */
++};
++
++#define KTID_TERMINATED  1
++static inline int __thr_self(long *ktid)
++{ return syscall(SYS_thr_self, ktid

r5003 - in glibc-package/branches/glibc-branch-squeeze/debian: . patches/kfreebsd

2011-10-22 Thread Petr Salinger
Author: ps-guest
Date: 2011-10-22 19:32:31 + (Sat, 22 Oct 2011)
New Revision: 5003

Modified:
   glibc-package/branches/glibc-branch-squeeze/debian/changelog
   
glibc-package/branches/glibc-branch-squeeze/debian/patches/kfreebsd/local-sysdeps.diff
Log:
kfreebsd/local-sysdeps.diff, update to r3763 (from squeeze glibc-bsd).



Modified: glibc-package/branches/glibc-branch-squeeze/debian/changelog
===
--- glibc-package/branches/glibc-branch-squeeze/debian/changelog
2011-10-19 07:02:07 UTC (rev 5002)
+++ glibc-package/branches/glibc-branch-squeeze/debian/changelog
2011-10-22 19:32:31 UTC (rev 5003)
@@ -27,7 +27,7 @@
 - patches/amd64/cvs-avx-tcb-alignment.diff
 - patches/any/submitted-etc-resolv.conf.diff
 - patches/any/cvs-audit-suid.diff
-  * kfreebsd/local-sysdeps.diff, update to r3743 (from squeeze glibc-bsd).
+  * kfreebsd/local-sysdeps.diff, update to r3763 (from squeeze glibc-bsd).
 - fixes LD_PRELOAD with a kfreebsd-9 kernel. Closes: #630695.
 - uses upstream RFTSIGZMB for exit signal selection when available.
 - fixes a crash in if_nameindex() with more than 3 interfaces.

Modified: 
glibc-package/branches/glibc-branch-squeeze/debian/patches/kfreebsd/local-sysdeps.diff
===
--- 
glibc-package/branches/glibc-branch-squeeze/debian/patches/kfreebsd/local-sysdeps.diff
  2011-10-19 07:02:07 UTC (rev 5002)
+++ 
glibc-package/branches/glibc-branch-squeeze/debian/patches/kfreebsd/local-sysdeps.diff
  2011-10-22 19:32:31 UTC (rev 5003)
@@ -8803,7 +8803,7 @@
 +[AT_GID - 2] ={ GID:  , dec },
 +[AT_EGID - 2] =   { EGID: , dec },
 +#endif
-+[AT_EXECPATH - 2] =   { EXECPATH  , str },
++[AT_EXECPATH - 2] =   { EXECPATH: , str },
 +[AT_CANARY - 2] = { CANARY:   0x, hex },
 +[AT_CANARYLEN - 2] =  { CANARYLEN:, dec },
 +[AT_OSRELDATE - 2] =  { OSRELDATE:, dec },


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1rhhj1-0008qw...@vasks.debian.org



r5004 - in glibc-package/trunk/debian: . patches/kfreebsd

2011-10-22 Thread Petr Salinger
Author: ps-guest
Date: 2011-10-22 19:34:09 + (Sat, 22 Oct 2011)
New Revision: 5004

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
Log:
kfreebsd/local-sysdeps.diff: update to revision 3763 (from glibc-bsd).



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2011-10-22 19:32:31 UTC (rev 
5003)
+++ glibc-package/trunk/debian/changelog2011-10-22 19:34:09 UTC (rev 
5004)
@@ -10,7 +10,7 @@
 setres[ug]id.  Closes: #645285.
 
   [ Petr Salinger ]
-  * kfreebsd/local-sysdeps.diff: update to revision 3742 (from glibc-bsd).
+  * kfreebsd/local-sysdeps.diff: update to revision 3763 (from glibc-bsd).
 
  -- Samuel Thibault sthiba...@debian.org  Mon, 17 Oct 2011 01:23:52 +0200
 

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2011-10-22 19:32:31 UTC (rev 5003)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2011-10-22 19:34:09 UTC (rev 5004)
@@ -6392,7 +6392,7 @@
 +[AT_GID - 2] ={ GID:  , dec },
 +[AT_EGID - 2] =   { EGID: , dec },
 +#endif
-+[AT_EXECPATH - 2] =   { EXECPATH  , str },
++[AT_EXECPATH - 2] =   { EXECPATH: , str },
 +[AT_CANARY - 2] = { CANARY:   0x, hex },
 +[AT_CANARYLEN - 2] =  { CANARYLEN:, dec },
 +[AT_OSRELDATE - 2] =  { OSRELDATE:, dec },


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1rhhkc-ck...@vasks.debian.org



r4997 - in glibc-package/trunk/debian: . patches/kfreebsd

2011-10-18 Thread Petr Salinger
Author: ps-guest
Date: 2011-10-18 06:56:51 + (Tue, 18 Oct 2011)
New Revision: 4997

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
Log:
kfreebsd/local-sysdeps.diff: update to revision 3742 (from glibc-bsd).



Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2011-10-17 20:03:52 UTC (rev 
4996)
+++ glibc-package/trunk/debian/changelog2011-10-18 06:56:51 UTC (rev 
4997)
@@ -10,7 +10,7 @@
 setres[ug]id.
 
   [ Petr Salinger ]
-  * kfreebsd/local-sysdeps.diff: update to revision 3740 (from glibc-bsd).
+  * kfreebsd/local-sysdeps.diff: update to revision 3742 (from glibc-bsd).
 
  -- Samuel Thibault sthiba...@debian.org  Mon, 17 Oct 2011 01:23:52 +0200
 

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
===
--- glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2011-10-17 20:03:52 UTC (rev 4996)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff  
2011-10-18 06:56:51 UTC (rev 4997)
@@ -19295,7 +19295,7 @@
 +case AF_IPX:
 +  return sizeof (struct sockaddr_ipx);
 +case AF_LOCAL:
-+  return sizeof (struct sockaddr_un) - sizeof(((struct sockaddr_un *) 
0)-__sun_user_compat);
++  return __SOCKADDR_COMMON_SIZE + sizeof(((struct sockaddr_un *) 
0)-sun_path);
 +}
 +  return 0;
 +}
@@ -22622,7 +22622,7 @@
 +#endif /* sys/ucontext.h */
 --- /dev/null
 +++ b/ports/sysdeps/unix/bsd/bsd4.4/kfreebsd/sys/un.h
-@@ -0,0 +1,48 @@
+@@ -0,0 +1,50 @@
 +/* Copyright (C) 1991, 1995, 1996, 2001 Free Software Foundation, Inc.
 +   This file is part of the GNU C Library.
 +
@@ -22656,7 +22656,9 @@
 +  {
 +__SOCKADDR_COMMON (sun_);
 +char sun_path[104];   /* Path name, the kernel restrict it to 
104, */
++#if defined(__i386__) || defined(__amd64__)
 +char __sun_user_compat[4];  /* but former user header used 108 */
++#endif
 +  };
 +
 +


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1rg3bx-0004g2...@vasks.debian.org



  1   2   3   >