!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

228 Members
75 Servers

Load older messages


SenderMessageTime
1 Apr 2025
@sandro:supersandro.deSandro 🐧 changed their display name from Sandro 🐧 [c3d2] to "Sandro [c3d2]".13:57:05
@sandro:supersandro.deSandro 🐧 changed their display name from "Sandro [c3d2]" to Sandro 🐧 [c3d2].13:57:41
@sandro:supersandro.deSandro 🐧 changed their display name from Sandro 🐧 [c3d2] to Sandro 🐧.13:58:48
5 Apr 2025
@tinybronca:sibnsk.netunderpantsgnome removed their display name underpantsgnome.15:54:36
@tinybronca:sibnsk.netunderpantsgnome left the room.15:59:31
10 Apr 2025
@rosscomputerguy:matrix.orgTristan Ross So WG14 is looking to make many libc functions use const char* instead of char* after like 40 years. This brings a problem where many things aren't expecting this. There will be a C revision which includes this so we don't have to deal with it immediately. However, one of the WG14 people discussed this with the LLVM libc team which I am a part of. I've found a few things broken via Nix. One of which seems to be makeWrapper, -Werror=write-strings is a good mechanism for catching this. Do we want to enable that flag in a few places so we can start catching this? 19:04:23
@qyliss:fairydust.spaceAlyssa RossI think it depends if we have people who want to be part of fixing upstreams, which will be a lot of tedious work but a nice way to do good. Usually Fedora and Gentoo do most of that but would be great for us to do more.19:06:06
@rosscomputerguy:matrix.orgTristan RossYeah, that's why I tested things here.19:06:23
@rosscomputerguy:matrix.orgTristan Ross openssl and expect both fail in the fixupPhase but key-utils itself actually has a problem. 19:06:50
@rosscomputerguy:matrix.orgTristan Ross It's likely we won't see the downstream effect of the const char* stuff until a long time from now but working on the problem sooner than later may not be a bad idea. 19:07:30
@rosscomputerguy:matrix.orgTristan RossAaron Ballman is who I've been on contact with for this btw.19:08:12
@qyliss:fairydust.spaceAlyssa RossYeah19:08:15
@qyliss:fairydust.spaceAlyssa RossWe could maybe have a low-activity Hydra jobset?19:08:24
@rosscomputerguy:matrix.orgTristan RossYeah, that may not be a bad idea19:08:36
@qyliss:fairydust.spaceAlyssa RossGreat that you're involved in this so proactively19:08:59
@rosscomputerguy:matrix.orgTristan Ross

As a quick and dirty way to get started, I just did this:

diff --git a/pkgs/build-support/cc-wrapper/default.nix b/pkgs/build-support/cc-wrapper/default.nix
index 692474d48c42..262594e6dd15 100644
--- a/pkgs/build-support/cc-wrapper/default.nix
+++ b/pkgs/build-support/cc-wrapper/default.nix
@@ -845,6 +845,10 @@ stdenvNoCC.mkDerivation {
       substituteAll ${./add-clang-cc-cflags-before.sh} $out/nix-support/add-local-cc-cflags-before.sh
     ''

+    + ''
+      echo "-Werror=write-strings" >> $out/nix-support/cc-cflags
+    ''
+
     ##
     ## Extra custom steps
     ##
19:08:59
@qyliss:fairydust.spaceAlyssa RossYeah I'd just throw that up on a branch and get Hydra on it for now19:09:30
@qyliss:fairydust.spaceAlyssa RossI'm not sure whether we'd want to enable this for real before compilers start doing so19:11:46
@qyliss:fairydust.spaceAlyssa RossBut getting a head start is good19:11:51
@emilazy:matrix.orgemilyagreed that preparing for this stuff ahead of time is great :)19:12:06
@emilazy:matrix.orgemilyI wish we had the resources to have an "experimental" jobset always running that we could throw stuff like this on19:12:27
@emilazy:matrix.orgemilyrather than dealing with things just-in-time during staging cycles19:12:35
@qyliss:fairydust.spaceAlyssa RossIt's the sort of thing that somebody could probably run on a personal Hydra if they wanted I reckon? We don't need the results particularly fast given the bottleneck is actually going to be manually fixing things one at a time.19:13:44
@emilazy:matrix.orgemilyI just meant in general, put a bunch of upcoming breaking stuff behind a flag and collectively chip away at it gradually19:14:35
@emilazy:matrix.orgemilyagreed that it's not necessary for this, it'd just be a nice thing to have19:14:53
@qyliss:fairydust.spaceAlyssa RossWe have pkgsExtraHardening also19:15:29
@qyliss:fairydust.spaceAlyssa RossOr whatever it's called19:15:36
@rosscomputerguy:matrix.orgTristan Ross
In reply to @emilazy:matrix.org
I wish we had the resources to have an "experimental" jobset always running that we could throw stuff like this on
Yeah, I've been thinking of that
19:20:43
@rosscomputerguy:matrix.orgTristan Ross I likely will be able to deploy my own Hydra locally 19:22:27
@rosscomputerguy:matrix.orgTristan RossI just got 2 128 core Ampere chips19:22:49

Show newer messages


Back to Room ListRoom Version: 9