<LnL> yeah, they know about it so I don't expect them to ship it
<mitchty> i'll upgrade it later, rather not deal with broken high sierra stuff
<mitchty> bah, have to go home but c-z'ing the build means rust stuff running in the background
the-kenny has joined #nix-darwin
<acowley> I switched to HS a couple months ago (after the original kill bug was fixed) and haven't had any trouble!
contrapumpkin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
contrapumpkin has joined #nix-darwin
jrolfs has joined #nix-darwin
philr has joined #nix-darwin
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nix-darwin
chrisbar1 has quit [Quit: chrisbar1]
jrolfs has quit [Ping timeout: 240 seconds]
jrolfs has joined #nix-darwin
jrolfs has quit [Ping timeout: 240 seconds]
jrolfs has joined #nix-darwin
zzamboni has joined #nix-darwin
zzamboni has quit [Remote host closed the connection]
zzamboni has joined #nix-darwin
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
zzamboni has quit [Ping timeout: 256 seconds]
zzamboni has joined #nix-darwin
zzamboni has quit [Ping timeout: 260 seconds]
zzamboni has joined #nix-darwin
zzamboni has quit [Ping timeout: 240 seconds]
zzamboni has joined #nix-darwin
zzamboni has quit [Ping timeout: 276 seconds]
zzamboni has joined #nix-darwin
zzamboni has quit [Remote host closed the connection]
zzamboni has joined #nix-darwin
zzamboni has quit [Ping timeout: 256 seconds]
zzamboni has joined #nix-darwin
zzamboni has quit [Ping timeout: 265 seconds]
zzamboni has joined #nix-darwin
zzamboni has quit [Ping timeout: 252 seconds]
zzamboni has joined #nix-darwin
philr has quit [Ping timeout: 240 seconds]
zzamboni has quit [Remote host closed the connection]
zzamboni has joined #nix-darwin
zzamboni has quit [Ping timeout: 256 seconds]
zzamboni has joined #nix-darwin
zzamboni has quit [Remote host closed the connection]
zzamboni has joined #nix-darwin
zzamboni has quit [Ping timeout: 240 seconds]
zzamboni has joined #nix-darwin
zzamboni has quit [Remote host closed the connection]
zzamboni has joined #nix-darwin
zzamboni has quit [Ping timeout: 256 seconds]
zzamboni has joined #nix-darwin
zzamboni has quit [Ping timeout: 240 seconds]
zzamboni has joined #nix-darwin
zzamboni has quit [Ping timeout: 240 seconds]
zzamboni has joined #nix-darwin
philr has joined #nix-darwin
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
peacememories has joined #nix-darwin
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
zzamboni has quit [Remote host closed the connection]
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
peacememories has joined #nix-darwin
zzamboni has joined #nix-darwin
zzamboni has quit [Client Quit]
zzamboni has joined #nix-darwin
zzamboni has quit [Ping timeout: 265 seconds]
<shlevy> Anyone else seen https://github.com/NixOS/nix/issues/1871 ?
<LnL> yeah, possibly
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.
<copumpkin> I think so, yeah
<shlevy> OK. Any pointers to getting started?
peacememories has joined #nix-darwin
<copumpkin> https://bugreport.apple.com/ and people often like to crosspost to openradar
<copumpkin> since their bug reporter is super opaque
<copumpkin> that's this thing: https://openradar.appspot.com/page/1
<shlevy> thanks
jrolfs has quit [Ping timeout: 240 seconds]
<gchristensen> requires a log-in at least
<gchristensen> no, that bug "does not exist"
<shlevy> Ugh is there any way to publish it?
<shlevy> I guess I'll attach the test case to the openradar one
jrolfs has joined #nix-darwin
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shlevy> OMG verifying now but I think with POLLHUP specified in events poll() is returning on readable FD
<shlevy> What the hell it's returning with revents = 0???
peacememories has joined #nix-darwin
<shlevy> Hahahaha amazing. poll is returning with 0 events despite notimeout
jrolfs has quit [Ping timeout: 260 seconds]
jrolfs has joined #nix-darwin
jrolfs has quit [Ping timeout: 256 seconds]
jrolfs has joined #nix-darwin
philr has quit [Ping timeout: 248 seconds]
jrolfs has quit [Read error: Connection reset by peer]
jrolfs has joined #nix-darwin
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nix-darwin
Sirio has joined #nix-darwin
<Sirio> Hi guys, quick question:
<Sirio> $ nix-shell -p meson --run "meson --version"
<Sirio> 0.44.0
<Sirio> $ meson --version
<Sirio> 0.44.0
<Sirio> $ nix-build
<Sirio> .... 0.43.0
<Sirio> where does nix-build look for nixpkgs?
<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> $ nix-info system: "x86_64-darwin", multi-user?: yes, version: nix-env (Nix) 1.11.16, channels(root): "nixpkgs-18.03pre120393.eac38d0b1e", channels(siriobalmelli): "nixpkgs-18.03pre127876.9553ca5bb6c", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixpkgs
<cransom> it would consult $NIX_PATH
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nix-darwin
<Sirio> $ echo $NIX_PATH
<Sirio> ... which points to root's nix-channels; but that hasn't updated because of https://github.com/NixOS/nix/issues/728
<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> yeah, no hope of using system channel on OS X because of this bug: https://github.com/NixOS/nix/issues/728
<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
<Sirio> but that's a bug for another day :P
<LnL> oh
<LnL> do you see cacert in the output of nix-env -q
<Sirio> Cloning into 'nonlibc'... fatal: unable to access 'https://github.com/siriobalmelli/nonlibc.git/': error setting certificate verify locations: CAfile: /etc/ssl/cert.pem CApath: none
<Sirio> $ nix-env -qa >~/nix-env-avail.txt
<Sirio> $ grep cacert ~/nix-env-avail.txt
<Sirio> nss-cacert-3.34.1
<Sirio> $ nix-env -i nss-cacert
<LnL> what about env | grep SSL_CERT_FILE
<Sirio> Cloning into 'nonlibc'... fatal: unable to access 'https://github.com/siriobalmelli/nonlibc.git/': error setting certificate verify locations: CAfile: /etc/ssl/cert.pem CApath: none
<Sirio> NIX_SSL_CERT_FILE=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt
<LnL> that looks normal
<LnL> what happens with SSL_CERT_FILE=$NIX_SSL_CERT_FILE git ...
<LnL> also this is with the nix version of git right, not the system one
<Sirio> $ which git
<Sirio> ... /Users/siriobalmelli/.nix-profile/bin/git
<Sirio> SSL_CERT_FILE=$NIX_SSL_CERT_FILE gives same result
<LnL> then the NIX_* variable should work
<Sirio> git version 2.16.1
<Sirio> yeah, no :P
<Sirio> but no worries - I'll sort that one out later ... I'm using the SSH URLs for now
<LnL> ok try one more crazy thing
<Sirio> ok, sure!
<LnL> nix-shell --pure -p git
<Sirio> git version 2.15.0
<Sirio> *facepalm*
<Sirio> wait - let me reload the shell ... it still has the OLD NIX_PATH
<Sirio> git version 2.16.1
<LnL> and the clone?
<Sirio> same failure
<Sirio> `env | grep SSL` gives nothing
<Sirio> (it IS a pure shell after all)
<LnL> oh right, nix-shell --pure -p cacert git
<Sirio> unfortunately nope
<Sirio> env | grep SSL
<Sirio> SSL_CERT_FILE=/nix/store/d2ayiz3l18l06w67jmc4lgz8b0v1dls4-nss-cacert-3.34.1/etc/ssl/certs/ca-bundle.crt
<LnL> does curl have the same behaviour or only git?
<Sirio> good question! hadn't thought to check ... stand by
<LnL> wait what, does /etc/ssl exist on your system? I thought that wasn't a thing
<Sirio> neither did I, but this is macOS, not a decent self-respecting Linux :P
<Sirio> cruiser:Desktop siriobalmelli$ sudo ls -lha /etc/ssl total 0 drwxr-xr-x 2 root wheel 68B Jan 31 12:43 . drwxr-xr-x 111 root wheel 3.7K Jan 31 12:43 .. cruiser:Desktop siriobalmelli$
<Sirio> $ sudo ls -lha /etc/ssl
<Sirio> total 0
<Sirio> drwxr-xr-x 2 root wheel 68B Jan 31 12:43 .
<Sirio> drwxr-xr-x 111 root wheel 3.7K Jan 31 12:43 ..
<Sirio> curl works fine, BTW
LnL has left #nix-darwin ["Textual IRC Client: www.textualapp.com"]
LnL has joined #nix-darwin
<LnL> whoops
<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
<Sirio> that helped a lot
<Sirio> it's because Darwin is a friggin' mess
<Sirio> I'm not too worried
<Sirio> most of my stuff runs on Linux anyways ;)
<Sirio> logging off now
<Sirio> thanks again :)
<LnL> no problem
<Sirio> logging off now, thanks again
Sirio has quit [Quit: Page closed]
jtojnar has quit [Ping timeout: 260 seconds]
jtojnar has joined #nix-darwin
jrolfs has quit [Ping timeout: 248 seconds]
cdomigan has joined #nix-darwin