Opened 5 years ago
Closed 5 years ago
#19148 closed defect (fixed)
SVN revision extracted from wrong variable in export_modules.sh
Reported by: | Jan Palus | Owned by: | Klaus Espenlaub |
---|---|---|---|
Component: | other | Version: | VirtualBox 6.1.0 |
Keywords: | Cc: | ||
Guest type: | other | Host type: | Linux |
Description
It appears that VirtualBox 6.1 moved SVN revision information from VBOX_SVN_REV_FALLBACK variable to VBOX_SVN_REV_CONFIG_FALLBACK which was not reflected in export_modules.sh scripts (src/VBox/Additions/linux/export_modules.sh, src/VBox/HostDrivers/linux/export_modules.sh). Without SVN revision exported modules fail to compile. See attached patch.
Attachments (1)
Change History (10)
by , 5 years ago
Attachment: | svn_rev.patch added |
---|
comment:1 by , 5 years ago
follow-up: 3 comment:2 by , 5 years ago
I confirm that provided patch is under MIT license. Hopefully such statement is enough :).
comment:3 by , 5 years ago
Replying to jpalus:
I confirm that provided patch is under MIT license. Hopefully such statement is enough :).
Absolutely. thanks!
comment:4 by , 5 years ago
Owner: | set to |
---|---|
Status: | new → accepted |
comment:5 by , 5 years ago
Thanks for spotting this remaining issue.
The patch isn't right, though, because it would just revive the old, broken SVN revision fallback handling. Config.kmk isn't guaranteed to be updated on a release (in fact in 99.9% of all cases it isn't any more). The correct handling is implemented in Config.kmk (setting VBOX_SVN_REV_FALLBACK, taking the maximum of VBOX_SVN_REV_CONFIG_FALLBACK and VBOX_SVN_REV_VERSION_FALLBACK), but that's not usable from these scripts.
If you need a quick solution, you can get a perfect fallback for releases (but not for the public svn repository) by going for VBOX_SVN_REV_VERSION_FALLBACK in Version.kmk.
follow-up: 7 comment:6 by , 5 years ago
Hope that r82582 fixes this issue (also spotted that the script still cared about vboxpci which is disabled for 6.1.0). Didn't have time to test.
comment:8 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | accepted → assigned |
comment:9 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Thanks, are you providing this patch under the MIT license? This needs to be explicitely stated in the bug/patch submittion.
For code contributions, please see:
https://www.virtualbox.org/wiki/Contributor_information