Package: gcc-mingw32
Version: 4.4.0-2
Severity: wishlist
Tags: patch

Hello,

Please consider distributing also the Fortran compiler available in
mingw, gfortran. I have attached a patch showing the changes needed in
order to do it: just enable fortran in the same way as C and C++ and
then modify the configure script for libgfortran in the same manner
than it is done already for libgcc.

I have built the package and tested it by compiling the popular BLAS
library as a DLL, and then linking it to a C program also
cross-compiled with gcc-mingw32. I have also tested the fortran compiler with 
a program using the new features provided by gfortran 4.4, with no other 
problem than the same described in bug #539033, that is, the dependency on 
libgcc_s_sjlj-1.dll for all the binaries generated.

Thank you.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gcc-mingw32 depends on:
ii  libc6                 2.9-23             GNU C Library: Shared libraries
ii  libgmp3c2             2:4.3.1+dfsg-2     Multiprecision arithmetic library
ii  libmpfr1ldbl          2.4.1-2            multiple precision floating-point 
ii  mingw32-binutils      2.18.50-20080109-1 Minimalist GNU win32 (cross) 
binut
ii  mingw32-runtime       3.13-1             Minimalist GNU win32 (cross) 
runti

gcc-mingw32 recommends no packages.

Versions of packages gcc-mingw32 suggests:
pn  cpp-doc                       <none>     (no description available)
pn  gcc-doc                       <none>     (no description available)

-- no debconf information
diff -pNru gcc-mingw32-4.4.0/debian/patches/01_host_subdir.diff gcc-mingw32-4.4.0b/debian/patches/01_host_subdir.diff
--- gcc-mingw32-4.4.0/debian/patches/01_host_subdir.diff	2009-07-28 17:14:07.000000000 +0200
+++ gcc-mingw32-4.4.0b/debian/patches/01_host_subdir.diff	2009-07-28 16:54:15.000000000 +0200
@@ -27,3 +27,16 @@ Index: config/acx.m4
  else
    host_subdir=.
  fi
+Index: libgfortran/configure
+===================================================================
+--- libgfortran/configure	(revision 147673)
++++ libgfortran/configure	(working copy)
+@@ -1596,6 +1596,8 @@
+ if ( test $srcdir = . && test -d gcc ) \
+    || test -d $srcdir/../host-${host_noncanonical}; then
+   host_subdir="host-${host_noncanonical}"
++elif test -d $srcdir/../host-${build_noncanonical}; then
++  host_subdir="host-${build_noncanonical}"
+ else
+   host_subdir=.
+ fi
diff -pNru gcc-mingw32-4.4.0/debian/rules gcc-mingw32-4.4.0b/debian/rules
--- gcc-mingw32-4.4.0/debian/rules	2009-07-28 17:14:07.000000000 +0200
+++ gcc-mingw32-4.4.0b/debian/rules	2009-07-28 16:55:10.000000000 +0200
@@ -8,7 +8,7 @@ DEB_TARBALL = gcc-$(upstream_version)-df
 DEB_TAR_SRCDIR := gcc-$(upstream_version)
 
 DEB_CONFIGURE_USER_FLAGS := \
-	--enable-languages=c,c++ \
+	--enable-languages=c,c++,fortran \
 	--target=i586-mingw32msvc \
 	--disable-multilib \
 	--enable-threads \
@@ -27,6 +27,9 @@ binary-install/gcc-mingw32::
 	# manpages here are empty, why would we want them?
 	rm -rf debian/gcc-mingw32/usr/share/man/man1
 
+	# gfortran info page
+	rm debian/gcc-mingw32/usr/share/info/gfortran.info
+
 	# collides with gcc locales
 	rm -rf debian/gcc-mingw32/usr/share/locale
 

Reply via email to