Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwnext.git;a=commitdiff;h=1de118edac2a02b6e0ba8d69805ed7f90f284623

commit 1de118edac2a02b6e0ba8d69805ed7f90f284623
Author: crazy <[email protected]>
Date:   Tue Sep 29 18:57:36 2015 +0200

gcc-5.2.0-1-x86_64
* Version bump ( r1 )
* changed m8r to me ( for now )
* removed patches are not needed anymore
* droped cloog , gcc5 don't need it
* fixed FB so all Fuse FOO wiil work again
* move the opt for size  to arm , we don't want s/-O2/-Os/ on other ARCH
* move isl and his options to $USE_ADA
* -> libstdcxx-abi=gcc4-compatible

diff --git a/source/devel/gcc/FrugalBuild b/source/devel/gcc/FrugalBuild
index b922410..09e7101 100644
--- a/source/devel/gcc/FrugalBuild
+++ b/source/devel/gcc/FrugalBuild
@@ -1,5 +1,6 @@
# Compiling Time: 26.48 SBU
-# Maintainer: James Buren <[email protected]>
+# Maintainer: crazy <[email protected]>
+# Contributor: James Buren <[email protected]>
# Contributor: Miklos Vajna <[email protected]>

USE_SHARED=${USE_SHARED:-"y"}
@@ -23,11 +24,12 @@ fi
Fuse $USE_OBJC && USE_CXX="y"

pkgname=gcc
-pkgver=4.9.2
-pkgrel=2
+pkgver=5.2.0
+pkgrel=1
pkgdesc="The GNU Compiler Collection"
url="http://gcc.gnu.org";
depends=('binutils>=2.18.50.0.8-3' 'glibc>=2.8-2' 'libmpc>=1.0.2' 'zlib')
+makedepends=('kernel-headers>=4.2.1')
provides=('c-compiler')
groups=('devel' 'devel-core')
archs=('i686' 'x86_64' 'arm')
@@ -44,9 +46,7 @@ else
gccver=$pkgver
up2date="lynx -dump http://ftp.gnu.org/pub/gnu/gcc/|grep gcc-.*/$|sed -n 
's|.*gcc-\(.*\)/|\1|;$ p'"
source=(http://ftp.gnu.org/pub/gnu/gcc/gcc-$pkgver/gcc-$pkgver.tar.bz2)
-       sha1sums=('79dbcb09f44232822460d80b033c962c0237c6d8')
-       source=("${source[@]}" gcc-4.9-fix-includes.patch)
-       sha1sums=("${sha1sums[@]}" '43c52c7a557b62d167407e946bbc50c4f1388b97')
+       sha1sums=('fe3f5390949d47054b613edc36c557eb1d51c18e')
fi

if Fuse $USE_SHARED; then
@@ -59,6 +59,7 @@ if Fuse $USE_SHARED; then
subreplaces=('' '' '' '')
fi
if Fuse $USE_CXX; then
+       ## https://gcc.gnu.org/gcc-5/changes.html#libstdcxx
cppdocver=20140403
source=("${source[@]}" 
ftp://gcc.gnu.org/pub/gcc/libstdc++/doxygen/libstdc++-api.$cppdocver.man.tar.bz2)
sha1sums=("${sha1sums[@]}" 'ece96007d8752c86ce027b7a19f13b58c6709e7a')
@@ -86,6 +87,10 @@ if Fuse $USE_GO; then
subreplaces=("${subreplaces[@]}" '' '')
fi
if Fuse $USE_ADA; then
+       ## see https://gcc.gnu.org/gcc-5/changes.html
+       islver=0.14.1
+       source=("${source[@]}" http://isl.gforge.inria.fr/isl-$islver.tar.xz)
+       sha1sums=("${sha1sums[@]}" 'f3b8280849b09eb3a30138909085292eb481b1b1')
subpkgs=("${subpkgs[@]}" 'libgnat' 'gcc-gnat')
subdescs=("${subdescs[@]}" 'Ada 95 runtime shared libraries' 'Ada 95 support 
for GCC')
subrodepends=("${subrodepends[@]}" 'libgcc' 'libgnat gcc')
@@ -109,26 +114,23 @@ do
i=$(($i+1))
done

-islver=0.12.2
-cloogver=0.18.3
-source=("${source[@]}" http://isl.gforge.inria.fr/isl-$islver.tar.bz2 
http://www.bastoul.net/cloog/pages/download/cloog-$cloogver.tar.gz)
-sha1sums=("${sha1sums[@]}" 'ca98a91e35fb3ded10d080342065919764d6f928' 
'829c14bb701bfdac589de2b6855564bbb0041efb')

build()
{
Fcd
Fsed 'lib64' 'lib' gcc/config/i386/t-linux64
+
# no fixincludes, thanks
Fsed '\./fixinc\.sh' '-c true' gcc/Makefile.in
-       for i in isl-$islver cloog-$cloogver
-       do
-               if [ ! -d "../$i" ]
-               then
-                       Fmessage "../$i not found!"
+
+       if Fuse $USE_ADA; then
+               if [ ! -d "../isl-$islver" ]; then
+                       Fmessage "../isl-$islver not found!"
Fdie
-               fi
-               ln -sf "../$i" "${i/-*/}" || Fdie
-       done
+                       fi
+               ln -sf "../isl-$islver" "isl" || Fdie
+       fi
+
Fpatchall
## well reconf / autoreconf is br0ken in gcc .. so do it that way heh

@@ -141,25 +143,33 @@ build()
## libstdcxx-pch is really a waste of space , nothing need nor uses that
Fconfopts+=" --enable-__cxa_atexit \
--enable-libstdcxx-allocator=new \
-                       --disable-libstdcxx-pch"
+                       --disable-libstdcxx-pch \
+                       --with-default-libstdcxx-abi=gcc4-compatible"
fi
+
Fuse $USE_OBJC && langlist="$langlist,objc,obj-c++"
-       Fuse $USE_ADA && langlist="$langlist,ada"
+
+       if Fuse $USE_ADA; then
+               langlist="$langlist,ada"
+               Fconfopts+=" --with-isl"
+       fi
+
if Fuse $USE_FORTRAN; then
langlist="$langlist,fortran"
Fconfopts+=" --enable-libquadmath --enable-libquadmath-support"
else
Fconfopts+=" --disable-libquadmath --disable-libquadmath-support"
fi
+
Fuse $USE_GO && langlist="$langlist,go"

if [ "$CARCH" == "arm" ]; then
Fconfopts+=" --enable-softfloat \
-                       --with-float=soft --disable-bootstrap"
+                       --with-float=soft \
+                       --disable-bootstrap \
+                       --enable-target-optspace"
fi

-       Fconfopts+=" --enable-target-optspace"
-
_F_conf_configure=../$_F_cd_path/configure
CC="$FCC gcc" CFLAGS="$CFLAGS" CXXFLAGS="$CFLAGS" XCFLAGS="$CFLAGS" \
TCFLAGS="$CFLAGS"
@@ -175,7 +185,7 @@ build()
--with-bugurl="http://bugs.frugalware.org/"; \
--with-pkgversion="Frugalware Linux" \
--enable-linux-futex \
-               --enable-cloog-backend=isl
+               --enable-checking=release

if Fuse $USE_SHARED; then
Fexec make STAGE_CC_WRAPPER="$FCC" BOOT_CFLAGS="$CFLAGS" || Fdie
@@ -225,15 +235,16 @@ build()
Fln gcc /usr/bin/gnatgcc

# move libgnat to the right location
-               Fmv 
usr/lib/gcc/$gcchost/$gccver/adalib/libgnarl-${gccver%.*}.so /usr/lib
-               Fmv usr/lib/gcc/$gcchost/$gccver/adalib/libgnat-${gccver%.*}.so 
/usr/lib
+               newgccver=${gccver%.*.*}
+               Fmv 
usr/lib/gcc/$gcchost/$gccver/adalib/libgnarl-${newgccver}.so /usr/lib
+               Fmv usr/lib/gcc/$gcchost/$gccver/adalib/libgnat-${newgccver}.so 
/usr/lib
Frm usr/lib/gcc/$gcchost/$gccver/adalib/lib{gnarl,gnat}.so
-               Fln libgnarl-${gccver%.*}.so /usr/lib/libgnarl.so
-               Fln libgnat-${gccver%.*}.so /usr/lib/libgnat.so
-               Fln ../../../../libgnarl-${gccver%.*}.so 
/usr/lib/gcc/$gcchost/$gccver/adalib/libgnarl.so
-               Fln ../../../../libgnarl-${gccver%.*}.so 
/usr/lib/gcc/$gcchost/$gccver/adalib/libgnarl-${gccver%.*}.so
-               Fln ../../../../libgnat-${gccver%.*}.so 
/usr/lib/gcc/$gcchost/$gccver/adalib/libgnat.so
-               Fln ../../../../libgnat-${gccver%.*}.so 
/usr/lib/gcc/$gcchost/$gccver/adalib/libgnat-${gccver%.*}.so
+               Fln libgnarl-${newgccver}.so /usr/lib/libgnarl.so
+               Fln libgnat-${newgccver}.so /usr/lib/libgnat.so
+               Fln ../../../../libgnarl-${newgccver}.so 
/usr/lib/gcc/$gcchost/$gccver/adalib/libgnarl.so
+               Fln ../../../../libgnarl-${newgccver}.so 
/usr/lib/gcc/$gcchost/$gccver/adalib/libgnarl-${newgccver}.so
+               Fln ../../../../libgnat-${newgccver}.so 
/usr/lib/gcc/$gcchost/$gccver/adalib/libgnat.so
+               Fln ../../../../libgnat-${newgccver}.so 
/usr/lib/gcc/$gcchost/$gccver/adalib/libgnat-${newgccver}.so
fi

# documentation
diff --git a/source/devel/gcc/gcc-4.9-fix-includes.patch 
b/source/devel/gcc/gcc-4.9-fix-includes.patch
deleted file mode 100644
index 5669acb..0000000
--- a/source/devel/gcc/gcc-4.9-fix-includes.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-diff -ur a/gcc/ada/cal.c b/gcc/ada/cal.c
---- a/gcc/ada/cal.c    2009-04-09 17:00:19.000000000 +0200
-+++ b/gcc/ada/cal.c    2015-03-01 01:34:53.744615329 +0100
-@@ -74,6 +74,7 @@
- #endif
- #endif
-
-+#include <time.h>
- void
- __gnat_timeval_to_duration (struct timeval *t, long *sec, long *usec)
- {
-diff -ur a/gcc/ada/socket.c b/gcc/ada/socket.c
---- a/gcc/ada/socket.c 2014-08-12 21:49:19.000000000 +0200
-+++ b/gcc/ada/socket.c 2015-03-01 01:34:12.438365517 +0100
-@@ -88,6 +88,7 @@
- #include <string.h>
- /* Required for memcpy() */
-
-+#include <unistd.h>
- extern void __gnat_disable_sigpipe (int fd);
- extern void __gnat_disable_all_sigpipes (void);
- extern int  __gnat_create_signalling_fds (int *fds);
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to