<gchristensen> Mic92: oh my gosh you're right
pie__ has joined #nixos-dev
pie_ has quit [Remote host closed the connection]
Sonarpulse has quit [Ping timeout: 256 seconds]
yegortimoshenko has quit [*.net *.split]
ckauhaus has joined #nixos-dev
Dezgeg has quit [*.net *.split]
rycee has quit [*.net *.split]
stites[m] has quit [*.net *.split]
florianjacob has quit [*.net *.split]
srhb has quit [*.net *.split]
yorick has quit [*.net *.split]
adisbladis has quit [*.net *.split]
adisbladis has joined #nixos-dev
Dezgeg has joined #nixos-dev
srhb has joined #nixos-dev
stites[m] has joined #nixos-dev
rycee has joined #nixos-dev
florianjacob has joined #nixos-dev
ckauhaus has quit [Ping timeout: 240 seconds]
mbrgm has quit [Ping timeout: 276 seconds]
jtojnar has quit [Read error: Connection reset by peer]
mbrgm has joined #nixos-dev
yegortimoshenko has joined #nixos-dev
yegortimoshenko has quit [Write error: Broken pipe]
yegortimoshenko has joined #nixos-dev
alunduil has quit [Ping timeout: 256 seconds]
alunduil has joined #nixos-dev
michaelpj has quit [*.net *.split]
shlevy has quit [*.net *.split]
mbrock has quit [*.net *.split]
ocharles has quit [*.net *.split]
octe has quit [*.net *.split]
shlevy has joined #nixos-dev
michaelpj has joined #nixos-dev
octe has joined #nixos-dev
mbrock has joined #nixos-dev
ocharles has joined #nixos-dev
adisbladis has left #nixos-dev ["ERC (IRC client for Emacs 25.2.1)"]
adisbladis has joined #nixos-dev
mbrgm has quit [Ping timeout: 240 seconds]
mbrgm has joined #nixos-dev
<copumpkin> LnL: I figured that one out!
acowley has quit [Ping timeout: 264 seconds]
shlevy has quit [Quit: Quit]
la_putin has joined #nixos-dev
el_putin has quit [Read error: Connection reset by peer]
orivej has joined #nixos-dev
lopsided98 has quit [Ping timeout: 276 seconds]
MichaelRaskin has quit [Quit: MichaelRaskin]
lopsided98 has joined #nixos-dev
ma27 has joined #nixos-dev
jtojnar has joined #nixos-dev
ma27 has quit [Ping timeout: 276 seconds]
taktoa has joined #nixos-dev
pie__ has quit [Ping timeout: 240 seconds]
taktoa has quit [Remote host closed the connection]
vcunat has joined #nixos-dev
jtojnar has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 240 seconds]
goibhniu has joined #nixos-dev
Nadrieril has quit [Quit: WeeChat 1.9]
orivej has joined #nixos-dev
goibhniu has quit [Ping timeout: 248 seconds]
Nadrieril has joined #nixos-dev
shlevy has joined #nixos-dev
<copumpkin> niksnut: struggling to understand why Nix isn't freeing up build users :/
sadasdasd has joined #nixos-dev
ma27 has joined #nixos-dev
<shlevy> zimbatm: Looks like you merged the recent bazel update, it's not building on master now...
<shlevy> zimbatm: missing java locale??
<shlevy> Bisect time...
* copumpkin rips his hair out
ma27 has quit [Quit: WeeChat 2.0]
ma27 has joined #nixos-dev
<shlevy> Bald is in
<copumpkin> I swear my PR worked
<copumpkin> but now my installed nix seems to ignore any changes I make to it
<copumpkin> very confused
<copumpkin> like I'm just throwing an early return into builtinFetchurl and it still downloads
<copumpkin> so something stupid is happening
<copumpkin> I just can't figure out wtf it is
jtojnar has joined #nixos-dev
<shlevy> are you using release.nix?
<copumpkin> just nix-shell and the inst prefix
<copumpkin> just testing my changes
<shlevy> And you re-ran make install?
<shlevy> (sorry)
<copumpkin> yeah
<copumpkin> I've done make clean, etc.
<copumpkin> it makes zero sense
<shlevy> bizzare
<LnL> fetchurl stuff goes throught the daemon IIRC
<LnL> or is this a single-user install
<shlevy> :'( openjdk bump breaks bazel
<shlevy> I hate java
<shlevy> Oh god am I going to have to bisect openjdk
<copumpkin> does the breakage give any indication as to why?
<gchristensen> shlevy: oh jesus
<shlevy> copumpkin: missing locale error (utf8)
<shlevy> I'm trying with openjdk9
<copumpkin> maybe strace and see if it's looking for it in a stupid location?
<shlevy> If openjdk9 fails I'll do that and look through the diff
<gchristensen> also I hate to bring him in to it, but andi- has been doing a lot of openjdk stuff lately
<copumpkin> niksnut: what I'm doing in that PR is sensible, right? even if you don't like the approach
<copumpkin> because I think I'm hallucinating
<copumpkin> or my computer is
<andi-> shlevy: do you remember how the initial bootstrap sdks were built?
<shlevy> andi-: I originally built them with the oracle jdk and made make-bootstrap.nix by removing components until it couldn't self-build any more
<shlevy> andi-: looks like bootstraps haven't been touched since 2015 :D
<sadasdasd> is path like NIXPKGS_HWCLOCK works?
<gchristensen> sadasdasd: #nixos is probably a better place for that question
sadasdasd has left #nixos-dev [#nixos-dev]
<copumpkin> niksnut: release.nix doesn't work on macOS anymore :/
<copumpkin> as far as I can tell
<copumpkin> $ nix-build release.nix --arg nixpkgs '<nixpkgs>' -A build.x86_64-darwin
<copumpkin> these derivations will be built:
<copumpkin> /nix/store/gsirar8by8zqg7lki3xjxrjqg7np5nkg-busybox-1.28.0.drv
<copumpkin> busybox is linux-only
<copumpkin> I can't even see why it depends on busybox
<niksnut> probably because of d4dcffd64349bb52ad5f1b184bee5cc7c2be73b4
<niksnut> tarball is now built on x86_64-linux
<copumpkin> not very friendly if I'm developing on macOS :/
<copumpkin> I'll comment out the system = for now
<copumpkin> why is tarball forced to linux?
<niksnut> because builtins.currentSystem is not allowed in "pure" mode
<shlevy> shouldn't it be builtins.currentSystem?
<shlevy> Ah
<shlevy> :D
<niksnut> but I have a solution
<copumpkin> \o/
<shlevy> is there a builtins.inPureMode?
<niksnut> no
<copumpkin> shlevy: that would be impure!
<LnL> heh
<shlevy> It's purely true in pure mode :D
<zimbatm> shlevy: oh really, it was working fine locally with sandboxing..
<LnL> it's evaluation time, not build time
<shlevy> zimbatm: yesterday's openjdk fix did it
<shlevy> s/did/broke
<zimbatm> good, it's not my fault :)
<zimbatm> shlevy: did you see this already? https://github.com/tweag/rules_nixpkgs
<copumpkin> niksnut: any hunches about the workers not getting cleaned up in --check mode?
<shlevy> zimbatm: just trying to build tensorflow
<zimbatm> ah ok :)
<copumpkin> shlevy: you're learning!
<copumpkin> erm, your machine will be
<shlevy> copumpkin: My colleague's machine will be!
<gchristensen> copumpkin: boo, hiss :)
<copumpkin> :P
<pstn> Is there a specific reason for not setting nix.daemonNiceLevel to 19?
<pstn> (as a new default for everybody)
<niksnut> copumpkin: no
Sonarpulse has joined #nixos-dev
<niksnut> copumpkin: I've pushed a fix
<copumpkin> nice :)
<copumpkin> so we can still observe purity :D
ma27 has quit [Ping timeout: 256 seconds]
<copumpkin> okay, I'm baffled
<copumpkin> even with a nix build of it, my "fix" for builtinFetchurl seems to not work anymore
<shlevy> Looks like the tensorflow build is building a vendored copy of llvm :'(
<copumpkin> of course it is
<copumpkin> google loves vendoring
<shlevy> And now building curl...
<copumpkin> I wish google would just keep its software to itself ;)
* gchristensen muttering, "and languages"
<shlevy> What we really need is a spy
<shlevy> A googler committed to the nix cause
<shlevy> who can influence them in the right direction
<copumpkin> niksnut: I think part of the pain of trying to do stuff in builtinFetchurl is that it seems tricky to get log messages out to see them. writeFull(STDERR_FILENO, "foo\n"); doesn't seem to spit anything out even with -vvvvv. Is there a better place
<copumpkin> I'm trying to understand why the rewrite I thought was working doesn't seem to work anymore
<niksnut> copumpkin: doesn't printError work?
* copumpkin tries
<shlevy> welp time to rebuild openjdk
<copumpkin> niksnut: if it is working, I'm not seeing it :/
<copumpkin> niksnut: I literally have it sitting right in front of the builtinFetchurl call and am realizing a builtin:fetchurl derivation and not seeing it get printed with -vvvvv
<copumpkin> I think it's time to buy a new computer
<copumpkin> this one is haunted
<vcunat> gchristensen: can you restart nix daemon on t2-4? There's a job hanging for eight ours, blocking 17.09-small channel from glibc security update: https://hydra.nixos.org/build/67749807
<vcunat> *eight hours
<Mic92> shlevy: we have some people working at google.
<Mic92> maybe not enough
<copumpkin> oh shit, that'
<copumpkin> s why I'm haunted
<copumpkin> I'm using the daemon
<niksnut> there is some special handling going on in builtins
<niksnut> logger = makeJSONLogger(*logger);
<copumpkin> so no matter what my nix build is doing, it's not getting used
<copumpkin> *frustrated sigh*
<copumpkin> niksnut: yeah, I'm doing this from build.cc though so I'm not actually in the builtin yet. The issue is just the daemon I mentioned above
<copumpkin> just wasted a couple of hours on that
<copumpkin> (I just upgraded from single user to multi-user last night so was not used to it)
<copumpkin> niksnut: can I force 1.12 to write directly to store (as root or whatever) and ignore the daemon?
<copumpkin> or how do you test nix build stuff with a daemon install?
<Mic92> niksnut: unset NIX_DAEMON
<Mic92> i mean copumpkin
<niksnut> right
<copumpkin> that stopped working in 1.12 I think
<copumpkin> doesn't it use writability of the store as a measure?
<copumpkin> yeah, even with unset NIX_DAEMON it's using the daemon
<copumpkin> yeah, sudo + unset NIX_DAEMON still tries to use the socket
<LnL> chown $USER /nix/var/nix/db
<copumpkin> feels awkward if I'm just trying to test my fix in the nix build
<copumpkin> but I'll try that, thanks
<Mic92> chown -$
<Mic92> chown -$
<Mic92> chown -R
<Mic92> damn key
<LnL> ah yes
<copumpkin> anyway, end result is that I think my #1805 fix is actually valid
<copumpkin> and I just upgraded to multi-user install overnight and that's what made me think it was b0rked
<LnL> that's what I was saying earlier
<copumpkin> dammit ,I missed that message from you :)
<copumpkin> niksnut: why does builtins:fetchurl even use an isolated subprocess?
<copumpkin> it seems like it could be integrated with the parent
<LnL> testing stuff with build-remote is even more annoying, I had to rebuild switch to my development version on 2 machines
<Mic92> copumpkin: can't you use dtrace to track this down?
<Mic92> on linux I have sysdig and bcc at my fingertips
<copumpkin> nah I've figured it out now
<copumpkin> at least the one I thought I'd fixed last night
<copumpkin> it turns out I had fixed it, and then I hid my fix behind the daemon
<copumpkin> was just wondering why there's a subprocess because Nix is leaking build users
<copumpkin> niksnut: if you can tell me the right place to rewrite the strings in build.cc, I can experiment with doing it your way, which as I said I like better too.
<copumpkin> I'm just having trouble following the control flow and being confident that it won't confuse some other obscure corner of the code if I change the outputs in the drv
<Sonarpulse> fpletz: how does 735d3588f3add9d5f0f39cdb62c194080b395672 look to you?
<Sonarpulse> its a change to fetchPatch I need for ghc cross stuff
<Sonarpulse> https://github.com/NixOS/nixpkgs/pull/26799, the ghc cross stuff, is finally ready (modulo one more hydra build)!!
<fpletz> Sonarpulse: imho the logic that an empty string adds the prefixes is a bit weird but I can think of nothing fancier right now, so :+1:
<fpletz> Sonarpulse: did you check if the hashes stay the same?
<Sonarpulse> fpletz: cool, thanks!
<Sonarpulse> fpletz: pretty sure, but I'll double check
<fpletz> yeah, they should, but just to be sure :)
<fpletz> thanks!
<Sonarpulse> you got any good tricks for checking that for fixed output derivations?
<Sonarpulse> other than edditing the hash and looking for an error?
<copumpkin> funny you should ask that
<Sonarpulse> :D
<copumpkin> that's exactly what I'm trying to fix in nix right now :P
<copumpkin> #1805
<copumpkin> (to make --check work properly on them)
<copumpkin> niksnut, gchristensen: this is related to that question I raised a few weeks ago, btw
<fpletz> copumpkin: awesome!
<fpletz> Sonarpulse: not sure if nix-prefetch-url -A would work on those, but the patches argument to mkDerivation is probably not accessible anyway iirc
<Sonarpulse> fpletz: it is accessible, but it won't work because of the postBuild stuff
<Sonarpulse> got bitten by that already :D
<fpletz> oh, ok :)
<vcunat> same problem for glibc patches
<Sonarpulse> fpletz: tested with and without the a+b prefixes
<Sonarpulse> opening PR in a second
<catern> still no replies to my nix-devel mail :(
<FRidh> What do you think about a Nix option for specifying paths inside store paths that may provide setuid executables. E.g., `permit-setuid-paths = "/bin/ping"`. Of course one could still create malicious executables that way, but you should not just run arbitrary executables from the store.
<LnL> isn't that possible already with build-sandbox-paths
<copumpkin> FRidh: as in an --option?
<FRidh> copumpkin: yes
<FRidh> We should not use it for nixos, but for other purposes it may be convenient.
<copumpkin> what's a use case for that look like? a single nix-build invocation with --option permit-setuid-paths could run a ton of builds
<FRidh> I happen to have a case where I need to create and a setuid executable
<gchristensen> seems scary
<gchristensen> and like an invariant I'd really like to avoid breaking
<FRidh> in this case it's a custom solution for deploying Nix --out-links with builds
<FRidh> but again, it's minor thing to just add setuid after the build
<catern> what is the issue with just copying and setting setuid on the copy?
<catern> imo setuid should not be enabled in nix in any way, it is a relic of history and should be eliminated
<copumpkin> I could imagine some sort of special derivation type that just takes another derivation and setuids certain executables in it while symlinking the others, if the source derivation is explicitly marked as trusted somehow
<copumpkin> but that seems like a bit of a UX PITA
<copumpkin> "builtin:setuidwrappers" as a primitive builder type?
<copumpkin> would check against a list of trusted derivations and refuse to setuid otherwise
<gchristensen> please no :o
<FRidh> heh
<copumpkin> then we "just" need to figure out how to distribute that list of trusted derivations :)
<gchristensen> nosuid on /nix/store is really valuable
<copumpkin> just noodling
<copumpkin> trust of the nix store is an ongoing thorn in our sides :)
<copumpkin> both for secret data in it and things like setuid
<FRidh> Created a Nix 1.12 multi-user installation with store and config at a custom location. Users can do builds here and then sync the out-links and store paths to the rest of the network. No more issues with binaries that don't work on certain machines because of different OS/libraries. Hopefully some day we get Nix on all machines.
<gchristensen> copumpkin: it has a simple trust model, which I think is part of why it is so valuable
<gchristensen> if we complicate it, we open up a lot of potential problems
MichaelRaskin has joined #nixos-dev
<LnL> heh, the setuid wrappers are too safe to use them in the sandbox
orivej has quit [Ping timeout: 248 seconds]
vcunat has quit [Ping timeout: 255 seconds]
pie__ has joined #nixos-dev
ma27 has joined #nixos-dev
<andi-> gchristensen: was there a failing build output of openjdk earlier? Just now came back to the computer.
ma27 has quit [Quit: WeeChat 2.0]
ma27 has joined #nixos-dev
<copumpkin> niksnut: now I'm just confused :) it seems like some of the hash rewrites might be getting lost with the current code structure, but I must be missing something
<copumpkin> (even ignoring builtinFetchurl)
orivej has joined #nixos-dev
<gchristensen> sorry for the delay, vcunat, who is not here
acowley has joined #nixos-dev
<Sonarpulse> bgamari: did you find the source for bc?
<Sonarpulse> looks very cathedral-style to me
<bgamari> nope
<Sonarpulse> bgamari: mm ok
<Sonarpulse> heh
<Sonarpulse> what a project
vcunat has joined #nixos-dev
jtojnar has quit [Ping timeout: 240 seconds]
el_putin has joined #nixos-dev
la_putin has quit [Read error: Connection reset by peer]
<grahamc> Vcunat that should be fixed now
<vcunat> <3
<vcunat> It does seem unblocked, expecting channel update in about an hour.
<grahamc> Great. Thanks!
la_putin has joined #nixos-dev
el_putin has quit [Read error: Connection reset by peer]
ma27 has quit [Ping timeout: 255 seconds]
lassulus has quit [Changing host]
lassulus has joined #nixos-dev
<Sonarpulse> peti: you around?
<Sonarpulse> https://github.com/NixOS/nixpkgs/pull/26799 this is now completely ready
<Sonarpulse> shlevy: you too ^ :)
ma27 has joined #nixos-dev
aszlig has quit [Ping timeout: 260 seconds]
vcunat has quit [Quit: Leaving.]
aszlig has joined #nixos-dev
Dezgeg has quit [Ping timeout: 256 seconds]
<copumpkin> hmm
<copumpkin> I'm getting a different hash out of there
<copumpkin> it's using fetchpatch so it's already pre-normalized
ma27 has quit [Ping timeout: 265 seconds]
Dezgeg has joined #nixos-dev
Dezgeg has quit [Ping timeout: 276 seconds]
Nadrieril has quit [Quit: WeeChat 1.9.1]
Nadrieril has joined #nixos-dev
Dezgeg has joined #nixos-dev
Nadrieril has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos-dev
Nadrieril has joined #nixos-dev
jtojnar has quit [Ping timeout: 256 seconds]
jtojnar has joined #nixos-dev