21 Oct 2024 |
jh-devv 🏳️⚧️ | * For pkgs.dockerTools.buildImage.config
| 17:45:45 |
jh-devv 🏳️⚧️ | https://github.com/moby/moby/blob/46f7ab808b9504d735d600e259ca0723f76fb164/image/spec/spec.md#image-json-field-descriptions | 17:47:10 |
jh-devv 🏳️⚧️ | https://nixos.org/manual/nixpkgs/stable/#ex-dockerTools-buildImage-config | 17:47:31 |
jh-devv 🏳️⚧️ | > /nix/store/3jnyh9rpp00b3y4mkl4xrpvppqj7yca7-stdenv-linux/setup: eval: line 1815: unexpected EOF while looking for matching `"'
| 17:52:31 |
jh-devv 🏳️⚧️ | oh | 17:58:02 |
jh-devv 🏳️⚧️ | found the issue | 17:58:05 |
jh-devv 🏳️⚧️ | lol | 17:58:06 |
Tethys Svensson | Alyssa Ross: Are you planning on doing more cleanup to binutils or are you done for now? :) | 18:04:07 |
Alyssa Ross | I'm opening a PR as we speak :) | 18:07:27 |
Alyssa Ross | I had to wait for the periodic merge action, because this one has to go to staging. | 18:07:38 |
Alyssa Ross | but it just finished | 18:07:56 |
| diniamo joined the room. | 18:09:28 |
Alyssa Ross | I don't think there's much more to do after this. If we were doing full binutils packages for other platforms, I'd pull enableGold's default value out into all-packages.nix so it didn't affect those packages, but I'd still prefer to only have gas packages if possible, so I'm holding off on that for now. | 18:10:36 |
Tethys Svensson | Alyssa Ross: I think I can do a nixpkgs specific patch for pwntools to make it use binutils-unwrapped-all-targets for everything except gas. I don't think an upstream patch is going to more work than I'm able to commit to at this time. | 18:11:51 |
Tethys Svensson | I wouldn't know how to make a gas-only build either. | 18:12:43 |
Alyssa Ross | My guess is that we just need to set sourceRoot to gas | 18:12:58 |
Alyssa Ross | But I can check | 18:13:01 |
Tethys Svensson | * Alyssa Ross: I think I can do a nixpkgs specific patch for pwntools to make it use binutils-unwrapped-all-targets for everything except gas. I think an upstream patch is going to more work than I'm able to commit to at this time. | 18:13:04 |
Alyssa Ross | In reply to @luckytethys:matrix.org Alyssa Ross: I think I can do a nixpkgs specific patch for pwntools to make it use binutils-unwrapped-all-targets for everything except gas. I think an upstream patch is going to more work than I'm able to commit to at this time. I'd be happy with this, but the pwntools package maintainers will need to be too. | 18:14:36 |
Tethys Svensson | I'm pretty sure at least 1 out of 3 of the pwntools maintainers (kristoff3r) would be happy to accept that. I don't know the other maintainers. | 18:15:56 |
9999years | In reply to @emilazy:matrix.org https://ofborg.org/ is the canonical domain again now. though https://monitoring.ofborg.org/dashboard/db/ofborg also doesn't seem to be working thanks, the link on the grahamcofborg github profile is incorrect then | 18:16:12 |
emily | not surprising, most things about ofborg are :) | 18:16:32 |
emily | the domain was broken for a while iirc | 18:16:42 |
emily | apparently .ci is expensive | 18:16:45 |
Alyssa Ross | In reply to @luckytethys:matrix.org It has a fallback where it tries to detect whether it is on a system where it knows how to install a architecture-specific binutils and then suggests how to do that Couldn't it just try a non-architecture-specific one before doing that, though? | 18:17:15 |
Tethys Svensson | How would it know if the failure is because the binutils is not good enough, or if it's because the user wrote some bad shellcode? | 18:18:04 |
Alyssa Ross | How does it currently know? | 18:18:23 |
Alyssa Ross | It just assumes that if it finds an architecture-specific program that it will definitely work? | 18:18:33 |
Tethys Svensson |
- If it finds an architecture-specific program it will use that
- If the target architecture is sufficiently close to the host architecture and it finds a host program, it will use that
- Otherwise error out. If it can figure out a way to help the user install a proper binutils it will print that
| 18:19:44 |
Alyssa Ross |
You can list the available binary formats with objdump -i
| 18:20:23 |