yegortimoshenko has quit [(Ping timeout: 260 seconds)]
orivej has quit [(Ping timeout: 256 seconds)]
LnL has quit [(Quit: exit 1)]
<contrapumpkin> the problem is that isn't his to license
<contrapumpkin> you need to get all the contributors' permission to license it, I think
LnL has joined joined #nixos-dev
mbrgm_ has joined joined #nixos-dev
mbrgm has quit [(Ping timeout: 272 seconds)]
mbrgm_ is now known as mbrgm
<laggy_wifi> how does nix's dynamic loader work
<gchristensen> contrapumpkin: I think the content is free to be relicensed "by the nix community"
<gchristensen> which might actually be a bit of a nightmare, who is the nix community and how do they decide things
<laggy_wifi> also how would i make nix's ldd work without needing to chroot into nix
<laggy_wifi> sda3]$ ./nix/store/rk8jv9r9sjc1pz9lkbyj67cj3h0szzhy-glibc-2.25-49-bin/bin/ldd ./dummy
<laggy_wifi> libc.so.6 => not found
<simpson> laggy_wifi: Sorry, if this isn't on NixOS, could you stick to the non-dev channel?
<laggy_wifi> it is on NixOS
<laggy_wifi> NixOS is installed on /dev/sda3
<simpson> Okay, well, ldd is working fine for me here on stable: https://bpaste.net/show/68be3de63b98
<simpson> So can you give me something that I can try to reproduce?
<laggy_wifi> mkdir /tmp/sda3 ; sudo mount /dev/sda3 /tmp/sda3 ; cd /tmp/sda3 ; sudo patchelf --set-interpreter /tmp/sda3/nix/store/xzx1bv1d7z4mgg6sg6ly0jx609qvka4x-glibc-2.25-49/lib/ld-linux-x86-64.so.2 ./nix/store/qp5fw57d38bd1n07ss4zxh88zg67c3vg-bash-4.4-p12/bin/bash ; ./nix/store/rk8jv9r9sjc1pz9lkbyj67cj3h0szzhy-glibc-2.25-49-bin/bin/ldd ./bin/bash
<laggy_wifi> (after modifying glibc-2.25-49-bin/bin/ldd to use /tmp/sda3/nix* instead of /nix* )
<laggy_wifi> aalso assuming nixos is on sda3
<samueldr> gchristensen: here's the head of the mailing list dicussion linked in the archive.org page https://nixos.org/nix-dev/2009-December/003525.html
<laggy_wifi> this can be done in a minimal chroot to avoid nix loading files from nixos host itself
<laggy_wifi> as i am trying to figure out how nix's dynamic loader works if it does not use ld.so.cache and according to "./patchelf-static --print-needed dummy" libquadmath is displayed as "libquadmath.so.0" yet ldd still manages to find it without using ld.so.cache
<laggy_wifi> in nixos itself
<laggy_wifi> libquadmath.so.0 => /nix/store/y5ac95kk3nb52si8zcyznjrfb45720hk-gcc-6.4.0-lib/lib/libquadmath.so.0 (0x00007f267d136000)
<laggy_wifi> how is that even possible if it does not rely on a cache file or any file list
<laggy_wifi> nor full paths in the NEEDED section of the elf/so files
pie_ has joined joined #nixos-dev
pie__ has quit [(Ping timeout: 256 seconds)]
orivej has joined joined #nixos-dev
adisblad` has quit [(Remote host closed the connection)]
adisbladis has joined joined #nixos-dev
<Sonarpulse> globin fpletz: looks like darwin is down https://hydra.mayflower.de/jobset/nixos/pr-33042
ma27 has joined joined #nixos-dev
ma27 has quit [(Ping timeout: 272 seconds)]
ma27 has joined joined #nixos-dev
<srhb> laggy_wifi: There are different methods. Sometimes ld is wrapped, more ofte RPATH is patched such that the store path of the dependency is embedded in the executable
<laggy_wifi> ok
<laggy_wifi> do u know where i could find the code for dlopen()
orivej has quit [(Ping timeout: 248 seconds)]
<globin> Sonarpulse: our Mac sometime turns itself off.. I'll try if I can reach it from home otherwise might drop by the office the next few days
laggy_wifi has quit [(Read error: Connection reset by peer)]
laggy_wifi has joined joined #nixos-dev
<Sonarpulse> globin: thanks, no real rush of course
<Sonarpulse> Merry Christmas!
<globin> Sonarpulse: to you too :)
orivej has joined joined #nixos-dev
romildo has joined joined #nixos-dev
pie_ has quit [(Ping timeout: 248 seconds)]
<domenkozar> Sonarpulse: hey man
<domenkozar> merry xmas :)
romildo has quit [(Quit: Leaving)]
ma27 has quit [(Ping timeout: 272 seconds)]
<zimbatm> hohoho, merry christmas! :p
<zimbatm> domenkozar: do you mind enabling travis-ci on https://github.com/NixOS/nixos-hardware ?
<domenkozar> zimbatm: hmm it doesn't seem to have a travis file
<zimbatm> it's coming
<Mic92> zimbatm: would it make sense to have everything from that repo in nixpkgs itself?
<zimbatm> yes at some point
<zimbatm> it would be nice if nixos-generate-config could detect the hardware and add the profiles directly
<Mic92> versioned code is way better then out-dated forum posts to deal with hardware.
<gchristensen> +1
<zimbatm> on the other hand this repo can now move at it's own pace
<zimbatm> with different rules and a bit less scrutiny
<gchristensen> +1
<zimbatm> it could be useful as a testbed for github bots
<gchristensen> +1
<gchristensen> :'D
<zimbatm> I think we want something similar to nixpkgs packages where different users are responsible for different parts of the tree
<zimbatm> domenkozar: can you ping me when it's done? https://travis-ci.org/profile/NixOS
<domenkozar> zimbatm: sorry, back from late lunch
<domenkozar> zimbatm: done
<zimbatm> thanks!
ma27 has joined joined #nixos-dev
pie_ has joined joined #nixos-dev
yegortimoshenko has joined joined #nixos-dev
<domenkozar> ugh
<domenkozar> ghc 8.2.x depends on alex, happy and hscolour to build
<domenkozar> so bootstrapping becomes hell
<gchristensen> :|
<domenkozar> bgamari: do binary ghcs come with bootstrap binaries like those?
<bgamari> domenkozar, nope
<bgamari> the GHC build process itself also requires ghc
<bgamari> there are binary GHC expressions in nixpkgs for bootstrapping
<bgamari> although it would be nice if they were a tad newer
<bgamari> the latest one is 7.4 iirc
<domenkozar> bgamari: I'm working on that now
<domenkozar> actually I have them working up to 8.2
<bgamari> lovely
<domenkozar> but the problem is that generic builder builds bootstrapped packaged (hscolour, happy, alex)
<domenkozar> so once you modify it, you still have to recompile your ghc
* bgamari has rebased Sonarpulse's GHC cross-compilation patches
<bgamari> and now has a working GHC cross-compiler for ARM
<domenkozar> ideally we'd bootstrap these three packages without generic builder
<bgamari> domenkozar, "it" == ?
<bgamari> the generic builder?
<domenkozar> yes
<domenkozar> you can workaround that by using two nixpkgs checkout
<domenkozar> and point bootstrapped packages to unmodified clone
<domenkozar> but that's really far from ideal
<bgamari> incidentally, does anyone know what the status of `nix copy` is?
<bgamari> the --no-check-sigs flag doesn't seem to work
<bgamari> either that or I have misunderstood what it is supposed to do
<bgamari> since it still complains of `error: cannot add path '/nix/store/402qhax6xjfqgglfcrccz2abkwgbv5pg-armv7l-unknown-linux-gnueabihf-ghc-8.2.1-doc' because it lacks a valid signature` even with the flag
<LnL> you can skip signatures as a trusted user
<bgamari> what is a trusted use?
<LnL> there’s a nixos option, the daemon log also prints whether the connections are from a trusted user
<domenkozar> bgamari: man nix.conf
<bgamari> mm, doing this as root succeeds
<LnL> yeah, root is trusted by default
<bgamari> small feature request: https://github.com/NixOS/nix/issues/1761
<LnL> I think that’s pretty easy to fix, isn’t there a warning with -vvvvv?
<LnL> seem to recall seeing a debug message for that
ma27 has quit [(Ping timeout: 252 seconds)]
<gchristensen> anyone interested in checking out a potential roadmap for grahamcofborg? https://github.com/grahamc/ofborg/issues/30
contrapumpkin has quit [(Quit: Textual IRC Client: www.textualapp.com)]
orivej has quit [(Ping timeout: 264 seconds)]
yegortimoshenko has quit [(Ping timeout: 260 seconds)]
<domenkozar> Installing library in
<domenkozar> /nix/store/5irffzrfc513a6hlkcffnpafpszi8bhr-ghc-7.8.4-binary/lib/ghc-7.8.4/ghc-prim-0.3.1.0
<domenkozar> xcode-select: error: no developer tools were found at '/Applications/Xcode.app', and no install could be requested (perhaps no UI is present), please install manually from 'developer.apple.com'.
<domenkozar> make[1]: *** [ghc.mk:907: install_packages] Error 1
<domenkozar> welp, how do I know what command it ran?
<domenkozar> oh well, set -xe here we come
<gchristensen> also maybe run it without apple programs in the PATH
<domenkozar> sigh :)
<gchristensen> I agree :)
<domenkozar> I'd just like to disable this integration
ma27 has joined joined #nixos-dev
<domenkozar> what disables the xcode integration? :)
<domenkozar> I guess nix impurities allow /usr/bin
<gchristensen> are you on nix 1.12?
<domenkozar> 1.11
<gchristensen> 1) get 1.12, 2) turn on sandboxing :)
<domenkozar> one day I'll have a blue eye
<domenkozar> because niksnut will release 1.12
<domenkozar> and I'll punch myself to check if I'm dreaming
<gchristensen> LOL
contrapumpkin has joined joined #nixos-dev
<domenkozar> error: while setting up the build environment: can't map '/private/tmp/nix-build-ghc-7.8.4-binary.drv-0' to '/private/tmp/nix-build-ghc-7.8.4-binary.drv-5': mismatched impure paths not supported on Darwin
<domenkozar> the rabbithole thickens
<domenkozar> all I wanted to fix was a haskell lib
<domenkozar> then I got to fix binary ghcs
<domenkozar> here I am debugging nix
<gchristensen> haha <3 the Nix ecosystem has the best yaks
<domenkozar> /nix/store/6hnqrzb22kc99vgl4y7zii9nn6f2y1bd-stdenv-darwin/setup: fork: Operation not permitted
<domenkozar> well
<gchristensen> are you on high sierra?
<domenkozar> nope
<gchristensen> have you setup System Preferences to let you execute unsigned stuff?
<domenkozar> 10.12
<domenkozar> gchristensen: is that a thing?
<gchristensen> it is :$
<stqism> gchristensen: run spctl --master-disable as root
<stqism> And gatekeeper won't say anything about the stuff you run at all
<stqism> That, or you remove the untrusted attribute from the file
<gchristensen> domenkozar: ^ :)
<domenkozar> no difference
<stqism> Which is xattr -r -d com.apple.quarantine path/to/binary
<LnL> huh, why would you run into that!?
<stqism> Guys just do one of 2 commands I said and it'll run fine
<LnL> gchristensen: stdenv setup should only be sourced, not executed
<domenkozar> stqism: spctl --master-disable doesn't work
<domenkozar> with sudo at least
<stqism> Well that's weird
<domenkozar> to me it looks like a nix bug
<LnL> I'm pretty sure you'd need to do that in single user mode but unless you're doing something very special you don't want that
<domenkozar> $ sudo nix-channel --update
<domenkozar> unpacking channels...
<domenkozar> libc++abi.dylib: terminating with uncaught exception of type nix::SysError: getting status of /nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt: Operation not permitted
<domenkozar> oh well
<domenkozar> gchristensen: anything else I should try besides Nix 1.12? :)
<LnL> oh wait, are you trying to use sandboxing?
<domenkozar> yes
<LnL> yeah, that won't work without nix ~master
laggy_wifi has quit [(Quit: Konversation terminated!)]
orivej has joined joined #nixos-dev
<domenkozar> ok, /nix/store/viz02vmqq65shmp6vsw9pdmihfkbrg8n-nix-unstable-1.12pre5788_e3013543 works so far
<domenkozar> gchristensen: thanks, now I see
<domenkozar> it was looking for ranlib
<gchristensen> good
pie__ has joined joined #nixos-dev
pie_ has quit [(Ping timeout: 256 seconds)]
pie__ has quit [(Quit: Leaving)]
the has joined joined #nixos-dev
the has quit [(Changing host)]
the has joined joined #nixos-dev
laggy_wifi has joined joined #nixos-dev
<domenkozar> there we go, all prebuilt ghcs now build on darwin/linux
<domenkozar> gchristensen: do you have sandbox set to relaxed on your macos workers?
<LnL> we dropped relaxed afaik
<domenkozar> LnL: dropped from machines or from the need of using it?
<domenkozar> bot fails to build it, it succeeds for me locally
<LnL> let me check if that’s my builder
<domenkozar> LnL: is it zoidberg?
<LnL> no, that's graham's box
<domenkozar> well, I'll try again
<LnL> there's only one darwin builder online at the moment, so that probably won't help :)
<domenkozar> could be transient :)
<domenkozar> it's not.
<LnL> oh wait, it might be something else
ma27 has quit [(Ping timeout: 272 seconds)]
<LnL> hydra doesn't resolve system dependencies correctly at the moment, and I made a jobset for that pr
<domenkozar> LnL: link? :)
<LnL> n/m that was for the multiple outputs
<domenkozar> ah :)
<domenkozar> well if you folks want to test locally, be my guest :)
<LnL> that last error is a real sandboxing issue :D
<domenkozar> LnL: as in, broken sandboxing?
<LnL> it shouldn't be trying to use /usr/bin/ranlib
<LnL> do you have the CLT/Xcode installed?
<domenkozar> afaik no
<LnL> hmm weird, shouldn't work without a sandbox either then
<domenkozar> just to be sure
<domenkozar> build-use-sandbox = true
<domenkozar> this is all I have
<LnL> yeah, I just added --option build-use-sandbox true to the ofborg source
<domenkozar> ah I can reproduce the last error
<domenkozar> LnL: so it wasn't using sandboxing before?
<LnL> mine has been running with it for about a month now
<domenkozar> ah now 7.8 has the same error
<LnL> urgh, I should really fix the pre-build hook stuff
<LnL> hopefully I stop procrastinating now that I'm done traveling for a while :)
<domenkozar> :)
<LnL> hmm, the binaries depend on gcc?
<domenkozar> on gcc_s
<domenkozar> for darwin! :D
<domenkozar> might be we can just delete that rpath
<LnL> yeah, just kind of odd for darwin
<domenkozar> :)
<domenkozar> but that's for another xmas :)
<LnL> oh!
<domenkozar> actually I had a fix for that
<LnL> do you mean we won't have to compile 3 ghc's if the builder changes?
<domenkozar> yes
<domenkozar> no compiles whatsoever
<domenkozar> I actually have a fix for 8.0.2 that works
<domenkozar> but 8.2.x brings in also alex and happy
<domenkozar> making bootstrapping a pain
<domenkozar> so short-term we'd only rebuilt 1 ghc
<LnL> almost sounds like Christmas
<domenkozar> if I use binary ghc to build bootstrapped libs
<domenkozar> then you compile ghc you need
<domenkozar> and all the libs that follow
<domenkozar> :)
laggy_wifi_ has joined joined #nixos-dev
<Sonarpulse> domenkozar: thanks!
laggy_wifi has quit [(Read error: Connection reset by peer)]
the has quit [(Ping timeout: 265 seconds)]