Nixpkgs Stdenv | 220 Members | |
| 70 Servers |
| Sender | Message | Time |
|---|---|---|
| 20 Mar 2025 | ||
| it's the manual toil | 21:25:53 | |
| emily: the thing that got me before was making a slight tweak to a stdenv script and then rebuilding everything serially, the dream with CA derivations was you could, assuming most things will have the same result, try to rebuild everything in parallel / out of order, using their previous dependencies | 21:38:12 | |
| long bootstrapping chains meant lots of O(n) rebuilds when I'd notice a mistake in the things I did to stdenv in some downstream package | 21:39:02 | |
| so yes it's manual toil, but debug cycle matters | 21:39:26 | |
| this whole mess started when i used my unused dependency scanner on mass-rebuild packages. I truly believe there is some potential there to reduce closure size. But i am now seeing iconv is not the first candidate there | 21:46:27 | |
| i did find our git has a dependency on cpio that has been unnecessary for the past 9 years, for example - git release notes confirm that. However, lesson learned, i will leave iconv alone for now | 21:47:21 | |
| Grimmauld (any/all): of course per the above you can see there isn't concensus, but I would still like to know whether it is possible to build glibc without libiconv | 21:53:10 | |
| even if stdenv contained libiconv | 21:53:23 | |
| it would be nice to build the more minimal thing and then bundle it | 21:53:34 | |
| oh i am seeing there is no consensus, i am happy you were willing to entertain my dumb unqualified ideas. I am excited to see what comes of your attempt, if you do try - but i think this is beyond me (for now). | 21:55:33 | |
glibc's iconv APIs are not the same as GNU libiconv FYI | 22:20:54 | |
I don't think modifying libc build systems would be a good idea. I think generating stubs of API subsets would be more reasonable. | 22:21:28 | |
(since if we are doing "rearchitect all of Nixpkgs" type solutions then we need dynamic library stubs to get any real advantage out of ca-derivations anyway.) | 22:21:37 | |
| In theory, this is a bug in Apple’s libiconv. According to comments in the source, the rewrite is intended to be compatible with GNU stuff. It’s just not in places. Good luck with submitting feedbacks though …. | 23:59:41 | |
| 21 Mar 2025 | ||
| Git being a notable example. It depends on a special UTF-8 codec on Darwin to handle Unicode normalization. | 00:01:39 | |
| I would like to fix the libiconv bugs on Darwin eventually (and try to submit at least my tests to Apple in a feedback in the hope they may also fix things in the platform), but I have no bandwidth for that right now. | 00:02:37 | |
Also, strictly speaking, Darwin doesn’t even really have a libc package anymore. The libc implementation comes dynamically from which SDK you’re using. The libc package is a stub with empty lib and include directories to prevent spurious warnings from breaking things. | 00:03:39 | |
| 22 Mar 2025 | ||
| 11:46:20 | ||
| 23 Mar 2025 | ||
| 18:28:15 | ||
| 25 Mar 2025 | ||
| 17:00:06 | ||
| 26 Mar 2025 | ||
| Trying to get LLVM libc to build in
I checked the linux headers derivation being used and it doesn't have a sys dir in the include dir. | 01:45:27 | |
| Stuff in sys is usually from libc | 08:44:29 | |
| Yeah, I've raised this as an issue with the rest of the LLVM libc team | 14:46:54 | |
| Do we have any blocking changes for 25.05? I know some nice-to-haves.
| 16:21:34 | |
| 27 Mar 2025 | ||
| Not aware of any blockers. | 08:37:54 | |
| 28 Mar 2025 | ||
| https://github.com/NixOS/nixpkgs/issues/393496 unclear documentation on setup hooks | 08:14:59 | |
| 15:47:48 | ||
| 30 Mar 2025 | ||
hi all. I am doing a lot of cross-compiling for thumb7-none-eabi* targets.I had a custom stdenv setup with the arm multi-arch arm-none-eabi toolchain. That required doing a manual nixpkgs.lib.init instantiation with the /pkgs/stdenv/cross function and custom binutils wrapping. | 10:42:34 | |
| This is obviously not a good thing | 10:42:46 | |
| It's been more than a year since setting this up and was wondering if I can get clean cross-compilation using clang cross stdenv or similar. | 10:43:36 | |