<flux>
probably a variant of Arg.file that would also support stdin would be ok. similarly a variant supporting stdout.
<flux>
type filename = Filename of string | StandardIO ?
<flux>
Arg.stdio_file ?
<flux>
debatable bonus: support special syntax for indicating a name for stdio, ie. -:foo.txt
<flux>
but maybe not, nobody supports that
<flux>
(actually stdin_file and stdout_file would be needed to separate between variants that check for existence of the file)
<flux>
a super bonus variant would actually return an open file handle, closing the small gap between checking the file's existence and then later on re-opening it
<reynir>
"-" is a valid file name
<rgrinberg>
companion_cube: glad it works for you. feel free to help me maintain it. I'm a bit busy on dune these days
<flux>
reynir, sure, but you can always write ./-. but indeed by default it should not use - as a file name for that reason as well.
<reynir>
flux: ! Thanks, I didn't think of that trick before!
<flux>
also ./* is a safe way to provide list of files in the current directory, even if they begin with - :)
ziyourenxiang has joined #ocaml
zpe has joined #ocaml
mk9_ has joined #ocaml
mk9_ has quit [Client Quit]
mk9 has quit [Ping timeout: 240 seconds]
mk9 has joined #ocaml
raduom has joined #ocaml
<orbifx[m]>
Has anyone come across anything like OPAM but for C?
VermillionAzure has quit [Ping timeout: 240 seconds]
BitPuffin has joined #ocaml
zolk3ri has quit [Remote host closed the connection]
<rgrinberg>
Can't opam work for C? It's just a matter of publishing packages to it
malc_ has joined #ocaml
<orbifx[m]>
rgrinberg: thought about that, it's an option
mfp has joined #ocaml
mk9 has quit [Quit: mk9]
antismap has quit [Ping timeout: 246 seconds]
mk9 has joined #ocaml
<rgrinberg>
companion_cube: do you really need a makefile to generate those qtests - incredibly lazy ;)
shinnya has joined #ocaml
TarVanimelde has joined #ocaml
kakadu has joined #ocaml
TarVanimelde has quit [Quit: TarVanimelde]
_andre has joined #ocaml
<flux>
apparently opam2 is designed to be language-agnostic
<flux>
orbifx[m], apt-get :)
<flux>
but actually I've read about a similar package manager for c++
<orbifx[m]>
there is conan, but a quick glance shows that it's using CMake
<orbifx[m]>
apt repositories tend to be OS related
mpenet has joined #ocaml
haesbaert has quit [Remote host closed the connection]
Haudegen has quit [Remote host closed the connection]
silver has joined #ocaml
nahra has quit [Remote host closed the connection]
nahra has joined #ocaml
malc_ has quit [Ping timeout: 260 seconds]
nahra has quit [Remote host closed the connection]
<Armael>
orbifx[m]: nix, maybe?
mpenet has left #ocaml ["ERC (IRC client for Emacs 26.0.50.2)"]
<orbifx[m]>
Isn't that a whole OS?
<silver>
nix is package manager, nixos is os
andreas_ has joined #ocaml
cuicui has quit [Remote host closed the connection]
<orbifx[m]>
silver: ah cool. So it's possible to run nix in user space?
xfbs_ has quit []
spew has joined #ocaml
ziyourenxiang has quit [Quit: Leaving]
<silver>
theoretically yes, but I didn't try it myself, and it seems like there are some caveats
spew has quit [Read error: Connection reset by peer]
<simpson>
orbifx[m]: Nix is a user-space daemon; NixOS is Linux and systemd with Nix on top.
<simpson>
Running Nix in locations other than /nix is fine but you'll have to rebuild *everything*. It kind of sucks. You shouldn't use Nix on machines which you don't own or have root.
<Armael>
umm, I thought one of the purpose of nix was precisely for users (who do not have root) to be able to install stuff in their home
<Armael>
(and you can have a shared nix store if you want to not duplicate too much stuff)
<orbifx[m]>
thanks silver and simpson
<simpson>
Armael: That's a way to do it, but it's the slow unfun way. The purpose of Nix is to be a POLA (capability-safe) package manager; it's not quite cap-safe but it's far closer than other package managers.
jbrown has joined #ocaml
<companion_cube>
rgrinberg: what else should I use? :p
<rgrinberg>
companion_cube: ocaml of course
<companion_cube>
meh
<companion_cube>
I'm not on a war on make, personnally
<rgrinberg>
It's a war on Windows ;)
<rgrinberg>
And bsd
<companion_cube>
hu
<companion_cube>
I mean, can you even install on windows without cygwin, realistically?
<companion_cube>
can you install opam?
<simpson>
Who are the players in the War on Windows? I got the impression that MS was the main antagonist when it came to cross-OS portability.
<companion_cube>
they're providing an ubuntu compat layer, these days, I think
<adrien>
"compat layer"
<companion_cube>
tbh I'd agree with removing the makefiles
<companion_cube>
but I have more pressing things to do, like having the tests work properly
argent_smith has joined #ocaml
sepp2k has joined #ocaml
moei has joined #ocaml
cuicui has joined #ocaml
sz0 has joined #ocaml
malc_ has quit [Remote host closed the connection]
sapristi has quit [Quit: Leaving]
freyr has joined #ocaml
sh0t has joined #ocaml
Onemorenickname has quit [Ping timeout: 240 seconds]
dhil has joined #ocaml
FreeBirdLjj has joined #ocaml
Onemorenickname has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 256 seconds]
zpe has quit [Remote host closed the connection]
dhil has quit [Ping timeout: 268 seconds]
freyr has quit [Quit: Lost terminal]
argent_smith has quit [Quit: Leaving.]
<rgrinberg>
Dune already takes you so close to portability. It's a shame to spoil it like that
<rgrinberg>
companion_cube: does removing fallback and doing a clean build help?
<rgrinberg>
I'm not sure why you have fallback there in the first place btw.
<companion_cube>
it's on a clean build
<companion_cube>
without fallback
<companion_cube>
yeah nevermind it
<companion_cube>
rgrinberg: I don't think I have any windows user (that wouldn't use cygwin)
<companion_cube>
I mean that'd be cool, but… who writes oCaml on windows ?!
<rgrinberg>
As I've learned recently, quite a lot of people :/
zpe has joined #ocaml
sh0t has quit [Read error: Connection reset by peer]
sh0t has joined #ocaml
* adrien
waves at companion_cube
<jpdeplaix>
:D
authchir has joined #ocaml
<authchir>
Hello, I get an error while installing topkg.0.9.1 with opam: The compilation of topkg failed at "ocaml pkg/pkg.ml build --pkg-name topkg --dev-pkg false".
<authchir>
How come the compilation of topkg cannot find the module Topkg?
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
dhil has joined #ocaml
argent_smith has joined #ocaml
argent_smith has quit [Quit: Leaving.]
TC01 has joined #ocaml
<zozozo>
quick opam2 question, what's the correct syntax for a test dependency with required version (in an opam file): "dolmen" {test && = "dev"} works with opam 2.0~beta4 but not opam2.0~beta6
<zozozo>
ah, single '&' it seems :p
<jpdeplaix>
yes
zpe has quit [Remote host closed the connection]
dhil has quit [Ping timeout: 240 seconds]
Onemorenickname_ has joined #ocaml
zolk3ri has joined #ocaml
govg has quit [Ping timeout: 256 seconds]
govg has joined #ocaml
Onemorenickname has quit [Ping timeout: 240 seconds]
JeanMax has quit [Ping timeout: 256 seconds]
sz0 has quit [Quit: Connection closed for inactivity]
dhil has joined #ocaml
mk9 has quit [Ping timeout: 256 seconds]
xfbs has joined #ocaml
georgiy has joined #ocaml
<georgiy>
hey folks i'm not sure if i'm in the right place but can anyone help me build tezos on fedora
<georgiy>
?
<reynir>
georgiy: I haven't tried building it, but perhaps someone else can help you if you provide more information with the problems you're facing :-)
<georgiy>
basically everything was going fine until i ran make build-deps
<georgiy>
then make build-deps started complaining about pkgconfig being missing
xfbs has quit []
<georgiy>
so i tried oinstalling pkgconfig
<georgiy>
both via yum and dnf
<georgiy>
both as root and via sudo
<georgiy>
not that there should be any difference between any of them
cuicui has quit [Quit: leaving]
xfbs has joined #ocaml
<zozozo>
georgiy: and did you succedd installing pkgconfig ?
<georgiy>
anyway when i ask dnf to install pkgconfig the package that it installed instead was something called pkgconf-pkg-config which i assume provides similar functionality
<georgiy>
anyway
<georgiy>
my theory
<georgiy>
and ;let me know if i'm wrong here
<georgiy>
is that make build-deps expects the package to be called pkgconfig instead of pkgconf-pkg-config
<georgiy>
and because it's called something different to build script gets confused
<georgiy>
so then i thought i'd edit the makefile
<Drup>
pkgconfig is more of a standard C thing
<georgiy>
and i saw that it called this other build script which either sourced or directly executed a bunch of others
<Drup>
it's not really ocaml related, it seems weird you have issue with that
<georgiy>
if my understanding of the build scripts was correct i've narrowed the problem dpown to the following three lines in /scripts/install_build_deps.sh
<georgiy>
opam list --installed depext || opam install depext
<georgiy>
opam install $packages --deps-only
<georgiy>
opam depext $packages
<georgiy>
yeah i'm not sure if it's ocaml related or not
<georgiy>
i actually first tried getting help over at #tezos but thus far no luck
<georgiy>
hence my boss suggested i try both here and #opam as tezos is built with ocaml
<georgiy>
anyway the reason that i think it's one of those three lines in /scripts/install_build_deps.sh is that the previous lines of it seem to have nothing to do with pkg config
<georgiy>
and when they do source or call other scripts i see nothing related to pkg_config either
<georgiy>
anyway if you guys have some idea of what i'm doing wrong please let me know
<georgiy>
any help is much appreciated and will be gratefully received
xfbs has quit []
authchir has quit [Ping timeout: 260 seconds]
cbot has joined #ocaml
Algebr has joined #ocaml
jnavila has joined #ocaml
dhil has quit [Ping timeout: 256 seconds]
jnavila has quit [Ping timeout: 240 seconds]
georgiy has quit [Quit: Leaving]
mk9 has joined #ocaml
mk9_ has joined #ocaml
mk9 has quit [Ping timeout: 264 seconds]
mk9_ is now known as mk9
jnavila has joined #ocaml
dhil has joined #ocaml
jnavila has quit [Ping timeout: 240 seconds]
kakadu has quit [Quit: Konversation terminated!]
mk9 has quit [Quit: mk9]
baboum has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
sapristi has joined #ocaml
dhil has quit [Ping timeout: 240 seconds]
jnavila has joined #ocaml
BW___ has joined #ocaml
<BW___>
how to recover from "The sources of the following couldn't be obtained, aborting: - ocaml-variants.4.05.0+trunk+safe-string"
<BW___>
trying to isntall for google-drive connector
<BW___>
tried opam update; opam upgrade, but it says all is up-to-date
<BW___>
but the file is located at ./.opam/repo/default/packages/ocaml-variants/ocaml-variants.4.05.0+trunk+safe-string
kakadu has joined #ocaml
bartholin has joined #ocaml
sapristi has quit [Remote host closed the connection]
sapristi has joined #ocaml
sapristi has quit [Remote host closed the connection]
BitPuffin has quit [Remote host closed the connection]
sapristi has joined #ocaml
sapristi has quit [Remote host closed the connection]
sapristi has joined #ocaml
xfbs has joined #ocaml
_andre has quit [Quit: leaving]
melvin has joined #ocaml
sapristi has quit [Remote host closed the connection]
sapristi has joined #ocaml
xfbs has quit []
sapristi has quit [Remote host closed the connection]
<melvin>
hello i am work a ocaml project on github
<melvin>
project name is frenetic is SDN controller
sapristi has joined #ocaml
jbrown has quit [Ping timeout: 240 seconds]
<melvin>
but you probably dont know the area called SDN, please learn it by google if you are interesting
<melvin>
thank you
<melvin>
this project have give me headache several days, why exists such obscure language!
<octachron>
BW___, "ocaml-variants.4.05.0+trunk+safe-sring" is a compiler package that is used to install the compiler itself , for instance when creating a switch in opam 2
<octachron>
BW___, when does this error occur?
sapristi has quit [Ping timeout: 260 seconds]
melvin has quit [Quit: Page closed]
VermillionAzure has joined #ocaml
cbot has quit [Ping timeout: 240 seconds]
cbot has joined #ocaml
Haudegen has joined #ocaml
ygrek has joined #ocaml
Onemorenickname_ has quit [Ping timeout: 240 seconds]
Onemorenickname has joined #ocaml
<BW___>
[page@validator-dev-dev ~]$ opam install google-drive-ocamlfuse The following actions will be performed: ∗ install base-threads base [required by google-drive-ocamlfuse] ∗ install ocaml-variants 4.05.0+trunk+safe-string [required by ocaml] ∗ install ocaml 4.05.0 [required by google-drive-ocamlfuse] ∗ install ocamlbuild
<octachron>
Do you have a working ocaml installation? Opam is trying to install the compiler itself
jnavila has quit [Remote host closed the connection]
jbrown has joined #ocaml
VermillionAzure has quit [Ping timeout: 240 seconds]
groovy2shoes has quit [Ping timeout: 256 seconds]
<BW___>
no working ocaml installation; was trying to create one;
Jesin has joined #ocaml
<BW___>
goal is to install google-drive-ocamlfuse on GNU/Linux platform
<octachron>
you should install ocaml first, with for instance "opam switch create 4.06.0" for the current version of the compiler
<octachron>
then try to install google-drive-ocamlfuse
<octachron>
if you need to compile it from source
AltGr has left #ocaml [#ocaml]
VermillionAzure has joined #ocaml
jbrown has quit [Ping timeout: 240 seconds]
VermillionAzure has quit [Ping timeout: 256 seconds]
sepp2k has quit [Quit: Leaving.]
sapristi has joined #ocaml
jbrown has joined #ocaml
sapristi has quit [Client Quit]
cbot has quit [Ping timeout: 256 seconds]
barcabuona has quit [Ping timeout: 252 seconds]
jao has joined #ocaml
Haudegen has quit [Remote host closed the connection]
gpietro has joined #ocaml
sh0t has quit [Read error: Connection reset by peer]
groovy2shoes has joined #ocaml
VermillionAzure has joined #ocaml
Onemorenickname has quit [Read error: Connection reset by peer]
kamog has quit [Quit: Leaving.]
jbrown has quit [Ping timeout: 240 seconds]
webshinra has quit [Remote host closed the connection]
webshinra has joined #ocaml
moei has quit [Quit: Leaving...]
kamog has joined #ocaml
govg has quit [Ping timeout: 240 seconds]
kakadu has quit [Remote host closed the connection]
zolk3ri has quit [Remote host closed the connection]