[arch-commits] Commit in libstdc++5/repos (5 files)
Christian Hesse
eworm at archlinux.org
Thu Sep 13 23:07:50 UTC 2018
Date: Thursday, September 13, 2018 @ 23:07:50
Author: eworm
Revision: 334518
archrelease: copy trunk to testing-x86_64
Added:
libstdc++5/repos/testing-x86_64/
libstdc++5/repos/testing-x86_64/PKGBUILD
(from rev 334517, libstdc++5/trunk/PKGBUILD)
libstdc++5/repos/testing-x86_64/gcc-3.4.3-no_multilib_amd64.patch
(from rev 334517, libstdc++5/trunk/gcc-3.4.3-no_multilib_amd64.patch)
libstdc++5/repos/testing-x86_64/gcc-3.4.6-ucontext.patch
(from rev 334517, libstdc++5/trunk/gcc-3.4.6-ucontext.patch)
libstdc++5/repos/testing-x86_64/siginfo.patch
(from rev 334517, libstdc++5/trunk/siginfo.patch)
-----------------------------------+
PKGBUILD | 60 ++++++++++++++++++++++++++++++++++++
gcc-3.4.3-no_multilib_amd64.patch | 11 ++++++
gcc-3.4.6-ucontext.patch | 21 ++++++++++++
siginfo.patch | 14 ++++++++
4 files changed, 106 insertions(+)
Copied: libstdc++5/repos/testing-x86_64/PKGBUILD (from rev 334517, libstdc++5/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2018-09-13 23:07:50 UTC (rev 334518)
@@ -0,0 +1,60 @@
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgname=libstdc++5
+pkgver=3.3.6
+pkgrel=6
+pkgdesc="GNU Standard C++ library version 3"
+arch=('x86_64')
+url="http://gcc.gnu.org"
+license=('GPL' 'LGPL')
+depends=('gcc-libs')
+makedepends=('binutils' 'gcc')
+options=('!makeflags')
+source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-{core,g++}-${pkgver}.tar.bz2
+ gcc-3.4.3-no_multilib_amd64.patch
+ gcc-3.4.6-ucontext.patch
+ siginfo.patch)
+md5sums=('18c52e6fb8966b7700665dca289d077f'
+ '6b3d00b8d079805be1b895f7f6ce47a0'
+ '8504bb22dae9d49e8b6d70d7e6910f1b'
+ '982ec78eed2887657189aefbe0c642d0'
+ 'bf36b281a9fc81f624f31f2623a3ad0e')
+
+prepare() {
+ cd gcc-$pkgver
+
+ patch -Np1 -i $srcdir/gcc-3.4.3-no_multilib_amd64.patch
+ patch -Np1 -i $srcdir/gcc-3.4.6-ucontext.patch
+
+ # fix build issue with recent gcc
+ sed -i "s#O_CREAT#O_CREAT, 0666#" gcc/collect2.c
+
+ # No fixincludes
+ sed -i -e 's@\./fixinc\.sh at -c true@' gcc/Makefile.in
+
+ patch -Np0 -i ../siginfo.patch
+
+ mkdir ../gcc-build
+}
+
+build(){
+ export CFLAGS="-march=${CARCH/_/-} -O2"
+ export CXXFLAGS="-march=${CARCH/_/-} -O2"
+ unset CPPFLAGS
+
+ cd gcc-build
+ CPP=/usr/bin/cpp ../gcc-${pkgver}/configure --prefix=/usr --enable-shared \
+ --enable-languages=c++ --enable-threads=posix --enable-__cxa_atexit \
+ --disable-multilib --libdir=/usr/lib
+ make all-target-libstdc++-v3 BOOT_CFLAGS="${CFLAGS}" STAGE1_CFLAGS="-O"
+}
+
+package() {
+ cd ${srcdir}/gcc-build
+ make DESTDIR=${pkgdir} install-target-libstdc++-v3
+
+ # Remove includefiles and libs provided by gcc
+ rm -rf ${pkgdir}/usr/{include,share/locale}
+ rm -f ${pkgdir}/usr/lib/*.a
+ rm -f ${pkgdir}/usr/lib/libstdc++.so
+}
Copied: libstdc++5/repos/testing-x86_64/gcc-3.4.3-no_multilib_amd64.patch (from rev 334517, libstdc++5/trunk/gcc-3.4.3-no_multilib_amd64.patch)
===================================================================
--- testing-x86_64/gcc-3.4.3-no_multilib_amd64.patch (rev 0)
+++ testing-x86_64/gcc-3.4.3-no_multilib_amd64.patch 2018-09-13 23:07:50 UTC (rev 334518)
@@ -0,0 +1,11 @@
+--- gcc-3.4.3/gcc/config/i386/t-linux64
++++ gcc-3.4.3/gcc/config/i386/t-linux64
+@@ -6,7 +6,7 @@
+
+ MULTILIB_OPTIONS = m64/m32
+ MULTILIB_DIRNAMES = 64 32
+-MULTILIB_OSDIRNAMES = ../lib64 ../lib
++MULTILIB_OSDIRNAMES = . ../lib
+
+ LIBGCC = stmp-multilib
+ INSTALL_LIBGCC = install-multilib
Copied: libstdc++5/repos/testing-x86_64/gcc-3.4.6-ucontext.patch (from rev 334517, libstdc++5/trunk/gcc-3.4.6-ucontext.patch)
===================================================================
--- testing-x86_64/gcc-3.4.6-ucontext.patch (rev 0)
+++ testing-x86_64/gcc-3.4.6-ucontext.patch 2018-09-13 23:07:50 UTC (rev 334518)
@@ -0,0 +1,21 @@
+--- gcc-3.4.6/gcc/config/i386/linux64.h
++++ gcc-3.4.6/gcc/config/i386/linux64.h
+@@ -90,7 +90,7 @@
+ if (*(unsigned char *)(pc_+0) == 0x48 \
+ && *(unsigned long *)(pc_+1) == 0x050f0000000fc0c7) \
+ { \
+- struct ucontext *uc_ = (CONTEXT)->cfa; \
++ ucontext_t *uc_ = (CONTEXT)->cfa; \
+ sc_ = (struct sigcontext *) &uc_->uc_mcontext; \
+ } \
+ else \
+@@ -160,7 +160,7 @@
+ struct siginfo *pinfo; \
+ void *puc; \
+ struct siginfo info; \
+- struct ucontext uc; \
++ ucontext_t uc; \
+ } *rt_ = (CONTEXT)->cfa; \
+ sc_ = (struct sigcontext *) &rt_->uc.uc_mcontext; \
+ } \
+
Copied: libstdc++5/repos/testing-x86_64/siginfo.patch (from rev 334517, libstdc++5/trunk/siginfo.patch)
===================================================================
--- testing-x86_64/siginfo.patch (rev 0)
+++ testing-x86_64/siginfo.patch 2018-09-13 23:07:50 UTC (rev 334518)
@@ -0,0 +1,14 @@
+--- gcc/config/i386/linux.h.orig 2014-04-28 10:00:16.556121683 +0000
++++ gcc/config/i386/linux.h 2014-04-28 10:00:43.105959247 +0000
+@@ -257,9 +257,9 @@
+ { \
+ struct rt_sigframe { \
+ int sig; \
+- struct siginfo *pinfo; \
++ siginfo_t *pinfo; \
+ void *puc; \
+- struct siginfo info; \
++ siginfo_t info; \
+ struct ucontext uc; \
+ } *rt_ = (CONTEXT)->cfa; \
+ sc_ = (struct sigcontext *) &rt_->uc.uc_mcontext; \
More information about the arch-commits
mailing list