code-saturne/code_saturne

cs_config.py: config.compilers['version'] = @CC_VERSION@ not replaced by autotools

christoph-conrads opened this issue · 3 comments

In the code below, @CC_VERSION@ is not replaced by autotools when building Code_Saturne 6.0.5, 6.3.1, and 7.0.0 in a Linux container with Devuan Beowulf (Debian 10 without systemd).

Template input:

self.compilers = {'cc': "@CC@",
'cxx': "@CXX@",
'fc': "@FC@",
'ld': "@CS_LD@",
'version': "@CC_VERSION@"}

Output (here with prefix.cs-6.3.1/lib/python3.7/site-packages/code_saturne/cs_config.py):

        self.compilers = {'cc': "gcc",
                          'cxx': "g++",
                          'fc': "gfortran",
                          'ld': "gcc",
                          'version': "@CC_VERSION@"}

Let me know if you need log files.

Line 171 is also not substituted by Autotools:

self.features['nls'] = '@USE_NLS@'

The CC_VERSION issue has been fixed in the master branch in commit 4a08ac5.

The USE_NLS issue is related to the removal/deactivation of gettext-based internationalization in v6.1, so I also need to remove that.

No need for log files here, I reproduce this.

Fixed in commit c55950b (master).