<Viking667>
OskarL: I've forwarded a link to your patches onto the libfossil maintainer too; from what I've seen, if you managed to get fnc working, that's a reasonable guess that "it works™".
<Viking667>
waddlesplash: Incidentally, I'm known as brickviking in most other places, including fossil/libfossil/sqlite3, not that it matters much.
<waddlesplash>
good to know
chilledfrogs has quit [Quit: connection reset by purr]
<Viking668>
yah. the ncurses I had to poke with a dead stick and still couldn't get the queue.h thing to be found. I don't know whether that was something I'd done wrong or not.
<kallisti5[m]>
shakes old man fist who's idea was it to bring geocities back?
<OscarL>
Viking668: the queue.h thing will probably be resolved the same way it did in the libfossil copy.
<OscarL>
kallisti5[m]: "neo"cities.org has to be at least a decade old by now :-)
<kallisti5[m]>
is it? lol First i've heard of it.
<OscarL>
I think they had even "imported" my site from geocities when they started, lol.
<kallisti5[m]>
ah yeah.. first bug open on their github in 2015. My brain went "that's pretty recent"... then remembered how old I am and that was 10 years ago 😥
<OscarL>
Viking668: this would be easier if I was a proper dev, and had better memory for makefile syntax/shenanigans :-)
<Viking667>
mmm hmm.
<Viking667>
That patch you created seems to mostly work except for me running into a "isset() not defined" problem.
<OscarL>
launched a first tentative build... let's see if I hit the same issue.
<OscarL>
Viking667: just in case: I'm building from the fnc-0.18.tar.gz tarball.
* OscarL
hits the turbo button.
<Viking668>
hm. I don't have any include files that include isset()
<Viking668>
And I can't advise where it would be best found. At least on my Linux system, it's in /usr/include/sys/param.h but on Haiku, that could literally be anywhere. posix/limits.h has been checked, but isset() isn't in there either.
<OscarL>
./fnc -v -> fnc 0.18 [202e644c05] 2024-09-15 13:29:22 UTC
<OscarL>
Viking668: this is the minimal patch that makes it compile: https://bpa.st/raw/GSRA (doesn't includes anything related to HaikuPorts recipe).
duncsauce has quit [Read error: Connection reset by peer]
<OscarL>
will test more when I finish the first recipe draft.
<Viking668>
I get the implicit declaration of 'isset'
<Viking668>
I'm intrigued to know where you found isset - I had to patch it manually into a header file
<OscarL>
I don't, but again, I'm on beta5 (the same version used on the builders used for the .hpkg you can install via pkgman)
<Viking668>
AH. I'm on the nightlies.
<OscarL>
I can't find any instance of isset on fnc-0.18 sources anyway.
<Viking668>
what does your src/fnc.c:5794: say?
<OscarL>
is a closing bracket.
<Viking668>
hm, that's weird.
<OscarL>
can't compare line numbers unles you are using fnc-0.18.tar.gz + my exact patch.
<Viking668>
ahh, right. Of course.
<OscarL>
if you are patching upstream code from the fossil repo... well, that's not what I'm using :-)
<Viking668>
I'll go grab 0.18, it's not dramatically earlier than what I'm using.
<OscarL>
In my limited experience, always safer to start a port from a "stable" release.
<Viking668>
As it turns out, I didn't have those later unversioned files anyhow, that'll mean I have to synch those to my local copy.
HaikuUser2 has joined #haiku
HaikuUser2 has quit []
<Viking668>
Thank you for that - now I get to trawl through the other changes to see what changes.
<Viking668>
and now I have a working fnc, thanks to you
<OscarL>
glad to be of any help :-)
<OscarL>
waddlesplash: that's a very nice post on that "sqlite on Haiku" thread!
<Viking668>
I agree.
<Viking668>
I'm the insane one who thought to even try "Let's try fossil/fnc/libfossil over on Haiku! Surely nothing can go _that_ wrong?"
<Viking668>
I was pleasantly surprised to find someone had beaten me to the punch with fossil
<OscarL>
we even have the "fuel" Qt-based gui on the repos, apparently.
<Viking668>
Yah - that hasn't had an update upstream since 2018-ish
<Viking668>
It's not the oldest project I watch, but it's one of them.
<Viking667>
the oldest project I'm still watching is the codebase behind chiselapp, that offers free hosting of fossils.
<Viking667>
(it's called flint)
<OscarL>
chisel still up? I remember it from looong ago :-)
<Viking667>
Yah, it's still up, though it might have its ups and downs.
<Viking667>
I host fossilsource there (that's my pet project)
* OscarL
checks if our fossil recipe is up-to-date.
<OscarL>
"fossil-2.25.recipe", seems so: Version 2.25 (2024-11-06).
<Viking668>
hm, my fossil dates from 2025-03-01. I'm assuming that's the haikuports version.
<OscarL>
"fossil version" gives me: "This is fossil version 2.25 [8f798279d5] 2024-11-06 12:59:09 UTC"
<OscarL>
I'm using /bin/fossil, as installed via: "pkgman install cmd:fossil"
<Viking668>
heh. then I must have got my fossil compiled
<Viking668>
there's been quite a few changes since last year
<OscarL>
as soon as the next release drops... let us know.
nicoco has joined #haiku
<OscarL>
But seems user "Zakero" has been keeping up with those updates for some years already.
<Viking668>
Yep - I'm tracking "trunk" at the moment, not "release"
<Viking668>
And I'll leave Zakero keeping that recipe - no sense in interfering with something already working.
<OscarL>
thanksfully, all these recipes are pretty straight forward (thus pretty low-maintenance).
<Viking668>
mmm hmm.
<Viking668>
Well, the latest version of fossil compiles and works
<OscarL>
we might still miss a few release here and there, though. "core" HaikuPorts team is pretty small, so help from actual users from a given package is more than welcome (even if to say, hey! xxx got a new release!)
<Viking668>
And I'm running Haiku in a slightly exotic way - it's in a VM over on the other computer that I'm accessing via a local network.
<OscarL>
I used to ssh into both local VM and a VM on a netbook too :-)
<Viking668>
It's a nice ability to be able to flaunt under the noses of people running home versions of Windows.
<OscarL>
and to a bare-metal install on a netbook that lacks screen, heh.
linuxmaster has joined #haiku
<Viking668>
Time I got another helmet of coffee. I'll put this to bed for now, I guess.
<OscarL>
one of these days I'll learn enough sqlite to be able to make HaikuPorter use that instead of a gazillion separate files under its "repository".
<Begasus[m]>
OscarL: I meant considering the age of git?
janking has quit [Quit: Vision[]: i've been blurred!]
<Viking668>
yay. fnc works now
<OscarL>
Begasus[m]: 2005 for git and hg, yes.
janking has joined #haiku
<Viking668>
lol. "fnc diff" shows me the changes made to the vanilla code
<OscarL>
"Yo, Dawg! I hear you like Haiku so I put Haiku into your Haiku" --- Begasus, probably.
<OscarL>
(reacting to his latest screenshot)
<Begasus[m]>
heh
<Begasus[m]>
well, NeoChat launched with Qt6.8.3 (no crash)
<Begasus[m]>
but with both Qt6 versions I have problems displaying text on that nightly
Begasus has quit [Quit: Vision[]: i've been blurred!]
<OscarL>
Viking668: "fnc tree", on a fossil repo that I opened with "fossil open --empty" is just great :-)
<OscarL>
man, now I want the same but for git! :-)
<Begasus[m]>
if this is what beta6 is going to be I'm sticking with beta5 :P
<Begasus[m]>
biab
<Viking668>
look for tog.
<Viking668>
(that was for OscarL)
<OscarL>
right... had meant to look at got too, but I kept forgetting :-D
<OscarL>
thanks for the reminder!
<Viking667>
I know tog and got don't seem to be in HaikuPorts. I'll have that upstream patch for fnc created shortly. I do have commit rights for libfossil, but not for fnc. Stephan can handle the rest.
<OscarL>
welp... I guess I'll be trying to write a .recipe for got-portable now :-)
<Viking667>
yup. Thought that might be the case. <grin>
<OscarL>
1.5 MB tarball, wish all "big" project were that compact :-)
JakeSays has joined #haiku
JakeSays1 has quit [Ping timeout: 480 seconds]
<Viking667>
hm. What was the link to the earlier patch for libfossil?
<OscarL>
the inclusion of that copy of reallocarray.c could be made conditional to only Haiku beta5 (as nightlies already has it).
<Viking667>
mmm hmm.
<OscarL>
I just didn't added it because I didn't remembered off the top of my head the correct incantation to make that happen.
<Viking667>
I think Stephan will be happy to add Haiku to the list of supported releases.
<OscarL>
(first make it work, then make it better)
<OscarL>
and I usually change tasks inbetween those steps :-P
<Viking667>
I'll go rework that last patch for libfossil usage, might be easier.
<OscarL>
seems I need at least two new recipes before even attempting to build got :-/
<Begasus[m]>
gotta love dependencies :P
<Begasus[m]>
ow, got an ICE, that's been a while :)
<OscarL>
Viking667: in headers/os/BeBuild.h there are defines that can be used to detect beta5 from nightlies, like: #define B_HAIKU_VERSION_1_PRE_BETA_60x00000901
<OscarL>
ah, but that surely works for making checks at runtime and not at build time. nevermind :-)
<Viking667>
"ICE"?
<OscarL>
or they might just work... not sure how to use the pre-processor to check if "B_HAIKU_VERSION > B_HAIKU_VERSION_1_BETA_5".
<OscarL>
might be simpler than I think, as I see things like "#if __GNUC__ >= 4".
<Begasus[m]>
ICE as in "internal compiler error" :)
<Viking667>
Ah, yes. That.
janking has quit [Quit: Vision[]: i've been blurred!]
<OscarL>
Viking667: something like the following might work for libfossil's client/fnc/fnc_compat.h: https://bpa.st/3BPA
<OscarL>
but would still need to make the reallocarray compilation conditional in "make-client-fnc.make.in". Mmm.
<OscarL>
back to chace got dependencies for a bit.
<Viking667>
I'm patching fnc_compat.h, as that's the easiest. I'm not exactly sure where to put in the UNAME_S bit into GNUmakefile.in
<Viking667>
I can probably do the fnc.c change too.
<Viking667>
by the way, I noticed you use #if defined and not #ifdef
<OscarL>
I use if for things like: "#if defined(condition_a) || defined(condition_b)
<OscarL>
if there's only one check, then i use "#ifdef"
<OscarL>
not saying it is correct, but I think you can't do "#ifdef condition_a || condition_b", right?
<Viking667>
I don't know, that's preprocessor stuff.
<Begasus[m]>
right
<Begasus[m]>
can't use it like in your last line
<Viking667>
I thought I'd better ask, as it's not a construct I've used much
<Viking667>
(if at all)
<Viking667>
Okay. The piece in libfossil/GNUmakefile.in:558 is around about the area that needs twiddling with, for (__HAIKU__) bits.
<Begasus[m]>
for one condition "#ifdef condition_a" should be fine, but it doesn't error when used as "#if defined(condition_a)"
<OscarL>
nouo, don't scratch it. I missread something else ;-D
<Viking667>
so I could shoehorn a $(shell ...) into there?
<Viking667>
Argh. One second of time. One second!
<Begasus[m]>
heh
janking has joined #haiku
<OscarL>
I mean... it should work, but as they don't already use it... doubt they will like it.
<Viking667>
Are you guys always like this? <cheeky grin>
<OscarL>
Viking667: I'm certified crazy. Have papers an all (if I can find them :-P)
<Begasus[m]>
it can get even worse than this Viking667 :)
<Begasus[m]>
what's the stat on pyqt6 OscarL ?
<OscarL>
I'm not touching that :-)
<Begasus[m]>
why not? you are the pythong man! :P
<Begasus[m]>
s/pythong/python
<OscarL>
Viking667: in my original libfossil patch, I used "ifneq ($(filter $(PLATFORM),Haiku),)" admitedly, without really understanding how that works :-D
<Begasus[m]>
Viking667: you need to watch this also, OscarL 's typo's rub off :)
<OscarL>
but notice that I was modifing /make-client-fnc.make.in, not GNUmakefile.in
<Viking667>
Yah. You'll find that half the make-something stuff got axed since the earlier libfossil
<OscarL>
What can I do...? self-taught "English", brain not working, declining eye-sight... have mercy Begasus[m]! :-)
<Viking667>
why?
<Begasus[m]>
I'm no better on those fronts OscarL :P
<OscarL>
Begasus[m]: and don't forget trying to type with gloves on on winter :-D
<Begasus[m]>
ok, not that :D
<Begasus[m]>
expecting a nice 18°C today here
<Viking667>
heh. I think we had 18-20°C here. I was expecting 23
<OscarL>
Viking667: I see now all is handled in that GNUmakefile. Guess you'll have to ask Stephan why he asumes -lutil exits on all platforms :-)
<Viking667>
And we're heading into winter soon - I'm not looking forward to it. We had a cold winter last year
<Begasus[m]>
where are you located Viking667 ?
<OscarL>
*exists
<Viking667>
Well, it's 20:56 here on Wednesday. Let's see if you can figure out where I live.
<Begasus[m]>
somewhere in the east, OscarL is in the west :)
<OscarL>
5 AM here. wonder when I will get sleepy again :-(
<Viking667>
east of what? The Americas? Europe? Asia? Further east?
<Begasus[m]>
+11hours .. whoot
<Begasus[m]>
Belgium here
<Viking667>
uh uh. GMT+13 here.
<Begasus[m]>
so heading Asia somewhere?
<Begasus[m]>
Autstrelia?
<Viking667>
Past Asia.
<Viking667>
Past Australia.
<Begasus[m]>
I'm almost in the US then I guess :D
<Viking667>
wrong side of the ocean for Ameria.
<Viking667>
err. Ameria....AmeriCa.
<OscarL>
"Autstrelia?"... and Begasus[m] dares complain about my typoes, pfff! :-P
<Molnija>
Viking667: Chatham Is.?
<Viking667>
He's getting old, remember.
<Viking667>
Molnija: very very close, but you're 45 minutes too far ahead.
<Molnija>
New Zealand antarctic colony?
<Viking667>
No.
<Molnija>
New Zealand proper?
<Begasus[m]>
Hawai? ;)
<Viking667>
Bingo.
<Viking667>
New Zealand. Hawaii is about a day behind, just about.
<Begasus[m]>
OscarL: told you it rubs of :P
<Viking667>
And I don't think anywhere in Antarctica gets much above 5°C
<Molnija>
i think only really peninsular antarctica
<Molnija>
where it joins onto the american cordillera
<Begasus[m]>
just need to add Haiku in one file or create a arc4random_hauku.h maybe :)
* OscarL
throws his wip libretls.recipe in the trash :-)
<Begasus[m]>
haven't started a recipe :P
<Begasus[m]>
just build in Terminal :)
<Begasus[m]>
need to clean out my wip directory ...
<OscarL>
from libretls: to intall from a release tarball, run the following: "./configure && make all && make install", guess the tagged napshots do not count as release tarballs :-D
<nekobot>
• threedeyes (5571c2bd): nss: bump version
<Begasus[m]>
hehe
<OscarL>
Uhh, fancy!: "runConfigure: Must specify optimization flags when overriding CFLAGS/CXXFLAGS."
<OscarL>
haven't seen that one yet.
<Begasus[m]>
yeah, it's been around for a bit, but not that long
<Begasus[m]>
-O2 should be enough
<Begasus[m]>
at least after some tips by waddlesplash and PulkoMandy :)
<OscarL>
yeah, used that, now trying to figure out this autotools mess :-/
<Begasus[m]>
autoreconf -fi ?
<Begasus[m]>
aclocal,autoreconf,libtoolize*
<Begasus[m]>
but hp will complain on missing stuff ;)
<OscarL>
or I could try with reading the fine manual :-)
<Viking667>
heh. I'm not fighting with autotools, I'm fighting with something supposedly a lot simpler.
<Begasus[m]>
I'm fighting with not finding ucontext.h ... we all got our strugles :D
<OscarL>
if I have to call autoconf . && autoreconf -fi (same steps the README mentions are for the git checkout).. what's the point of using the release tarball :-(
<Begasus[m]>
only use "autoconf" if really needed
<OscarL>
let's see if autoreconf -fi is enough, then.
<OscarL>
main package looks decent, except I guess I should move the man/man3 into the _devel package :-)
<Begasus[m]>
yep :)
<OscarL>
grrr, one empty man folder on main package :-D
<Begasus[m]>
lol
<Begasus[m]>
if there's only man3 ... :P
<Viking667>
huh. I can't seem to undo inside emacs...
<OscarL>
by default, Haiku has "inverted" CTRL and ALT/CMD. Try with "the other" modifier.
<Viking668>
Ctl-/ undoes the last thing typed in, I think...
<OscarL>
albeit I kinda remember something about undo and emacs... might search the forums for clues.
<Viking668>
Or it's meant to, at least
<Viking668>
(to poor music) try that compile one more time...
<Viking668>
nope. Didn't work. something wrong.
<OscarL>
we should have a default ISC license... this libretl mentions: ISC, BSD (3-clause) and MIT (last two for compat code), but it doesn't includes an ISC or LICENSE file :-(
<OscarL>
good luck finding the proper COPYRIGHT line for this one too.