[arch-commits] Commit in riscv64-linux-gnu-gcc/repos/community-x86_64 (2 files)

Filipe Laíns ffy00 at archlinux.org
Tue Jun 22 20:00:02 UTC 2021


    Date: Tuesday, June 22, 2021 @ 20:00:01
  Author: ffy00
Revision: 966950

archrelease: copy trunk to community-x86_64

Added:
  riscv64-linux-gnu-gcc/repos/community-x86_64/PKGBUILD
    (from rev 966949, riscv64-linux-gnu-gcc/trunk/PKGBUILD)
Deleted:
  riscv64-linux-gnu-gcc/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  221 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 111 insertions(+), 110 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-22 19:59:57 UTC (rev 966949)
+++ PKGBUILD	2021-06-22 20:00:01 UTC (rev 966950)
@@ -1,110 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-# Contributor: Alexander F. Rødseth <xyproto at archlinux.org>
-# Contributor: Emil Renner Berthing <aur at esmil.dk>
-
-_target=riscv64-linux-gnu
-pkgname=$_target-gcc
-pkgver=10.2.0
-_islver=0.22
-pkgrel=1
-pkgdesc='Cross compiler for 32-bit and 64-bit RISC-V'
-arch=('x86_64')
-url='https://gcc.gnu.org/'
-license=('GPL' 'LGPL' 'FDL')
-groups=('risc-v')
-depends=("$_target-binutils" "$_target-glibc" 'libmpc')
-options=('!emptydirs' '!strip')
-source=("https://gcc.gnu.org/pub/gcc/releases/gcc-$pkgver/gcc-$pkgver.tar.xz"
-        "http://isl.gforge.inria.fr/isl-$_islver.tar.xz")
-sha512sums=('42ae38928bd2e8183af445da34220964eb690b675b1892bbeb7cd5bb62be499011ec9a93397dba5e2fb681afadfc6f2767d03b9035b44ba9be807187ae6dc65e'
-            '7c3c9502ea07e4d47a823841837c3aa0b9d7ba0fe58deaf180734e44c18e53735ec783645da0bdc56b617c9e639b226cc03b40a947f852e1e787166a64f59424')
-
-if [[ -n "$_snapshot" ]]; then
-  _basedir=gcc-$_snapshot
-else
-  _basedir=gcc-$pkgver
-fi
-
-prepare() {
-  cd $_basedir
-
-  # link isl for in-tree builds
-  ln -s ../isl-$_islver isl
-
-  echo $pkgver > gcc/BASE-VER
-
-  # Do not run fixincludes
-  sed -i 's@\./fixinc\.sh at -c true@' gcc/Makefile.in
-
-  # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
-  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" \
-    "$srcdir/$_basedir/"{libiberty,gcc}/configure
-
-  rm -rf "$srcdir/gcc-build"
-  mkdir "$srcdir/gcc-build"
-}
-
-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/$_basedir/configure" \
-      --prefix=/usr \
-      --program-prefix=$_target- \
-      --with-local-prefix=/usr/$_target \
-      --with-sysroot=/usr/$_target \
-      --with-build-sysroot=/usr/$_target \
-      --libdir=/usr/lib \
-      --libexecdir=/usr/lib \
-      --target=$_target \
-      --host=$CHOST \
-      --build=$CHOST \
-      --with-system-zlib \
-      --with-isl \
-      --with-linker-hash-style=gnu \
-      --disable-nls \
-      --disable-libunwind-exceptions \
-      --disable-libstdcxx-pch \
-      --disable-libssp \
-      --disable-multilib \
-      --disable-werror \
-      --enable-languages=c,c++ \
-      --enable-shared \
-      --enable-threads=posix \
-      --enable-__cxa_atexit \
-      --enable-clocale=gnu \
-      --enable-gnu-unique-object \
-      --enable-linker-build-id \
-      --enable-lto \
-      --enable-plugin \
-      --enable-install-libiberty \
-      --enable-gnu-indirect-function \
-      --enable-checking=release
-  make
-}
-
-package() {
-  make -C gcc-build DESTDIR="$pkgdir" \
-    install-gcc install-target-libgcc install-target-libstdc++-v3
-
-  # Strip target binaries
-  find "$pkgdir/usr/lib/gcc/$_target/" "$pkgdir/usr/$_target/lib" -type f \
-    -and \( -name \*.a -or -name \*.o \) -exec $_target-objcopy \
-    -R .comment -R .note -R .debug_info -R .debug_aranges -R .debug_pubnames \
-    -R .debug_pubtypes -R .debug_abbrev -R .debug_line -R .debug_str \
-    -R .debug_ranges -R .debug_loc '{}' \;
-
-  # Strip host binaries
-  find "$pkgdir/usr/bin/" "$pkgdir/usr/lib/gcc/$_target/" -type f \
-    -and \( -executable \) -exec strip '{}' \;
-
-  # Remove files that conflict with host gcc package
-  rm -r "$pkgdir/usr/share/"{man/man7,info,"gcc-$pkgver"}
-}
-
-# vim: ts=2 sw=2 et:

Copied: riscv64-linux-gnu-gcc/repos/community-x86_64/PKGBUILD (from rev 966949, riscv64-linux-gnu-gcc/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-06-22 20:00:01 UTC (rev 966950)
@@ -0,0 +1,111 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+# Contributor: Alexander F. Rødseth <xyproto at archlinux.org>
+# Contributor: Emil Renner Berthing <aur at esmil.dk>
+
+_target=riscv64-linux-gnu
+pkgname=$_target-gcc
+pkgver=11.1.0
+_islver=0.22
+pkgrel=1
+pkgdesc='Cross compiler for 32-bit and 64-bit RISC-V'
+arch=('x86_64')
+url='https://gcc.gnu.org/'
+license=('GPL' 'LGPL' 'FDL')
+groups=('risc-v')
+depends=("$_target-binutils" "$_target-glibc" 'libmpc')
+options=('!emptydirs' '!strip')
+source=("https://gcc.gnu.org/pub/gcc/releases/gcc-$pkgver/gcc-$pkgver.tar.xz"
+        "http://isl.gforge.inria.fr/isl-$_islver.tar.xz")
+sha512sums=('fd6bba0f67ff48069d03073d1a9b5e896383b1cfc9dde008e868e60a9ec5014a837d56af0ecbf467b3fb9b37ec74a676e819a18b44393a0a3c4280175b5d7ad8'
+            '7c3c9502ea07e4d47a823841837c3aa0b9d7ba0fe58deaf180734e44c18e53735ec783645da0bdc56b617c9e639b226cc03b40a947f852e1e787166a64f59424')
+
+if [[ -n "$_snapshot" ]]; then
+  _basedir=gcc-$_snapshot
+else
+  _basedir=gcc-$pkgver
+fi
+
+prepare() {
+  cd $_basedir
+
+  # link isl for in-tree builds
+  ln -s ../isl-$_islver isl
+
+  echo $pkgver > gcc/BASE-VER
+
+  # Do not run fixincludes
+  sed -i 's@\./fixinc\.sh at -c true@' gcc/Makefile.in
+
+  # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
+  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" \
+    "$srcdir/$_basedir/"{libiberty,gcc}/configure
+
+  rm -rf "$srcdir/gcc-build"
+  mkdir "$srcdir/gcc-build"
+}
+
+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/$_basedir/configure" \
+      --prefix=/usr \
+      --program-prefix=$_target- \
+      --with-local-prefix=/usr/$_target \
+      --with-sysroot=/usr/$_target \
+      --with-build-sysroot=/usr/$_target \
+      --libdir=/usr/lib \
+      --libexecdir=/usr/lib \
+      --target=$_target \
+      --host=$CHOST \
+      --build=$CHOST \
+      --with-system-zlib \
+      --with-isl \
+      --with-linker-hash-style=gnu \
+      --disable-nls \
+      --disable-libunwind-exceptions \
+      --disable-libstdcxx-pch \
+      --disable-libssp \
+      --disable-multilib \
+      --disable-werror \
+      --enable-languages=c,c++ \
+      --enable-shared \
+      --enable-threads=posix \
+      --enable-__cxa_atexit \
+      --enable-clocale=gnu \
+      --enable-gnu-unique-object \
+      --enable-linker-build-id \
+      --enable-lto \
+      --enable-plugin \
+      --enable-install-libiberty \
+      --enable-gnu-indirect-function \
+      --enable-default-pie \
+      --enable-checking=release
+  make
+}
+
+package() {
+  make -C gcc-build DESTDIR="$pkgdir" \
+    install-gcc install-target-libgcc install-target-libstdc++-v3
+
+  # Strip target binaries
+  find "$pkgdir/usr/lib/gcc/$_target/" "$pkgdir/usr/$_target/lib" -type f \
+    -and \( -name \*.a -or -name \*.o \) -exec $_target-objcopy \
+    -R .comment -R .note -R .debug_info -R .debug_aranges -R .debug_pubnames \
+    -R .debug_pubtypes -R .debug_abbrev -R .debug_line -R .debug_str \
+    -R .debug_ranges -R .debug_loc '{}' \;
+
+  # Strip host binaries
+  find "$pkgdir/usr/bin/" "$pkgdir/usr/lib/gcc/$_target/" -type f \
+    -and \( -executable \) -exec strip '{}' \;
+
+  # Remove files that conflict with host gcc package
+  rm -r "$pkgdir/usr/share/"{man/man7,info,"gcc-$pkgver"}
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list