<wilfredh>
"If your project uses dune, skip install:"
<wilfredh>
I'm trying to package a project and wondering how to override PREFIX
al-damiri has joined #ocaml
<orbifx>
maybe install is beyong the scope of that file. .dune files have rules for that
<octachron>
wilfredh, install is not needed if a *.install file is present or generated
<Drup>
In any case, prefix should not be handled at the package level
<Drup>
opam-installer as options to modify the prefix
<wilfredh>
I'm trying to build a relocatable executable
<wilfredh>
my build environment is an opam switch, which won't exist when my RPM is installed
<wilfredh>
so I'd like to override PREFIX to be /usr, or I end up with ocamlfind trying to find my switch on the target machine
<wilfredh>
Drup: the only prefix related option to 'opam install' that I can see is --destdir but that seems to be a subdirectory of the switch
<wilfredh>
was that the option you meant?
<Drup>
That's not really how the build tools work. PREFIX is only used for where to place the resulting files, the locations where to find libraries is controlled through environment variables
<Drup>
So, you don't really need to worry about it
<Drup>
and yes, destdir is what I'm talking about
<wilfredh>
$ ocamlmerlin --version
<Drup>
You should look at other ocaml RPM packages as inspiration
<wilfredh>
Fatal error: exception Failure("Config file not found - neither /home/wilfred/share/dotopam/default/lib/findlib.conf nor the directory /home/wilfred/share/dotopam/default/lib/findlib.conf.d")
<wilfredh>
I'm surprised that it's insisting on looking for findlib data at runtime
<Drup>
Ah, well, merlin is a bit special, I'll let the authors deal with that :p
<wilfredh>
I can kludge it with `OCAMLFIND_CONF=/dev/null ocamlmerlin --version` but then I'd need to write a wrapper script
<Drup>
that also makes merlin useless, you should probably make sure merlin can find ocamlfind instead.
ostera1974 has quit [Ping timeout: 250 seconds]
<wilfredh>
Drup: AFAICS merlin works fine without ocamlfind.
<wilfredh>
doesn't it find dependencies using .merlin files?|
ziyourenxiang has quit [Remote host closed the connection]
<Drup>
No, it uses ocamlfind to find libraries.
ziyourenxiang has joined #ocaml
FreeBirdLjj has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
freyr69 has quit [Remote host closed the connection]
<def`>
We would like to get rid of ocamlfind, or at least make it really optional at some point.
<def`>
The thing is that merlin links to findlib to resolve packages (the PKG lines in .merlin, merlin-use or MerlinUse in Emacs & Vim), but findlib initialization fails without a findlib.conf file.
<companion_cube>
what would merlin rely on, then?
<def`>
absolute directories
<companion_cube>
ah right, dune would generate that I suppose
<def`>
Yes.
ostera1974 has joined #ocaml
Niamkik has quit [Ping timeout: 245 seconds]
ziyourenxiang has quit [Ping timeout: 252 seconds]
jerme_ has joined #ocaml
iovec has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
Niamkik has joined #ocaml
FreeBirdLjj has joined #ocaml
<companion_cube>
(i'm fully on the dune train, but yeah, keeping an option for people who don't use dune seems nice)
ostera1974 has quit [Ping timeout: 245 seconds]
FreeBirdLjj has quit [Ping timeout: 268 seconds]
ollehar has quit [Ping timeout: 244 seconds]
orbifx has quit [Quit: WeeChat 2.3]
Haudegen has quit [Remote host closed the connection]
Schroeder has quit [Ping timeout: 240 seconds]
Jesin has joined #ocaml
FreeBirdLjj has joined #ocaml
Serpent7776 has joined #ocaml
Schroeder has joined #ocaml
Schroeder has quit [Changing host]
Schroeder has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
jnavila has joined #ocaml
Spetznaz_ has joined #ocaml
Spetznaz_ has quit [Read error: Connection reset by peer]
Spetznaz_ has joined #ocaml
pierpal has quit [Ping timeout: 268 seconds]
steenuil has joined #ocaml
jaar has quit [Ping timeout: 268 seconds]
orbifx has joined #ocaml
gravicappa has quit [Ping timeout: 244 seconds]
olle has joined #ocaml
tane has joined #ocaml
layeredeggplant has joined #ocaml
layeredeggplant has quit [Client Quit]
kakadu_ has joined #ocaml
ravenous_ has joined #ocaml
al-damiri has quit [Quit: Connection closed for inactivity]
Denommus has joined #ocaml
crowley95 has quit [Ping timeout: 268 seconds]
crowley95 has joined #ocaml
<orbifx>
is there a conventional name for an (include * exclude) pair/tuple?
Denommus has quit [Remote host closed the connection]
<companion_cube>
like in List.partition, you mean?
ravenous_ is now known as ravenousmoose
<cemerick>
Anyone aware of any existing turnkey node.js interop libraries, etc?
<cemerick>
If not I'll just pipe protobuf data over, but maybe someone's paved this path...
<orbifx>
companion_cube: lemme check
<orbifx>
companion_cube: yeah, but for sets, going to check if there is one there too
<orbifx>
companion_cube: its there ^^
<orbifx>
I'm sure this is not the last time I will implement something only to find it later on in the standard library ^^
<orbifx>
cemerick: no I haven't, you've probably searched OPAM and the forum
steenuil has quit [Remote host closed the connection]