You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Directories named "0" are unintentionally removed from paths by the internal version of catfile in fcm_internal. This patch will fix the issue:
diff --git FCM/bin/fcm_internal
@@ -520,7 +520,7 @@ sub catfile {
my $path = shift @names;
for my $name (@names) {
- $path .= '/' . $name if $name;
+ $path .= '/' . $name if ($name or $name eq 0);
}
return $path;
when applied to line 537 of the latest version. But it isn't clear why fcm_internal needs local copies of the File::Spec routines at all? Why not use the supported versions which don't have this issue and are already being used in many other parts of the package?
The text was updated successfully, but these errors were encountered:
To provide some context: this feature breaks an attempt to build NEMO in a directory such as:
/working/user/CI/0/nemo/tests/OVERFLOW
source files are preprocessed and compiled in the correct locations but the final linking stage fails because the 'fcm_internal load' section strips out the '0' directory in this call:
# Name of main object file
my $mainobj = (basename ($info->{SRC}) eq $info->{SRC})
? catfile (&get_env ('FCM_OBJDIR'), $info->{SRC})
: $info->{SRC};
using File::Spec->catfile instead of the local version does not have this issue.
This arose during an attempt to set up a CI test facility where the numbered directories are automatically generated. The NEMO system team can correct this in versions released with NEMO but wish to avoid reoccurrence with future updates.
Directories named "0" are unintentionally removed from paths by the internal version of catfile in fcm_internal. This patch will fix the issue:
when applied to line 537 of the latest version. But it isn't clear why fcm_internal needs local copies of the File::Spec routines at all? Why not use the supported versions which don't have this issue and are already being used in many other parts of the package?
The text was updated successfully, but these errors were encountered: