Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[modes] Fix use with tools root explicitly set to host root. JB#58627 #17

Merged
merged 1 commit into from Aug 31, 2022

Conversation

martyone
Copy link
Member

No description provided.

Compared to tools_root, tools_prefix is empty when tools_root is empty
or "/".

This fixes commit c9fb642. The commit
aligned tools prefix handling under the obs-rpm-build+pp mode with the
other modes, but this broke the case when sb2-init is passed '-t /',
which is how it is used on OBS. It seems the obs-rpm-build+pp was
tweaked specifically for use with OBS while the other modes have never
been used there (since that time).

An attempt to ignore the '-t' option when '/' is passed as argument was
not successful. Despite the code comments and code branching for the
case that tools_root is unset, sb2 fails to load the rule tree in that
case. (This might be specific to targets that are not host-compatible.
sb2-init used to be used without '-t' under the SDK in case of i486
build targets.)
@martyone martyone changed the title [modes] Treat tools_root set to "/" as unset. JB#58627 [modes] Fix use with tools root explicitly set to host root. JB#58627 Aug 31, 2022
@martyone
Copy link
Member Author

Fixed the commit summary to match the approach finally used.

@martyone martyone merged commit 83c8f30 into master Aug 31, 2022
@martyone martyone deleted the jb58627 branch August 31, 2022 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants