summaryrefslogtreecommitdiff
path: root/gcc-fortran
diff options
context:
space:
mode:
authorDanny Rawlins <romster@shortcircuit.net.au>2007-03-31 10:04:40 +1000
committerDanny Rawlins <romster@shortcircuit.net.au>2007-03-31 11:36:23 +1000
commit213d996e01e1b9508b58be7947618a3be58996eb (patch)
treec62cdf6dd564809db19c4e3b0ccbac1697f9de7b /gcc-fortran
parentc71e4a706e178fba3862b178d1c1d9f1e1c9097b (diff)
downloadcontrib-213d996e01e1b9508b58be7947618a3be58996eb.tar.gz
contrib-213d996e01e1b9508b58be7947618a3be58996eb.tar.xz
gcc-fortran: 4.0.3 -> 4.1.2
Diffstat (limited to 'gcc-fortran')
-rw-r--r--gcc-fortran/.footprint18
-rw-r--r--gcc-fortran/.md5sum7
-rw-r--r--gcc-fortran/Pkgfile41
-rw-r--r--gcc-fortran/gcc-fortran-4.0.3-version.patch12
-rw-r--r--gcc-fortran/gcc-fortran-4.1.2-fixinc.patch16
-rw-r--r--gcc-fortran/gcc-fortran-4.1.2-nocheck-fixincludes.patch14
6 files changed, 78 insertions, 30 deletions
diff --git a/gcc-fortran/.footprint b/gcc-fortran/.footprint
index 2b977eec3..0eb1520c5 100644
--- a/gcc-fortran/.footprint
+++ b/gcc-fortran/.footprint
@@ -4,15 +4,23 @@ lrwxrwxrwx root/root usr/bin/f90 -> gfortran
lrwxrwxrwx root/root usr/bin/f95 -> gfortran
-rwxr-xr-x root/root usr/bin/gfortran
drwxr-xr-x root/root usr/lib/
+drwxr-xr-x root/root usr/lib/ccache/
+lrwxrwxrwx root/root usr/lib/ccache/f90 -> ../../bin/ccache
+lrwxrwxrwx root/root usr/lib/ccache/f95 -> ../../bin/ccache
+lrwxrwxrwx root/root usr/lib/ccache/gfortran -> ../../bin/ccache
+drwxr-xr-x root/root usr/lib/distcc/
+lrwxrwxrwx root/root usr/lib/distcc/f90 -> ../../bin/distcc
+lrwxrwxrwx root/root usr/lib/distcc/f95 -> ../../bin/distcc
+lrwxrwxrwx root/root usr/lib/distcc/gfortran -> ../../bin/distcc
drwxr-xr-x root/root usr/lib/gcc/
drwxr-xr-x root/root usr/lib/gcc/i686-pc-linux-gnu/
-drwxr-xr-x root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/
--rwxr-xr-x root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/f951
+drwxr-xr-x root/root usr/lib/gcc/i686-pc-linux-gnu/4.1.2/
+-rwxr-xr-x root/root usr/lib/gcc/i686-pc-linux-gnu/4.1.2/f951
-rw-r--r-- root/root usr/lib/libgfortran.a
-rwxr-xr-x root/root usr/lib/libgfortran.la
-lrwxrwxrwx root/root usr/lib/libgfortran.so -> libgfortran.so.0.0.0
-lrwxrwxrwx root/root usr/lib/libgfortran.so.0 -> libgfortran.so.0.0.0
--rwxr-xr-x root/root usr/lib/libgfortran.so.0.0.0
+lrwxrwxrwx root/root usr/lib/libgfortran.so -> libgfortran.so.1.0.0
+lrwxrwxrwx root/root usr/lib/libgfortran.so.1 -> libgfortran.so.1.0.0
+-rwxr-xr-x root/root usr/lib/libgfortran.so.1.0.0
-rw-r--r-- root/root usr/lib/libgfortranbegin.a
-rwxr-xr-x root/root usr/lib/libgfortranbegin.la
drwxr-xr-x root/root usr/man/
diff --git a/gcc-fortran/.md5sum b/gcc-fortran/.md5sum
index a9dbdeb83..a8d9b914d 100644
--- a/gcc-fortran/.md5sum
+++ b/gcc-fortran/.md5sum
@@ -1,3 +1,4 @@
-347231730fb44b609b69226c3e432d80 gcc-core-4.0.3.tar.bz2
-e35acd0ee75799f0a82b6e9c7e330073 gcc-fortran-4.0.3-version.patch
-62db1b0901dccad81f6bc2792dbbbd49 gcc-fortran-4.0.3.tar.bz2
+2af3fb599635219171c6ae1f3034888a gcc-core-4.1.2.tar.bz2
+30e33e6ecedfc346f48240589414aa92 gcc-fortran-4.1.2-fixinc.patch
+36fb6ec15a5f2a6572da0b02a3cf9d66 gcc-fortran-4.1.2-nocheck-fixincludes.patch
+39621038e425c73f955db8c8db411c34 gcc-fortran-4.1.2.tar.bz2
diff --git a/gcc-fortran/Pkgfile b/gcc-fortran/Pkgfile
index 7d3aa835f..7ad4b079c 100644
--- a/gcc-fortran/Pkgfile
+++ b/gcc-fortran/Pkgfile
@@ -5,18 +5,23 @@
# Depends on: libmpfr
name=gcc-fortran
-version=4.0.3
+version=4.1.2
release=3
source=(ftp://sources.redhat.com/pub/gcc/releases/gcc-$version/gcc-{core,fortran}-$version.tar.bz2 \
- gcc-fortran-$version-version.patch)
+ gcc-fortran-$version-nocheck-fixincludes.patch \
+ gcc-fortran-$version-fixinc.patch)
build() {
- patch -d gcc-$version -p1 -i $SRC/gcc-fortran-$version-version.patch
- cd gcc-$version
+ patch -d gcc-$version -p1 -i $SRC/gcc-fortran-$version-nocheck-fixincludes.patch
+ patch -d gcc-$version -p1 -i $SRC/gcc-fortran-$version-fixinc.patch
+
+ sed -i -e 's|VERSUFFIX ""|VERSUFFIX " (CRUX)"|' \
+ gcc-$version/gcc/version.c
+
mkdir build
cd build
- ../configure \
+ ../gcc-$version/configure \
--prefix=/usr \
--libexecdir=/usr/lib \
--enable-languages=f95 \
@@ -27,15 +32,15 @@ build() {
--disable-nls \
--with-x=no
- make
- #make check
+ make bootstrap
+ make check
make DESTDIR=$PKG install
- ln -s gfortran $PKG/usr/bin/f90
- ln -s gfortran $PKG/usr/bin/f95
+ ln -fs gfortran $PKG/usr/bin/f90
+ ln -fs gfortran $PKG/usr/bin/f95
# remove un-needed files
- find $PKG -name 'README' -exec rm {} \;
+ find $PKG -name 'README' -delete
rm \
$PKG/usr/lib/libiberty.a \
@@ -62,5 +67,21 @@ build() {
for i in `find $PKG -name '*.la' | sed -e "s|$PKG|/|"`; do
sed -i "s|-L$SRC[^ ]* ||g" $PKG/$i
done
+
+ # install distcc symlinks if distcc is installed
+ if prt-get listinst distcc > /dev/null; then
+ install -d $PKG/usr/lib/distcc
+ for c in f90 f95 gfortran; do
+ cd $PKG/usr/lib/distcc && ln -s ../../bin/distcc $c
+ done
+ fi
+
+ # install ccache symlinks if ccache is installed
+ if prt-get listinst ccache > /dev/null; then
+ install -d $PKG/usr/lib/ccache
+ for c in f90 f95 gfortran; do
+ cd $PKG/usr/lib/ccache && ln -s ../../bin/ccache $c
+ done
+ fi
}
diff --git a/gcc-fortran/gcc-fortran-4.0.3-version.patch b/gcc-fortran/gcc-fortran-4.0.3-version.patch
deleted file mode 100644
index 7db7456bf..000000000
--- a/gcc-fortran/gcc-fortran-4.0.3-version.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -Nru gcc-4.0.3-old/gcc/version.c gcc-4.0.3/gcc/version.c
---- gcc-4.0.3-old/gcc/version.c 2006-03-14 02:13:18.000000000 +0100
-+++ gcc-4.0.3/gcc/version.c 2006-03-14 02:14:20.000000000 +0100
-@@ -5,7 +5,7 @@
- please modify this string to indicate that, e.g. by putting your
- organization's name in parentheses at the end of the string. */
-
--const char version_string[] = "4.0.3";
-+const char version_string[] = "4.0.3 (CRUX)";
-
- /* This is the location of the online document giving instructions for
- reporting bugs. If you distribute a modified version of GCC,
diff --git a/gcc-fortran/gcc-fortran-4.1.2-fixinc.patch b/gcc-fortran/gcc-fortran-4.1.2-fixinc.patch
new file mode 100644
index 000000000..f088631a1
--- /dev/null
+++ b/gcc-fortran/gcc-fortran-4.1.2-fixinc.patch
@@ -0,0 +1,16 @@
+--- gcc-4.1-20060505/gcc/Makefile.in.orig 2006-05-12 12:50:13.051496504 +0200
++++ gcc-4.1-20060505/gcc/Makefile.in 2006-05-12 12:51:05.218565904 +0200
+@@ -3178,12 +3178,7 @@
+ fi
+ rm -rf include; mkdir include
+ -chmod a+rx include
+- (TARGET_MACHINE='$(target)'; srcdir=`cd $(srcdir); ${PWD_COMMAND}`; \
+- SHELL='$(SHELL)'; MACRO_LIST=`${PWD_COMMAND}`/macro_list ; \
+- export TARGET_MACHINE srcdir SHELL MACRO_LIST && \
+- cd $(build_objdir)/fixincludes && \
+- $(SHELL) ./fixinc.sh ../../gcc/include \
+- $(SYSTEM_HEADER_DIR) $(OTHER_FIXINCLUDES_DIRS) )
++ cd $(build_objdir)/fixincludes
+ rm -f include/syslimits.h
+ if [ -f include/limits.h ]; then \
+ mv include/limits.h include/syslimits.h; \
diff --git a/gcc-fortran/gcc-fortran-4.1.2-nocheck-fixincludes.patch b/gcc-fortran/gcc-fortran-4.1.2-nocheck-fixincludes.patch
new file mode 100644
index 000000000..9f63ee06e
--- /dev/null
+++ b/gcc-fortran/gcc-fortran-4.1.2-nocheck-fixincludes.patch
@@ -0,0 +1,14 @@
+diff -Nru gcc-4.0.3-old/fixincludes/Makefile.in gcc-4.0.3/fixincludes/Makefile.in
+--- gcc-4.0.3-old/fixincludes/Makefile.in 2006-03-14 02:13:34.000000000 +0100
++++ gcc-4.0.3/fixincludes/Makefile.in 2006-03-14 02:17:39.000000000 +0100
+@@ -163,9 +163,7 @@
+ cp $(srcdir)/../gcc/aclocal.m4 .
+
+ check : all
+- autogen -T $(srcdir)/check.tpl $(srcdir)/inclhack.def
+- $(SHELL) ./check.sh $(srcdir)/tests/base
+- @rm -f ./check.sh
++ echo "No check here.."
+
+ install : all
+ -rm -rf $(DESTDIR)$(itoolsdir)

Generated by cgit