samueldr has quit [Read error: Connection reset by peer]
samueldr has joined #nix-darwin
<shlevy>
OK, can reproduce easily
<LnL>
oh you can?
<shlevy>
Yeah, just killed a nix-build with a sleep 5m and the daemon child process was still running
<shlevy>
Oh nice and even SIGTERM doesn't touch them :D
<LnL>
yay more kill weirdness
<shlevy>
God dtruss is so much worse than strace
<shlevy>
Ugh it didn't even notice a process exiting
<shlevy>
Wow it looks like poll simply doesn't work on a background thread at all?
<prooftechnique>
Anyone having issues with CoreFoundation? I'm trying to get ghcWithHoogle built, but it complains that the filesystem sandbox blocks stat() when trying to use the framework
<shlevy>
Anyone have a pre-high-sierra box they can test something on?
<shlevy>
copumpkin: You seem like the kind of person who has access to many versions of macOS?
<cransom>
i have a very pre-high-sierra box. any particular flags to compile?
<copumpkin>
I technically do but my machine with a bunch of older macOS VMs died
<copumpkin>
I was thinking of setting another one up but I haven't done that yet
<shlevy>
copumpkin: Just -std=c++11
<shlevy>
erm, cransom
<shlevy>
cransom: if all is working you should see "poll returned: ..." then a 10s wait before "FD closed"
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cransom>
slice:~ cransom$ ./a.out
<cransom>
Thread forked
<cransom>
FD closed
<cransom>
eer oops. thats not the gist i thought i had in my buffer.
<cransom>
but it's hung there, hasn't returned.
<shlevy>
Well damn
<shlevy>
OK
<shlevy>
Interrupt it
<shlevy>
Thanks!
<shlevy>
What version?
<cransom>
System Version: OS X 10.10.5 (14F2511)
<shlevy>
Thanks
<shlevy>
Nice to know this has never worked :D
<shlevy>
Yay found a fix
<shlevy>
copumpkin: Is it worth trying to figure out how to file a bug report for this? poll is supposed to work with .events = 0 and still detect HUP, but it doesn't.
<Sirio>
the derivation nix-build is executing contains `nixpkgs ? import <nixpkgs> { inherit system; }`
<Sirio>
I'm trying to debug problems with Meson which I'm only seeing in nix-build ... and can't reproduce in nix-shell - but they see different versions of the `meson` package
<Sirio>
re-pointing that to my own path fixes the issue
<cransom>
are you in a git checkout when you nix-build?
<Sirio>
thank you @cransom
<Sirio>
I am inside a git working tree, yes
<Sirio>
does that change something?
<cransom>
if there's a default.nix, it would change behavior
<Sirio>
right, that's correct - but default.nix doesn't call for a specific version of `meson` ... and doing a nix-shell in that same directory (reading the same dependencies from the same default.nix) gives a meson with a 0.44.0 version
<Sirio>
I'm nixing (pun intended) this stupid root channel issue in $NIX_PATH and trying again
<LnL>
nix-env is the only tool that looks at user channels instead of NIX_PATH
<Sirio>
oh, wow - understood!
<LnL>
nix-env = nix-env -f '<nixpkgs>' will make it use NIX_PATH like everything else
<Sirio>
yeah, forcing my $NIX_PATH with `export NIX_PATH=/nix/var/nix/profiles/per-user/siriobalmelli/channels` gives consistent behavior now
<Sirio>
all tools behaving the same
<LnL>
so you removed the system channel?
<LnL>
was going to mention a caveat with nix-channel, but that's not important then :)
<Sirio>
... which BTW affects git as well when pulling https:// repos - because lack of trusted certificates declared as a file (Apple expects us to call the [expletive] keychain utility? nothanks
<LnL>
oh right the cacert issue, never been able to reproduce that
<LnL>
ok so that's weird, the NIX_SSL_CERT_FILE thing comes from openssl
<Sirio>
yeah, I'm not overly worried TBH
<Sirio>
... and I don't want to break your balls over this
<Sirio>
I'm going to limp along using SSH paths
<LnL>
this might work then
<LnL>
GIT_SSL_CAINFO=$NIX_SSL_CERT_FILE git ...
<Sirio>
soon there will either be a fix in nixpkgs or I'll finish setting up my own dev environment based off a fork of nixpks and then I'll dig into it and fix it
<Sirio>
... nope :(
<LnL>
eh!
<Sirio>
but I certainly appreciate you walking through this with me
<LnL>
the weird thing is that only some people seem to run into that
<Sirio>
and thank you VERY much for clearing up the role of $NIX_PATH