Alexander Amelkin wants to merge 0 commits from /u/spirit-rc/ipmitool/ to master, 2017-02-12
Zdenek, this is the refined set of fixes. It is based on the master branch of the T-Platforms fork, but is cleaner. The commit with git hash was tailored to work even when git (or repo info) is not available . The fixes, formatting fixes and re-fixes were squashed together as appropriate. Additional care has been taken to not introduce new warnings. T-Platforms related changes have been completely dropped.
Please consider merging this.
| Commit | Date |
|---|
Hello Alexander,
I believe word "fields" is missing in this message as it's present in all other messages. Also:
probably should be "fields" instead of "field" given plural form is used in messages and source code.
Thank you,
Z.
I agree on the first one. Although that is just a move of the message from the original code (see hunk 4 of the patch, original file's line 2806). I initially fixed that wording, but then decided to leave the original message intact. You see in in the diff just because diff format can't properly handle such moves (moved to another code block and indented). Do you want me to fix this?
I disagree on the second one. It's a continuation of "ERROR: File has insufficient data (%d bytes) for the", and is meant to say that we expected data for a (i.e. single) custom field (found a corresponding type/length byte previously) but the actual file was too short.
Yes please. Please, squash if possible.
I see. Ok.
Done. Squashed.
Zdenek,
In addition to the changes already in merge request, I have a proposal on how to further improve versioning for git-based builds.
Here is the commit log for that new change in my development branch:
You can see the patch at https://sourceforge.net/u/spirit-rc/ipmitool/ci/6b84ccd
Please tell me what you think and whether I should add that to the existing merge request?
Alexander.
Last edit: Alexander Amelkin 2017-02-08
Hello Alexander,
can we handle this perhaps in a separate MR? However, I would like to have a go on that shell script and write in a portable way which Bash isn't, unfortunatelly.
Thank you,
Zdenek
What would you suggest as a portable solution?
Good evening Alexander,
to put the code where my mouth is:
Best regards,
Zdenek
Zdenek, please check https://sourceforge.net/u/spirit-rc/ipmitool/ci/f0cd51d
I have replaced bash with sh, but didn't use your approach with set -eu as it requires at least XSI POSIX extension. I got rid of the <() bashism and -a option in [] (also an XSI extension). This version seems to be absolutely pure POSIX.
Hello Alexander,
not a fan, but I have no case against it :) Feel free to do MR.
Zdenek
Thank you for MR and fixes.
Zdenek