<
pjan>
LnL: apologies for not having responded on the issue - pneumonia is keeping me afk
<
LnL>
no problem, just wanted to check if my comments made sense
<
dhess>
mitchty: did you ever file that GHC issue on 8.2.2 and armv7l ?
Sonarpulse has quit [Ping timeout: 276 seconds]
hamishmack has quit [Quit: hamishmack]
hamishmack has joined #nix-darwin
hamishmack has quit [Client Quit]
hamishmack has joined #nix-darwin
periklis has joined #nix-darwin
zzamboni has joined #nix-darwin
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
zzamboni has quit [Ping timeout: 248 seconds]
zzamboni has joined #nix-darwin
zzamboni has quit [Ping timeout: 248 seconds]
zzamboni has joined #nix-darwin
zzamboni has quit [Client Quit]
zzamboni has joined #nix-darwin
zzamboni has quit [Client Quit]
zzamboni has joined #nix-darwin
zzamboni has quit [Client Quit]
zzamboni has joined #nix-darwin
zzamboni has quit [Client Quit]
zzamboni has joined #nix-darwin
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
zzamboni has quit [Client Quit]
zzamboni has joined #nix-darwin
zzamboni has quit [Client Quit]
zzamboni has joined #nix-darwin
peacememories has joined #nix-darwin
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
peacememories has joined #nix-darwin
peacememories has quit [Client Quit]
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
johnw has quit [Ping timeout: 240 seconds]
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nix-darwin
zzamboni has quit [Ping timeout: 240 seconds]
peacememories has joined #nix-darwin
peacememories has quit [Client Quit]
glenn_ has quit [Ping timeout: 252 seconds]
szicari has joined #nix-darwin
<
mitchty>
dhess: doh forgot to add it to my or notes, doing it now :)
szicari has quit [Quit: szicari]
Sonarpulse has joined #nix-darwin
glenn_ has joined #nix-darwin
szicari has joined #nix-darwin
bdarnell has joined #nix-darwin
johnw has joined #nix-darwin
johnw_ has joined #nix-darwin
johnw has quit [Ping timeout: 248 seconds]
glenn_ has quit [Remote host closed the connection]
glenn_ has joined #nix-darwin
glenn_ has quit [Ping timeout: 276 seconds]
bdarnell has quit [Read error: Connection reset by peer]
glenn_ has joined #nix-darwin
glenn_ has quit [Ping timeout: 252 seconds]
periklis has quit [Ping timeout: 240 seconds]
jtojnar has joined #nix-darwin
glenn_ has joined #nix-darwin
glenn_ has quit [Remote host closed the connection]
glenn_ has joined #nix-darwin
<
jtojnar>
what is the correct way of fixing ld: unknown option: --version-script?
<
jtojnar>
should I just remove the option on Darwin?
<
jtojnar>
or is there an upstreamable fix?
<
jtojnar>
of course, this was already fixed upstream
glenn_ has quit [Remote host closed the connection]
glenn_ has joined #nix-darwin
glenn_ has quit [Ping timeout: 240 seconds]
<
LnL>
the @rpath/libjson-glib-1.0.0.dylib
<
LnL>
the library is probably not in rpath
<
LnL>
we almost never use rpaths unlike linux
glenn_ has joined #nix-darwin
bdarnell has joined #nix-darwin
glenn_ has quit [Ping timeout: 252 seconds]
glenn_ has joined #nix-darwin
<
dhess>
mitchty: thank you!
<
jtojnar>
LnL: where would the rpath reference come from?
<
LnL>
the upstream build, we don’t add anything in the stdenv
<
jtojnar>
LnL: or is @rpath just placeholder signifying that the library could not be found anywhere?
<
LnL>
I’ll take a look in a sec
<
LnL>
it's a placeholder for the rpath of whatever binary loads the dylib
<
LnL>
jtojnar: it's json_glib
<
jtojnar>
LnL: any idea how to fix that?
johnw_ is now known as johnw
johnw has quit [Changing host]
johnw has joined #nix-darwin
hamishmack has quit [Quit: hamishmack]
<
LnL>
jtojnar: don't really know anything about meson/ninja so I just used the fixup hook
szicari has quit [Read error: Connection reset by peer]
szicari_ has joined #nix-darwin
<
jtojnar>
LnL: cool
<
LnL>
usually we would do something like -Wl,-install_name,$out/lib/foo-1.0.0.dylib
<
jtojnar>
do we do that for every library?
<
jtojnar>
or do autotools or something handle that?
<
LnL>
some things do it correctly based on --prefix
<
LnL>
for other things like cmake there's an option INSTALL_NAME_DIR that we only set because of multiple outputs
<
jtojnar>
just to be clear, the built dylib had non-absolute install_name?
<
LnL>
yeah it had @rpath/foo.dylib
<
LnL>
that only works if the final binary that uses it has libfoo/lib in it's rpath
<
LnL>
on linux we do it like that for everything, but on darwin we always use absolute paths
<
LnL>
there are a few placeholders like that, @executable_path or something like that is another example
<
jtojnar>
too tired to read it now
<
LnL>
yeah, I also found that
<
LnL>
but ideally we would just tell meson not to use rpaths
<
jtojnar>
I do not think it is possible
<
jtojnar>
at the moment we have to patch it just to keep the rpaths for linux
<
jtojnar>
anyway, your PR looks good, is it okay to merge it?
hamishmack has joined #nix-darwin
<
LnL>
yeah, for us that should just be libdir or prefix/lib or whatever
<
jtojnar>
LnL: as I understand it it is basically the same issue
<
jtojnar>
we need one value when building it (to be able to run it from the build directory)
<
jtojnar>
and another one for when it is installed
<
jtojnar>
LnL: Actually, the install_names might be even worse, since they are incorporated into the files during linking
<
jtojnar>
so if we want to build an internal library, link a program against it and run it from the build directory
<
jtojnar>
and then install the library and the program to nix store, we will need to change the install_name and relink the program
<
jtojnar>
if my understanding is correct
<
LnL>
not sure what youmean, it’s for libraries that end upin out
<
jtojnar>
LnL: My use case is package building a program and an internal library used by the program
<
jtojnar>
and the program needs to run in a development scenario from the build dir AND in a packaging scenario from the Nix store
<
jtojnar>
otherwise we could indeed just patch it to libdir
<
johnw>
LnL: oh, I thought of something else that would be nice
<
johnw>
a service to control SSH, so that I can enable 'arcfour' as a Cipher on my Mac machines
<
johnw>
(sshd, specifically)
szicari_ has quit [Quit: szicari_]
<
LnL>
as in a separate service next to the builtin stuff?
<
LnL>
jtojnar: are you talking about the pr or something else
<
jtojnar>
LnL: I am talking about the requirements for a generic meson patch
<
LnL>
ah yes, prefix should only be used for install targets
matthewbauer has joined #nix-darwin
<
jtojnar>
LnL: One solution would be patching meson only when used in nix-build (for example adding an option that would be used in the setup hook)
<
jtojnar>
thought that would still not work with -K option
<
jtojnar>
and also tests
matthewbauer has quit [Ping timeout: 248 seconds]
bdarnell has quit [Ping timeout: 264 seconds]
glenn_ has quit [Ping timeout: 276 seconds]
matthewbauer has joined #nix-darwin
Sonarpulse has quit [Ping timeout: 248 seconds]
glenn_ has joined #nix-darwin