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

run_qemu.sh: restore ability to build without ndctl #89

Closed
wants to merge 1 commit into from

Conversation

marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented Dec 18, 2024

Fixes commit 1a2a679 ("run_qemu.sh: fail immediately when $ndctl is invalid")

My bad, I didn't realize readlink -f $does_not_exist prints "$does_not_exit", I assumed it prints nothing and I did not test enough combinations. So, that previous commit made it way too hard to disable the ndctl build: you must pass --no-ndctl-build and have a valid ~/git/ndctl?! This makes no sense.

Fix the logic so either a blank ndctl=, or --no-ndctl-build is each enough to disable the ndctl build.

Fixes commit 1a2a679 ("run_qemu.sh: fail immediately when $ndctl is
invalid")

My bad, I didn't realize `readlink -f $does_not_exist` prints
"$does_not_exit", I assumed it prints nothing and I did not test enough
combinations. So, that previous commit made it way too hard to disable
the ndctl build: you must pass `--no-ndctl-build` _and_ have a valid
`~/git/ndctl`?! This makes no sense.

Fix the logic so either a blank `ndctl=`, or  `--no-ndctl-build` is
each enough to disable the ndctl build.

Signed-off-by: Marc Herbert <[email protected]>
@marc-hb marc-hb marked this pull request as draft December 22, 2024 04:43
@marc-hb
Copy link
Collaborator Author

marc-hb commented Dec 22, 2024

I just discovered that readlink -f has a very surprising behavior, I don't think it's the right tool here:

readlink -f notfound/notfound # empty
mkdir found
readlink -f found/notfound
/home/me/found/notfound # notfound does not exist, printed anyway!!
man readlink
       -f, --canonicalize
              canonicalize  by following every symlink in every component of the given name re‐
              cursively; all but the last component must exist

@marc-hb
Copy link
Collaborator Author

marc-hb commented Dec 22, 2024

#97 is enough

@marc-hb marc-hb closed this Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant