Skip to content

VBoxTpG: derive the VTG object UUID from the script - #827

Open
bmwiedemann wants to merge 1 commit into
VirtualBox:mainfrom
bmwiedemann:uuid
Open

VBoxTpG: derive the VTG object UUID from the script#827
bmwiedemann wants to merge 1 commit into
VirtualBox:mainfrom
bmwiedemann:uuid

Conversation

@bmwiedemann

Copy link
Copy Markdown

The UUID identifies the tracepoint data of a module, so it has to differ between modules, but there is no need for it to be random: a fresh one on every run makes VBoxDD.so, VBoxRT.so, VBoxVMM.so, VBoxSVC etc differ between two builds of the same sources.

Hash the script name and its content into a name-based (RFC-4122 version 3) UUID instead, which keeps it unique per module and stable across rebuilds.

See https://reproducible-builds.org/ for why this is good.

This patch was done while working on reproducible builds for openSUSE.

The UUID identifies the tracepoint data of a module, so it has to differ
between modules, but there is no need for it to be random: a fresh one on
every run makes VBoxDD.so, VBoxRT.so, VBoxVMM.so, VBoxSVC etc
differ between two builds of the same sources.

Hash the script name and its content into a name-based (RFC-4122 version
3) UUID instead, which keeps it unique per module and stable across
rebuilds.

See https://reproducible-builds.org/ for why this is good.

This patch was done while working on reproducible builds for openSUSE.

Signed-off-by: Bernhard M. Wiedemann <virtualboxbmw@lsmod.de>
@oracle-contributor-agreement

Copy link
Copy Markdown

Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
The following contributors of this PR have not signed the OCA:

To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application.

When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated.

If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public.

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. label Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Required At least one contributor does not have an approved Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant