| 24 Jul 2021 |
ius | Which makes sense, because patchelf doesn't target ppc.. so I think I can't use any of *Platform to tell the 'native' and 'cross' scenarios apart | 15:45:52 |
symphorien | ah so it's hostPlatform not targetPlatform maybe | 15:46:46 |
ius | No, that's x86_64-linux as well ('the platform the executables run on). I think targetPlatform` ought to be right, but it might not have a meaning outside of gcc/libc itself? | 15:54:14 |
ius | * No, that's x86_64-linux as well ('the platform the executables run on'). I think targetPlatform ought to be right, but it might not have a meaning outside of gcc/libc itself? | 15:54:23 |
symphorien | ah I see your point | 16:00:17 |
symphorien | indeed you can't make the distinction between "it will be used for powerpc" and "it will be used natively" | 16:00:53 |
symphorien | I suppose the if should happen in pkgs/stdenv/cross/default.nix | 16:02:47 |
symphorien | ...which seems to slowly converge to the solution you already have, so I'll stop there giving you bad advice | 16:10:00 |
ius | Your attempt is much appreciated though 🙂 | 16:23:35 |
ius | Ah, another angle: removing patchelf from systemd's nativeBuildInputs works (because then only the patchelf from stdenv will be in PATH). | 20:12:08 |
ius | Which makes me wonder, why is patchelf listed there in the first place? Doesn't stdenv provide patchelf by default? Many other packages seem to assume so | 20:13:06 |
| 25 Jul 2021 |
siraben | What's the most direct way to cross-compile the ISO? | 05:26:46 |
siraben | thanks John Ericson for merging my cross PRs | 06:14:45 |
symphorien | In reply to @ius:nltrix.net Which makes me wonder, why is patchelf listed there in the first place? Doesn't stdenv provide patchelf by default? Many other packages seem to assume so yes that seems unneeded... https://nixos.org/manual/nixpkgs/stable/#sec-tools-of-stdenv guarantees that patchelf is present at least. | 11:08:34 |
Sandro | In reply to @ius:nltrix.net Ah, another angle: removing patchelf from systemd's nativeBuildInputs works (because then only the patchelf from stdenv will be in PATH). going to test removing it | 13:05:14 |
Sandro | In reply to @ius:nltrix.net Ah, another angle: removing patchelf from systemd's nativeBuildInputs works (because then only the patchelf from stdenv will be in PATH). * going to test removing it and doing a PR with it | 13:05:19 |
ius | symphorien Sandro : Thanks | 13:06:49 |
ius | Sandro: I think you can also drop coreutils based on symphorien's doc link. And not sure about getent (it's included in glibc, but e.g. musl doesn't provide it - however systemd doesn't build on musl anyway; not sure about other libcs though) | 13:11:20 |
| 28 Jul 2021 |
sterni (he/him) | John Ericson: if you have the time, could you review https://github.com/NixOS/nixpkgs/pull/131076? it has a change to cc-wrapper (only affecting Ada though), so I just wanna confirm that what I'm doing is in the spirit of said wrapper | 12:45:39 |
sterni (he/him) | also edend up doing something similar to pkg-config's setupHook, so you may be able to give useful feedback | 12:45:58 |
John Ericson | Ok | 12:46:01 |
sterni (he/him) | John Ericson: thanks a lot! | 14:21:14 |
John Ericson | In reply to @sternenseemann:systemli.org John Ericson: thanks a lot! np! sorry i didn't see before, always feel free to ping me | 15:16:30 |
sterni (he/him) | John Ericson: btw I also got gnat to build as cross compiler, although it is probably only useful for bare metal targets because gcc's build system somehow falls apart when building libada for a cross compiler: https://github.com/NixOS/nixpkgs/pull/131136 | 16:44:17 |
John Ericson | I saw! | 16:52:14 |
John Ericson | That's good because the libs should be built separately anyways | 16:52:19 |
John Ericson | If you make that separate derivative like I did for libgcc but then we actually use it, I'll be very happy! | 16:52:52 |
sterni (he/him) | I'll look into building it separately but it seems there is very little accurate documentation on it atm | 16:53:25 |
John Ericson | Even better if always use the separate derivation including in native case | 16:53:36 |
John Ericson | Ok losing internet | 16:54:11 |