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

Fix bbmain to correctly handle #! files #51

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rminnich
Copy link
Member

This is needed for Plan 9.

Signed-off-by: Ronald G. Minnich [email protected]

@rminnich
Copy link
Member Author

confirmed that this fixes plan 9 issues.
I think for 1.13 and 1.14, maybe you write them off, the ErrDeadline thing is a problem.

1.16 i'm mystified.

@rminnich
Copy link
Member Author

but in any event afaict this change is unrelated to those build failures.

@hugelgupf hugelgupf force-pushed the fixforplan9 branch 9 times, most recently from 4b3065b to dca5793 Compare December 30, 2021 07:18
@hugelgupf
Copy link
Member

@rminnich what's the verdict?

@rminnich
Copy link
Member Author

oh geez, sorry, I just realized this had not gone in. Let me take a look.

@rminnich
Copy link
Member Author

we also need it for VFAT volumes ..

gobusybox binaries can now be invoked by creating regular files instead
of symlinks, and those files need to contain:

\#!/abs/path/to/bb #!gobb!#

More explanation in code comments.

This is needed for Plan 9 and file systems that do not support symlinks.

Co-authored-by: Chris Koch <[email protected]>
Signed-off-by: Ronald G. Minnich <[email protected]>
Signed-off-by: Chris Koch <[email protected]>
@rminnich
Copy link
Member Author

well, that build went badly :-)

@@ -3,6 +3,8 @@ set -eux

# This one hasn't been migrated to the go test yet.
(cd ./test/requestconflict && ./test.sh)

(cd ./src/cmd/makebb && GO111MODULE=on go build .)
(cd ./test && go test --makebb=../src/cmd/makebb/makebb -v)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests are not shell files anymore, they're now a Go test in ./test directory -- add your new kind of test there instead of as a shell file

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.

2 participants