small bug in parallel-netcdf configure.in

Wei-keng Liao wkliao at eecs.northwestern.edu
Wed Jul 23 09:19:03 CDT 2014


Hi, Pierre

Thanks for the bug report and providing the patch.
Adrien Berchet from the Université de Poitiers also reported this
problem earlier, but I could not figure out it is caused by the newer
version of bash. So, I have committed a fix using command "cut" instead.
See http://trac.mcs.anl.gov/projects/parallel-netcdf/changeset/1737
I will be appreciated if you can give it a try and let me know if my patch
works on the newer bash.

best regards

Wei-keng

On Jul 23, 2014, at 8:37 AM, KESTENER Pierre wrote:

> Dear pnetcdf developpers,
> 
> There is a very small "bug" in the configure.in file (in version release 1.4.1 and 1.5.0 a well as) related to bash version.
> I noticed this by upgrading from ubuntu 13.10 to ubuntu 14.04, and it related to the fact that bash version changed from 4.2.x to 4.3.11
> 
> Have a look at the way PNETCDF_RELEASE_DATE is created:
> 
> SVN_DATE="$LastChangedDate: 2014-07-08 00:50:59 -0500 (Tue, 08 Jul 2014) $"
> saved_IFS=${IFS}
> IFS="\ " read t_key PNETCDF_RELEASE_DATE2 t_time t_zone t_string <<< ${SVN_DATE}
> IFS="() $," read t_day PNETCDF_RELEASE_DATE <<< $t_string
> IFS=${saved_IFS}
> 
> this is working with bash version < 4.3 but not with recent bash.
> With bash 4.3, you get PNETCDF_RELEASE="Mon, 23 Dec 2013) $"
> notice the $ at the end of string, at make install step, m4 is unhappy.
> 
> I suggest to change
> IFS="() $," read t_day PNETCDF_RELEASE_DATE <<< $t_string
> into
> IFS="(,)$" read t_start t_day PNETCDF_RELEASE_DATE t_end <<< $t_string
> 
> and it is working with the latest bash.
> 
> Best regards,
> 
> Pierre Kestener.
> 
> 
> 
> -- 
> +--------------------------------------------------------+
>  Pierre KESTENER - Research Engineer
>  CEA Saclay -- DSM/Maison de la Simulation
>  DIGITEO building - 565, room 18
>  91191 Gif-sur-Yvette - FRANCE
>  tel : +33 (0)1 69 08 48 26
>  http://www.maisondelasimulation.fr
>  http://pierre.kestener.org/
> +--------------------------------------------------------+



More information about the parallel-netcdf mailing list