glibc.git
6 years agoAllow the kernel to start earlier than VM_MAX_ADDRESS
Samuel Thibault [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
Allow the kernel to start earlier than VM_MAX_ADDRESS

VM_MAX_ADDRESS shouldn't be hardcoded in libc, the kernel should be able to
decide about it dynamically. This fixes glibc into supporting that. It's however
a bit hackish.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name tg-bigmem.diff

6 years agoThe critical section lock _can_ be held in these place.
Samuel Thibault [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
The critical section lock _can_ be held in these place.

At least since hurd_thread_cancel can be called by another thread and lock our
critical lock.

http://bugs.debian.org/46859


Thomas suggested that there is no need to take the critical section
lock.  I believe that taking the critical section lock is necessary to
prevent the target thread from entering a signal handler.  Roland will
look into the problem.


Taking the critical section lock makes these assertions bogus.

It happens that hurd_thread_cancel is only called from libports and inside
/hurd/term so this is rare in practice.

A reproducer can be found here:

http://lists.gnu.org/archive/html/bug-hurd/2014-05/msg00025.html

2006-08-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>

       * hurd/thread-cancel.c (hurd_thread_cancel): Do not assert that
       `&ss->critical_section_lock' is unlocked.
       * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise, and take
       critical section lock before taking the sigstate lock.
       * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name tg-thread-cancel.diff

6 years agoImplement SysV shared memory for GNU/Hurd.
Marcus Brinkmann [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
Implement SysV shared memory for GNU/Hurd.

2005-07-11  Marcus Brinkmann  <marcus@gnu.org>

        * hurd/Makefile (routines): Add sysvshm.
        (distribute): Add sysvshm.h.
        * hurd/sysvshm.h: New file.
        * hurd/sysvshm.c: New file.
        * sysdeps/mach/hurd/bits/stat.h (S_IMMAP0): New macro.
        (S_ISPARE): Unset the S_IMMAP0 flag.
        * sysdeps/mach/hurd/ftok.c: New file.
        * sysdeps/mach/hurd/shmat.c: New file.
        * sysdeps/mach/hurd/shmctl.c: New file.
        * sysdeps/mach/hurd/shmdt.c: New file.
        * sysdeps/mach/hurd/bits/posix_opt.h: Define _XOPEN_SHM to 1.

TODO:

> +  char filename[sizeof (SHM_DIR) - 1 + SHM_NAMEMAX];
> +  struct stat statbuf;
> +
> +  sprintf (filename, SHM_DIR SHM_NAMEPRI, id);
> +  /* SysV requires read access for IPC_STAT.  */
> +  fd = __open (filename, O_NORW);
> +  if (fd < 0)
> +    {
> +      if (errno == ENOENT)
> +     errno = EINVAL;
> +      return -1;
> +    }

Since this is repeated in more than one function, put it into an
internal subroutine.  Then we have only one place doing the
name-generation logic.



> +    case IPC_RMID:
> +      res = __unlink (filename);
> +      /* FIXME: Check error (mapping ENOENT to EINVAL).  */

Fix it.


Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name tg-sysvshm.diff

6 years agogetcontext, makecontext, setcontext, swapcontext
Thomas Schwinge [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
getcontext, makecontext, setcontext, swapcontext

Adapted from the Linux x86 functions.

Not thoroughly tested, but manual testing as well as glibc tests look fine, and
manual -lpthread testing also looks fine (within the given bounds for a new
stack to be used with makecontext).

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name tg-context_functions.diff

6 years agolocal-enable-ldconfig
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
local-enable-ldconfig

# DP: Description: Enable ldconfig and such on hurd-i386
# DP: Author: Jeff Bailey <jbailey@nisa.net>
# DP: Related Bugs: #309489
# DP: Upstream status: Not submitted
# DP: Status Details: Upstream disagrees with this patch, but I'm
# DP: putting it in so that we have expected Debian behaviour on the
# DP: Hurd.  We should review this when the ELF standard supports runpath.
# DP: Date: 08 Apr 2003

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name local-enable-ldconfig.diff

6 years agolocal-inlining
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
local-inlining

Increase the maximal overall growth of the compilation unit caused
by inlining for dl-reloc.c on hppa. This remove some warnings and
strangely it reduces the size of the final binary.

Gbp-Pq: Topic hppa
Gbp-Pq: Name local-inlining.diff

6 years agolocal-arm-futex
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
local-arm-futex

Gbp-Pq: Topic arm
Gbp-Pq: Name local-arm-futex.diff

6 years agounsubmitted-ldso-multilib
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
unsubmitted-ldso-multilib

Gbp-Pq: Topic arm
Gbp-Pq: Name unsubmitted-ldso-multilib.diff

6 years agolocal-vfp-sysdeps
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
local-vfp-sysdeps

Gbp-Pq: Topic arm
Gbp-Pq: Name local-vfp-sysdeps.diff

6 years agolocal-soname-hack
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
local-soname-hack

For backward compatibility with armhf binaries built with the
old linker SONAME, we need to fake out the linker to believe
the new is the old, until such a point as everything is rebuilt

Gbp-Pq: Topic arm
Gbp-Pq: Name local-soname-hack.diff

6 years agounsubmitted-ldso-abi-check
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
unsubmitted-ldso-abi-check

Gbp-Pq: Topic arm
Gbp-Pq: Name unsubmitted-ldso-abi-check.diff

6 years agounsubmitted-ldconfig-cache-abi
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
unsubmitted-ldconfig-cache-abi

Gbp-Pq: Topic arm
Gbp-Pq: Name unsubmitted-ldconfig-cache-abi.diff

6 years agolocal-sigaction
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
local-sigaction

Gbp-Pq: Topic arm
Gbp-Pq: Name local-sigaction.diff

6 years agosubmitted-makecontext
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
submitted-makecontext

2018-03-01  Aurelien Jarno  <aurelien@aurel32.net>

[BZ #22910]
* sysdeps/unix/sysv/linux/alpha/setcontext.S (__startcontext): Set
up CFI directive to forbid further backtracing.

Gbp-Pq: Topic alpha
Gbp-Pq: Name submitted-makecontext.diff

6 years agosubmitted-fts64
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
submitted-fts64

2016-03-22  Aurelien Jarno  <aurelien@aurel32.net>

* sysdeps/unix/sysv/linux/alpha/fts.c: New file.
* sysdeps/unix/sysv/linux/alpha/fts64.c: New file.

Gbp-Pq: Topic alpha
Gbp-Pq: Name submitted-fts64.diff

6 years agolocal-string-functions
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
local-string-functions

The alpha assembly version of various string functions do not work
correctly on some corner cases, and thus doesn't pass the testsuite.
This patch removes them.

Gbp-Pq: Topic alpha
Gbp-Pq: Name local-string-functions.diff

6 years agosubmitted-dl-support
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
submitted-dl-support

older versions of glibc would build dl-sysdep as shared-only and dl-support as
static-only.  alpha hooks in a cache variable via dl-auxv.h.  newer versions of
glibc build dl-sysdep as both shared and static which means we now have symbol
duplication for static builds with dl-sysdep and dl-support.  since dl-sysdep
is both shared/static, there is no point in hooking dl-support anymore, so we
can punt it.

Gbp-Pq: Topic alpha
Gbp-Pq: Name submitted-dl-support.diff

6 years agolocal-gcc4.1
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
local-gcc4.1

2006-05-30  Falk Hueffner <falk@debian.org>

* sysdeps/unix/sysv/linux/alpha/ioperm.c: force the architecture
  to ev6 in assembly code.

{standard input}: Assembler messages:
{standard input}:341: Error: macro requires $at register while noat in effect
{standard input}:374: Error: macro requires $at register while noat in effect
{standard input}:438: Error: macro requires $at register while noat in effect
{standard input}:471: Error: macro requires $at register while noat in effect
make[3]: *** [/tmp/buildd/glibc-2.3.6/build-tree/alpha-libc/misc/ioperm.o] Error 1

Hrm. gcc puts .arch ev4 into the .s, and this overrides -mev6 for as.
I cannot really think of anything better than

Gbp-Pq: Topic alpha
Gbp-Pq: Name local-gcc4.1.diff

6 years agosubmitted-es_MX-decimal_point
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
submitted-es_MX-decimal_point

2012-06-06  Aurelien Jarno  <aurelien@aurel32.net>

* locales/es_MX (LC_MONETARY): Set mon_thousands_sep to space
( ).

Gbp-Pq: Topic localedata
Gbp-Pq: Name submitted-es_MX-decimal_point.diff

6 years agosubmitted-en_AU-date_fmt
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
submitted-en_AU-date_fmt

2012-04-29  Aurelien Jarno  <aurelien@aurel32.net>

        * locales/en_AU: Change date_fmt to match Australian standards.

Gbp-Pq: Topic localedata
Gbp-Pq: Name submitted-en_AU-date_fmt.diff

6 years agolocale-C
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
locale-C

Gbp-Pq: Topic localedata
Gbp-Pq: Name locale-C.diff

6 years agosubmitted-bz9725-locale-sv_SE
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
submitted-bz9725-locale-sv_SE

Gbp-Pq: Topic localedata
Gbp-Pq: Name submitted-bz9725-locale-sv_SE.diff

6 years agotailor-iso14651_t1
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
tailor-iso14651_t1

# All lines beginning with `# DP:' are a description of the patch.
# DP: Description: Rewrite collation rules to include iso14651_t1
# DP:  ar_SA cs_CZ et_EE hr_HR lt_LT pl_PL sl_SI tr_TR: not
# DP:    submitted yet.
# DP: Related bugs: BZ664 BZ672
# DP: Dpatch author: Denis Barbier
# DP: Patch author: Denis Barbier, Pablo Saratxaga
# DP: Upstream status: BZ664 BZ672
# DP: Date: 2006-01-18

2008-08-08  Aurelien Jarno <aurel32@debian.org>

        Loosy update for glibc 2.8.

2007-05-25  Pierre Habouzit <madcoder@debian.org>

        Loosy update for glibc 2.6.

2005-01-16  Denis Barbier  <barbier@linuxfr.org>

[BZ #672]
        Replace current collation rules by including iso14651_t1 and adding
        extra rules if needed.  There should be no noticeable changes in
        sorted text. only ligatures and ignoreable characters have modified
        weights.
* locales/da_DK: Likewise.

Gbp-Pq: Topic localedata
Gbp-Pq: Name tailor-iso14651_t1.diff

6 years agolocale-zh_TW
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
locale-zh_TW

See BTS #352600.
Not submitted yet.

Gbp-Pq: Topic localedata
Gbp-Pq: Name locale-zh_TW.diff

6 years agolocale-en_DK
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
locale-en_DK

# All lines beginning with `# DP:' are a description of the patch.
# DP: Description: Improve en_DK and add en_DK.ISO-8859-15 to SUPPORTED
# DP:   This locale is only useful to provide ISO8601 date formats.
# DP: Related bugs: #323159
# DP: Dpatch author: Denis Barbier
# DP: Patch author: Jakob Bohm <jbj@image.dk>
# DP: Upstream status: not submitted
# DP: Date: 2006-01-16

Gbp-Pq: Topic localedata
Gbp-Pq: Name locale-en_DK.diff

6 years agolocales-fr
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
locales-fr

# All lines beginning with `# DP:' are a description of the patch.
# DP: Description: Various fixes for all French locales
# DP: Related bugs: #248377  #351786 #345481
# DP: Dpatch author: Denis Barbier <barbier@debian.org>
# DP: Patch author: Denis Barbier
# DP: Upstream status: not submitted
# DP: Date: 2006-01-10

Gbp-Pq: Topic localedata
Gbp-Pq: Name locales-fr.diff

6 years agofo_FO-date_fmt
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
fo_FO-date_fmt

# All lines beginning with `# DP:' are a description of the patch.
# DP: Description: Fix d_t_fmt and date_fmt in fo_FO
# DP: Related bugs: #307194
# DP: Dpatch author: Denis Barbier
# DP: Patch author: Jacob Sparre Andersen <sparre@nbi.dk>
# DP: Upstream status: not submitted
# DP: Date: 2006-01-10

Gbp-Pq: Topic localedata
Gbp-Pq: Name fo_FO-date_fmt.diff

6 years agolocale-ku_TR
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
locale-ku_TR

# DP: Description: Please add Kurdish locale
# DP: Related bugs: BZ870
# DP: Dpatch author: Denis Barbier <barbier@debian.org>
# DP: Patch author: Kader DILSIZ, Pablo Saratxaga
# DP: Upstream status: Version 0.1 submitted in the original bugreport
# DP:   has been committed, this new version has been sent just after.
# DP: Date: 2006-01-06

Gbp-Pq: Topic localedata
Gbp-Pq: Name locale-ku_TR.diff

6 years agolocale-eu_FR
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
locale-eu_FR

# DP: Description: #257840: locales: Please add the eu_FR locale
# DP: Related bugs: #257840
# DP: Dpatch author: GOTO Masanori <gotom@debian.org>
# DP: Patch author: Christian Perrier <bubulle@debian.org>
# DP: Upstream status: Not submitted
# DP: Status Details: sending upstream
# DP: Date: 2004-07-31

Gbp-Pq: Topic localedata
Gbp-Pq: Name locale-eu_FR.diff

6 years agosupported
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
supported

# All lines beginning with `# DP:' are a description of the patch.
# DP: Description: Add several locales to localedata.SUPPORTED
# DP: - ru_RU.CP1251 was requested in #225516
# DP: - uz_UZ.UTF-8 was clearly missing, uz_UZ had no UTF-8 variant
# DP: - da_DK.ISO-8859-15, en_GB.ISO-8859-15, en_US.ISO-8859-15, no_NO.UTF-8,
# DP:   no_NO and sv_SE.ISO-8859-15 are found in fedora-branch CVS branch.
# DP: Related bugs: #225516 (ru_RU.CP1251)
# DP: Dpatch author: Denis Barbier
# DP: Upstream status: not submitted
# DP: Date: 2006-01-10

Gbp-Pq: Topic localedata
Gbp-Pq: Name supported.diff

6 years agosort-UTF8-first
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
sort-UTF8-first

Gbp-Pq: Topic localedata
Gbp-Pq: Name sort-UTF8-first.diff

6 years agoLC_IDENTIFICATION-optional-fields
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
LC_IDENTIFICATION-optional-fields

In LC_IDENTIFICATION, audience, application and abbreviation keywords
are optional, thus do not report an error if they are not defined.

# DP: Dpatch author: Denis Barbier
# DP: Patch author: Denis Barbier
# DP: Upstream status: not submitted
# DP: Date: 2006-01-08

Gbp-Pq: Topic locale
Gbp-Pq: Name LC_IDENTIFICATION-optional-fields.diff

6 years agolocale-print-LANGUAGE
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
locale-print-LANGUAGE

Comments tell that LANG has to be the first value, and LC_ALL the last
one.  Thus LANGUAGE is printed between them.

# DP: Dpatch author: Denis Barbier
# DP: Patch author: Denis Barbier
# DP: Upstream status: not submitted
# DP: Date: 2006-01-08

Gbp-Pq: Topic locale
Gbp-Pq: Name locale-print-LANGUAGE.diff

6 years agocheck-unknown-symbols
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
check-unknown-symbols

Check for unknown symbols in collation rules.  This is useful to detect
broken locales since unknown symbols are always wrong.

This request has not been submitted upstream yet.

# DP: Dpatch author: Denis Barbier
# DP: Patch author: Denis Barbier
# DP: Upstream status: not submitted
# DP: Date: 2006-01-08

Gbp-Pq: Topic locale
Gbp-Pq: Name check-unknown-symbols.diff

6 years agogit-updates
GNU Libc Maintainers [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
git-updates

GIT update of https://sourceware.org/git/glibc.git/release/2.29/master from glibc-2.29

Gbp-Pq: Name git-updates.diff

6 years agoglibc (2.29-2) unstable; urgency=medium
Aurelien Jarno [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
glibc (2.29-2) unstable; urgency=medium

  [ Aurelien Jarno ]
  * debian/control.in/main: drop the <!nocheck> profile from the
    python3:native build-depends.  Closes: #939871.
  * debian/patches/git-updates.diff: update from upstream stable branch:
    - Fix getegid, geteuid and getppid on alpha with < 5.1 kernels.
Closes: #939898.
  [ Sven Joachim ]
  * debian/script.in/nsscheck.sh: Do not restart services of different
    architecture than libc.  Closes: #700472.

  [ Samuel Thibault ]
  * patches/hurd-i386/submitted-anon-mmap-shared.diff: Re-disable, actually
    makes some tests fail.

[dgit import unpatched glibc 2.29-2]

6 years agoImport glibc_2.29-2.debian.tar.xz
Aurelien Jarno [Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)]
Import glibc_2.29-2.debian.tar.xz

[dgit import tarball glibc 2.29-2 glibc_2.29-2.debian.tar.xz]

6 years agoImport glibc_2.29.orig.tar.xz
Aurelien Jarno [Fri, 16 Aug 2019 10:42:42 +0000 (11:42 +0100)]
Import glibc_2.29.orig.tar.xz

[dgit import orig glibc_2.29.orig.tar.xz]