!kjdutkOsheZdjqYmqp:nixos.org

Nixpkgs / NixOS contributions

1862 Members
NixOS 24.05 Uakari | #review-requests:nixos.org | https://nixos.org/blog/announcements.html#nixos-23.11 | https://hydra.nixos.org/jobset/nixos/trunk-combined | https://reproducible.nixos.org/ | 24.05 RMs: wegank & Mic92409 Servers

Load older messages


SenderMessageTime
21 Oct 2024
@emilazy:matrix.orgemily just use mkDerivation. 15:36:05
@shadowrz:nixos.dev夜坂雅I'm not sure why you'd need not to use mkDerivation, I used to just add postBuild to fetchgit.15:37:02
@qyliss:fairydust.spaceAlyssa Ross
In reply to @emilazy:matrix.org
Alyssa Ross: was the review request of Ericson2314 and lovesegfault after the approvals on the VC4 PR intentional or just GitHub stuff?
they're the package maintainers, so I was just helping out OfBorg. I don't think we need to wait for them.
15:37:14
@shadowrz:nixos.dev夜坂雅* I'm not sure why you'd need not to use mkDerivation, I used to just add postBuild to fetchgit, maybe it can work but I won't do this now.15:37:29
@qyliss:fairydust.spaceAlyssa Ross
In reply to @luckytethys:matrix.org

Alyssa Ross: If you want I can try to see if I can add support for using those multi-arch-aware versions in upstream pwntools -- but honestly the code is already pretty convoluted and I am having a bit of a hard time making heads or tails in it.

I don't know exactly what flags I would need to add to e.g. get the multi-arch-aware objcopy to work with pwntools, and whether those options also be compatible with the non-multi-arch version.

I think it would be nice if we didn't have to duplicate functionality from binutils-unwrapped-all-targets, and just have gas packages for the different architectures. If it ends up being infeasible then we can probably make multiple binutils packages work, but I think it would be much better not to now that I know binutils-unwrapped-all-targets existts.
15:39:32
@qyliss:fairydust.spaceAlyssa Ross
In reply to @luckytethys:matrix.org

Alyssa Ross: If you want I can try to see if I can add support for using those multi-arch-aware versions in upstream pwntools -- but honestly the code is already pretty convoluted and I am having a bit of a hard time making heads or tails in it.

I don't know exactly what flags I would need to add to e.g. get the multi-arch-aware objcopy to work with pwntools, and whether those options also be compatible with the non-multi-arch version.

*
15:39:37
@luckytethys:matrix.orgTethys Svensson
In reply to @qyliss:fairydust.space
I think it would be nice if we didn't have to duplicate functionality from binutils-unwrapped-all-targets, and just have gas packages for the different architectures. If it ends up being infeasible then we can probably make multiple binutils packages work, but I think it would be much better not to now that I know binutils-unwrapped-all-targets exists.

Most of the code is 5-10 years old. ~60% written by a previous maintainer who's now deceased, ~20% written by current maintainers, ~10% written by me (all of it in 2014). It's a lot of "if it ain't broken, don't fix it" code.

I can give it a shot, but I am not sure if the current maintainers would be that happy to accept the patches

15:41:47
@emilazy:matrix.orgemily it doesn't seem like it should be disproportionately more maintenance effort to build the objdumps, right? I guess ld.bfd might be another story 15:44:22
@qyliss:fairydust.spaceAlyssa Ross
In reply to @emilazy:matrix.org
it doesn't seem like it should be disproportionately more maintenance effort to build the objdumps, right? I guess ld.bfd might be another story

Right, but then we have stuff duplicated by packages, and it's also unclear then what these packages even are. Some but not all of binutils? If they're just gas that's a lot clearer.

15:45:16
@emilazy:matrix.orgemilyit could just be all of binutils :) I feel like having an override for the binutils target that just works would be nice in general15:45:41
@emilazy:matrix.orgemily(assuming that it does in fact just work)15:45:44
@qyliss:fairydust.spaceAlyssa Ross
In reply to @luckytethys:matrix.org

Most of the code is 5-10 years old. ~60% written by a previous maintainer who's now deceased, ~20% written by current maintainers, ~10% written by me (all of it in 2014). It's a lot of "if it ain't broken, don't fix it" code.

I can give it a shot, but I am not sure if the current maintainers would be that happy to accept the patches

We could patch in Nixpkgs — probably makes more sense than tailoring our packages to pwntools' needs specifically rather than based on binutils' actual capabilities.
15:46:02
@luckytethys:matrix.orgTethys Svensson
In reply to @qyliss:fairydust.space
We could patch in Nixpkgs — probably makes more sense than tailoring our packages to pwntools' needs specifically rather than based on binutils' actual capabilities.
Oh, in that case it would be a lot easier. That might be feasible.
15:46:54
@emilazy:matrix.orgemilylike, there's going to be more software that just wants a conventional single-target binutils for a certain target, I imagine. embedded stuff or the like.15:47:20
@qyliss:fairydust.spaceAlyssa Ross
In reply to @emilazy:matrix.org
it could just be all of binutils :) I feel like having an override for the binutils target that just works would be nice in general
Maybe, but as has been pointed out, that makes platform object checks complicated, and so I'm not sure they should all built in Nixpkgs when the only thing that isn't actually multi-target is gas.
15:47:21
@emilazy:matrix.orgemilyfair enough (I must have missed the discussion re: platform object checks)15:48:06
@qyliss:fairydust.spaceAlyssa Ross
In reply to @emilazy:matrix.org
like, there's going to be more software that just wants a conventional single-target binutils for a certain target, I imagine. embedded stuff or the like.
I'd like to cross that bridge when we come to it, because until then we won't know whether it's actually needed vs a problem that should be fixed in that software rather than worked around in Nixpkgs.
15:48:09
@emilazy:matrix.orgemily maybe the all-targets binutils should just build all the ases. I guess that might make the derivation awkward though. 15:48:32
@qyliss:fairydust.spaceAlyssa Ross
In reply to @luckytethys:matrix.org
Hmm, the derivation also uses a lot of other information from targetPlatform, like isAvr and isWindows. Should I try to create an object that matches the targetPlatform format? Isn't that almost as bad as my original approach?

emily

15:48:36
@emilazy:matrix.orgemilyah, right.15:48:55
@qyliss:fairydust.spaceAlyssa Ross
In reply to @emilazy:matrix.org
maybe the all-targets binutils should just build all the ases. I guess that might make the derivation awkward though.
Hmm, maybe
15:49:15
@emilazy:matrix.orgemily does it build an as at all right now? 15:49:29
@emilazy:matrix.orgemilyif so, that seems somewhat awkward15:49:37
@qyliss:fairydust.spaceAlyssa RossI believe it'll build an as for targetPlatform15:50:09
@qyliss:fairydust.spaceAlyssa Ross
In reply to @luckytethys:matrix.org
Oh, in that case it would be a lot easier. That might be feasible.
Please do try to upstream it though!
15:50:24
@emilazy:matrix.orgemily
In reply to @qyliss:fairydust.space
I believe it'll build an as for targetPlatform
right. which seems… misleading
15:50:56
@emilazy:matrix.orgemily given that you are asking for all the targets, and probably expect targetPlatform to be irrelevant 15:51:11
@qyliss:fairydust.spaceAlyssa RossYes, I agree.15:51:18
@emilazy:matrix.orgemily which is an argument for building all the ases in that package IMO 15:51:20
@qyliss:fairydust.spaceAlyssa RossPossibly15:51:26

Show newer messages


Back to Room ListRoom Version: 6