!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

136 Members
49 Servers

Load older messages


SenderMessageTime
2 Sep 2024
@philiptaron:matrix.orgPhilip Taron (UTC-8) They do look pretty juicy, though. 18:54:14
@emilazy:matrix.orgemilythis is the high-level stuff. you could retire on landing a couple of these PRs18:54:32
@artturin:matrix.orgArtturinalways prefix in addition to non-prefixed on native is where the always prefixing should start18:56:52
@trofi:matrix.orgtrofi+120:11:13
@emilazy:matrix.orgemily add prefixed → always pass --build and --host → remove non-prefixed? 20:13:32
@artturin:matrix.orgArtturinYep let's also add a flag to only have prefixed20:19:47
@trofi:matrix.orgtrofiremoving non-prefixed will be hard20:21:19
@artturin:matrix.orgArtturinYep20:21:28
@artturin:matrix.orgArtturinespecially for the end users20:21:38
@trofi:matrix.orgtrofi Some tools embed the compiler names very deep, like wine build system. Or some code generators that assume /lib/cpp or equivalent. 20:22:21
@emilazy:matrix.orgemilyExherbo manage to do it20:22:39
@emilazy:matrix.orgemilythough their scope is also smaller20:22:42
@emilazy:matrix.orgemilybut presumably they at least package Wine.20:22:47
@artturin:matrix.orgArtturinMaybe a warning in the wrapper to advice users to use $CC20:22:55
@emilazy:matrix.orgemily
In reply to @artturin:matrix.org
especially for the end users
like for casual end-user CLI clang use? I wouldn't be opposed to figuring out a way to have a wrapper for that kind of thing
20:23:26
@emilazy:matrix.orgemilyneeding special cases for interactive use came up as part of Randy's macOS SDK rework already20:23:41
@emilazy:matrix.orgemily seems okay for pkgs.{gcc,clang} to not quite be the cc packages from stdenv. 20:24:05
@trofi:matrix.orgtrofihttps://bugs.gentoo.org/243502 is the rough scope of breakage.20:24:11
@trofi:matrix.orgtrofi (apparently mono also hardcodes as) 20:24:31
@emilazy:matrix.orgemily

https://gitlab.exherbo.org/exherbo/virtualization/-/blob/master/packages/app-emulation/wine/wine.exlib?ref_type=heads

heh:

    edo mkdir shims
    edo ln -s /usr/host/bin/$(exhost --tool-prefix)nm ./shims/nm
    edo ln -s /usr/host/bin/$(exhost --tool-prefix)as ./shims/as
    edo ln -s /usr/host/bin/$(exhost --tool-prefix)ar ./shims/ar
    edo ln -s /usr/host/bin/$(exhost --tool-prefix)ranlib ./shims/ranlib
20:26:29
@emilazy:matrix.orgemilywe could have a separate package that provides unprefixed compilers so that at least we know which packages are broken20:26:52
@emilazy:matrix.orgemilythat would be a smoother off-ramp from unprefixed tools20:27:03
@trofi:matrix.orgtrofi As long as you document what interface nixpkgs expects from upstream packages and provides to nixpkgs users it should be fine. But it's hard. It's hard even for a seemingly simple CFLAGS interface :) 20:28:20
@emilazy:matrix.orgemilyhell is other people's build systems20:31:32
@emilazy:matrix.orgemilysometimes I wish we could do a gittup/google3 and just write our own builds for every package :)20:31:56
@trofi:matrix.orgtrofiSounds like a disaster :)20:32:33
@trofi:matrix.orgtrofi AFAIU google3 uses somewhat reasonable ./configure && make && make install for many third-parties. I don't think Google maintains it's own, say, openssl build system. 20:33:22
@emilazy:matrix.orgemilyBoringSSL has a public Bazel build system20:34:41
@trofi:matrix.orgtrofiIt's not a thirt-party :)20:34:54
@emilazy:matrix.orgemilyI thought they used BoringSSL over OpenSSL in general20:35:12

Show newer messages


Back to Room ListRoom Version: 9