small bug in parallel-netcdf configure.in
KESTENER Pierre
pierre.kestener at cea.fr
Wed Jul 23 08:37:49 CDT 2014
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/
+--------------------------------------------------------+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/parallel-netcdf/attachments/20140723/cfa30d47/attachment.html>
More information about the parallel-netcdf
mailing list