[arch-commits] Commit in or1k-elf-gcc/repos/community-x86_64 (4 files)

Filipe Laíns ffy00 at archlinux.org
Sat Mar 28 14:53:44 UTC 2020


    Date: Saturday, March 28, 2020 @ 14:53:43
  Author: ffy00
Revision: 605165

archrelease: copy trunk to community-x86_64

Added:
  or1k-elf-gcc/repos/community-x86_64/PKGBUILD
    (from rev 605164, or1k-elf-gcc/trunk/PKGBUILD)
  or1k-elf-gcc/repos/community-x86_64/PKGBUILD.bootstrap
    (from rev 605164, or1k-elf-gcc/trunk/PKGBUILD.bootstrap)
Deleted:
  or1k-elf-gcc/repos/community-x86_64/PKGBUILD
  or1k-elf-gcc/repos/community-x86_64/PKGBUILD.bootstrap

--------------------+
 PKGBUILD           |  243 +++++++++++++++++++++++----------------------------
 PKGBUILD.bootstrap |  222 +++++++++++++++++++++++-----------------------
 2 files changed, 223 insertions(+), 242 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-28 14:53:33 UTC (rev 605164)
+++ PKGBUILD	2020-03-28 14:53:43 UTC (rev 605165)
@@ -1,131 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-# Contributor: Anatol Pomozov <anatol.pomozov at gmail.com>
-# Contributor: Martin Schmölzer <mschmoelzer at gmail.com>
-
-_target=or1k-elf
-pkgname=$_target-gcc
-pkgver=9.3.0
-_islver=0.22
-pkgrel=1
-#_snapshot=8-20180427
-pkgdesc='The GNU Compiler Collection - cross compiler for OpenRISC 1000 (bare-metal) target'
-arch=(x86_64)
-url='https://gcc.gnu.org/'
-license=(GPL LGPL FDL)
-depends=($_target-binutils zlib libmpc)
-makedepends=(gmp mpfr $_target-newlib)
-optdepends=("$_target-newlib: Standard C library optimized for embedded systems")
-options=(!emptydirs !strip)
-source=(https://ftp.gnu.org/gnu/gcc/gcc-$pkgver/gcc-$pkgver.tar.xz{,.sig}
-        #ftp://gcc.gnu.org/pub/gcc/snapshots/$_snapshot/gcc-$_snapshot.tar.xz
-        http://isl.gforge.inria.fr/isl-$_islver.tar.bz2)
-sha512sums=('4b9e3639eef6e623747a22c37a904b4750c93b6da77cf3958d5047e9b5ebddb7eebe091cc16ca0a227c0ecbd2bf3b984b221130f269a97ee4cc18f9cf6c444de'
-            'SKIP'
-            'fc2c9796979610dd51143dcefe4f5c989c4354571cc5a1fcc6b932fd41f42a54f6b43adfd289af61be7bd06f3a523fa6a7d7ee56680e32d8036beb4c188fa668')
-validpgpkeys=(33C235A34C46AA3FFB293709A328C3A2C3C45C06) # Jakub Jelinek <jakub at redhat.com>
-
-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
-
-  # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
-  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure
-
-  mkdir $srcdir/build-{gcc,gcc-nano}
-}
-
-_build_gcc() {
-  $srcdir/$_basedir/configure \
-    --target=$_target \
-    --prefix=/usr \
-    --with-sysroot=/usr/$_target \
-    --with-native-system-header-dir=/include \
-    --libexecdir=/usr/lib \
-    --enable-languages=c,c++ \
-    --enable-plugins \
-    --disable-decimal-float \
-    --disable-libffi \
-    --disable-libgomp \
-    --disable-libmudflap \
-    --disable-libquadmath \
-    --disable-libssp \
-    --disable-libstdcxx-pch \
-    --disable-nls \
-    --disable-shared \
-    --disable-threads \
-    --disable-tls \
-    --with-newlib \
-    --with-gnu-as \
-    --with-gnu-ld \
-    --with-system-zlib \
-    --with-headers=/usr/$_target/include \
-    --with-python-dir=share/gcc-$_target \
-    --with-gmp \
-    --with-mpfr \
-    --with-mpc \
-    --with-isl \
-    --with-libelf \
-    --enable-gnu-indirect-function \
-    --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' \
-    --with-pkgversion="FFY00's Arch Repository" \
-    --with-bugurl='https://github.com/FFY00/or1k-pkgbuils/issues'
-
-
-  make INHIBIT_LIBC_CFLAGS='-DUSE_TM_CLONE_REGISTRY=0'
-}
-
-build() {
-  cd $srcdir/build-gcc
-  export CFLAGS_FOR_TARGET='-g -Os -ffunction-sections -fdata-sections'
-  export CXXFLAGS_FOR_TARGET='-g -Os -ffunction-sections -fdata-sections'
-  _build_gcc
-
-  # Build libstdc++ without exceptions support (the 'nano' variant)
-  cd $srcdir/build-gcc-nano
-  export CFLAGS_FOR_TARGET='-g -Os -ffunction-sections -fdata-sections -fno-exceptions'
-  export CXXFLAGS_FOR_TARGET='-g -Os -ffunction-sections -fdata-sections -fno-exceptions'
-  _build_gcc
-}
-
-package() {
-  cd $srcdir/build-gcc
-  make DESTDIR="$pkgdir" install -j1
-
-  cd $srcdir/build-gcc-nano
-  make DESTDIR="$pkgdir.nano" install -j1
-  # we need only libstdc nano files
-  multilibs=( $($pkgdir/usr/bin/$_target-gcc -print-multi-lib 2>/dev/null) )
-  for multilib in "${multilibs[@]}"; do
-    dir="${multilib%%;*}"
-    from_dir=$pkgdir.nano/usr/$_target/lib/$dir
-    to_dir=$pkgdir/usr/$_target/lib/$dir
-    cp -f $from_dir/libstdc++.a $to_dir/libstdc++_nano.a
-    cp -f $from_dir/libsupc++.a $to_dir/libsupc++_nano.a
-  done
-
-  # strip target binaries
-  find "$pkgdir"/usr/lib/gcc/$_target/$pkgver "$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/$pkgver -type f -and \( -executable \) -exec strip '{}' \;
-
-  # Remove files that conflict with host gcc package
-  rm -r "$pkgdir"/usr/share/man/man7
-  rm -r "$pkgdir"/usr/share/info
-  rm "$pkgdir"/usr/lib/libcc1.*
-}
-

Copied: or1k-elf-gcc/repos/community-x86_64/PKGBUILD (from rev 605164, or1k-elf-gcc/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-03-28 14:53:43 UTC (rev 605165)
@@ -0,0 +1,112 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+# Contributor: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Martin Schmölzer <mschmoelzer at gmail.com>
+
+_target=or1k-elf
+pkgname=$_target-gcc
+pkgver=9.3.0
+_islver=0.22
+pkgrel=1
+#_snapshot=8-20180427
+pkgdesc='The GNU Compiler Collection - cross compiler for OpenRISC 1000 (bare-metal) target'
+arch=(x86_64)
+url='https://gcc.gnu.org/'
+license=(GPL LGPL FDL)
+depends=($_target-binutils zlib libmpc)
+makedepends=(gmp mpfr $_target-newlib $_target-gcc)
+optdepends=("$_target-newlib: Standard C library optimized for embedded systems")
+options=(!emptydirs !strip)
+source=(https://ftp.gnu.org/gnu/gcc/gcc-$pkgver/gcc-$pkgver.tar.xz{,.sig}
+        #ftp://gcc.gnu.org/pub/gcc/snapshots/$_snapshot/gcc-$_snapshot.tar.xz
+        http://isl.gforge.inria.fr/isl-$_islver.tar.bz2)
+sha512sums=('4b9e3639eef6e623747a22c37a904b4750c93b6da77cf3958d5047e9b5ebddb7eebe091cc16ca0a227c0ecbd2bf3b984b221130f269a97ee4cc18f9cf6c444de'
+            'SKIP'
+            'fc2c9796979610dd51143dcefe4f5c989c4354571cc5a1fcc6b932fd41f42a54f6b43adfd289af61be7bd06f3a523fa6a7d7ee56680e32d8036beb4c188fa668')
+validpgpkeys=(33C235A34C46AA3FFB293709A328C3A2C3C45C06) # Jakub Jelinek <jakub at redhat.com>
+
+if [ -n "$_snapshot" ]; then
+  _basedir=gcc-$_snapshot
+else
+  _basedir=gcc-$pkgver
+fi
+
+prepare() {
+  mkdir build-gcc
+
+  cd $_basedir
+
+  # link isl for in-tree builds
+  ln -s ../isl-$_islver isl
+
+  echo $pkgver > gcc/BASE-VER
+
+  # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
+  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure
+}
+
+build() {
+  cd build-gcc
+
+  export CFLAGS_FOR_TARGET='-g -Os -ffunction-sections -fdata-sections'
+  export CXXFLAGS_FOR_TARGET='-g -Os -ffunction-sections -fdata-sections'
+
+  "$srcdir"/$_basedir/configure \
+    --target=$_target \
+    --prefix=/usr \
+    --with-sysroot=/usr/$_target \
+    --with-native-system-header-dir=/include \
+    --libexecdir=/usr/lib \
+    --enable-languages=c,c++ \
+    --enable-threads=single \
+    --enable-plugins \
+    --enable-multilib \
+    --enable-libgcc \
+    --disable-libgomp \
+    --disable-libquadmath \
+    --disable-libffi \
+    --disable-libssp \
+    --disable-libmudflap \
+    --disable-decimal-float \
+    --disable-libstdcxx-pch \
+    --disable-nls \
+    --disable-shared \
+    --disable-tls \
+    --with-newlib \
+    --with-gnu-as \
+    --with-gnu-ld \
+    --with-system-zlib \
+    --with-headers=/usr/$_target/include \
+    --with-python-dir=share/gcc-$_target \
+    --with-gmp \
+    --with-mpfr \
+    --with-mpc \
+    --with-isl \
+    --with-libelf \
+    --enable-gnu-indirect-function \
+    --with-pkgversion="Arch Linux Repositories" \
+    --with-bugurl='https://bugs.archlinux.org/'
+
+  make
+}
+
+package() {
+  cd build-gcc
+
+  make DESTDIR="$pkgdir" install -j1
+
+  # strip target binaries
+  find "$pkgdir"/usr/lib/gcc/$_target/$pkgver "$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/$pkgver -type f -and \( -executable \) -exec strip '{}' \;
+
+  # Remove files that conflict with host gcc package
+  rm -r "$pkgdir"/usr/share/man/man7
+  rm -r "$pkgdir"/usr/share/info
+  rm "$pkgdir"/usr/lib/libcc1.*
+}
+

Deleted: PKGBUILD.bootstrap
===================================================================
--- PKGBUILD.bootstrap	2020-03-28 14:53:33 UTC (rev 605164)
+++ PKGBUILD.bootstrap	2020-03-28 14:53:43 UTC (rev 605165)
@@ -1,111 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-# Contributor: Anatol Pomozov <anatol.pomozov at gmail.com>
-
-_target=or1k-elf
-pkgname=$_target-gcc-bootstrap
-pkgver=9.3.0
-_islver=0.22
-pkgrel=1
-pkgdesc='The GNU Compiler Collection - cross compiler for OpenRISC 1000 target - bootstrap version. only used to build initial glibc and compiler'
-arch=(x86_64)
-url='http://gcc.gnu.org/'
-license=(GPL LGPL FDL)
-depends=($_target-binutils libmpc zlib)
-makedepends=(gmp mpfr)
-options=(!emptydirs !strip)
-provides=(${pkgname%-bootstrap})
-conflicts=(${pkgname%-bootstrap})
-source=(https://ftp.gnu.org/gnu/gcc/gcc-$pkgver/gcc-$pkgver.tar.xz{,.sig}
-        #ftp://gcc.gnu.org/pub/gcc/snapshots/$_snapshot/gcc-$_snapshot.tar.xz
-        http://isl.gforge.inria.fr/isl-$_islver.tar.bz2)
-sha512sums=('4b9e3639eef6e623747a22c37a904b4750c93b6da77cf3958d5047e9b5ebddb7eebe091cc16ca0a227c0ecbd2bf3b984b221130f269a97ee4cc18f9cf6c444de'
-            'SKIP'
-            'fc2c9796979610dd51143dcefe4f5c989c4354571cc5a1fcc6b932fd41f42a54f6b43adfd289af61be7bd06f3a523fa6a7d7ee56680e32d8036beb4c188fa668')
-validpgpkeys=(F3691687D867B81B51CE07D9BBE43771487328A9  # bpiotrowski at archlinux.org
-              13975A70E63C361C73AE69EF6EEB81F8981C74C7  # richard.guenther at gmail.com
-              33C235A34C46AA3FFB293709A328C3A2C3C45C06) # Jakub Jelinek <jakub at redhat.com>
-
-
-if [ -n "$_snapshot" ]; then
-  _basedir=gcc-$_snapshot
-else
-  _basedir=gcc-$pkgver
-fi
-
-prepare() {
-  cd $_basedir
-
-  # link isl for in-tree builds
-  ln -sf ../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 -p "$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 \
-      --target=$_target \
-      --prefix=/usr \
-      --libdir=/usr/lib \
-      --libexecdir=/usr/lib \
-      --program-prefix=$_target- \
-      --with-local-prefix=/usr/$_target \
-      --with-build-sysroot=/usr/$_target \
-      --with-sysroot=/usr/$_target \
-      --with-newlib \
-      --without-headers \
-      --disable-shared \
-      --disable-threads \
-      --with-system-zlib \
-      --enable-tls \
-      --enable-languages=c \
-      --disable-libatomic \
-      --disable-libmudflap \
-      --disable-libssp \
-      --disable-libquadmath \
-      --disable-libgomp \
-      --disable-nls \
-      --enable-multilib \
-      --disable-bootstrap \
-      --enable-checking=release
-
-  make inhibit-libc=true all-gcc
-  make inhibit-libc=true all-target-libgcc
-}
-
-package() {
-  cd gcc-build
-
-  make DESTDIR="$pkgdir" inhibit-libc=true install-gcc
-  make DESTDIR="$pkgdir" inhibit-libc=true install-target-libgcc
-
-  # strip target binaries
-  find "$pkgdir"/usr/lib/gcc/$_target/ \
-       -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
-  rm -r "$pkgdir"/usr/share/info
-}
-

Copied: or1k-elf-gcc/repos/community-x86_64/PKGBUILD.bootstrap (from rev 605164, or1k-elf-gcc/trunk/PKGBUILD.bootstrap)
===================================================================
--- PKGBUILD.bootstrap	                        (rev 0)
+++ PKGBUILD.bootstrap	2020-03-28 14:53:43 UTC (rev 605165)
@@ -0,0 +1,111 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+# Contributor: Anatol Pomozov <anatol.pomozov at gmail.com>
+
+_target=or1k-elf
+pkgname=$_target-gcc-bootstrap
+pkgver=9.3.0
+_islver=0.22
+pkgrel=1
+pkgdesc='The GNU Compiler Collection - cross compiler for OpenRISC 1000 target - bootstrap version. only used to build initial glibc and compiler'
+arch=(x86_64)
+url='http://gcc.gnu.org/'
+license=(GPL LGPL FDL)
+depends=($_target-binutils libmpc zlib)
+makedepends=(gmp mpfr)
+options=(!emptydirs !strip)
+provides=(${pkgname%-bootstrap})
+conflicts=(${pkgname%-bootstrap})
+source=(https://ftp.gnu.org/gnu/gcc/gcc-$pkgver/gcc-$pkgver.tar.xz{,.sig}
+        #ftp://gcc.gnu.org/pub/gcc/snapshots/$_snapshot/gcc-$_snapshot.tar.xz
+        http://isl.gforge.inria.fr/isl-$_islver.tar.bz2)
+sha512sums=('4b9e3639eef6e623747a22c37a904b4750c93b6da77cf3958d5047e9b5ebddb7eebe091cc16ca0a227c0ecbd2bf3b984b221130f269a97ee4cc18f9cf6c444de'
+            'SKIP'
+            'fc2c9796979610dd51143dcefe4f5c989c4354571cc5a1fcc6b932fd41f42a54f6b43adfd289af61be7bd06f3a523fa6a7d7ee56680e32d8036beb4c188fa668')
+validpgpkeys=(F3691687D867B81B51CE07D9BBE43771487328A9  # bpiotrowski at archlinux.org
+              13975A70E63C361C73AE69EF6EEB81F8981C74C7  # richard.guenther at gmail.com
+              33C235A34C46AA3FFB293709A328C3A2C3C45C06) # Jakub Jelinek <jakub at redhat.com>
+
+
+if [ -n "$_snapshot" ]; then
+  _basedir=gcc-$_snapshot
+else
+  _basedir=gcc-$pkgver
+fi
+
+prepare() {
+  cd $_basedir
+
+  # link isl for in-tree builds
+  ln -sf ../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 -p "$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 \
+      --target=$_target \
+      --prefix=/usr \
+      --libdir=/usr/lib \
+      --libexecdir=/usr/lib \
+      --program-prefix=$_target- \
+      --with-local-prefix=/usr/$_target \
+      --with-build-sysroot=/usr/$_target \
+      --with-sysroot=/usr/$_target \
+      --with-newlib \
+      --without-headers \
+      --disable-shared \
+      --disable-threads \
+      --with-system-zlib \
+      --enable-tls \
+      --enable-languages=c \
+      --disable-libatomic \
+      --disable-libmudflap \
+      --disable-libssp \
+      --disable-libquadmath \
+      --disable-libgomp \
+      --disable-nls \
+      --enable-multilib \
+      --disable-bootstrap \
+      --enable-checking=release
+
+  make inhibit-libc=true all-gcc
+  make inhibit-libc=true all-target-libgcc
+}
+
+package() {
+  cd gcc-build
+
+  make DESTDIR="$pkgdir" inhibit-libc=true install-gcc
+  make DESTDIR="$pkgdir" inhibit-libc=true install-target-libgcc
+
+  # strip target binaries
+  find "$pkgdir"/usr/lib/gcc/$_target/ \
+       -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
+  rm -r "$pkgdir"/usr/share/info
+}
+



More information about the arch-commits mailing list