[arch-commits] Commit in glibc/repos (9 files)

2020-10-14 Thread Jelle van der Waa via arch-commits
Date: Wednesday, October 14, 2020 @ 18:48:31
  Author: jelle
Revision: 398347

archrelease: copy trunk to testing-x86_64

Added:
  glibc/repos/testing-x86_64/
  glibc/repos/testing-x86_64/PKGBUILD
(from rev 398346, glibc/trunk/PKGBUILD)
  glibc/repos/testing-x86_64/bz26534.patch
(from rev 398346, glibc/trunk/bz26534.patch)
  glibc/repos/testing-x86_64/glibc.install
(from rev 398346, glibc/trunk/glibc.install)
  glibc/repos/testing-x86_64/lib32-glibc.conf
(from rev 398346, glibc/trunk/lib32-glibc.conf)
  glibc/repos/testing-x86_64/locale-gen
(from rev 398346, glibc/trunk/locale-gen)
  glibc/repos/testing-x86_64/locale.gen.txt
(from rev 398346, glibc/trunk/locale.gen.txt)
  glibc/repos/testing-x86_64/sdt-config.h
(from rev 398346, glibc/trunk/sdt-config.h)
  glibc/repos/testing-x86_64/sdt.h
(from rev 398346, glibc/trunk/sdt.h)

--+
 PKGBUILD |  239 +
 bz26534.patch|   11 +
 glibc.install|5 
 lib32-glibc.conf |1 
 locale-gen   |   42 +
 locale.gen.txt   |   23 ++
 sdt-config.h |6 
 sdt.h|  430 +
 8 files changed, 757 insertions(+)

Copied: glibc/repos/testing-x86_64/PKGBUILD (from rev 398346, 
glibc/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2020-10-14 18:48:31 UTC (rev 398347)
@@ -0,0 +1,239 @@
+# Maintainer:  Bartłomiej Piotrowski 
+# Contributor: Allan McRae 
+
+# toolchain build order: 
linux-api-headers->glibc->binutils->gcc->binutils->glibc
+# NOTE: valgrind requires rebuilt with each major glibc version
+
+pkgbase=glibc
+pkgname=(glibc lib32-glibc)
+pkgver=2.32
+pkgrel=5
+arch=(x86_64)
+url='https://www.gnu.org/software/libc'
+license=(GPL LGPL)
+makedepends=(git gd lib32-gcc-libs python)
+optdepends=('perl: for mtrace')
+options=(!strip staticlibs)
+#_commit=3de512be7ea6053255afed6154db9ee31d4e557a
+#source=(git+https://sourceware.org/git/glibc.git#commit=$_commit
+source=(https://ftp.gnu.org/gnu/glibc/glibc-$pkgver.tar.xz{,.sig}
+locale.gen.txt
+locale-gen
+lib32-glibc.conf
+sdt.h sdt-config.h
+bz26534.patch)
+validpgpkeys=(7273542B39962DF7B299931416792B4EA25340F8 # Carlos O'Donell
+  BC7C7372637EC10C57D7AA6579C43DFBF1CF2187) # Siddhesh Poyarekar
+md5sums=('720c7992861c57cf97d66a2f36d8d1fa'
+ 'SKIP'
+ '07ac979b6ab5eeb778d55f041529d623'
+ '476e9113489f93b348b21e144b6a8fcf'
+ '6e052f1cb693d5d3203f50f9d4e8c33b'
+ '91fec3b7e75510ae2ac42533aa2e695e'
+ '680df504c683640b02ed4a805797c0b2'
+ 'fc57038c1297c7c11258e8dda1623ec2')
+
+prepare() {
+  mkdir -p glibc-build lib32-glibc-build
+
+  [[ -d glibc-$pkgver ]] && ln -s glibc-$pkgver glibc 
+  cd glibc
+
+  local i; for i in ${source[@]}; do
+case ${i%::*} in
+  *.patch)
+echo "  -> Applying ${i}"
+patch -p1 -i "$srcdir/${i}"
+;;
+esac
+  done
+}
+
+build() {
+  local _configure_flags=(
+  --prefix=/usr
+  --with-headers=/usr/include
+  --with-bugurl=https://bugs.archlinux.org/
+  --enable-add-ons
+  --enable-bind-now
+  --enable-cet
+  --enable-lock-elision
+  --enable-multi-arch
+  --enable-stack-protector=strong
+  --enable-stackguard-randomization
+  --enable-static-pie
+  --enable-systemtap
+  --disable-profile
+  --disable-werror
+  )
+
+  cd "$srcdir/glibc-build"
+
+  echo "slibdir=/usr/lib" >> configparms
+  echo "rtlddir=/usr/lib" >> configparms
+  echo "sbindir=/usr/bin" >> configparms
+  echo "rootsbindir=/usr/bin" >> configparms
+
+  # remove fortify for building libraries
+  CPPFLAGS=${CPPFLAGS/-D_FORTIFY_SOURCE=2/}
+
+  #
+  CFLAGS=${CFLAGS/-fno-plt/}
+  CXXFLAGS=${CXXFLAGS/-fno-plt/}
+  LDFLAGS=${LDFLAGS/,-z,now/}
+
+  "$srcdir/glibc/configure" \
+  --libdir=/usr/lib \
+  --libexecdir=/usr/lib \
+  ${_configure_flags[@]}
+
+  # build libraries with fortify disabled
+  echo "build-programs=no" >> configparms
+  make
+
+  # re-enable fortify for programs
+  sed -i "/build-programs=/s#no#yes#" configparms
+
+  echo "CC += -D_FORTIFY_SOURCE=2" >> configparms
+  echo "CXX += -D_FORTIFY_SOURCE=2" >> configparms
+  make
+
+  # build info pages manually for reprducibility
+  make info
+
+  cd "$srcdir/lib32-glibc-build"
+  export CC="gcc -m32 -mstackrealign"
+  export CXX="g++ -m32 -mstackrealign"
+
+  echo "slibdir=/usr/lib32" >> configparms
+  echo "rtlddir=/usr/lib32" >> configparms
+  echo "sbindir=/usr/bin" >> configparms
+  echo "rootsbindir=/usr/bin" >> configparms
+
+  # remove fortify for building libraries
+  CPPFLAGS=${CPPFLAGS/-D_FORTIFY_SOURCE=2/}
+  CFLAGS=${CFLAGS/-fno-plt/}
+  CXXFLAGS=${CXXFLAGS/-fno-plt/}
+
+  "$srcdir/glibc/configure" \
+  --host=i686-pc-linux-gnu \
+  --libdir=/usr/lib32 \
+  

[arch-commits] Commit in glibc/repos (9 files)

2020-09-01 Thread Bartłomiej Piotrowski via arch-commits
Date: Tuesday, September 1, 2020 @ 18:45:35
  Author: bpiotrowski
Revision: 395102

archrelease: copy trunk to testing-x86_64

Added:
  glibc/repos/testing-x86_64/
  glibc/repos/testing-x86_64/PKGBUILD
(from rev 395101, glibc/trunk/PKGBUILD)
  glibc/repos/testing-x86_64/bz26534.patch
(from rev 395101, glibc/trunk/bz26534.patch)
  glibc/repos/testing-x86_64/glibc.install
(from rev 395101, glibc/trunk/glibc.install)
  glibc/repos/testing-x86_64/lib32-glibc.conf
(from rev 395101, glibc/trunk/lib32-glibc.conf)
  glibc/repos/testing-x86_64/locale-gen
(from rev 395101, glibc/trunk/locale-gen)
  glibc/repos/testing-x86_64/locale.gen.txt
(from rev 395101, glibc/trunk/locale.gen.txt)
  glibc/repos/testing-x86_64/sdt-config.h
(from rev 395101, glibc/trunk/sdt-config.h)
  glibc/repos/testing-x86_64/sdt.h
(from rev 395101, glibc/trunk/sdt.h)

--+
 PKGBUILD |  238 +
 bz26534.patch|   11 +
 glibc.install|5 
 lib32-glibc.conf |1 
 locale-gen   |   42 +
 locale.gen.txt   |   23 ++
 sdt-config.h |6 
 sdt.h|  430 +
 8 files changed, 756 insertions(+)

Copied: glibc/repos/testing-x86_64/PKGBUILD (from rev 395101, 
glibc/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2020-09-01 18:45:35 UTC (rev 395102)
@@ -0,0 +1,238 @@
+# Maintainer:  Bartłomiej Piotrowski 
+# Contributor: Allan McRae 
+
+# toolchain build order: 
linux-api-headers->glibc->binutils->gcc->binutils->glibc
+# NOTE: valgrind requires rebuilt with each major glibc version
+
+pkgbase=glibc
+pkgname=(glibc lib32-glibc)
+pkgver=2.32
+pkgrel=4
+arch=(x86_64)
+url='https://www.gnu.org/software/libc'
+license=(GPL LGPL)
+makedepends=(git gd lib32-gcc-libs python)
+options=(!strip staticlibs)
+#_commit=3de512be7ea6053255afed6154db9ee31d4e557a
+#source=(git+https://sourceware.org/git/glibc.git#commit=$_commit
+source=(https://ftp.gnu.org/gnu/glibc/glibc-$pkgver.tar.xz{,.sig}
+locale.gen.txt
+locale-gen
+lib32-glibc.conf
+sdt.h sdt-config.h
+bz26534.patch)
+validpgpkeys=(7273542B39962DF7B299931416792B4EA25340F8 # Carlos O'Donell
+  BC7C7372637EC10C57D7AA6579C43DFBF1CF2187) # Siddhesh Poyarekar
+md5sums=('720c7992861c57cf97d66a2f36d8d1fa'
+ 'SKIP'
+ '07ac979b6ab5eeb778d55f041529d623'
+ '476e9113489f93b348b21e144b6a8fcf'
+ '6e052f1cb693d5d3203f50f9d4e8c33b'
+ '91fec3b7e75510ae2ac42533aa2e695e'
+ '680df504c683640b02ed4a805797c0b2'
+ 'fc57038c1297c7c11258e8dda1623ec2')
+
+prepare() {
+  mkdir -p glibc-build lib32-glibc-build
+
+  [[ -d glibc-$pkgver ]] && ln -s glibc-$pkgver glibc 
+  cd glibc
+
+  local i; for i in ${source[@]}; do
+case ${i%::*} in
+  *.patch)
+echo "  -> Applying ${i}"
+patch -p1 -i "$srcdir/${i}"
+;;
+esac
+  done
+}
+
+build() {
+  local _configure_flags=(
+  --prefix=/usr
+  --with-headers=/usr/include
+  --with-bugurl=https://bugs.archlinux.org/
+  --enable-add-ons
+  --enable-bind-now
+  --enable-cet
+  --enable-lock-elision
+  --enable-multi-arch
+  --enable-stack-protector=strong
+  --enable-stackguard-randomization
+  --enable-static-pie
+  --enable-systemtap
+  --disable-profile
+  --disable-werror
+  )
+
+  cd "$srcdir/glibc-build"
+
+  echo "slibdir=/usr/lib" >> configparms
+  echo "rtlddir=/usr/lib" >> configparms
+  echo "sbindir=/usr/bin" >> configparms
+  echo "rootsbindir=/usr/bin" >> configparms
+
+  # remove fortify for building libraries
+  CPPFLAGS=${CPPFLAGS/-D_FORTIFY_SOURCE=2/}
+
+  #
+  CFLAGS=${CFLAGS/-fno-plt/}
+  CXXFLAGS=${CXXFLAGS/-fno-plt/}
+  LDFLAGS=${LDFLAGS/,-z,now/}
+
+  "$srcdir/glibc/configure" \
+  --libdir=/usr/lib \
+  --libexecdir=/usr/lib \
+  ${_configure_flags[@]}
+
+  # build libraries with fortify disabled
+  echo "build-programs=no" >> configparms
+  make
+
+  # re-enable fortify for programs
+  sed -i "/build-programs=/s#no#yes#" configparms
+
+  echo "CC += -D_FORTIFY_SOURCE=2" >> configparms
+  echo "CXX += -D_FORTIFY_SOURCE=2" >> configparms
+  make
+
+  # build info pages manually for reprducibility
+  make info
+
+  cd "$srcdir/lib32-glibc-build"
+  export CC="gcc -m32 -mstackrealign"
+  export CXX="g++ -m32 -mstackrealign"
+
+  echo "slibdir=/usr/lib32" >> configparms
+  echo "rtlddir=/usr/lib32" >> configparms
+  echo "sbindir=/usr/bin" >> configparms
+  echo "rootsbindir=/usr/bin" >> configparms
+
+  # remove fortify for building libraries
+  CPPFLAGS=${CPPFLAGS/-D_FORTIFY_SOURCE=2/}
+  CFLAGS=${CFLAGS/-fno-plt/}
+  CXXFLAGS=${CXXFLAGS/-fno-plt/}
+
+  "$srcdir/glibc/configure" \
+  --host=i686-pc-linux-gnu \
+  --libdir=/usr/lib32 \
+  --libexecdir=/usr/lib32 \
+  

[arch-commits] Commit in glibc/repos (9 files)

2020-05-21 Thread Evangelos Foutras via arch-commits
Date: Thursday, May 21, 2020 @ 19:14:49
  Author: foutrelis
Revision: 387373

archrelease: copy trunk to staging-x86_64

Added:
  glibc/repos/staging-x86_64/
  glibc/repos/staging-x86_64/PKGBUILD
(from rev 387372, glibc/trunk/PKGBUILD)
  glibc/repos/staging-x86_64/bz20338.patch
(from rev 387372, glibc/trunk/bz20338.patch)
  glibc/repos/staging-x86_64/glibc.install
(from rev 387372, glibc/trunk/glibc.install)
  glibc/repos/staging-x86_64/lib32-glibc.conf
(from rev 387372, glibc/trunk/lib32-glibc.conf)
  glibc/repos/staging-x86_64/locale-gen
(from rev 387372, glibc/trunk/locale-gen)
  glibc/repos/staging-x86_64/locale.gen.txt
(from rev 387372, glibc/trunk/locale.gen.txt)
  glibc/repos/staging-x86_64/sdt-config.h
(from rev 387372, glibc/trunk/sdt-config.h)
  glibc/repos/staging-x86_64/sdt.h
(from rev 387372, glibc/trunk/sdt.h)

--+
 PKGBUILD |  227 +++
 bz20338.patch|  114 ++
 glibc.install|5 
 lib32-glibc.conf |1 
 locale-gen   |   42 +
 locale.gen.txt   |   23 ++
 sdt-config.h |6 
 sdt.h|  430 +
 8 files changed, 848 insertions(+)

Copied: glibc/repos/staging-x86_64/PKGBUILD (from rev 387372, 
glibc/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2020-05-21 19:14:49 UTC (rev 387373)
@@ -0,0 +1,227 @@
+# Maintainer:  Bartłomiej Piotrowski 
+# Contributor: Allan McRae 
+
+# toolchain build order: 
linux-api-headers->glibc->binutils->gcc->binutils->glibc
+# NOTE: valgrind requires rebuilt with each major glibc version
+
+pkgbase=glibc
+pkgname=(glibc lib32-glibc)
+pkgver=2.31
+pkgrel=4
+arch=(x86_64)
+url='https://www.gnu.org/software/libc'
+license=(GPL LGPL)
+makedepends=(git gd lib32-gcc-libs python)
+options=(!strip staticlibs)
+#source=(https://ftp.gnu.org/gnu/glibc/glibc-$pkgver.tar.xz{,.sig}
+_commit=18fdba553dd9b907e9812b90d2cea593f776058f
+source=(git+https://sourceware.org/git/glibc.git#commit=$_commit
+locale.gen.txt
+locale-gen
+lib32-glibc.conf
+sdt.h sdt-config.h
+bz20338.patch)
+validpgpkeys=(7273542B39962DF7B299931416792B4EA25340F8 # Carlos O'Donell
+  BC7C7372637EC10C57D7AA6579C43DFBF1CF2187) # Siddhesh Poyarekar
+md5sums=('SKIP'
+ '07ac979b6ab5eeb778d55f041529d623'
+ '476e9113489f93b348b21e144b6a8fcf'
+ '6e052f1cb693d5d3203f50f9d4e8c33b'
+ '91fec3b7e75510ae2ac42533aa2e695e'
+ '680df504c683640b02ed4a805797c0b2'
+ '430673eccc78e52c249aa4b0f1786450')
+
+prepare() {
+  mkdir -p glibc-build lib32-glibc-build
+
+  [[ -d glibc-$pkgver ]] && ln -s glibc-$pkgver glibc 
+  cd glibc
+
+  local i; for i in ${source[@]}; do
+case ${i%::*} in
+  *.patch)
+echo "  -> Applying ${i}"
+patch -p1 -i "$srcdir/${i}"
+;;
+esac
+  done
+}
+
+build() {
+  local _configure_flags=(
+  --prefix=/usr
+  --with-headers=/usr/include
+  --with-bugurl=https://bugs.archlinux.org/
+  --enable-add-ons
+  --enable-bind-now
+  --enable-cet
+  --enable-lock-elision
+  --enable-multi-arch
+  --enable-stack-protector=strong
+  --enable-stackguard-randomization
+  --enable-static-pie
+  --enable-systemtap
+  --disable-profile
+  --disable-werror
+  )
+
+  cd "$srcdir/glibc-build"
+
+  echo "slibdir=/usr/lib" >> configparms
+  echo "rtlddir=/usr/lib" >> configparms
+  echo "sbindir=/usr/bin" >> configparms
+  echo "rootsbindir=/usr/bin" >> configparms
+
+  # remove fortify for building libraries
+  CPPFLAGS=${CPPFLAGS/-D_FORTIFY_SOURCE=2/}
+
+  #
+  CFLAGS=${CFLAGS/-fno-plt/}
+  CXXFLAGS=${CXXFLAGS/-fno-plt/}
+  LDFLAGS=${LDFLAGS/,-z,now/}
+
+  "$srcdir/glibc/configure" \
+  --libdir=/usr/lib \
+  --libexecdir=/usr/lib \
+  ${_configure_flags[@]}
+
+  # build libraries with fortify disabled
+  echo "build-programs=no" >> configparms
+  make
+
+  # re-enable fortify for programs
+  sed -i "/build-programs=/s#no#yes#" configparms
+
+  echo "CC += -D_FORTIFY_SOURCE=2" >> configparms
+  echo "CXX += -D_FORTIFY_SOURCE=2" >> configparms
+  make
+
+  cd "$srcdir/lib32-glibc-build"
+  export CC="gcc -m32 -mstackrealign"
+  export CXX="g++ -m32 -mstackrealign"
+
+  echo "slibdir=/usr/lib32" >> configparms
+  echo "rtlddir=/usr/lib32" >> configparms
+  echo "sbindir=/usr/bin" >> configparms
+  echo "rootsbindir=/usr/bin" >> configparms
+
+  # remove fortify for building libraries
+  CPPFLAGS=${CPPFLAGS/-D_FORTIFY_SOURCE=2/}
+  CFLAGS=${CFLAGS/-fno-plt/}
+  CXXFLAGS=${CXXFLAGS/-fno-plt/}
+
+  "$srcdir/glibc/configure" \
+  --host=i686-pc-linux-gnu \
+  --libdir=/usr/lib32 \
+  --libexecdir=/usr/lib32 \
+  ${_configure_flags[@]}
+
+  # build libraries with fortify disabled
+  echo "build-programs=no" >> 

[arch-commits] Commit in glibc/repos (9 files)

2020-05-08 Thread Bartłomiej Piotrowski via arch-commits
Date: Friday, May 8, 2020 @ 14:05:46
  Author: bpiotrowski
Revision: 382793

archrelease: copy trunk to staging-x86_64

Added:
  glibc/repos/staging-x86_64/
  glibc/repos/staging-x86_64/PKGBUILD
(from rev 382792, glibc/trunk/PKGBUILD)
  glibc/repos/staging-x86_64/bz20338.patch
(from rev 382792, glibc/trunk/bz20338.patch)
  glibc/repos/staging-x86_64/glibc.install
(from rev 382792, glibc/trunk/glibc.install)
  glibc/repos/staging-x86_64/lib32-glibc.conf
(from rev 382792, glibc/trunk/lib32-glibc.conf)
  glibc/repos/staging-x86_64/locale-gen
(from rev 382792, glibc/trunk/locale-gen)
  glibc/repos/staging-x86_64/locale.gen.txt
(from rev 382792, glibc/trunk/locale.gen.txt)
  glibc/repos/staging-x86_64/sdt-config.h
(from rev 382792, glibc/trunk/sdt-config.h)
  glibc/repos/staging-x86_64/sdt.h
(from rev 382792, glibc/trunk/sdt.h)

--+
 PKGBUILD |  227 +++
 bz20338.patch|  114 ++
 glibc.install|5 
 lib32-glibc.conf |1 
 locale-gen   |   42 +
 locale.gen.txt   |   23 ++
 sdt-config.h |6 
 sdt.h|  430 +
 8 files changed, 848 insertions(+)

Copied: glibc/repos/staging-x86_64/PKGBUILD (from rev 382792, 
glibc/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2020-05-08 14:05:46 UTC (rev 382793)
@@ -0,0 +1,227 @@
+# Maintainer:  Bartłomiej Piotrowski 
+# Contributor: Allan McRae 
+
+# toolchain build order: 
linux-api-headers->glibc->binutils->gcc->binutils->glibc
+# NOTE: valgrind requires rebuilt with each major glibc version
+
+pkgbase=glibc
+pkgname=(glibc lib32-glibc)
+pkgver=2.31
+pkgrel=3
+arch=(x86_64)
+url='https://www.gnu.org/software/libc'
+license=(GPL LGPL)
+makedepends=(git gd lib32-gcc-libs python)
+options=(!strip staticlibs)
+#source=(https://ftp.gnu.org/gnu/glibc/glibc-$pkgver.tar.xz{,.sig}
+_commit=18fdba553dd9b907e9812b90d2cea593f776058f
+source=(git+https://sourceware.org/git/glibc.git#commit=$_commit
+locale.gen.txt
+locale-gen
+lib32-glibc.conf
+sdt.h sdt-config.h
+bz20338.patch)
+validpgpkeys=(7273542B39962DF7B299931416792B4EA25340F8 # Carlos O'Donell
+  BC7C7372637EC10C57D7AA6579C43DFBF1CF2187) # Siddhesh Poyarekar
+md5sums=('SKIP'
+ '07ac979b6ab5eeb778d55f041529d623'
+ '476e9113489f93b348b21e144b6a8fcf'
+ '6e052f1cb693d5d3203f50f9d4e8c33b'
+ '91fec3b7e75510ae2ac42533aa2e695e'
+ '680df504c683640b02ed4a805797c0b2'
+ '430673eccc78e52c249aa4b0f1786450')
+
+prepare() {
+  mkdir -p glibc-build lib32-glibc-build
+
+  [[ -d glibc-$pkgver ]] && ln -s glibc-$pkgver glibc 
+  cd glibc
+
+  local i; for i in ${source[@]}; do
+case ${i%::*} in
+  *.patch)
+msg2 "Applying ${i}"
+patch -p1 -i "$srcdir/${i}"
+;;
+esac
+  done
+}
+
+build() {
+  local _configure_flags=(
+  --prefix=/usr
+  --with-headers=/usr/include
+  --with-bugurl=https://bugs.archlinux.org/
+  --enable-add-ons
+  --enable-bind-now
+  --enable-cet
+  --enable-lock-elision
+  --enable-multi-arch
+  --enable-stack-protector=strong
+  --enable-stackguard-randomization
+  --enable-static-pie
+  --enable-systemtap
+  --disable-profile
+  --disable-werror
+  )
+
+  cd "$srcdir/glibc-build"
+
+  echo "slibdir=/usr/lib" >> configparms
+  echo "rtlddir=/usr/lib" >> configparms
+  echo "sbindir=/usr/bin" >> configparms
+  echo "rootsbindir=/usr/bin" >> configparms
+
+  # remove fortify for building libraries
+  CPPFLAGS=${CPPFLAGS/-D_FORTIFY_SOURCE=2/}
+
+  #
+  CFLAGS=${CFLAGS/-fno-plt/}
+  CXXFLAGS=${CXXFLAGS/-fno-plt/}
+  LDFLAGS=${LDFLAGS/,-z,now/}
+
+  "$srcdir/glibc/configure" \
+  --libdir=/usr/lib \
+  --libexecdir=/usr/lib \
+  ${_configure_flags[@]}
+
+  # build libraries with fortify disabled
+  echo "build-programs=no" >> configparms
+  make
+
+  # re-enable fortify for programs
+  sed -i "/build-programs=/s#no#yes#" configparms
+
+  echo "CC += -D_FORTIFY_SOURCE=2" >> configparms
+  echo "CXX += -D_FORTIFY_SOURCE=2" >> configparms
+  make
+
+  cd "$srcdir/lib32-glibc-build"
+  export CC="gcc -m32 -mstackrealign"
+  export CXX="g++ -m32 -mstackrealign"
+
+  echo "slibdir=/usr/lib32" >> configparms
+  echo "rtlddir=/usr/lib32" >> configparms
+  echo "sbindir=/usr/bin" >> configparms
+  echo "rootsbindir=/usr/bin" >> configparms
+
+  # remove fortify for building libraries
+  CPPFLAGS=${CPPFLAGS/-D_FORTIFY_SOURCE=2/}
+  CFLAGS=${CFLAGS/-fno-plt/}
+  CXXFLAGS=${CXXFLAGS/-fno-plt/}
+
+  "$srcdir/glibc/configure" \
+  --host=i686-pc-linux-gnu \
+  --libdir=/usr/lib32 \
+  --libexecdir=/usr/lib32 \
+  ${_configure_flags[@]}
+
+  # build libraries with fortify disabled
+  echo "build-programs=no" >> configparms
+ 

[arch-commits] Commit in glibc/repos (9 files)

2020-03-12 Thread Bartłomiej Piotrowski via arch-commits
Date: Thursday, March 12, 2020 @ 22:08:12
  Author: bpiotrowski
Revision: 377445

archrelease: copy trunk to staging-x86_64

Added:
  glibc/repos/staging-x86_64/
  glibc/repos/staging-x86_64/PKGBUILD
(from rev 377444, glibc/trunk/PKGBUILD)
  glibc/repos/staging-x86_64/bz20338.patch
(from rev 377444, glibc/trunk/bz20338.patch)
  glibc/repos/staging-x86_64/glibc.install
(from rev 377444, glibc/trunk/glibc.install)
  glibc/repos/staging-x86_64/lib32-glibc.conf
(from rev 377444, glibc/trunk/lib32-glibc.conf)
  glibc/repos/staging-x86_64/locale-gen
(from rev 377444, glibc/trunk/locale-gen)
  glibc/repos/staging-x86_64/locale.gen.txt
(from rev 377444, glibc/trunk/locale.gen.txt)
  glibc/repos/staging-x86_64/sdt-config.h
(from rev 377444, glibc/trunk/sdt-config.h)
  glibc/repos/staging-x86_64/sdt.h
(from rev 377444, glibc/trunk/sdt.h)

--+
 PKGBUILD |  226 +++
 bz20338.patch|  114 ++
 glibc.install|5 
 lib32-glibc.conf |1 
 locale-gen   |   42 +
 locale.gen.txt   |   23 ++
 sdt-config.h |6 
 sdt.h|  430 +
 8 files changed, 847 insertions(+)

Copied: glibc/repos/staging-x86_64/PKGBUILD (from rev 377444, 
glibc/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2020-03-12 22:08:12 UTC (rev 377445)
@@ -0,0 +1,226 @@
+# Maintainer:  Bartłomiej Piotrowski 
+# Contributor: Allan McRae 
+
+# toolchain build order: 
linux-api-headers->glibc->binutils->gcc->binutils->glibc
+# NOTE: valgrind requires rebuilt with each major glibc version
+
+pkgbase=glibc
+pkgname=(glibc lib32-glibc)
+pkgver=2.31
+pkgrel=2
+arch=(x86_64)
+url='https://www.gnu.org/software/libc'
+license=(GPL LGPL)
+makedepends=(git gd lib32-gcc-libs python)
+options=(!strip staticlibs)
+#source=(git+https://sourceware.org/git/glibc.git#commit=$_commit
+source=(https://ftp.gnu.org/gnu/glibc/glibc-$pkgver.tar.xz{,.sig}
+locale.gen.txt
+locale-gen
+lib32-glibc.conf
+sdt.h sdt-config.h
+bz20338.patch)
+validpgpkeys=(7273542B39962DF7B299931416792B4EA25340F8 # Carlos O'Donell
+  BC7C7372637EC10C57D7AA6579C43DFBF1CF2187) # Siddhesh Poyarekar
+md5sums=('78a720f17412f3c3282be5a6f3363ec6'
+ 'SKIP'
+ '07ac979b6ab5eeb778d55f041529d623'
+ '476e9113489f93b348b21e144b6a8fcf'
+ '6e052f1cb693d5d3203f50f9d4e8c33b'
+ '91fec3b7e75510ae2ac42533aa2e695e'
+ '680df504c683640b02ed4a805797c0b2'
+ '430673eccc78e52c249aa4b0f1786450')
+
+prepare() {
+  mkdir -p glibc-build lib32-glibc-build
+
+  [[ -d glibc-$pkgver ]] && ln -s glibc-$pkgver glibc 
+  cd glibc
+
+  local i; for i in ${source[@]}; do
+case ${i%::*} in
+  *.patch)
+msg2 "Applying ${i}"
+patch -p1 -i "$srcdir/${i}"
+;;
+esac
+  done
+}
+
+build() {
+  local _configure_flags=(
+  --prefix=/usr
+  --with-headers=/usr/include
+  --with-bugurl=https://bugs.archlinux.org/
+  --enable-add-ons
+  --enable-bind-now
+  --enable-cet
+  --enable-lock-elision
+  --enable-multi-arch
+  --enable-stack-protector=strong
+  --enable-stackguard-randomization
+  --enable-static-pie
+  --disable-profile
+  --disable-werror
+  )
+
+  cd "$srcdir/glibc-build"
+
+  echo "slibdir=/usr/lib" >> configparms
+  echo "rtlddir=/usr/lib" >> configparms
+  echo "sbindir=/usr/bin" >> configparms
+  echo "rootsbindir=/usr/bin" >> configparms
+
+  # remove fortify for building libraries
+  CPPFLAGS=${CPPFLAGS/-D_FORTIFY_SOURCE=2/}
+
+  #
+  CFLAGS=${CFLAGS/-fno-plt/}
+  CXXFLAGS=${CXXFLAGS/-fno-plt/}
+  LDFLAGS=${LDFLAGS/,-z,now/}
+
+  "$srcdir/glibc/configure" \
+  --libdir=/usr/lib \
+  --libexecdir=/usr/lib \
+  ${_configure_flags[@]}
+
+  # build libraries with fortify disabled
+  echo "build-programs=no" >> configparms
+  make
+
+  # re-enable fortify for programs
+  sed -i "/build-programs=/s#no#yes#" configparms
+
+  echo "CC += -D_FORTIFY_SOURCE=2" >> configparms
+  echo "CXX += -D_FORTIFY_SOURCE=2" >> configparms
+  make
+
+  cd "$srcdir/lib32-glibc-build"
+  export CC="gcc -m32 -mstackrealign"
+  export CXX="g++ -m32 -mstackrealign"
+
+  echo "slibdir=/usr/lib32" >> configparms
+  echo "rtlddir=/usr/lib32" >> configparms
+  echo "sbindir=/usr/bin" >> configparms
+  echo "rootsbindir=/usr/bin" >> configparms
+
+  # remove fortify for building libraries
+  CPPFLAGS=${CPPFLAGS/-D_FORTIFY_SOURCE=2/}
+  CFLAGS=${CFLAGS/-fno-plt/}
+  CXXFLAGS=${CXXFLAGS/-fno-plt/}
+
+  "$srcdir/glibc/configure" \
+  --host=i686-pc-linux-gnu \
+  --libdir=/usr/lib32 \
+  --libexecdir=/usr/lib32 \
+  ${_configure_flags[@]}
+
+  # build libraries with fortify disabled
+  echo "build-programs=no" >> configparms
+  make
+
+  # re-enable 

[arch-commits] Commit in glibc/repos (9 files)

2020-02-04 Thread Bartłomiej Piotrowski via arch-commits
Date: Wednesday, February 5, 2020 @ 06:09:36
  Author: bpiotrowski
Revision: 374615

archrelease: copy trunk to testing-x86_64

Added:
  glibc/repos/testing-x86_64/
  glibc/repos/testing-x86_64/PKGBUILD
(from rev 374614, glibc/trunk/PKGBUILD)
  glibc/repos/testing-x86_64/bz20338.patch
(from rev 374614, glibc/trunk/bz20338.patch)
  glibc/repos/testing-x86_64/glibc.install
(from rev 374614, glibc/trunk/glibc.install)
  glibc/repos/testing-x86_64/lib32-glibc.conf
(from rev 374614, glibc/trunk/lib32-glibc.conf)
  glibc/repos/testing-x86_64/locale-gen
(from rev 374614, glibc/trunk/locale-gen)
  glibc/repos/testing-x86_64/locale.gen.txt
(from rev 374614, glibc/trunk/locale.gen.txt)
  glibc/repos/testing-x86_64/sdt-config.h
(from rev 374614, glibc/trunk/sdt-config.h)
  glibc/repos/testing-x86_64/sdt.h
(from rev 374614, glibc/trunk/sdt.h)

--+
 PKGBUILD |  226 +++
 bz20338.patch|  114 ++
 glibc.install|5 
 lib32-glibc.conf |1 
 locale-gen   |   42 +
 locale.gen.txt   |   23 ++
 sdt-config.h |6 
 sdt.h|  430 +
 8 files changed, 847 insertions(+)

Copied: glibc/repos/testing-x86_64/PKGBUILD (from rev 374614, 
glibc/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2020-02-05 06:09:36 UTC (rev 374615)
@@ -0,0 +1,226 @@
+# Maintainer:  Bartłomiej Piotrowski 
+# Contributor: Allan McRae 
+
+# toolchain build order: 
linux-api-headers->glibc->binutils->gcc->binutils->glibc
+# NOTE: valgrind requires rebuilt with each major glibc version
+
+pkgbase=glibc
+pkgname=(glibc lib32-glibc)
+pkgver=2.31
+pkgrel=1
+arch=(x86_64)
+url='https://www.gnu.org/software/libc'
+license=(GPL LGPL)
+makedepends=(git gd lib32-gcc-libs python)
+options=(!strip staticlibs)
+#source=(git+https://sourceware.org/git/glibc.git#commit=$_commit
+source=(https://ftp.gnu.org/gnu/glibc/glibc-$pkgver.tar.xz{,.sig}
+locale.gen.txt
+locale-gen
+lib32-glibc.conf
+sdt.h sdt-config.h
+bz20338.patch)
+validpgpkeys=(7273542B39962DF7B299931416792B4EA25340F8 # Carlos O'Donell
+  BC7C7372637EC10C57D7AA6579C43DFBF1CF2187) # Siddhesh Poyarekar
+md5sums=('78a720f17412f3c3282be5a6f3363ec6'
+ 'SKIP'
+ '07ac979b6ab5eeb778d55f041529d623'
+ '476e9113489f93b348b21e144b6a8fcf'
+ '6e052f1cb693d5d3203f50f9d4e8c33b'
+ '91fec3b7e75510ae2ac42533aa2e695e'
+ '680df504c683640b02ed4a805797c0b2'
+ '430673eccc78e52c249aa4b0f1786450')
+
+prepare() {
+  mkdir -p glibc-build lib32-glibc-build
+
+  [[ -d glibc-$pkgver ]] && ln -s glibc-$pkgver glibc 
+  cd glibc
+
+  local i; for i in ${source[@]}; do
+case ${i%::*} in
+  *.patch)
+msg2 "Applying ${i}"
+patch -p1 -i "$srcdir/${i}"
+;;
+esac
+  done
+}
+
+build() {
+  local _configure_flags=(
+  --prefix=/usr
+  --with-headers=/usr/include
+  --with-bugurl=https://bugs.archlinux.org/
+  --enable-add-ons
+  --enable-bind-now
+  --enable-cet
+  --enable-lock-elision
+  --enable-multi-arch
+  --enable-stack-protector=strong
+  --enable-stackguard-randomization
+  --enable-static-pie
+  --disable-profile
+  --disable-werror
+  )
+
+  cd "$srcdir/glibc-build"
+
+  echo "slibdir=/usr/lib" >> configparms
+  echo "rtlddir=/usr/lib" >> configparms
+  echo "sbindir=/usr/bin" >> configparms
+  echo "rootsbindir=/usr/bin" >> configparms
+
+  # remove fortify for building libraries
+  CPPFLAGS=${CPPFLAGS/-D_FORTIFY_SOURCE=2/}
+
+  #
+  CFLAGS=${CFLAGS/-fno-plt/}
+  CXXFLAGS=${CXXFLAGS/-fno-plt/}
+  LDFLAGS=${LDFLAGS/,-z,now/}
+
+  "$srcdir/glibc/configure" \
+  --libdir=/usr/lib \
+  --libexecdir=/usr/lib \
+  ${_configure_flags[@]}
+
+  # build libraries with fortify disabled
+  echo "build-programs=no" >> configparms
+  make
+
+  # re-enable fortify for programs
+  sed -i "/build-programs=/s#no#yes#" configparms
+
+  echo "CC += -D_FORTIFY_SOURCE=2" >> configparms
+  echo "CXX += -D_FORTIFY_SOURCE=2" >> configparms
+  make
+
+  cd "$srcdir/lib32-glibc-build"
+  export CC="gcc -m32 -mstackrealign"
+  export CXX="g++ -m32 -mstackrealign"
+
+  echo "slibdir=/usr/lib32" >> configparms
+  echo "rtlddir=/usr/lib32" >> configparms
+  echo "sbindir=/usr/bin" >> configparms
+  echo "rootsbindir=/usr/bin" >> configparms
+
+  # remove fortify for building libraries
+  CPPFLAGS=${CPPFLAGS/-D_FORTIFY_SOURCE=2/}
+  CFLAGS=${CFLAGS/-fno-plt/}
+  CXXFLAGS=${CXXFLAGS/-fno-plt/}
+
+  "$srcdir/glibc/configure" \
+  --host=i686-pc-linux-gnu \
+  --libdir=/usr/lib32 \
+  --libexecdir=/usr/lib32 \
+  ${_configure_flags[@]}
+
+  # build libraries with fortify disabled
+  echo "build-programs=no" >> configparms
+  make
+
+  # re-enable 

[arch-commits] Commit in glibc/repos (9 files)

2019-07-09 Thread Bartłomiej Piotrowski via arch-commits
Date: Wednesday, July 10, 2019 @ 05:43:19
  Author: bpiotrowski
Revision: 357502

archrelease: copy trunk to testing-x86_64

Added:
  glibc/repos/testing-x86_64/
  
glibc/repos/testing-x86_64/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch
(from rev 357501, 
glibc/trunk/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch)
  glibc/repos/testing-x86_64/PKGBUILD
(from rev 357501, glibc/trunk/PKGBUILD)
  glibc/repos/testing-x86_64/bz20338.patch
(from rev 357501, glibc/trunk/bz20338.patch)
  
glibc/repos/testing-x86_64/file-truncated-while-reading-soname-after-patchelf.patch
(from rev 357501, 
glibc/trunk/file-truncated-while-reading-soname-after-patchelf.patch)
  glibc/repos/testing-x86_64/glibc.install
(from rev 357501, glibc/trunk/glibc.install)
  glibc/repos/testing-x86_64/lib32-glibc.conf
(from rev 357501, glibc/trunk/lib32-glibc.conf)
  glibc/repos/testing-x86_64/locale-gen
(from rev 357501, glibc/trunk/locale-gen)
  glibc/repos/testing-x86_64/locale.gen.txt
(from rev 357501, glibc/trunk/locale.gen.txt)

-+
 0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch |  194 
 PKGBUILD|  223 
++
 bz20338.patch   |  114 +
 file-truncated-while-reading-soname-after-patchelf.patch|   85 +++
 glibc.install   |5 
 lib32-glibc.conf|1 
 locale-gen  |   42 +
 locale.gen.txt  |   23 +
 8 files changed, 687 insertions(+)

Copied: 
glibc/repos/testing-x86_64/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch
 (from rev 357501, 
glibc/trunk/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch)
===
--- 
testing-x86_64/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch  
(rev 0)
+++ 
testing-x86_64/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch  
2019-07-10 05:43:19 UTC (rev 357502)
@@ -0,0 +1,194 @@
+From 2cbf10ae2ea9e378ff91b8f5c4d8cb77ed05378e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Bart=C5=82omiej=20Piotrowski?= 
+Date: Fri, 10 Aug 2018-2019 14:12:40 +
+Subject: [PATCH] Revert "elf: Correct absolute (SHN_ABS) symbol run-time
+ calculation [BZ #19818]"
+
+This reverts commit e7feec374c635b6a29d65c39ae5e1855528fed39.
+---
+ elf/Makefile | 14 ++---
+ elf/dl-addr.c|  2 --
+ elf/tst-absolute-sym-lib.c   | 25 
+ elf/tst-absolute-sym-lib.lds | 19 --
+ elf/tst-absolute-sym.c   | 38 
+ sysdeps/generic/ldsodefs.h   |  3 +--
+ 6 files changed, 3 insertions(+), 98 deletions(-)
+ delete mode 100644 elf/tst-absolute-sym-lib.c
+ delete mode 100644 elf/tst-absolute-sym-lib.lds
+ delete mode 100644 elf/tst-absolute-sym.c
+
+diff --git a/elf/Makefile b/elf/Makefile
+index cd0771307f..5084ba4f6f 100644
+--- a/elf/Makefile
 b/elf/Makefile
+@@ -186,7 +186,7 @@ tests += restest1 preloadtest loadfail multiload origtest 
resolvfail \
+tst-tlsalign tst-tlsalign-extern tst-nodelete-opened \
+tst-nodelete2 tst-audit11 tst-audit12 tst-dlsym-error tst-noload \
+tst-latepthread tst-tls-manydynamic tst-nodelete-dlclose \
+-   tst-debug1 tst-main1 tst-absolute-sym tst-absolute-zero tst-big-note \
++   tst-debug1 tst-main1 \
+tst-unwind-ctor tst-unwind-main
+ #  reldep9
+ tests-internal += loadtest unload unload2 circleload1 \
+@@ -272,8 +272,7 @@ modules-names = testobj1 testobj2 testobj3 testobj4 
testobj5 testobj6 \
+   tst-audit12mod1 tst-audit12mod2 tst-audit12mod3 tst-auditmod12 \
+   tst-latepthreadmod $(tst-tls-many-dynamic-modules) \
+   tst-nodelete-dlclose-dso tst-nodelete-dlclose-plugin \
+-  tst-main1mod tst-libc_dlvsym-dso tst-absolute-sym-lib \
+-  tst-absolute-zero-lib tst-big-note-lib tst-unwind-ctor-lib
++  tst-main1mod tst-libc_dlvsym-dso tst-unwind-ctor-lib
+ # Most modules build with _ISOMAC defined, but those filtered out
+ # depend on internal headers.
+ modules-names-tests = $(filter-out ifuncmod% tst-libc_dlvsym-dso tst-tlsmod%,\
+@@ -1465,14 +1463,6 @@ tst-main1-no-pie = yes
+ LDLIBS-tst-main1 = $(libsupport)
+ tst-main1mod.so-no-z-defs = yes
+ 
+-LDLIBS-tst-absolute-sym-lib.so = tst-absolute-sym-lib.lds
+-$(objpfx)tst-absolute-sym-lib.so: $(LDLIBS-tst-absolute-sym-lib.so)
+-$(objpfx)tst-absolute-sym: $(objpfx)tst-absolute-sym-lib.so
+-
+-LDLIBS-tst-absolute-zero-lib.so = tst-absolute-zero-lib.lds
+-$(objpfx)tst-absolute-zero-lib.so: $(LDLIBS-tst-absolute-zero-lib.so)

[arch-commits] Commit in glibc/repos (9 files)

2019-06-23 Thread Bartłomiej Piotrowski via arch-commits
Date: Sunday, June 23, 2019 @ 09:02:06
  Author: bpiotrowski
Revision: 356806

archrelease: copy trunk to testing-x86_64

Added:
  glibc/repos/testing-x86_64/
  
glibc/repos/testing-x86_64/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch
(from rev 356805, 
glibc/trunk/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch)
  glibc/repos/testing-x86_64/PKGBUILD
(from rev 356805, glibc/trunk/PKGBUILD)
  glibc/repos/testing-x86_64/bz20338.patch
(from rev 356805, glibc/trunk/bz20338.patch)
  
glibc/repos/testing-x86_64/file-truncated-while-reading-soname-after-patchelf.patch
(from rev 356805, 
glibc/trunk/file-truncated-while-reading-soname-after-patchelf.patch)
  glibc/repos/testing-x86_64/glibc.install
(from rev 356805, glibc/trunk/glibc.install)
  glibc/repos/testing-x86_64/lib32-glibc.conf
(from rev 356805, glibc/trunk/lib32-glibc.conf)
  glibc/repos/testing-x86_64/locale-gen
(from rev 356805, glibc/trunk/locale-gen)
  glibc/repos/testing-x86_64/locale.gen.txt
(from rev 356805, glibc/trunk/locale.gen.txt)

-+
 0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch |  194 
 PKGBUILD|  223 
++
 bz20338.patch   |  114 +
 file-truncated-while-reading-soname-after-patchelf.patch|   85 +++
 glibc.install   |5 
 lib32-glibc.conf|1 
 locale-gen  |   42 +
 locale.gen.txt  |   23 +
 8 files changed, 687 insertions(+)

Copied: 
glibc/repos/testing-x86_64/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch
 (from rev 356805, 
glibc/trunk/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch)
===
--- 
testing-x86_64/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch  
(rev 0)
+++ 
testing-x86_64/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch  
2019-06-23 09:02:06 UTC (rev 356806)
@@ -0,0 +1,194 @@
+From 2cbf10ae2ea9e378ff91b8f5c4d8cb77ed05378e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Bart=C5=82omiej=20Piotrowski?= 
+Date: Fri, 10 Aug 2018-2019 14:12:40 +
+Subject: [PATCH] Revert "elf: Correct absolute (SHN_ABS) symbol run-time
+ calculation [BZ #19818]"
+
+This reverts commit e7feec374c635b6a29d65c39ae5e1855528fed39.
+---
+ elf/Makefile | 14 ++---
+ elf/dl-addr.c|  2 --
+ elf/tst-absolute-sym-lib.c   | 25 
+ elf/tst-absolute-sym-lib.lds | 19 --
+ elf/tst-absolute-sym.c   | 38 
+ sysdeps/generic/ldsodefs.h   |  3 +--
+ 6 files changed, 3 insertions(+), 98 deletions(-)
+ delete mode 100644 elf/tst-absolute-sym-lib.c
+ delete mode 100644 elf/tst-absolute-sym-lib.lds
+ delete mode 100644 elf/tst-absolute-sym.c
+
+diff --git a/elf/Makefile b/elf/Makefile
+index cd0771307f..5084ba4f6f 100644
+--- a/elf/Makefile
 b/elf/Makefile
+@@ -186,7 +186,7 @@ tests += restest1 preloadtest loadfail multiload origtest 
resolvfail \
+tst-tlsalign tst-tlsalign-extern tst-nodelete-opened \
+tst-nodelete2 tst-audit11 tst-audit12 tst-dlsym-error tst-noload \
+tst-latepthread tst-tls-manydynamic tst-nodelete-dlclose \
+-   tst-debug1 tst-main1 tst-absolute-sym tst-absolute-zero tst-big-note \
++   tst-debug1 tst-main1 \
+tst-unwind-ctor tst-unwind-main
+ #  reldep9
+ tests-internal += loadtest unload unload2 circleload1 \
+@@ -272,8 +272,7 @@ modules-names = testobj1 testobj2 testobj3 testobj4 
testobj5 testobj6 \
+   tst-audit12mod1 tst-audit12mod2 tst-audit12mod3 tst-auditmod12 \
+   tst-latepthreadmod $(tst-tls-many-dynamic-modules) \
+   tst-nodelete-dlclose-dso tst-nodelete-dlclose-plugin \
+-  tst-main1mod tst-libc_dlvsym-dso tst-absolute-sym-lib \
+-  tst-absolute-zero-lib tst-big-note-lib tst-unwind-ctor-lib
++  tst-main1mod tst-libc_dlvsym-dso tst-unwind-ctor-lib
+ # Most modules build with _ISOMAC defined, but those filtered out
+ # depend on internal headers.
+ modules-names-tests = $(filter-out ifuncmod% tst-libc_dlvsym-dso tst-tlsmod%,\
+@@ -1465,14 +1463,6 @@ tst-main1-no-pie = yes
+ LDLIBS-tst-main1 = $(libsupport)
+ tst-main1mod.so-no-z-defs = yes
+ 
+-LDLIBS-tst-absolute-sym-lib.so = tst-absolute-sym-lib.lds
+-$(objpfx)tst-absolute-sym-lib.so: $(LDLIBS-tst-absolute-sym-lib.so)
+-$(objpfx)tst-absolute-sym: $(objpfx)tst-absolute-sym-lib.so
+-
+-LDLIBS-tst-absolute-zero-lib.so = tst-absolute-zero-lib.lds
+-$(objpfx)tst-absolute-zero-lib.so: $(LDLIBS-tst-absolute-zero-lib.so)

[arch-commits] Commit in glibc/repos (9 files)

2019-06-15 Thread Bartłomiej Piotrowski via arch-commits
Date: Saturday, June 15, 2019 @ 18:59:36
  Author: bpiotrowski
Revision: 356159

archrelease: copy trunk to staging-x86_64

Added:
  glibc/repos/staging-x86_64/
  
glibc/repos/staging-x86_64/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch
(from rev 356158, 
glibc/trunk/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch)
  glibc/repos/staging-x86_64/PKGBUILD
(from rev 356158, glibc/trunk/PKGBUILD)
  glibc/repos/staging-x86_64/bz20338.patch
(from rev 356158, glibc/trunk/bz20338.patch)
  
glibc/repos/staging-x86_64/file-truncated-while-reading-soname-after-patchelf.patch
(from rev 356158, 
glibc/trunk/file-truncated-while-reading-soname-after-patchelf.patch)
  glibc/repos/staging-x86_64/glibc.install
(from rev 356158, glibc/trunk/glibc.install)
  glibc/repos/staging-x86_64/lib32-glibc.conf
(from rev 356158, glibc/trunk/lib32-glibc.conf)
  glibc/repos/staging-x86_64/locale-gen
(from rev 356158, glibc/trunk/locale-gen)
  glibc/repos/staging-x86_64/locale.gen.txt
(from rev 356158, glibc/trunk/locale.gen.txt)

-+
 0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch |  194 
 PKGBUILD|  224 
++
 bz20338.patch   |  114 +
 file-truncated-while-reading-soname-after-patchelf.patch|   85 +++
 glibc.install   |5 
 lib32-glibc.conf|1 
 locale-gen  |   42 +
 locale.gen.txt  |   23 +
 8 files changed, 688 insertions(+)

Copied: 
glibc/repos/staging-x86_64/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch
 (from rev 356158, 
glibc/trunk/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch)
===
--- 
staging-x86_64/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch  
(rev 0)
+++ 
staging-x86_64/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch  
2019-06-15 18:59:36 UTC (rev 356159)
@@ -0,0 +1,194 @@
+From 2cbf10ae2ea9e378ff91b8f5c4d8cb77ed05378e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Bart=C5=82omiej=20Piotrowski?= 
+Date: Fri, 10 Aug 2018-2019 14:12:40 +
+Subject: [PATCH] Revert "elf: Correct absolute (SHN_ABS) symbol run-time
+ calculation [BZ #19818]"
+
+This reverts commit e7feec374c635b6a29d65c39ae5e1855528fed39.
+---
+ elf/Makefile | 14 ++---
+ elf/dl-addr.c|  2 --
+ elf/tst-absolute-sym-lib.c   | 25 
+ elf/tst-absolute-sym-lib.lds | 19 --
+ elf/tst-absolute-sym.c   | 38 
+ sysdeps/generic/ldsodefs.h   |  3 +--
+ 6 files changed, 3 insertions(+), 98 deletions(-)
+ delete mode 100644 elf/tst-absolute-sym-lib.c
+ delete mode 100644 elf/tst-absolute-sym-lib.lds
+ delete mode 100644 elf/tst-absolute-sym.c
+
+diff --git a/elf/Makefile b/elf/Makefile
+index cd0771307f..5084ba4f6f 100644
+--- a/elf/Makefile
 b/elf/Makefile
+@@ -186,7 +186,7 @@ tests += restest1 preloadtest loadfail multiload origtest 
resolvfail \
+tst-tlsalign tst-tlsalign-extern tst-nodelete-opened \
+tst-nodelete2 tst-audit11 tst-audit12 tst-dlsym-error tst-noload \
+tst-latepthread tst-tls-manydynamic tst-nodelete-dlclose \
+-   tst-debug1 tst-main1 tst-absolute-sym tst-absolute-zero tst-big-note \
++   tst-debug1 tst-main1 \
+tst-unwind-ctor tst-unwind-main
+ #  reldep9
+ tests-internal += loadtest unload unload2 circleload1 \
+@@ -272,8 +272,7 @@ modules-names = testobj1 testobj2 testobj3 testobj4 
testobj5 testobj6 \
+   tst-audit12mod1 tst-audit12mod2 tst-audit12mod3 tst-auditmod12 \
+   tst-latepthreadmod $(tst-tls-many-dynamic-modules) \
+   tst-nodelete-dlclose-dso tst-nodelete-dlclose-plugin \
+-  tst-main1mod tst-libc_dlvsym-dso tst-absolute-sym-lib \
+-  tst-absolute-zero-lib tst-big-note-lib tst-unwind-ctor-lib
++  tst-main1mod tst-libc_dlvsym-dso tst-unwind-ctor-lib
+ # Most modules build with _ISOMAC defined, but those filtered out
+ # depend on internal headers.
+ modules-names-tests = $(filter-out ifuncmod% tst-libc_dlvsym-dso tst-tlsmod%,\
+@@ -1465,14 +1463,6 @@ tst-main1-no-pie = yes
+ LDLIBS-tst-main1 = $(libsupport)
+ tst-main1mod.so-no-z-defs = yes
+ 
+-LDLIBS-tst-absolute-sym-lib.so = tst-absolute-sym-lib.lds
+-$(objpfx)tst-absolute-sym-lib.so: $(LDLIBS-tst-absolute-sym-lib.so)
+-$(objpfx)tst-absolute-sym: $(objpfx)tst-absolute-sym-lib.so
+-
+-LDLIBS-tst-absolute-zero-lib.so = tst-absolute-zero-lib.lds
+-$(objpfx)tst-absolute-zero-lib.so: $(LDLIBS-tst-absolute-zero-lib.so)

[arch-commits] Commit in glibc/repos (9 files)

2019-05-23 Thread Bartłomiej Piotrowski via arch-commits
Date: Thursday, May 23, 2019 @ 11:04:13
  Author: bpiotrowski
Revision: 353910

archrelease: copy trunk to testing-x86_64

Added:
  glibc/repos/testing-x86_64/
  
glibc/repos/testing-x86_64/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch
(from rev 353909, 
glibc/trunk/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch)
  glibc/repos/testing-x86_64/PKGBUILD
(from rev 353909, glibc/trunk/PKGBUILD)
  glibc/repos/testing-x86_64/bz20338.patch
(from rev 353909, glibc/trunk/bz20338.patch)
  
glibc/repos/testing-x86_64/file-truncated-while-reading-soname-after-patchelf.patch
(from rev 353909, 
glibc/trunk/file-truncated-while-reading-soname-after-patchelf.patch)
  glibc/repos/testing-x86_64/glibc.install
(from rev 353909, glibc/trunk/glibc.install)
  glibc/repos/testing-x86_64/lib32-glibc.conf
(from rev 353909, glibc/trunk/lib32-glibc.conf)
  glibc/repos/testing-x86_64/locale-gen
(from rev 353909, glibc/trunk/locale-gen)
  glibc/repos/testing-x86_64/locale.gen.txt
(from rev 353909, glibc/trunk/locale.gen.txt)

-+
 0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch |  194 
 PKGBUILD|  224 
++
 bz20338.patch   |  114 +
 file-truncated-while-reading-soname-after-patchelf.patch|   85 +++
 glibc.install   |5 
 lib32-glibc.conf|1 
 locale-gen  |   42 +
 locale.gen.txt  |   23 +
 8 files changed, 688 insertions(+)

Copied: 
glibc/repos/testing-x86_64/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch
 (from rev 353909, 
glibc/trunk/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch)
===
--- 
testing-x86_64/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch  
(rev 0)
+++ 
testing-x86_64/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch  
2019-05-23 11:04:13 UTC (rev 353910)
@@ -0,0 +1,194 @@
+From 2cbf10ae2ea9e378ff91b8f5c4d8cb77ed05378e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Bart=C5=82omiej=20Piotrowski?= 
+Date: Fri, 10 Aug 2018-2019 14:12:40 +
+Subject: [PATCH] Revert "elf: Correct absolute (SHN_ABS) symbol run-time
+ calculation [BZ #19818]"
+
+This reverts commit e7feec374c635b6a29d65c39ae5e1855528fed39.
+---
+ elf/Makefile | 14 ++---
+ elf/dl-addr.c|  2 --
+ elf/tst-absolute-sym-lib.c   | 25 
+ elf/tst-absolute-sym-lib.lds | 19 --
+ elf/tst-absolute-sym.c   | 38 
+ sysdeps/generic/ldsodefs.h   |  3 +--
+ 6 files changed, 3 insertions(+), 98 deletions(-)
+ delete mode 100644 elf/tst-absolute-sym-lib.c
+ delete mode 100644 elf/tst-absolute-sym-lib.lds
+ delete mode 100644 elf/tst-absolute-sym.c
+
+diff --git a/elf/Makefile b/elf/Makefile
+index cd0771307f..5084ba4f6f 100644
+--- a/elf/Makefile
 b/elf/Makefile
+@@ -186,7 +186,7 @@ tests += restest1 preloadtest loadfail multiload origtest 
resolvfail \
+tst-tlsalign tst-tlsalign-extern tst-nodelete-opened \
+tst-nodelete2 tst-audit11 tst-audit12 tst-dlsym-error tst-noload \
+tst-latepthread tst-tls-manydynamic tst-nodelete-dlclose \
+-   tst-debug1 tst-main1 tst-absolute-sym tst-absolute-zero tst-big-note \
++   tst-debug1 tst-main1 \
+tst-unwind-ctor tst-unwind-main
+ #  reldep9
+ tests-internal += loadtest unload unload2 circleload1 \
+@@ -272,8 +272,7 @@ modules-names = testobj1 testobj2 testobj3 testobj4 
testobj5 testobj6 \
+   tst-audit12mod1 tst-audit12mod2 tst-audit12mod3 tst-auditmod12 \
+   tst-latepthreadmod $(tst-tls-many-dynamic-modules) \
+   tst-nodelete-dlclose-dso tst-nodelete-dlclose-plugin \
+-  tst-main1mod tst-libc_dlvsym-dso tst-absolute-sym-lib \
+-  tst-absolute-zero-lib tst-big-note-lib tst-unwind-ctor-lib
++  tst-main1mod tst-libc_dlvsym-dso tst-unwind-ctor-lib
+ # Most modules build with _ISOMAC defined, but those filtered out
+ # depend on internal headers.
+ modules-names-tests = $(filter-out ifuncmod% tst-libc_dlvsym-dso tst-tlsmod%,\
+@@ -1465,14 +1463,6 @@ tst-main1-no-pie = yes
+ LDLIBS-tst-main1 = $(libsupport)
+ tst-main1mod.so-no-z-defs = yes
+ 
+-LDLIBS-tst-absolute-sym-lib.so = tst-absolute-sym-lib.lds
+-$(objpfx)tst-absolute-sym-lib.so: $(LDLIBS-tst-absolute-sym-lib.so)
+-$(objpfx)tst-absolute-sym: $(objpfx)tst-absolute-sym-lib.so
+-
+-LDLIBS-tst-absolute-zero-lib.so = tst-absolute-zero-lib.lds
+-$(objpfx)tst-absolute-zero-lib.so: $(LDLIBS-tst-absolute-zero-lib.so)

[arch-commits] Commit in glibc/repos (9 files)

2019-04-11 Thread Sven-Hendrik Haase via arch-commits
Date: Thursday, April 11, 2019 @ 11:53:51
  Author: svenstaro
Revision: 350579

archrelease: copy trunk to testing-x86_64

Added:
  glibc/repos/testing-x86_64/
  
glibc/repos/testing-x86_64/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch
(from rev 350578, 
glibc/trunk/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch)
  glibc/repos/testing-x86_64/PKGBUILD
(from rev 350578, glibc/trunk/PKGBUILD)
  glibc/repos/testing-x86_64/bz20338.patch
(from rev 350578, glibc/trunk/bz20338.patch)
  
glibc/repos/testing-x86_64/file-truncated-while-reading-soname-after-patchelf.patch
(from rev 350578, 
glibc/trunk/file-truncated-while-reading-soname-after-patchelf.patch)
  glibc/repos/testing-x86_64/glibc.install
(from rev 350578, glibc/trunk/glibc.install)
  glibc/repos/testing-x86_64/lib32-glibc.conf
(from rev 350578, glibc/trunk/lib32-glibc.conf)
  glibc/repos/testing-x86_64/locale-gen
(from rev 350578, glibc/trunk/locale-gen)
  glibc/repos/testing-x86_64/locale.gen.txt
(from rev 350578, glibc/trunk/locale.gen.txt)

-+
 0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch |  195 
 PKGBUILD|  217 
++
 bz20338.patch   |  114 +
 file-truncated-while-reading-soname-after-patchelf.patch|   85 +++
 glibc.install   |5 
 lib32-glibc.conf|1 
 locale-gen  |   42 +
 locale.gen.txt  |   23 +
 8 files changed, 682 insertions(+)

Copied: 
glibc/repos/testing-x86_64/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch
 (from rev 350578, 
glibc/trunk/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch)
===
--- 
testing-x86_64/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch  
(rev 0)
+++ 
testing-x86_64/0001-Revert-elf-Correct-absolute-SHN_ABS-symbol-run-time-.patch  
2019-04-11 11:53:51 UTC (rev 350579)
@@ -0,0 +1,195 @@
+From 2cbf10ae2ea9e378ff91b8f5c4d8cb77ed05378e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Bart=C5=82omiej=20Piotrowski?= 
+Date: Fri, 10 Aug 2018 14:12:40 +
+Subject: [PATCH] Revert "elf: Correct absolute (SHN_ABS) symbol run-time
+ calculation [BZ #19818]"
+
+This reverts commit e7feec374c635b6a29d65c39ae5e1855528fed39.
+---
+ elf/Makefile | 14 ++---
+ elf/dl-addr.c|  2 --
+ elf/tst-absolute-sym-lib.c   | 25 
+ elf/tst-absolute-sym-lib.lds | 19 --
+ elf/tst-absolute-sym.c   | 38 
+ sysdeps/generic/ldsodefs.h   |  3 +--
+ 6 files changed, 3 insertions(+), 98 deletions(-)
+ delete mode 100644 elf/tst-absolute-sym-lib.c
+ delete mode 100644 elf/tst-absolute-sym-lib.lds
+ delete mode 100644 elf/tst-absolute-sym.c
+
+diff --git a/elf/Makefile b/elf/Makefile
+index cd0771307f..5084ba4f6f 100644
+--- a/elf/Makefile
 b/elf/Makefile
+@@ -186,7 +186,7 @@ tests += restest1 preloadtest loadfail multiload origtest 
resolvfail \
+tst-tlsalign tst-tlsalign-extern tst-nodelete-opened \
+tst-nodelete2 tst-audit11 tst-audit12 tst-dlsym-error tst-noload \
+tst-latepthread tst-tls-manydynamic tst-nodelete-dlclose \
+-   tst-debug1 tst-main1 tst-absolute-sym tst-absolute-zero tst-big-note
++   tst-debug1 tst-main1
+ #  reldep9
+ tests-internal += loadtest unload unload2 circleload1 \
+neededtest neededtest2 neededtest3 neededtest4 \
+@@ -272,9 +272,7 @@ modules-names = testobj1 testobj2 testobj3 testobj4 
testobj5 testobj6 \
+   tst-audit12mod1 tst-audit12mod2 tst-audit12mod3 tst-auditmod12 \
+   tst-latepthreadmod $(tst-tls-many-dynamic-modules) \
+   tst-nodelete-dlclose-dso tst-nodelete-dlclose-plugin \
+-  tst-main1mod tst-libc_dlvsym-dso tst-absolute-sym-lib \
+-  tst-absolute-zero-lib tst-big-note-lib
+-
++  tst-main1mod tst-libc_dlvsym-dso
+ ifeq (yes,$(have-mtls-dialect-gnu2))
+ tests += tst-gnu2-tls1
+ modules-names += tst-gnu2-tls1mod
+@@ -1465,14 +1463,6 @@ tst-main1-no-pie = yes
+ LDLIBS-tst-main1 = $(libsupport)
+ tst-main1mod.so-no-z-defs = yes
+ 
+-LDLIBS-tst-absolute-sym-lib.so = tst-absolute-sym-lib.lds
+-$(objpfx)tst-absolute-sym-lib.so: $(LDLIBS-tst-absolute-sym-lib.so)
+-$(objpfx)tst-absolute-sym: $(objpfx)tst-absolute-sym-lib.so
+-
+-LDLIBS-tst-absolute-zero-lib.so = tst-absolute-zero-lib.lds
+-$(objpfx)tst-absolute-zero-lib.so: $(LDLIBS-tst-absolute-zero-lib.so)
+-$(objpfx)tst-absolute-zero: $(objpfx)tst-absolute-zero-lib.so
+-
+ # Both the main program and the DSO for