prints need protection from qualifiers starting with "-"
I have gotten a strange error, that I am not even sure I can systematically reproduce.
$ mrb install -j4 /uboone/app/users/petrillo/LArSoft/develop/e6_prof/build_slf6.x86_64 calling buildtool -I /uboone/app/users/petrillo/LArSoft/develop/e6_prof/localProducts_larsoft_v03_04_06_e6_prof -i -j4 /grid/fermiapp/products/larsoft/cetbuildtools/v4_03_03/bin/buildtool: line 494: printf: -n: invalid option printf: usage: printf [-v var] format [arguments] ERROR: Qualifier has changed from "-nq-:prof" to "e6:prof": need clean build.
I am reporting this because in
printf calls should be protected from arguments that can start with a dash.
At line 494 of
printf "$1" | tr ':' '\n' | sort | tr '\n' ':' | sed -e 's/:$//'
printf -- "$1" | tr ':' '\n' | sort | tr '\n' ':' | sed -e 's/:$//'
Note: this issue is not about the
mrb problem that triggers that output, which is probably a temporary glitch in my shell.
#1 Updated by Lynn Garren about 5 years ago
- Status changed from New to Feedback
We believe that if you try again with the latest mrb and cetbuildtools you will not have this problem, since
nq should not be passed to buildtool.
Additionally, a fix has been committed to buildtool which will be available in an upcoming release of cetbuildtools.