-
Notifications
You must be signed in to change notification settings - Fork 32
Update RootFS build #423
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
Open
giordano
wants to merge
5
commits into
master
Choose a base branch
from
mg/rootfs
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Update RootFS build #423
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -322,15 +322,10 @@ end | |
./test | ||
""" | ||
cmd = `/bin/bash -c "$(test_script)"` | ||
if arch(platform) == "i686" && libc(platform) == "musl" | ||
# We can't run this program for this platform | ||
@test_broken run(ur, cmd, iobuff; tee_stream=devnull) | ||
else | ||
@test run(ur, cmd, iobuff; tee_stream=devnull) | ||
seekstart(iobuff) | ||
# Test that we get the output we expect | ||
@test endswith(readchomp(iobuff), "Hello World!") | ||
end | ||
@test run(ur, cmd, iobuff; tee_stream=devnull) | ||
seekstart(iobuff) | ||
# Test that we get the output we expect | ||
@test endswith(readchomp(iobuff), "Hello World!") | ||
cleanup_dependencies(prefix, artifact_paths, concrete_platform) | ||
end | ||
end | ||
|
@@ -377,15 +372,10 @@ end | |
./test | ||
""" | ||
cmd = `/bin/bash -c "$(test_script)"` | ||
if arch(platform) == "i686" && libc(platform) == "musl" | ||
# We can't run C++ programs for this platform | ||
@test_broken run(ur, cmd, iobuff; tee_stream=devnull) | ||
else | ||
@test run(ur, cmd, iobuff; tee_stream=devnull) | ||
seekstart(iobuff) | ||
# Test that we get the output we expect | ||
@test endswith(readchomp(iobuff), "Hello World!") | ||
end | ||
@test run(ur, cmd, iobuff; tee_stream=stdout) | ||
seekstart(iobuff) | ||
# Test that we get the output we expect | ||
@test endswith(readchomp(iobuff), "Hello World!") | ||
Comment on lines
-380
to
+378
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
cleanup_dependencies(prefix, artifact_paths, concrete_platform) | ||
end | ||
end | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, swapping the order the libraries in CSL breaks something else, e.g.
cargo
:@staticfloat @Keno I think there's something wrong with the musl rejection patch though: #423 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I may be wrong, but https://github.com/JuliaPackaging/Yggdrasil/blob/31124d256133d96e48c5558317c125deae96e0a4/0_RootFS/Rootfs/bundled/patches/glibc_musl_rejection.patch doesn't seem to be applied anywhere in https://github.com/JuliaPackaging/Yggdrasil/blob/31124d256133d96e48c5558317c125deae96e0a4/0_RootFS/Rootfs/build_tarballs.jl. How's that supposed to work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm moving a bit blindfolded because I don't know exactly how this was designed to work, but as far as I can tell this isn't really working in practice.
I'm trying to summarise the facts I could gather:
Questions:
LD_LIBRARY_PATH
would make sense, right? Edit: thinking more about this, probably this isn't correct: the problem now is with trying to run a musl executable with glibc libraries listed first: there's nothing to prevent this going wrong.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
About question 1: we already apply the musl rejection patch: https://github.com/JuliaPackaging/Yggdrasil/blob/31124d256133d96e48c5558317c125deae96e0a4/G/Glibc/Glibc%402.34/bundled/patches/glibc-006-glibc_musl_rejection_234.patch. So I'm even more lost now.
Side note, at a quick glance, bminor/glibc@8ee8785 in glibc 2.37 may have made it harder to implement the rejection patch.