FS#34577 - [hdf5-cpp-fortran] broken by gcc-fortran update

Attached to Project: Arch Linux
Opened by Daniel Mitchell (dmitchell) - Tuesday, 02 April 2013, 20:22 GMT
Last edited by Ronald van Haren (pressh) - Saturday, 11 May 2013, 09:35 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ronald van Haren (pressh)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

After updating to gcc-fortran-4.8, fortran code using HDF5 no longer compiles. From gfortran 4.8 release notes:

"Module files: The version of the module files (.mod) has been incremented. Fortran MODULEs compiled by earlier GCC versions have to be recompiled, when they are USEd by files compiled with GCC 4.8, because GCC 4.8 is not able to read .mod file of earlier GCC versions; attempting to do so gives an error message."

http://gcc.gnu.org/wiki/GFortran#GCC4.8

I'm marking this high severity because the hdf5-cpp-fortran is no longer functional.
This task depends upon

Closed by  Ronald van Haren (pressh)
Saturday, 11 May 2013, 09:35 GMT
Reason for closing:  Fixed
Additional comments about closing:  1.8.10_patch1
Comment by Daniel Mitchell (dmitchell) - Tuesday, 02 April 2013, 20:23 GMT
Forgot to say that I'm talking about hdf5-cpp-fortran-1.8.10-1.
Comment by Daniel Landau (dlandau) - Friday, 12 April 2013, 17:20 GMT
Hdf group has released a new version called 1.8.10-patch1. With the following diff to the PKGBUILD from ABS I can build the current hdf5-library for Fortran with gfortran 4.8 and that at least compiles and links with one of the hdf5 examples from http://www.hdfgroup.org/ftp/HDF5/examples/examples-by-api/api18-fortran.html.

I'm new to Arch and would like to get involved in packaging.

=====

$ diff -u /var/abs/extra/hdf5-cpp-fortran/PKGBUILD hdf5-cpp-fortran/PKGBUILD
--- /var/abs/extra/hdf5-cpp-fortran/PKGBUILD 2013-04-11 19:05:43.000000000 -0300
+++ hdf5-cpp-fortran/PKGBUILD 2013-04-12 14:08:25.631380057 -0300
@@ -6,7 +6,7 @@

pkgname=hdf5-cpp-fortran
_pkgname=hdf5
-pkgver=1.8.10
+pkgver=1.8.10_patch1
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="General purpose library and file format for storing scientific data"
@@ -18,7 +18,7 @@
provides=('hdf5')
source=(ftp://ftp.hdfgroup.org/HDF5/current/src/${_pkgname}-${pkgver/_/-}.tar.bz2)
options=('!libtool')
-sha1sums=('867a91b75ee0bbd1f1b13aecd52e883be1507a2c')
+sha1sums=('458cb91496e313debd55d52a7f89459a5469cceb')

build() {
cd $srcdir/${_pkgname}-${pkgver/_/-}

Loading...