[arch-commits] Commit in avr-gcc/repos (8 files)

Anatol Pomozov anatolik at archlinux.org
Mon Sep 11 18:53:10 UTC 2017


    Date: Monday, September 11, 2017 @ 18:53:09
  Author: anatolik
Revision: 256978

archrelease: copy trunk to community-i686, community-x86_64

Added:
  avr-gcc/repos/community-i686/PKGBUILD
    (from rev 256977, avr-gcc/trunk/PKGBUILD)
  avr-gcc/repos/community-i686/Revert-eeb6872bf.patch
    (from rev 256977, avr-gcc/trunk/Revert-eeb6872bf.patch)
  avr-gcc/repos/community-x86_64/PKGBUILD
    (from rev 256977, avr-gcc/trunk/PKGBUILD)
  avr-gcc/repos/community-x86_64/Revert-eeb6872bf.patch
    (from rev 256977, avr-gcc/trunk/Revert-eeb6872bf.patch)
Deleted:
  avr-gcc/repos/community-i686/PKGBUILD
  avr-gcc/repos/community-i686/Revert-eeb6872bf.patch
  avr-gcc/repos/community-x86_64/PKGBUILD
  avr-gcc/repos/community-x86_64/Revert-eeb6872bf.patch

-----------------------------------------+
 /PKGBUILD                               |  230 ++++++++++++++++++++++++++++++
 /Revert-eeb6872bf.patch                 |  164 +++++++++++++++++++++
 community-i686/PKGBUILD                 |  115 ---------------
 community-i686/Revert-eeb6872bf.patch   |   82 ----------
 community-x86_64/PKGBUILD               |  115 ---------------
 community-x86_64/Revert-eeb6872bf.patch |   82 ----------
 6 files changed, 394 insertions(+), 394 deletions(-)

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	2017-09-11 18:52:06 UTC (rev 256977)
+++ community-i686/PKGBUILD	2017-09-11 18:53:09 UTC (rev 256978)
@@ -1,115 +0,0 @@
-# $Id$
-# Maintainer: schuay <jakob.gruber at gmail.com>
-# Contributor: Brad Fanella <bradfanella at archlinux.us>
-# Contributor: Corrado Primier <bardo at aur.archlinux.org>
-# Contributor: danst0 <danst0 at west.de>
-
-# Build order: avr-binutils -> avr-gcc -> avr-libc
-
-pkgname=avr-gcc
-pkgver=7.1.0
-pkgrel=2
-_snapshot=7-20170629
-_islver=0.18
-pkgdesc='The GNU AVR Compiler Collection'
-arch=(i686 x86_64)
-license=(GPL LGPL FDL custom)
-url='http://gcc.gnu.org/'
-depends=(avr-binutils gcc-libs libmpc)
-optdepends=('avr-libc: Standard C library for Atmel AVR development')
-options=(!emptydirs !strip)
-source=(#ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2
-        ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-${_snapshot}.tar.xz
-        http://isl.gforge.inria.fr/isl-${_islver}.tar.bz2
-        Revert-eeb6872bf.patch
-       )
-sha1sums=('03dd99b2fe79eceb05e3763569278a4ecce808ff'
-          'bbffc5a2b05e4f0c97e882f96c448504491dc4ed'
-          'f93cd532288a58d76c9dcdf654c7e6028c6f411f')
-
-if [ -n "${_snapshot}" ]; then
-  _basedir=gcc-${_snapshot}
-else
-  _basedir=gcc-${pkgver}
-fi
-
-prepare() {
-    cd ${_basedir}
-
-    # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80717
-    patch -p1 < ../Revert-eeb6872bf.patch
-}
-
-build() {
-    cd ${srcdir}/${_basedir} 
-
-    # link isl for in-tree build
-    ln -s ../isl-${_islver} isl
-
-    # https://bugs.archlinux.org/task/34629
-    # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
-    sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure
-
-    echo ${pkgver} > gcc/BASE-VER
-
-    cd ${srcdir}
-    mkdir gcc-build && cd gcc-build
-
-    export CFLAGS_FOR_TARGET='-O2 -pipe'
-    export CXXFLAGS_FOR_TARGET='-O2 -pipe'
-
-    # --disable-linker-build-id   https://bugs.archlinux.org/task/34902
-    # --disable-__cxa_atexit   https://bugs.archlinux.org/task/50848
-    ${srcdir}/${_basedir}/configure \
-                --disable-install-libiberty \
-                --disable-libssp \
-                --disable-libstdcxx-pch \
-                --disable-libunwind-exceptions \
-                --disable-linker-build-id \
-                --disable-nls \
-                --disable-werror \
-                --disable-__cxa_atexit \
-                --enable-checking=release \
-                --enable-clocale=gnu \
-                --enable-gnu-unique-object \
-                --enable-gold \
-                --enable-languages=c,c++ \
-                --enable-ld=default \
-                --enable-lto \
-                --enable-plugin \
-                --enable-shared \
-                --infodir=/usr/share/info \
-                --libdir=/usr/lib \
-                --libexecdir=/usr/lib \
-                --mandir=/usr/share/man \
-                --prefix=/usr \
-                --target=avr \
-                --with-as=/usr/bin/avr-as \
-                --with-gnu-as \
-                --with-gnu-ld \
-                --with-ld=/usr/bin/avr-ld \
-                --with-plugin-ld=ld.gold \
-                --with-system-zlib \
-                --with-isl \
-                --enable-gnu-indirect-function
-
-    make
-}
-
-package() {
-    cd ${srcdir}/gcc-build
-
-    make -j1 DESTDIR=${pkgdir} install
-
-    # Strip debug symbols from libraries; without this, the package size balloons to ~500MB.
-    find ${pkgdir}/usr/lib -type f -name "*.a" \
-        -exec /usr/bin/avr-strip --strip-debug '{}' \;
-
-    # Install Runtime Library Exception
-    install -Dm644 ${srcdir}/${_basedir}/COPYING.RUNTIME \
-        ${pkgdir}/usr/share/licenses/avr-gcc/RUNTIME.LIBRARY.EXCEPTION
-
-    rm -r ${pkgdir}/usr/share/man/man7
-    rm -r ${pkgdir}/usr/share/info
-    rm ${pkgdir}/usr/lib/libcc1.*
-}

Copied: avr-gcc/repos/community-i686/PKGBUILD (from rev 256977, avr-gcc/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2017-09-11 18:53:09 UTC (rev 256978)
@@ -0,0 +1,115 @@
+# $Id$
+# Maintainer: schuay <jakob.gruber at gmail.com>
+# Contributor: Brad Fanella <bradfanella at archlinux.us>
+# Contributor: Corrado Primier <bardo at aur.archlinux.org>
+# Contributor: danst0 <danst0 at west.de>
+
+# Build order: avr-binutils -> avr-gcc -> avr-libc
+
+pkgname=avr-gcc
+pkgver=7.2.0
+pkgrel=1
+_snapshot=7-20170907
+_islver=0.18
+pkgdesc='The GNU AVR Compiler Collection'
+arch=(i686 x86_64)
+license=(GPL LGPL FDL custom)
+url='http://gcc.gnu.org/'
+depends=(avr-binutils gcc-libs libmpc)
+optdepends=('avr-libc: Standard C library for Atmel AVR development')
+options=(!emptydirs !strip)
+source=(#ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2
+        ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-${_snapshot}.tar.xz
+        http://isl.gforge.inria.fr/isl-${_islver}.tar.bz2
+        Revert-eeb6872bf.patch
+       )
+sha1sums=('133e024ea7fcda56642c2be84d3fd72d76250d4a'
+          'bbffc5a2b05e4f0c97e882f96c448504491dc4ed'
+          'f93cd532288a58d76c9dcdf654c7e6028c6f411f')
+
+if [ -n "${_snapshot}" ]; then
+  _basedir=gcc-${_snapshot}
+else
+  _basedir=gcc-${pkgver}
+fi
+
+prepare() {
+    cd ${_basedir}
+
+    # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80717
+    patch -p1 < ../Revert-eeb6872bf.patch
+}
+
+build() {
+    cd ${srcdir}/${_basedir} 
+
+    # link isl for in-tree build
+    ln -s ../isl-${_islver} isl
+
+    # https://bugs.archlinux.org/task/34629
+    # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
+    sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure
+
+    echo ${pkgver} > gcc/BASE-VER
+
+    cd ${srcdir}
+    mkdir gcc-build && cd gcc-build
+
+    export CFLAGS_FOR_TARGET='-O2 -pipe'
+    export CXXFLAGS_FOR_TARGET='-O2 -pipe'
+
+    # --disable-linker-build-id   https://bugs.archlinux.org/task/34902
+    # --disable-__cxa_atexit   https://bugs.archlinux.org/task/50848
+    ${srcdir}/${_basedir}/configure \
+                --disable-install-libiberty \
+                --disable-libssp \
+                --disable-libstdcxx-pch \
+                --disable-libunwind-exceptions \
+                --disable-linker-build-id \
+                --disable-nls \
+                --disable-werror \
+                --disable-__cxa_atexit \
+                --enable-checking=release \
+                --enable-clocale=gnu \
+                --enable-gnu-unique-object \
+                --enable-gold \
+                --enable-languages=c,c++ \
+                --enable-ld=default \
+                --enable-lto \
+                --enable-plugin \
+                --enable-shared \
+                --infodir=/usr/share/info \
+                --libdir=/usr/lib \
+                --libexecdir=/usr/lib \
+                --mandir=/usr/share/man \
+                --prefix=/usr \
+                --target=avr \
+                --with-as=/usr/bin/avr-as \
+                --with-gnu-as \
+                --with-gnu-ld \
+                --with-ld=/usr/bin/avr-ld \
+                --with-plugin-ld=ld.gold \
+                --with-system-zlib \
+                --with-isl \
+                --enable-gnu-indirect-function
+
+    make
+}
+
+package() {
+    cd ${srcdir}/gcc-build
+
+    make -j1 DESTDIR=${pkgdir} install
+
+    # Strip debug symbols from libraries; without this, the package size balloons to ~500MB.
+    find ${pkgdir}/usr/lib -type f -name "*.a" \
+        -exec /usr/bin/avr-strip --strip-debug '{}' \;
+
+    # Install Runtime Library Exception
+    install -Dm644 ${srcdir}/${_basedir}/COPYING.RUNTIME \
+        ${pkgdir}/usr/share/licenses/avr-gcc/RUNTIME.LIBRARY.EXCEPTION
+
+    rm -r ${pkgdir}/usr/share/man/man7
+    rm -r ${pkgdir}/usr/share/info
+    rm ${pkgdir}/usr/lib/libcc1.*
+}

Deleted: community-i686/Revert-eeb6872bf.patch
===================================================================
--- community-i686/Revert-eeb6872bf.patch	2017-09-11 18:52:06 UTC (rev 256977)
+++ community-i686/Revert-eeb6872bf.patch	2017-09-11 18:53:09 UTC (rev 256978)
@@ -1,82 +0,0 @@
-commit 43d83a70267a9e5c456d28de8e7348820446b712
-Author: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
-Date:   Tue May 16 07:50:42 2017 +0200
-
-    Revert "Prevent LTO wrappers to process a recursive execution"
-    
-    This reverts commit eeb6872bfdfd1e71b27de6f62a5f5c08a2efb015.
-
-diff --git a/gcc/file-find.c b/gcc/file-find.c
-index b072a4993d76..b5a1fe8494e8 100644
---- a/gcc/file-find.c
-+++ b/gcc/file-find.c
-@@ -208,38 +208,3 @@ prefix_from_string (const char *p, struct path_prefix *pprefix)
-     }
-   free (nstore);
- }
--
--void
--remove_prefix (const char *prefix, struct path_prefix *pprefix)
--{
--  struct prefix_list *remove, **prev, **remove_prev = NULL;
--  int max_len = 0;
--
--  if (pprefix->plist)
--    {
--      prev = &pprefix->plist;
--      for (struct prefix_list *pl = pprefix->plist; pl->next; pl = pl->next)
--	{
--	  if (strcmp (prefix, pl->prefix) == 0)
--	    {
--	      remove = pl;
--	      remove_prev = prev;
--	      continue;
--	    }
--
--	  int l = strlen (pl->prefix);
--	  if (l > max_len)
--	    max_len = l;
--
--	  prev = &pl;
--	}
--
--      if (remove_prev)
--	{
--	  *remove_prev = remove->next;
--	  free (remove);
--	}
--
--      pprefix->max_len = max_len;
--    }
--}
-diff --git a/gcc/file-find.h b/gcc/file-find.h
-index 8f49a3af273e..407feba26e74 100644
---- a/gcc/file-find.h
-+++ b/gcc/file-find.h
-@@ -41,7 +41,6 @@ extern void find_file_set_debug (bool);
- extern char *find_a_file (struct path_prefix *, const char *, int);
- extern void add_prefix (struct path_prefix *, const char *);
- extern void add_prefix_begin (struct path_prefix *, const char *);
--extern void remove_prefix (const char *prefix, struct path_prefix *);
- extern void prefix_from_env (const char *, struct path_prefix *);
- extern void prefix_from_string (const char *, struct path_prefix *);
- 
-diff --git a/gcc/gcc-ar.c b/gcc/gcc-ar.c
-index 78d2fc1ad306..d5d80e042e5a 100644
---- a/gcc/gcc-ar.c
-+++ b/gcc/gcc-ar.c
-@@ -194,14 +194,6 @@ main (int ac, char **av)
- #ifdef CROSS_DIRECTORY_STRUCTURE
-       real_exe_name = concat (target_machine, "-", PERSONALITY, NULL);
- #endif
--      /* Do not search original location in the same folder.  */
--      char *exe_folder = lrealpath (av[0]);
--      exe_folder[strlen (exe_folder) - strlen (lbasename (exe_folder))] = '\0';
--      char *location = concat (exe_folder, PERSONALITY, NULL);
--
--      if (access (location, X_OK) == 0)
--	remove_prefix (exe_folder, &path);
--
-       exe_name = find_a_file (&path, real_exe_name, X_OK);
-       if (!exe_name)
- 	{

Copied: avr-gcc/repos/community-i686/Revert-eeb6872bf.patch (from rev 256977, avr-gcc/trunk/Revert-eeb6872bf.patch)
===================================================================
--- community-i686/Revert-eeb6872bf.patch	                        (rev 0)
+++ community-i686/Revert-eeb6872bf.patch	2017-09-11 18:53:09 UTC (rev 256978)
@@ -0,0 +1,82 @@
+commit 43d83a70267a9e5c456d28de8e7348820446b712
+Author: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+Date:   Tue May 16 07:50:42 2017 +0200
+
+    Revert "Prevent LTO wrappers to process a recursive execution"
+    
+    This reverts commit eeb6872bfdfd1e71b27de6f62a5f5c08a2efb015.
+
+diff --git a/gcc/file-find.c b/gcc/file-find.c
+index b072a4993d76..b5a1fe8494e8 100644
+--- a/gcc/file-find.c
++++ b/gcc/file-find.c
+@@ -208,38 +208,3 @@ prefix_from_string (const char *p, struct path_prefix *pprefix)
+     }
+   free (nstore);
+ }
+-
+-void
+-remove_prefix (const char *prefix, struct path_prefix *pprefix)
+-{
+-  struct prefix_list *remove, **prev, **remove_prev = NULL;
+-  int max_len = 0;
+-
+-  if (pprefix->plist)
+-    {
+-      prev = &pprefix->plist;
+-      for (struct prefix_list *pl = pprefix->plist; pl->next; pl = pl->next)
+-	{
+-	  if (strcmp (prefix, pl->prefix) == 0)
+-	    {
+-	      remove = pl;
+-	      remove_prev = prev;
+-	      continue;
+-	    }
+-
+-	  int l = strlen (pl->prefix);
+-	  if (l > max_len)
+-	    max_len = l;
+-
+-	  prev = &pl;
+-	}
+-
+-      if (remove_prev)
+-	{
+-	  *remove_prev = remove->next;
+-	  free (remove);
+-	}
+-
+-      pprefix->max_len = max_len;
+-    }
+-}
+diff --git a/gcc/file-find.h b/gcc/file-find.h
+index 8f49a3af273e..407feba26e74 100644
+--- a/gcc/file-find.h
++++ b/gcc/file-find.h
+@@ -41,7 +41,6 @@ extern void find_file_set_debug (bool);
+ extern char *find_a_file (struct path_prefix *, const char *, int);
+ extern void add_prefix (struct path_prefix *, const char *);
+ extern void add_prefix_begin (struct path_prefix *, const char *);
+-extern void remove_prefix (const char *prefix, struct path_prefix *);
+ extern void prefix_from_env (const char *, struct path_prefix *);
+ extern void prefix_from_string (const char *, struct path_prefix *);
+ 
+diff --git a/gcc/gcc-ar.c b/gcc/gcc-ar.c
+index 78d2fc1ad306..d5d80e042e5a 100644
+--- a/gcc/gcc-ar.c
++++ b/gcc/gcc-ar.c
+@@ -194,14 +194,6 @@ main (int ac, char **av)
+ #ifdef CROSS_DIRECTORY_STRUCTURE
+       real_exe_name = concat (target_machine, "-", PERSONALITY, NULL);
+ #endif
+-      /* Do not search original location in the same folder.  */
+-      char *exe_folder = lrealpath (av[0]);
+-      exe_folder[strlen (exe_folder) - strlen (lbasename (exe_folder))] = '\0';
+-      char *location = concat (exe_folder, PERSONALITY, NULL);
+-
+-      if (access (location, X_OK) == 0)
+-	remove_prefix (exe_folder, &path);
+-
+       exe_name = find_a_file (&path, real_exe_name, X_OK);
+       if (!exe_name)
+ 	{

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	2017-09-11 18:52:06 UTC (rev 256977)
+++ community-x86_64/PKGBUILD	2017-09-11 18:53:09 UTC (rev 256978)
@@ -1,115 +0,0 @@
-# $Id$
-# Maintainer: schuay <jakob.gruber at gmail.com>
-# Contributor: Brad Fanella <bradfanella at archlinux.us>
-# Contributor: Corrado Primier <bardo at aur.archlinux.org>
-# Contributor: danst0 <danst0 at west.de>
-
-# Build order: avr-binutils -> avr-gcc -> avr-libc
-
-pkgname=avr-gcc
-pkgver=7.1.0
-pkgrel=2
-_snapshot=7-20170629
-_islver=0.18
-pkgdesc='The GNU AVR Compiler Collection'
-arch=(i686 x86_64)
-license=(GPL LGPL FDL custom)
-url='http://gcc.gnu.org/'
-depends=(avr-binutils gcc-libs libmpc)
-optdepends=('avr-libc: Standard C library for Atmel AVR development')
-options=(!emptydirs !strip)
-source=(#ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2
-        ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-${_snapshot}.tar.xz
-        http://isl.gforge.inria.fr/isl-${_islver}.tar.bz2
-        Revert-eeb6872bf.patch
-       )
-sha1sums=('03dd99b2fe79eceb05e3763569278a4ecce808ff'
-          'bbffc5a2b05e4f0c97e882f96c448504491dc4ed'
-          'f93cd532288a58d76c9dcdf654c7e6028c6f411f')
-
-if [ -n "${_snapshot}" ]; then
-  _basedir=gcc-${_snapshot}
-else
-  _basedir=gcc-${pkgver}
-fi
-
-prepare() {
-    cd ${_basedir}
-
-    # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80717
-    patch -p1 < ../Revert-eeb6872bf.patch
-}
-
-build() {
-    cd ${srcdir}/${_basedir} 
-
-    # link isl for in-tree build
-    ln -s ../isl-${_islver} isl
-
-    # https://bugs.archlinux.org/task/34629
-    # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
-    sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure
-
-    echo ${pkgver} > gcc/BASE-VER
-
-    cd ${srcdir}
-    mkdir gcc-build && cd gcc-build
-
-    export CFLAGS_FOR_TARGET='-O2 -pipe'
-    export CXXFLAGS_FOR_TARGET='-O2 -pipe'
-
-    # --disable-linker-build-id   https://bugs.archlinux.org/task/34902
-    # --disable-__cxa_atexit   https://bugs.archlinux.org/task/50848
-    ${srcdir}/${_basedir}/configure \
-                --disable-install-libiberty \
-                --disable-libssp \
-                --disable-libstdcxx-pch \
-                --disable-libunwind-exceptions \
-                --disable-linker-build-id \
-                --disable-nls \
-                --disable-werror \
-                --disable-__cxa_atexit \
-                --enable-checking=release \
-                --enable-clocale=gnu \
-                --enable-gnu-unique-object \
-                --enable-gold \
-                --enable-languages=c,c++ \
-                --enable-ld=default \
-                --enable-lto \
-                --enable-plugin \
-                --enable-shared \
-                --infodir=/usr/share/info \
-                --libdir=/usr/lib \
-                --libexecdir=/usr/lib \
-                --mandir=/usr/share/man \
-                --prefix=/usr \
-                --target=avr \
-                --with-as=/usr/bin/avr-as \
-                --with-gnu-as \
-                --with-gnu-ld \
-                --with-ld=/usr/bin/avr-ld \
-                --with-plugin-ld=ld.gold \
-                --with-system-zlib \
-                --with-isl \
-                --enable-gnu-indirect-function
-
-    make
-}
-
-package() {
-    cd ${srcdir}/gcc-build
-
-    make -j1 DESTDIR=${pkgdir} install
-
-    # Strip debug symbols from libraries; without this, the package size balloons to ~500MB.
-    find ${pkgdir}/usr/lib -type f -name "*.a" \
-        -exec /usr/bin/avr-strip --strip-debug '{}' \;
-
-    # Install Runtime Library Exception
-    install -Dm644 ${srcdir}/${_basedir}/COPYING.RUNTIME \
-        ${pkgdir}/usr/share/licenses/avr-gcc/RUNTIME.LIBRARY.EXCEPTION
-
-    rm -r ${pkgdir}/usr/share/man/man7
-    rm -r ${pkgdir}/usr/share/info
-    rm ${pkgdir}/usr/lib/libcc1.*
-}

Copied: avr-gcc/repos/community-x86_64/PKGBUILD (from rev 256977, avr-gcc/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2017-09-11 18:53:09 UTC (rev 256978)
@@ -0,0 +1,115 @@
+# $Id$
+# Maintainer: schuay <jakob.gruber at gmail.com>
+# Contributor: Brad Fanella <bradfanella at archlinux.us>
+# Contributor: Corrado Primier <bardo at aur.archlinux.org>
+# Contributor: danst0 <danst0 at west.de>
+
+# Build order: avr-binutils -> avr-gcc -> avr-libc
+
+pkgname=avr-gcc
+pkgver=7.2.0
+pkgrel=1
+_snapshot=7-20170907
+_islver=0.18
+pkgdesc='The GNU AVR Compiler Collection'
+arch=(i686 x86_64)
+license=(GPL LGPL FDL custom)
+url='http://gcc.gnu.org/'
+depends=(avr-binutils gcc-libs libmpc)
+optdepends=('avr-libc: Standard C library for Atmel AVR development')
+options=(!emptydirs !strip)
+source=(#ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2
+        ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-${_snapshot}.tar.xz
+        http://isl.gforge.inria.fr/isl-${_islver}.tar.bz2
+        Revert-eeb6872bf.patch
+       )
+sha1sums=('133e024ea7fcda56642c2be84d3fd72d76250d4a'
+          'bbffc5a2b05e4f0c97e882f96c448504491dc4ed'
+          'f93cd532288a58d76c9dcdf654c7e6028c6f411f')
+
+if [ -n "${_snapshot}" ]; then
+  _basedir=gcc-${_snapshot}
+else
+  _basedir=gcc-${pkgver}
+fi
+
+prepare() {
+    cd ${_basedir}
+
+    # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80717
+    patch -p1 < ../Revert-eeb6872bf.patch
+}
+
+build() {
+    cd ${srcdir}/${_basedir} 
+
+    # link isl for in-tree build
+    ln -s ../isl-${_islver} isl
+
+    # https://bugs.archlinux.org/task/34629
+    # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
+    sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure
+
+    echo ${pkgver} > gcc/BASE-VER
+
+    cd ${srcdir}
+    mkdir gcc-build && cd gcc-build
+
+    export CFLAGS_FOR_TARGET='-O2 -pipe'
+    export CXXFLAGS_FOR_TARGET='-O2 -pipe'
+
+    # --disable-linker-build-id   https://bugs.archlinux.org/task/34902
+    # --disable-__cxa_atexit   https://bugs.archlinux.org/task/50848
+    ${srcdir}/${_basedir}/configure \
+                --disable-install-libiberty \
+                --disable-libssp \
+                --disable-libstdcxx-pch \
+                --disable-libunwind-exceptions \
+                --disable-linker-build-id \
+                --disable-nls \
+                --disable-werror \
+                --disable-__cxa_atexit \
+                --enable-checking=release \
+                --enable-clocale=gnu \
+                --enable-gnu-unique-object \
+                --enable-gold \
+                --enable-languages=c,c++ \
+                --enable-ld=default \
+                --enable-lto \
+                --enable-plugin \
+                --enable-shared \
+                --infodir=/usr/share/info \
+                --libdir=/usr/lib \
+                --libexecdir=/usr/lib \
+                --mandir=/usr/share/man \
+                --prefix=/usr \
+                --target=avr \
+                --with-as=/usr/bin/avr-as \
+                --with-gnu-as \
+                --with-gnu-ld \
+                --with-ld=/usr/bin/avr-ld \
+                --with-plugin-ld=ld.gold \
+                --with-system-zlib \
+                --with-isl \
+                --enable-gnu-indirect-function
+
+    make
+}
+
+package() {
+    cd ${srcdir}/gcc-build
+
+    make -j1 DESTDIR=${pkgdir} install
+
+    # Strip debug symbols from libraries; without this, the package size balloons to ~500MB.
+    find ${pkgdir}/usr/lib -type f -name "*.a" \
+        -exec /usr/bin/avr-strip --strip-debug '{}' \;
+
+    # Install Runtime Library Exception
+    install -Dm644 ${srcdir}/${_basedir}/COPYING.RUNTIME \
+        ${pkgdir}/usr/share/licenses/avr-gcc/RUNTIME.LIBRARY.EXCEPTION
+
+    rm -r ${pkgdir}/usr/share/man/man7
+    rm -r ${pkgdir}/usr/share/info
+    rm ${pkgdir}/usr/lib/libcc1.*
+}

Deleted: community-x86_64/Revert-eeb6872bf.patch
===================================================================
--- community-x86_64/Revert-eeb6872bf.patch	2017-09-11 18:52:06 UTC (rev 256977)
+++ community-x86_64/Revert-eeb6872bf.patch	2017-09-11 18:53:09 UTC (rev 256978)
@@ -1,82 +0,0 @@
-commit 43d83a70267a9e5c456d28de8e7348820446b712
-Author: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
-Date:   Tue May 16 07:50:42 2017 +0200
-
-    Revert "Prevent LTO wrappers to process a recursive execution"
-    
-    This reverts commit eeb6872bfdfd1e71b27de6f62a5f5c08a2efb015.
-
-diff --git a/gcc/file-find.c b/gcc/file-find.c
-index b072a4993d76..b5a1fe8494e8 100644
---- a/gcc/file-find.c
-+++ b/gcc/file-find.c
-@@ -208,38 +208,3 @@ prefix_from_string (const char *p, struct path_prefix *pprefix)
-     }
-   free (nstore);
- }
--
--void
--remove_prefix (const char *prefix, struct path_prefix *pprefix)
--{
--  struct prefix_list *remove, **prev, **remove_prev = NULL;
--  int max_len = 0;
--
--  if (pprefix->plist)
--    {
--      prev = &pprefix->plist;
--      for (struct prefix_list *pl = pprefix->plist; pl->next; pl = pl->next)
--	{
--	  if (strcmp (prefix, pl->prefix) == 0)
--	    {
--	      remove = pl;
--	      remove_prev = prev;
--	      continue;
--	    }
--
--	  int l = strlen (pl->prefix);
--	  if (l > max_len)
--	    max_len = l;
--
--	  prev = &pl;
--	}
--
--      if (remove_prev)
--	{
--	  *remove_prev = remove->next;
--	  free (remove);
--	}
--
--      pprefix->max_len = max_len;
--    }
--}
-diff --git a/gcc/file-find.h b/gcc/file-find.h
-index 8f49a3af273e..407feba26e74 100644
---- a/gcc/file-find.h
-+++ b/gcc/file-find.h
-@@ -41,7 +41,6 @@ extern void find_file_set_debug (bool);
- extern char *find_a_file (struct path_prefix *, const char *, int);
- extern void add_prefix (struct path_prefix *, const char *);
- extern void add_prefix_begin (struct path_prefix *, const char *);
--extern void remove_prefix (const char *prefix, struct path_prefix *);
- extern void prefix_from_env (const char *, struct path_prefix *);
- extern void prefix_from_string (const char *, struct path_prefix *);
- 
-diff --git a/gcc/gcc-ar.c b/gcc/gcc-ar.c
-index 78d2fc1ad306..d5d80e042e5a 100644
---- a/gcc/gcc-ar.c
-+++ b/gcc/gcc-ar.c
-@@ -194,14 +194,6 @@ main (int ac, char **av)
- #ifdef CROSS_DIRECTORY_STRUCTURE
-       real_exe_name = concat (target_machine, "-", PERSONALITY, NULL);
- #endif
--      /* Do not search original location in the same folder.  */
--      char *exe_folder = lrealpath (av[0]);
--      exe_folder[strlen (exe_folder) - strlen (lbasename (exe_folder))] = '\0';
--      char *location = concat (exe_folder, PERSONALITY, NULL);
--
--      if (access (location, X_OK) == 0)
--	remove_prefix (exe_folder, &path);
--
-       exe_name = find_a_file (&path, real_exe_name, X_OK);
-       if (!exe_name)
- 	{

Copied: avr-gcc/repos/community-x86_64/Revert-eeb6872bf.patch (from rev 256977, avr-gcc/trunk/Revert-eeb6872bf.patch)
===================================================================
--- community-x86_64/Revert-eeb6872bf.patch	                        (rev 0)
+++ community-x86_64/Revert-eeb6872bf.patch	2017-09-11 18:53:09 UTC (rev 256978)
@@ -0,0 +1,82 @@
+commit 43d83a70267a9e5c456d28de8e7348820446b712
+Author: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+Date:   Tue May 16 07:50:42 2017 +0200
+
+    Revert "Prevent LTO wrappers to process a recursive execution"
+    
+    This reverts commit eeb6872bfdfd1e71b27de6f62a5f5c08a2efb015.
+
+diff --git a/gcc/file-find.c b/gcc/file-find.c
+index b072a4993d76..b5a1fe8494e8 100644
+--- a/gcc/file-find.c
++++ b/gcc/file-find.c
+@@ -208,38 +208,3 @@ prefix_from_string (const char *p, struct path_prefix *pprefix)
+     }
+   free (nstore);
+ }
+-
+-void
+-remove_prefix (const char *prefix, struct path_prefix *pprefix)
+-{
+-  struct prefix_list *remove, **prev, **remove_prev = NULL;
+-  int max_len = 0;
+-
+-  if (pprefix->plist)
+-    {
+-      prev = &pprefix->plist;
+-      for (struct prefix_list *pl = pprefix->plist; pl->next; pl = pl->next)
+-	{
+-	  if (strcmp (prefix, pl->prefix) == 0)
+-	    {
+-	      remove = pl;
+-	      remove_prev = prev;
+-	      continue;
+-	    }
+-
+-	  int l = strlen (pl->prefix);
+-	  if (l > max_len)
+-	    max_len = l;
+-
+-	  prev = &pl;
+-	}
+-
+-      if (remove_prev)
+-	{
+-	  *remove_prev = remove->next;
+-	  free (remove);
+-	}
+-
+-      pprefix->max_len = max_len;
+-    }
+-}
+diff --git a/gcc/file-find.h b/gcc/file-find.h
+index 8f49a3af273e..407feba26e74 100644
+--- a/gcc/file-find.h
++++ b/gcc/file-find.h
+@@ -41,7 +41,6 @@ extern void find_file_set_debug (bool);
+ extern char *find_a_file (struct path_prefix *, const char *, int);
+ extern void add_prefix (struct path_prefix *, const char *);
+ extern void add_prefix_begin (struct path_prefix *, const char *);
+-extern void remove_prefix (const char *prefix, struct path_prefix *);
+ extern void prefix_from_env (const char *, struct path_prefix *);
+ extern void prefix_from_string (const char *, struct path_prefix *);
+ 
+diff --git a/gcc/gcc-ar.c b/gcc/gcc-ar.c
+index 78d2fc1ad306..d5d80e042e5a 100644
+--- a/gcc/gcc-ar.c
++++ b/gcc/gcc-ar.c
+@@ -194,14 +194,6 @@ main (int ac, char **av)
+ #ifdef CROSS_DIRECTORY_STRUCTURE
+       real_exe_name = concat (target_machine, "-", PERSONALITY, NULL);
+ #endif
+-      /* Do not search original location in the same folder.  */
+-      char *exe_folder = lrealpath (av[0]);
+-      exe_folder[strlen (exe_folder) - strlen (lbasename (exe_folder))] = '\0';
+-      char *location = concat (exe_folder, PERSONALITY, NULL);
+-
+-      if (access (location, X_OK) == 0)
+-	remove_prefix (exe_folder, &path);
+-
+       exe_name = find_a_file (&path, real_exe_name, X_OK);
+       if (!exe_name)
+ 	{



More information about the arch-commits mailing list