hannes changed the topic of #mirage to: https://mirage.io - bug cleaning day every first friday in month (14:00 UTC - late, next: May 4th) - next call May 16th 16:00 BST https://github.com/mirage/mirage-www/wiki/Call-Agenda - retreat 3rd-10th October http://retreat.mirage.io - this channel is logged at http://irclog.whitequark.org/mirage/ - MirageOS 3 is released - happy hacking!
wendar has quit [Remote host closed the connection]
wendar has joined #mirage
yomimono_ has quit [Ping timeout: 240 seconds]
demonimin has quit [Ping timeout: 264 seconds]
pagurus` has joined #mirage
pagurus has quit [Ping timeout: 240 seconds]
andreas23 has quit [Quit: Leaving.]
Haudegen has joined #mirage
andreas23 has joined #mirage
Haudegen has quit [Read error: Connection reset by peer]
Haudegen has joined #mirage
argent_smith has joined #mirage
mort___ has joined #mirage
argent_smith has quit [Quit: Leaving.]
mort___ has left #mirage [#mirage]
demonimin has joined #mirage
adamsteen has joined #mirage
<adamsteen> Hey Mato
mort___ has joined #mirage
mort___ has quit [Client Quit]
<mato> adamsteen: Hi Adam!
<mato> adamsteen: I've made some progress, with avsm's help have a working OPAM 2 install on OpenBSD 6.3
<adamsteen> i have testing OPAM 2 yet
<mato> adamsteen: Which needs to be built from source; I'll add the steps to our OpenBSD issue
<adamsteen> havent sorry
<mato> I could not get OPAM 1 to work due to the external solver not being available and no aspcud
<mato> So just gave up on that
<adamsteen> Arrh yes! I had to build all that from scratch too
<mato> Am now trying to figure out the pkgconf/pkg-config problem
<mato> OPAM 2 install is actually pretty straightforward if you know the steps to use
<adamsteen> now that would be nice!
<adamsteen> I will be around, if you need anything
<mato> AFAICT the problem is that /usr/bin/pkg-config does not support ${pcfiledir}
<mato> In theory that could be fixed by generating all the Mirage .pc files with a fixed ${prefix} at install time, but that's quite a pain
<adamsteen> its it possible to make the pkg-config a variable? and default it to pkg-config?
<mato> That would be the same amount of effort
<adamsteen> oh
<mato> I think the easiest option right now is to try and detect the situation if running on OpenBSD (at the time solo5-kernel-ukvm is built) and complain to the user if they don't have the "right" pkg-config in $PATH
mort___ has joined #mirage
<mato> it's a hack, but I can't think of anything easier right now
<mato> long term the proper fix would be to stop using pkg-config entirely and use OPAM per-package variables to pass the values around, but that would make us depend on OPAM 2
<adamsteen> It makes sense to me and is very easy to setup
<mato> anyway, let me set $PATH and actually test the rest of your changes to see if everything works
<adamsteen> i will be in and out over the next hour then i probably won't be back till about 12:30pm utc ( or 8:30am in Perth Australia)
<adamsteen> also note anything with gmp-freestanding will fail, i have fixes up until nocrypto, nothing worth a pr yet tho
<mato> sure
<mato> i have about an hour as well...
<mato> adamsteen: will you be around tomorrow morning CET?
<adamsteen> before 9am maybe
<adamsteen> its 5:30pm here
<adamsteen> I have a work function from 4pm here ( or 9am CET)
<mato> ok, thanks, I might just merge the existing PRs as-is, then sort out the pkgconf problem in a followup. Will decide this afternoon.
<adamsteen> I will still be here for the next 40mins or so
<adamsteen> i will thinking about the pkgconf problem further and see what I can come up with
<hannes> (adamsteen btw your nocrypto patch breaks installation on my system as well, it also needs to be different from the mirage-solo5 approach since nocrypto is also used with unix (and there we want to install a shared library, and only have the cross-compiled c sources for solo5 come without a shared library)
<mato> Well, once opam depext is fixed on openbsd, what we could do is -- if we detect the situation on OpenBSD we install the symlink ourselves in the opam install script for solo5-kernel-ukvm, into the per-OPAM bin directory
<mato> (and print a prominent warning)
<adamsteen> i think opam depext was merged 25mins ago, just got an email
<mato> yes, altgr just told me, but it needs testing before releasing a new version
<mato> adamsteen: have you seen that before? note that the data seg size (and heap) looks completely wrong
<mato> and the rip is bogus
<mato> this is from the mirage-skeleton tutorial/hello
<adamsteen> A quick question are you running current or 6.3?
<mato> 6.3
<hannes> (adamsteen: i suspect the nocrypto issue needs fixing in ocb-stubblr... all these build systems are painful :/)
<adamsteen> hmm, i am current current, i will need to set something up to verify whats going
<adamsteen> (hannes: thank you, i think I need to park that for a little while anyways)
<adamsteen> i saw that once for a couple of days in current
<adamsteen> but it went away on my next snapshot update
<hannes> (adamsteen: i may look into it later today)
<adamsteen> its something happening between the pledge or change root
<adamsteen> ie the security specific code
<adamsteen> if you would like i can just remove that for now and open a new pr to get it back in, when i have verified it on 6.3 and current
<mato> well, TBH, I'd kind of prefer to deal with de-privileging separately
<mato> I realise that on OpenBSD it's supposed to be "baked in", but I think we should get things working first :)
<adamsteen> ok give me a couple of minutes
<mato> adamsteen: should i try and remove it locally first to see if it helps at all?
<mato> adamsteen: or just push to a separate branch that I can "opam pin" to (not to the PR yet)
<adamsteen> ok will do
<mato> thx
<mato> though I suspect the problem is elsewhere since the C tests work...
<adamsteen> i have only seen the issue for one working session, and then I updated the snapshot as i need a new package and it has went away
<mato> adamsteen: nope, no change... same result
<adamsteen> mato: oh, i apologise, i will need to get 6.3 up and running and see what the issue is
<mato> and if I run the C "test_hello" with the same ukvm binary (the one that mirage build produced), it works fine
<mato> adamsteen: no need to apologise; these things are tricky!
<mato> adamsteen: for reference, this is with the Solo5/opam-solo5 repo, and the following pins:
<mato> ocaml-freestanding.dev~solo5 git git+file:///home/build/ocaml-freestanding#openbsd
<mato> solo5-kernel-ukvm.dev~solo5 git git://github.com/adamsteen/solo5#temp
<mato> (the ocaml-freestanding is your openbsd branch)
<adamsteen> cheers, i will have a look into it when i can
<adamsteen> brb gotta get the dog some food
<mato> no worries
<adamsteen> i think thats my cue to go
<adamsteen> i will be interested in your opam2 information
<adamsteen> and i will look into whats going on with 6.3 vs Current and mirage hello tutorial
<adamsteen> glad i could get on here for a bit
<mato> adamsteen: cool, thanks for dropping in
<mato> adamsteen: if things look mergeable tomorrow AM my time then I'll click some buttons
<mato> adamsteen: otherwise after I get back from sailing (14th)
<adamsteen> mato: good night/day, i suspect it will be when you get back, i am thinking its a OpemBSD kernel vmm thing, which would mean 6.4 would be the next stable that would be work
<adamsteen> hannes: good night/day, that would be cool if you got somewhere with nocrypto, but i now have more import things to sort, mirageos on OpenBSD 6.3
<adamsteen> caio all
adamsteen has left #mirage [#mirage]
mort___ has quit [Quit: Leaving.]
mort___ has joined #mirage
ExtraCrispy has joined #mirage
argent_smith has joined #mirage
Haudegen has quit [Remote host closed the connection]
mort___ has left #mirage [#mirage]
argent_smith1 has joined #mirage
argent_smith has quit [Ping timeout: 255 seconds]
Haudegen has joined #mirage
andreas23 has quit [Quit: Leaving.]
djs55 has quit [Quit: Leaving.]
djwillia has left #mirage ["ERC (IRC client for Emacs 25.3.1)"]
Haudegen has quit [Remote host closed the connection]
Haudegen has joined #mirage
andreas23 has joined #mirage
mort___ has joined #mirage
argent_smith1 has quit [Quit: Leaving.]
argent_smith has joined #mirage
mort___ has left #mirage [#mirage]
ExtraCrispy has quit [Quit: ExtraCrispy]
argent_smith has quit [Quit: Leaving.]
Haudegen has quit [Remote host closed the connection]