index : bootstrap32 | |
Archlinux32 bootstrap scripts | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-02-10 17:56:03 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2018-02-10 17:56:03 +0100 |
commit | 8efb09ca7754c35d688eb717ce6fff0b8255094b (patch) | |
tree | e9c39f9869aee7b04f30e8d433ea8db1c0f2c9ab /i486-stage1/gcc/PKGBUILD | |
parent | e7587949835c4634eec179768187727e8088f2ee (diff) |
-rw-r--r-- | i486-stage1/gcc/PKGBUILD | 65 |
diff --git a/i486-stage1/gcc/PKGBUILD b/i486-stage1/gcc/PKGBUILD index 958d09a..379327f 100644 --- a/i486-stage1/gcc/PKGBUILD +++ b/i486-stage1/gcc/PKGBUILD @@ -6,30 +6,53 @@ # NOTE: libtool requires rebuilt with each new gcc version pkgname=(gcc gcc-libs lib32-gcc-libs) -pkgver=7.2.0 -_pkgver=${pkgver:0:1} +pkgver=7.3.0 +_majorver=${pkgver:0:1} _islver=0.18 -pkgrel=2 +pkgrel=1 pkgdesc='The GNU Compiler Collection' arch=(i486 x86_64) license=(GPL LGPL FDL custom) url='http://gcc.gnu.org' -makedepends=(binutils libmpc lib32-glibc) +makedepends=(binutils libmpc) checkdepends=(dejagnu inetutils) options=(!emptydirs) -_commit=bce1ab0478f96724828df51ccfd43197d917c572 -source=(https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz +#source=(https://sources.archlinux.org/other/gcc/gcc-${pkgver/+/-}.tar.xz{,.sig} +source=(https://ftp.gnu.org/gnu/gcc/gcc-$pkgver/gcc-$pkgver.tar.xz{,.sig} http://isl.gforge.inria.fr/isl-${_islver}.tar.bz2 c89 c99) -md5sums=('SKIP' - '11436d6b205e516635b666090b94ab32' - '3d333df77302ed89e06a4a8539943b7d' - 'da96f545b863e57c6ab2598c1ea9a740') - -_libdir=usr/lib/gcc/$CHOST/$pkgver +validpgpkeys=(F3691687D867B81B51CE07D9BBE43771487328A9 # bpiotrowski@archlinux.org + 13975A70E63C361C73AE69EF6EEB81F8981C74C7) # richard.guenther@gmail.com +sha256sums=('832ca6ae04636adbb430e865a1451adf6979ab44ca1c8374f61fba65645ce15c' + 'SKIP' + '6b8b0fd7f81d0a957beb3679c81bbb34ccc7568d5682844d8924424a0dadcb1b' + 'de48736f6e4153f03d0a5d38ceb6c6fdb7f054e8f47ddd6af0a3dbf14f27b931' + '2513c6d9984dd0a2058557bf00f06d8d5181734e41dcfe07be7ed86f2959622a') + +_svnrev=256757 +_svnurl=svn://gcc.gnu.org/svn/gcc/branches/gcc-${_majorver}-branch +_libdir=usr/lib/gcc/$CHOST/${pkgver%%+*} + +snapshot() { + svn export -r${_svnrev} ${_svnurl} gcc-r${_svnrev} + + local datestamp basever _pkgver + basever=$(< gcc-r${_svnrev}/gcc/BASE-VER) + datestamp=$(< gcc-r${_svnrev}/gcc/DATESTAMP) + _pkgver=${basever}-${datestamp} + + mv gcc-r${_svnrev} gcc-${_pkgver} + tar cf - gcc-${_pkgver} | xz > gcc-${_pkgver}.tar.xz + gpg -b gcc-${_pkgver}.tar.xz + scp gcc-${_pkgver}.tar.xz{,.sig} sources.archlinux.org:/srv/ftp/other/gcc/ + + echo + echo "pkgver=${_pkgver/-/+}" +} prepare() { - cd ${pkgname}-${pkgver} + ln -s gcc-${pkgver/+/-} gcc + cd gcc # link isl for in-tree build ln -s ../isl-${_islver} isl @@ -100,10 +123,6 @@ build() { check() { cd gcc-build - # increase stack size to prevent test failures - # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31827 - ulimit -s 32768 - # do not abort on error as some are "expected" make -k check || true "$srcdir/gcc/contrib/test_summary" @@ -293,15 +312,15 @@ package_gcc-ada() { ln -s gcc "$pkgdir/usr/bin/gnatgcc" # insist on dynamic linking, but keep static libraries because gnatmake complains - mv "$pkgdir"/${_libdir}/adalib/libgna{rl,t}-${_pkgver}.so "$pkgdir/usr/lib" - ln -s libgnarl-${_pkgver}.so "$pkgdir/usr/lib/libgnarl.so" - ln -s libgnat-${_pkgver}.so "$pkgdir/usr/lib/libgnat.so" + mv "$pkgdir"/${_libdir}/adalib/libgna{rl,t}-${_majorver}.so "$pkgdir/usr/lib" + ln -s libgnarl-${_majorver}.so "$pkgdir/usr/lib/libgnarl.so" + ln -s libgnat-${_majorver}.so "$pkgdir/usr/lib/libgnat.so" rm -f "$pkgdir"/${_libdir}/adalib/libgna{rl,t}.so install -d "$pkgdir/usr/lib32/" - mv "$pkgdir"/${_libdir}/32/adalib/libgna{rl,t}-${_pkgver}.so "$pkgdir/usr/lib32" - ln -s libgnarl-${_pkgver}.so "$pkgdir/usr/lib32/libgnarl.so" - ln -s libgnat-${_pkgver}.so "$pkgdir/usr/lib32/libgnat.so" + mv "$pkgdir"/${_libdir}/32/adalib/libgna{rl,t}-${_majorver}.so "$pkgdir/usr/lib32" + ln -s libgnarl-${_majorver}.so "$pkgdir/usr/lib32/libgnarl.so" + ln -s libgnat-${_majorver}.so "$pkgdir/usr/lib32/libgnat.so" rm -f "$pkgdir"/${_libdir}/32/adalib/libgna{rl,t}.so # Install Runtime Library Exception |