From c3abb0dccb33984d8132d507e0c330457cbe1898 Mon Sep 17 00:00:00 2001 From: David P Date: Wed, 14 Aug 2019 16:02:33 -0400 Subject: upgpkg: nonsystemd/filesystem 2019.05-2.par1.nonsystemd1 Signed-off-by: David P --- nonsystemd/filesystem/PKGBUILD | 37 ++-- nonsystemd/filesystem/issue | 2 +- nonsystemd/filesystem/os-release | 5 +- nonsystemd/filesystem/parabola.png | Bin 0 -> 19091 bytes nonsystemd/filesystem/parabola.svg | 231 +++++++++++++++++++++++++ ~megver83/gcc/PKGBUILD | 338 +++++++++++++++++++++++++++++++++++++ 6 files changed, 596 insertions(+), 17 deletions(-) create mode 100644 nonsystemd/filesystem/parabola.png create mode 100644 nonsystemd/filesystem/parabola.svg create mode 100644 ~megver83/gcc/PKGBUILD diff --git a/nonsystemd/filesystem/PKGBUILD b/nonsystemd/filesystem/PKGBUILD index 25b59295a..aa0e1b9be 100644 --- a/nonsystemd/filesystem/PKGBUILD +++ b/nonsystemd/filesystem/PKGBUILD @@ -3,11 +3,12 @@ # Contributor (Arch): Tom Gundersen pkgname=filesystem -pkgver=2018.8 -pkgrel=1.parabola1 +pkgver=2019.05 +pkgrel=2 +pkgrel+=.par1 pkgrel+=.nonsystemd1 pkgdesc='Base Parabola GNU/Linux-libre files' -arch=('x86_64' 'i686' 'armv7h') +arch=('x86_64' 'i686' 'armv7h' 'ppc64le') license=('GPL') url='https://www.parabola.nu' groups=('base') @@ -21,19 +22,19 @@ backup=('etc/crypttab' 'etc/fstab' 'etc/group' 'etc/gshadow' 'etc/host.conf' source=('crypttab' 'fstab' 'group' 'gshadow' 'host.conf' 'hosts' 'issue' 'ld.so.conf' 'locale.sh' 'motd' 'nsswitch.conf' 'os-release' 'passwd' 'profile' 'resolv.conf' 'securetty' 'shadow' 'shells' 'sysctl' - 'sysusers' 'tmpfiles') + 'sysusers' 'tmpfiles' 'parabola.svg' 'parabola.png') sha512sums=('5f268b557257a201c256663b35f510d7fede0093e44645f18dc2a447ece2112d28bd7a60816331b37b72931583eff50d9dc616b9f9e9ff6d8f982db8d5b0c008' 'b2ddf3db123f757e68a84926223b56a227c6e4fa99f1d06972246625b62f2a1b147f934e1bb4534d326127f8441a39afa6856f6ea2c7ecf6be53391bf0083370' '0ade9187a5437076ec7d0f786528b0c4212e4f0c67edb87d8fd71815b144ab2876adeca7d943899d440e26d09ff7f4b3862733dc12decab202048cf640dfd5a8' '2d93356e221aba569c47adf6c882d56fd53ae102e4bb17909a35dab505625860a66efe4dcdd0a33f5e85a6d3eabb4b7f9b9e027f1f157a991242d03ab7cbc85e' 'bc1e8c9be2d4c05992aa640a0862ed6d3822afc0d083d9779268a9a888edcd4527ae49c899f8aaa1878b7650187c9a484d488b159ae58a289a543c4a8cdccbca' '629ff56e5f4fd87de570fe5bc9af703efb9725743811541f21b6ada3c4a6e613c3a010029d7d73f4b706e33b3098337659a1ec5e556d11d952335f350ba108a8' - 'ad1d8521ad3ec1c50a6cca68543bb6c3acbe08832257fcfdfa04f1f8bfe8bc4ff91bde2971c7f5d36ee4f50e81c34ff586e28ee79d0a8d055a0b812001970fbc' + '794f6af7ea5b32cdbbda5637890cc1478ee009007e8e4576cd4a7afdfaf45011e81db53faf6094a3334430c5ad6accbbfa51d0232480d68a15027589c1877fee' '61cc6de0bdc2feab9f8103e8b47b62fd0493e902797b50d3f813ed405058d4d2682c41c120e3fa0e2a8cf7800929054414d1e06b59fcb280585369895392c4e5' 'e48b5f08563117b5fe80d4387a60dd874f3554bcc9e6307671bfc0b081aff398d1bbdc902f4a5cb04069d2f0ce5992758cb756dba33fe582124275295253fc03' 'cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e' '5706ecf2cdb02383c39e312117e48a34a78848d89c650456d162c986118790710df01b3371d4cbda089a04053d1b10a93f1502549573dd91705354230455fef0' - 'b8e9b15b7ba65a83c02b1017b9fb9b85486e222cfb5731e8cee350c46c1d67e2209831162465cb9bd191c62ab4aa716a4f38c6899876c5e6e709f784f6350fb4' + '0b0b41845a9a23a4e128bb73d50ad239ed0c55b5f6474cbf788cc1f3ff17277735f1cff2ca5806195041180f1c18e2ab1ccd668164e8447e83fa553f07b45a30' 'df24002d74d2d543be0f8b74b36def1eba7054efd8da1943b4422048ece6d41f3e40248c2169c5c1168ba64ede2dfbd6c21d6e70bbe1ba8c82137834327eecea' '56cdfbfd0d6d89ab7d1f098813b384740358b2880d7ed640e02ac91e2ca6f66957a24a825cc2303739ce06fdeaa4a86acdfd8796ce6728208ed516a18622ae82' '779049d55883fb7edf34ffd050e9d4d09252de529d776f507c1be19fd9688645d9100cf246fcd5b62ca1e1cf5408383ef02f09f3bc11203de33e5ad0ce17cda9' @@ -42,7 +43,9 @@ sha512sums=('5f268b557257a201c256663b35f510d7fede0093e44645f18dc2a447ece2112d28b 'c376b93b91dd181cf50b39a187255326aa1c76fb03972353620abb86ac2014631102c9296e11cc805c7409fb346bee827c4736cfb65fb9acf060fd5ca8957e02' 'c040d3b13b9cb6dea00e88f2d5428c80c4045eeab9b9c1cf47eb1c3bf6b1f613a9f9181cd4133a18a8e15c651de70389d8ecf0ec873259e8a74068da5a24898e' '4258736de8e9c0fef5e32526e1edb899513c43e6d7ad183021382f27e192d05021f6bc8ef3b4f7b33a4fae408fc2354273a2e44e68ef720db5c87d5836170667' - 'bdb116224a39b340a91edf99d8a43ee83e3e661d2c863dd7ea5a4e902982e331ecfa593bee67eb562161c24b45ccbd1c89c8511665881aa6876870a09d9a4794') + 'bdb116224a39b340a91edf99d8a43ee83e3e661d2c863dd7ea5a4e902982e331ecfa593bee67eb562161c24b45ccbd1c89c8511665881aa6876870a09d9a4794' + '29d6c3953a418f0e345b6e96fb0ad7c39ab2f8165fb0e0a9bc2ad0375c2c8dabc2626e55b8b1394dc3b05009497dc4e4495fea850f1ea97cf4e69656c74b25d2' + 'dd67ac882b02f715a9ad91363186f3a3f5a51e8459a3ea19000732bea23560b9275f6e0a9df1d205c512d0e1d954e37814278207bfc0ddd252c9af4e93a002b9') package() { cd "$pkgdir" @@ -73,7 +76,7 @@ package() { done touch etc/parabola-release ln -sv parabola-release etc/arch-release - install -m755 "$srcdir"/locale.sh etc/profile.d/locale.sh + install -m644 "$srcdir"/locale.sh etc/profile.d/locale.sh install -Dm644 "$srcdir"/os-release usr/lib/os-release # setup /var @@ -89,7 +92,7 @@ package() { ln -s ../run/lock var/lock # setup /usr hierarchy - for d in bin include lib share/misc src; do + for d in bin include lib share/{misc,pixmaps} src; do install -d -m755 usr/$d done for d in {1..8}; do @@ -102,6 +105,10 @@ package() { ln -s usr/lib lib64 ln -s lib usr/lib64 } + [[ $CARCH = 'powerpc64le' ]] && { + ln -s usr/lib lib64 + ln -s lib usr/lib64 + } # add bin symlinks ln -s usr/bin bin @@ -115,16 +122,16 @@ package() { ln -s ../man usr/local/share/man # setup sysctl - install -D -m644 "$srcdir"/sysctl usr/lib/sysctl.d/10-parabola.conf - ln -sv 10-parabola.conf usr/lib/sysctl.d/10-arch.conf + install -D -m644 "$srcdir"/sysctl usr/lib/sysctl.d/10-arch.conf # setup opensysusers - install -D -m644 "$srcdir"/sysusers usr/lib/sysusers.d/parabola.conf - ln -sv parabola.conf usr/lib/sysusers.d/arch.conf + install -D -m644 "$srcdir"/sysusers usr/lib/sysusers.d/arch.conf # setup opentmpfiles - install -D -m644 "$srcdir"/tmpfiles usr/lib/tmpfiles.d/parabola.conf - ln -sv parabola.conf usr/lib/tmpfiles.d/arch.conf + install -D -m644 "$srcdir"/tmpfiles usr/lib/tmpfiles.d/arch.conf + + # add logo + install -D -m644 "$srcdir"/parabola.{svg,png} usr/share/pixmaps } # vim:set ts=2 sw=2 et: diff --git a/nonsystemd/filesystem/issue b/nonsystemd/filesystem/issue index b001c55dd..8fc2fbb0b 100644 --- a/nonsystemd/filesystem/issue +++ b/nonsystemd/filesystem/issue @@ -1,2 +1,2 @@ -Parabola GNU/Linux-libre \r (\n) (\l) +Parabola GNU/Linux-libre \r (\l) diff --git a/nonsystemd/filesystem/os-release b/nonsystemd/filesystem/os-release index 9dfb39d50..138b58597 100644 --- a/nonsystemd/filesystem/os-release +++ b/nonsystemd/filesystem/os-release @@ -1,8 +1,11 @@ NAME="Parabola" PRETTY_NAME="Parabola GNU/Linux-libre" ID=parabola -ID_LIKE="arch archlinux" +ID_LIKE=arch +BUILD_ID=rolling ANSI_COLOR="1;35" HOME_URL="https://www.parabola.nu/" +DOCUMENTATION_URL="https://wiki.parabola.nu/" SUPPORT_URL="irc://chat.freenode.net#parabola" BUG_REPORT_URL="https://labs.parabola.nu/" +LOGO=parabola diff --git a/nonsystemd/filesystem/parabola.png b/nonsystemd/filesystem/parabola.png new file mode 100644 index 000000000..b17070d0b Binary files /dev/null and b/nonsystemd/filesystem/parabola.png differ diff --git a/nonsystemd/filesystem/parabola.svg b/nonsystemd/filesystem/parabola.svg new file mode 100644 index 000000000..da4aeed3d --- /dev/null +++ b/nonsystemd/filesystem/parabola.svg @@ -0,0 +1,231 @@ + + + + + + Parabola GNU/Linux-libre logo + + + + + image/svg+xml + + Parabola GNU/Linux-libre logo + 18-04-2013 + + + Jorge Araya Navarro <elcorreo@deshackra.com> + + + English + Parabola GNU/Linux-libre logo. + + + + Parabola GNU/Linux-libre + + + https://repo.parabolagnulinux.org/other/artwork/parabola_gnu+linux-libre_logo.svg + + + Márcio Alexandre Silva Delgado <coadde@parabola.nu> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/~megver83/gcc/PKGBUILD b/~megver83/gcc/PKGBUILD new file mode 100644 index 000000000..8da0f3cb3 --- /dev/null +++ b/~megver83/gcc/PKGBUILD @@ -0,0 +1,338 @@ +# $Id$ +# Maintainer: Bartłomiej Piotrowski +# Contributor: Allan McRae + +# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc +# NOTE: libtool requires rebuilt with each new gcc version + +# ALARM: Kevin Mihelich +# - removed ada packages +# - removed gnat (ada stuff) from gcc packaging +# - disabled make check, too much stress, kills plugs :( +# - specifid build host, disabled distcc +# - replaced bugurl with our GitHub issue page +# - patch to disable LDRD/STRD instructions on ARMv5 + +noautobuild=1 + +pkgname=(gcc gcc-libs gcc-fortran gcc-objc gcc-go) +pkgver=9.1.0 +_majorver=${pkgver:0:1} +_islver=0.21 +pkgrel=1 +pkgdesc='The GNU Compiler Collection' +arch=(x86_64 armv7h) +license=(GPL LGPL FDL custom) +url='https://gcc.gnu.org' +makedepends=(binutils libmpc doxygen python subversion) +checkdepends=(dejagnu inetutils) +options=(!emptydirs !distcc) +#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} +#source=(gcc::svn://gcc.gnu.org/svn/gcc/branches/gcc-${_majorver}-branch + http://isl.gforge.inria.fr/isl-${_islver}.tar.xz + c89 c99 + bz90397.patch + bz90949.patch + 0001-ARMv5-disable-LDRD-STRD.patch) +validpgpkeys=(F3691687D867B81B51CE07D9BBE43771487328A9 # bpiotrowski@archlinux.org + 86CFFCA918CF3AF47147588051E8B148A9999C34 # evangelos@foutrelis.com + 13975A70E63C361C73AE69EF6EEB81F8981C74C7 # richard.guenther@gmail.com + 33C235A34C46AA3FFB293709A328C3A2C3C45C06) # Jakub Jelinek +sha256sums=('79a66834e96a6050d8fe78db2c3b32fb285b230b855d0a66288235bc04b327a0' + 'SKIP' + '777058852a3db9500954361e294881214f6ecd4b594c00da5eee974cd6a54960' + 'de48736f6e4153f03d0a5d38ceb6c6fdb7f054e8f47ddd6af0a3dbf14f27b931' + '2513c6d9984dd0a2058557bf00f06d8d5181734e41dcfe07be7ed86f2959622a' + 'cc20d05bcc6cb35bf0944b391f0b0380af375f2a8a03ce1cd67835884bc41fac' + 'c860819e730faf1621e1286ebe3a0179df6e25182b81a9ca0a3db02633982a14' + '31e24baa9eee826d7d77dbcf8f1a6a44c92f771e52d21677acb8d76fac7ae204') + +_svnrev=264010 +_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 + rm -rf gcc-${_pkgver} + gpg -b gcc-${_pkgver}.tar.xz + scp gcc-${_pkgver}.tar.xz{,.sig} sources.archlinux.org:/srv/ftp/other/gcc/ + + echo + echo "pkgver=${_pkgver/-/+}" +} + +prepare() { + [[ ! -d gcc ]] && ln -s gcc-${pkgver/+/-} gcc + cd gcc + + # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90397 + patch -p0 -i "$srcdir/bz90397.patch" + + # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90949 + patch -p0 -i "$srcdir/bz90949.patch" + + # link isl for in-tree build + ln -s ../isl-${_islver} isl + + # Do not run fixincludes + sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in + + # Arch Linux installs x86_64 libraries /lib + [[ $CARCH == "x86_64" ]] && sed -i '/m64=/s/lib64/lib/' gcc/config/i386/t-linux64 + + # Arch Linux ARM installs aarch64 libraries /lib + [[ $CARCH == "aarch64" ]] && sed -i '/lp64=/s/lib64/lib/' gcc/config/aarch64/t-aarch64-linux + + # hack! - some configure tests for header files using "$CPP $CPPFLAGS" + sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure + + # ALARM: Specify build host types, triplet patch + [[ $CARCH == "arm" ]] && CONFIGFLAG="--host=armv5tel-unknown-linux-gnueabi --build=armv5tel-unknown-linux-gnueabi --with-arch=armv5te --with-float=soft" + [[ $CARCH == "armv6h" ]] && CONFIGFLAG="--host=armv6l-unknown-linux-gnueabihf --build=armv6l-unknown-linux-gnueabihf --with-arch=armv6 --with-float=hard --with-fpu=vfp" + [[ $CARCH == "armv7h" ]] && CONFIGFLAG="--host=armv7l-unknown-linux-gnueabihf --build=armv7l-unknown-linux-gnueabihf --with-arch=armv7-a --with-float=hard --with-fpu=vfpv3-d16" + [[ $CARCH == "aarch64" ]] && CONFIGFLAG="--host=aarch64-unknown-linux-gnu --build=aarch64-unknown-linux-gnu --with-arch=armv8-a --enable-fix-cortex-a53-835769 --enable-fix-cortex-a53-843419" + + mkdir -p "$srcdir/gcc-build" + + # Disable LDRD/STRD on ARMv5 (64-bit alignment issues) + if patch --dry-run -sp1 -i ../0001-ARMv5-disable-LDRD-STRD.patch + then + patch -p1 -i ../0001-ARMv5-disable-LDRD-STRD.patch + fi +} + +build() { + cd gcc-build + + # using -pipe causes spurious test-suite failures + # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48565 + CFLAGS=${CFLAGS/-pipe/} + CXXFLAGS=${CXXFLAGS/-pipe/} + + "$srcdir/gcc/configure" --prefix=/usr \ + --libdir=/usr/lib \ + --libexecdir=/usr/lib \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --with-bugurl=https://github.com/archlinuxarm/PKGBUILDs/issues \ + --enable-languages=c,c++,fortran,go,lto,objc,obj-c++ \ + --enable-shared \ + --enable-threads=posix \ + --with-system-zlib \ + --with-isl \ + --enable-__cxa_atexit \ + --disable-libunwind-exceptions \ + --enable-clocale=gnu \ + --disable-libstdcxx-pch \ + --disable-libssp \ + --enable-gnu-unique-object \ + --enable-linker-build-id \ + --enable-lto \ + --enable-plugin \ + --enable-install-libiberty \ + --with-linker-hash-style=gnu \ + --enable-gnu-indirect-function \ + --disable-multilib \ + --disable-werror \ + --enable-checking=release \ + --enable-default-pie \ + --enable-default-ssp \ + $CONFIGFLAG + + make + + # make documentation + make -C $CHOST/libstdc++-v3/doc doc-man-doxygen +} + +check() { + cd gcc-build + + # do not abort on error as some are "expected" + make -k check || true + "$srcdir/gcc/contrib/test_summary" +} + +package_gcc-libs() { + pkgdesc='Runtime libraries shipped by GCC' + groups=(base) + depends=('glibc>=2.27') + options+=(!strip) + provides=(libgo.so libgfortran.so libubsan.so libasan.so + liblsan.so) + if [[ $CARCH == "aarch64" ]]; then + provides+=(libtsan.so) + fi + + cd gcc-build + make -C $CHOST/libgcc DESTDIR="$pkgdir" install-shared + rm -f "$pkgdir/$_libdir/libgcc_eh.a" + + for lib in libatomic \ + libgfortran \ + libgo \ + libgomp \ + libitm \ + libquadmath \ + libsanitizer/{a,l,ub}san \ + libstdc++-v3/src \ + libvtv; do + make -C $CHOST/$lib DESTDIR="$pkgdir" install-toolexeclibLTLIBRARIES + done + + if [[ $CARCH == "x86_64" || $CARCH == "aarch64" ]]; then + make -C $CHOST/libsanitizer/tsan DESTDIR="$pkgdir" install-toolexeclibLTLIBRARIES + fi + + make -C $CHOST/libobjc DESTDIR="$pkgdir" install-libs + make -C $CHOST/libstdc++-v3/po DESTDIR="$pkgdir" install + + for lib in libgomp \ + libitm \ + libquadmath; do + make -C $CHOST/$lib DESTDIR="$pkgdir" install-info + done + + # Install Runtime Library Exception + install -Dm644 "$srcdir/gcc/COPYING.RUNTIME" \ + "$pkgdir/usr/share/licenses/gcc-libs/RUNTIME.LIBRARY.EXCEPTION" +} + +package_gcc() { + pkgdesc="The GNU Compiler Collection - C and C++ frontends" + depends=("gcc-libs=$pkgver-$pkgrel" 'binutils>=2.28' libmpc) + groups=('base-devel') + options+=(staticlibs) + + cd gcc-build + + make -C gcc DESTDIR="$pkgdir" install-driver install-cpp install-gcc-ar \ + c++.install-common install-headers install-plugin install-lto-wrapper + + install -m755 -t "$pkgdir/usr/bin/" gcc/gcov{,-tool} + install -m755 -t "$pkgdir/${_libdir}/" gcc/{cc1,cc1plus,collect2,lto1} + + make -C $CHOST/libgcc DESTDIR="$pkgdir" install + rm -f "$pkgdir"/usr/lib/libgcc_s.so* + + make -C $CHOST/libstdc++-v3/src DESTDIR="$pkgdir" install + make -C $CHOST/libstdc++-v3/include DESTDIR="$pkgdir" install + make -C $CHOST/libstdc++-v3/libsupc++ DESTDIR="$pkgdir" install + make -C $CHOST/libstdc++-v3/python DESTDIR="$pkgdir" install + + make DESTDIR="$pkgdir" install-libcc1 + install -d "$pkgdir/usr/share/gdb/auto-load/usr/lib" + mv "$pkgdir"/usr/lib/libstdc++.so.6.*-gdb.py \ + "$pkgdir/usr/share/gdb/auto-load/usr/lib/" + rm "$pkgdir"/usr/lib/libstdc++.so* + + make DESTDIR="$pkgdir" install-fixincludes + make -C gcc DESTDIR="$pkgdir" install-mkheaders + + make -C lto-plugin DESTDIR="$pkgdir" install + install -dm755 "$pkgdir"/usr/lib/bfd-plugins/ + ln -s /${_libdir}/liblto_plugin.so \ + "$pkgdir/usr/lib/bfd-plugins/" + + make -C $CHOST/libgomp DESTDIR="$pkgdir" install-nodist_{libsubinclude,toolexeclib}HEADERS + make -C $CHOST/libitm DESTDIR="$pkgdir" install-nodist_toolexeclibHEADERS + make -C $CHOST/libquadmath DESTDIR="$pkgdir" install-nodist_libsubincludeHEADERS + make -C $CHOST/libsanitizer DESTDIR="$pkgdir" install-nodist_{saninclude,toolexeclib}HEADERS + make -C $CHOST/libsanitizer/asan DESTDIR="$pkgdir" install-nodist_toolexeclibHEADERS + if [[ $CARCH == "aarch64" ]]; then + make -C $CHOST/libsanitizer/tsan DESTDIR="$pkgdir" install-nodist_toolexeclibHEADERS + fi + make -C $CHOST/libsanitizer/lsan DESTDIR="$pkgdir" install-nodist_toolexeclibHEADERS + + make -C libiberty DESTDIR="$pkgdir" install + install -m644 libiberty/pic/libiberty.a "$pkgdir/usr/lib" + + make -C gcc DESTDIR="$pkgdir" install-man install-info + rm "$pkgdir"/usr/share/man/man1/{gccgo,gfortran}.1 + rm "$pkgdir"/usr/share/info/{gccgo,gfortran}.info + + make -C libcpp DESTDIR="$pkgdir" install + make -C gcc DESTDIR="$pkgdir" install-po + + # many packages expect this symlink + ln -s gcc "$pkgdir"/usr/bin/cc + + # POSIX conformance launcher scripts for c89 and c99 + install -Dm755 "$srcdir/c89" "$pkgdir/usr/bin/c89" + install -Dm755 "$srcdir/c99" "$pkgdir/usr/bin/c99" + + # install the libstdc++ man pages + make -C $CHOST/libstdc++-v3/doc DESTDIR="$pkgdir" doc-install-man + + # byte-compile python libraries + python -m compileall "$pkgdir/usr/share/gcc-${pkgver%%+*}/" + python -O -m compileall "$pkgdir/usr/share/gcc-${pkgver%%+*}/" + + # Install Runtime Library Exception + install -d "$pkgdir/usr/share/licenses/$pkgname/" + ln -s /usr/share/licenses/gcc-libs/RUNTIME.LIBRARY.EXCEPTION \ + "$pkgdir/usr/share/licenses/$pkgname/" +} + +package_gcc-fortran() { + pkgdesc='Fortran front-end for GCC' + depends=("gcc=$pkgver-$pkgrel") + + cd gcc-build + make -C $CHOST/libgfortran DESTDIR="$pkgdir" install-cafexeclibLTLIBRARIES \ + install-{toolexeclibDATA,nodist_fincludeHEADERS} + make -C $CHOST/libgomp DESTDIR="$pkgdir" install-nodist_fincludeHEADERS + make -C gcc DESTDIR="$pkgdir" fortran.install-{common,man,info} + install -Dm755 gcc/f951 "$pkgdir/${_libdir}/f951" + + ln -s gfortran "$pkgdir/usr/bin/f95" + + # Install Runtime Library Exception + install -d "$pkgdir/usr/share/licenses/$pkgname/" + ln -s /usr/share/licenses/gcc-libs/RUNTIME.LIBRARY.EXCEPTION \ + "$pkgdir/usr/share/licenses/$pkgname/" +} + +package_gcc-objc() { + pkgdesc='Objective-C front-end for GCC' + depends=("gcc=$pkgver-$pkgrel") + + cd gcc-build + make DESTDIR="$pkgdir" -C $CHOST/libobjc install-headers + install -dm755 "$pkgdir/${_libdir}" + install -m755 gcc/cc1obj{,plus} "$pkgdir/${_libdir}/" + + # Install Runtime Library Exception + install -d "$pkgdir/usr/share/licenses/$pkgname/" + ln -s /usr/share/licenses/gcc-libs/RUNTIME.LIBRARY.EXCEPTION \ + "$pkgdir/usr/share/licenses/$pkgname/" +} + +package_gcc-go() { + pkgdesc='Go front-end for GCC' + depends=("gcc=$pkgver-$pkgrel") + provides=("go=1.12.2") + conflicts=(go) + + cd gcc-build + make -C $CHOST/libgo DESTDIR="$pkgdir" install-exec-am + make DESTDIR="$pkgdir" install-gotools + make -C gcc DESTDIR="$pkgdir" go.install-{common,man,info} + + rm -f "$pkgdir"/usr/lib/libgo.so* + install -Dm755 gcc/go1 "$pkgdir/${_libdir}/go1" + + # Install Runtime Library Exception + install -d "$pkgdir/usr/share/licenses/$pkgname/" + ln -s /usr/share/licenses/gcc-libs/RUNTIME.LIBRARY.EXCEPTION \ + "$pkgdir/usr/share/licenses/$pkgname/" +} -- cgit v1.2.3