- edited description
- changed status to wontfix
Delete config-info before reconfiguring with an option list
The file config-info contains information about how the current configuration was configured. When re-configuring with a new option list, this file should be deleted, so that no information from the previous configuration can survive accidentally.
Keyword:
Comments (3)
-
-
reporter Are you sure that “config-info” is not looked at? I think there is a routine “ParseConfigInfo” that is run before configuring, and the options set there can be overwritten by the option list. If options are auto-detected and not explicitly set in the option list, then the value stored in “config-info” will remain, and the respective value will not be auto-detected.
-
That would be bad. I gave this a try right now and as far as I can tell that is not happening.
I copied my existing
config-info
to the Cactus root (ie out of its normal place) then modified it by removingCFLAGS
and after runningmake sim-config options=foo.cfg
the newly writtenconfig-info
no longer has aCFLAGS
setting (which was still present inconfigs/sim/config-info
when I ranmake sim-config
.ParseConfigInfo
is inCSTUtil
which is part ofCST
and later thansim-config
which instead runslib/make/setup_configuration.pl
. In thereconfig-info
is populated with data from the subroutineSetConfigureEnv
whose$config_file
is the argument tooptions=
passed to make. The Per script completely overwritesconfig-info
, never reading from it. TheCST
and later parts then read inconfig-info
.Note that
sim-reconfig
does read fromconfig-info
butsimfactory
's--reconfig
option tobuild
callssim-config
and notsim-reconfig
. - Log in to comment
Removing
config-info
when runningmake sim-config options=OptionList
is not required as the Cactus build system does not look at it. No such reading was observed in the past. Any read from it would be a bug in Cactus that should be fixed in Cactus and not by patching around it in simfactory.