-
-
Notifications
You must be signed in to change notification settings - Fork 15.2k
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
binutils: unbreak w/musl via upstream commits #54464
Conversation
cc @vcunat @NeQuissimus (mentioning the commit didn't seem to 'ping' that discussion? dunno) |
Yes, GitHub doesn't backlink mentions of commits. |
I just hope we won't need many iterations to make binutils usable. Otherwise I can't really see why switching the default version. Have you considered taking the whole 2.31 maintenance branch they have in git? |
@GrahamcOfBorg build busybox-sandbox-shell |
Yes, I was trying to submit what I thought would get accepted/fixed
first... to unbreak my things xD.
(and with reproducible and simple example of breakage/fixing)
One would hope with that many changes/fixes they'll cut a new release
soon? Wishful thinking, of course, gah.
If it wasn't so rebuild-costly I'd in fact suggest we follow it closely,
after vetting them and such.
Hmm, anyone know /offhand/ how other distributions handle this? O:)
…On Tue, 22 Jan 2019 19:27:53 +0000 (UTC), Vladimír Čunát ***@***.***> wrote:
I just hope we won't need many iterations to make binutils usable. Otherwise I can't really see why switching _the default_ version. Have you considered taking the whole 2.31 maintenance branch [they have in git](https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=shortlog;h=refs/heads/binutils-2_31-branch)?
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#54464 (comment) part: text/html
|
Ubuntu bundles a ton of patches: https://packages.ubuntu.com/cosmic/all/binutils-source/filelist |
I believe we can easily afford a stdenv rebuild every month. Human time is more of a problem for me here – just deciding whether patches are mutually independent (and I don't mean failures of applying them) and which of them matter for us. |
Okay to merge as-is to get this fixed (things are broken currently!), and we can "upgrade" binutils further as a separate PR/issue? I'd say RFC but that seems a bit heavy for this sort of discussion :). |
# un-break features so linking against musl doesn't produce crash-only binaries | ||
./0001-x86-Add-a-GNU_PROPERTY_X86_ISA_1_USED-note-if-needed.patch | ||
./0001-x86-Properly-merge-GNU_PROPERTY_X86_ISA_1_USED.patch | ||
./0001-x86-Properly-add-X86_ISA_1_NEEDED-property.patch |
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.
Is it possible to use fetchurl for any of these or did you patch them locally?
Wasn't sure fetchpatch would work re:bootstrap, can probably grab via fetchurlBoot but would need some fetchpatch (filterdiff) alternative to drop the changelog portions of the commits (I kept the commits separate in this PR to help make that clear, esp looking back later on). Anyway maybe we can, but not sure how reasonable it'd be. Maybe there's a nice way to do it, in which case I agree that's be preferable. |
I think I tried hard to find a way when patching glibc with upstream commits, some time ago, and I failed. I ended up putting large gzipped diffs into nixpkgs. |
ok then. |
Motivation for this change
53e1db9#commitcomment-32020416
Try building 'busybox-sandbox-shell' without these fixes,
observe crash :(.
Try building 'busybox-sandbox-shell' with these fixes,
observe no crash! \o/
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)