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

Correctly use BASEDIR when checking for src component #404

Closed
wants to merge 1 commit into from

Conversation

sonicaj
Copy link

@sonicaj sonicaj commented Jun 13, 2019

BASEDIR is used to check to ensure we check sources in the right place as outlined by ba040f8#diff-7d334bdfcbfcd070ed2c6a35ada63787.
Problem is that when this function is called, BASEDIR is empty because we set it to empty while reading conffile. This change ensures that if basedir is specified in conffile, that is used, if not then command line argument
is checked and if that is not present as well then we default to /. Came across this at iocage/iocage#892.

BASEDIR is used to check to ensure we check sources in the right place as outlined by freebsd@ba040f8#diff-7d334bdfcbfcd070ed2c6a35ada63787.
Problem is that when this function is called, BASEDIR is empty because we set it to empty while reading conffile. This change ensures that if basedir is specified in conffile, that is used, if not then command line argument
is checked and if that is not present as well then we default to /. Came across this at iocage/iocage#892.
@grembo
Copy link
Contributor

grembo commented Sep 24, 2019

@sonicaj This has been fixed (in a slightly different way) in r352542 (https://svnweb.freebsd.org/base?view=revision&revision=352542), which was merged to 11/stable and 12/stable and will be part of 12.1 RELEASE, so this can be closed.

(This is 9d50cda on the github mirror)

@koobs
Copy link
Member

koobs commented Sep 25, 2019

Thanks @grembo

@koobs koobs closed this Sep 25, 2019
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