royaleconqueso / calwyrd

Replacement for wyrd, an ncurses frontend for Dianne Skoll's remind, because I can't speak ocaml and wyrd is obsolete and no longer compiles in OpenBSD.
0 stars 0 forks source link

Compile wyrd on OpenBSD #1

Open jspricke opened 2 years ago

jspricke commented 2 years ago

Hi,

wyrd is maintained here: https://gitlab.com/wyrd-calendar/wyrd

and I was able to compile it on OpenBSD some time ago with:

pkg_add ocaml opam devel/automake gcc pkgconf
(cd /usr/local/bin; ln -s egcc gcc)
opam init
opam install -y curses
eval "$(opam env)"
AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.16 ./prep-devtree.sh
./configure
gmake wyrd

Feel free to close this, just wanted to let you know.

royaleconqueso commented 2 years ago

Hi. Thanks for reaching out to me. Yes, I saw that too, and have been meaning to mess with it, but I admit I don't know any ocaml. Would you consider being the port maintainer for wyrd on OpenBSD (and also FreeBSD)? They were delisted when wyrd was abandoned, and I can't get any traction with the old maintainer.

jspricke commented 2 years ago

I'm not a BSD user but I can try to help if you get stuck. Would be great to get the latest wyrd back into the BSDs :).

royaleconqueso commented 1 week ago

Hope it's OK to ask this here -- I just tried to recompile wyrd 1.7 using the instructions again above, and now they don't work. For example, there's no longer a prep-devtree script, and when I try it without (by running the autoreconf myself) I get errors from ocaml. Again, I don't know any ocaml, so I don't even know how to begin troubleshooting.

Thanks!

jspricke commented 1 week ago

We updated wyrd quite a bit in the meantime. This works for me: Starting with a fresh OpenBSD 7.5 VM and following https://wiki.qemu.org/Hosts/BSD#OpenBSD:

$ wget "https://cdn.openbsd.org/pub/OpenBSD/7.5/amd64/cd75.iso"
$ qemu-img create -f qcow2 disk.qcow2 32G
$ qemu-system-x86_64 -m 2048 \
         -cdrom cd75.iso \
         -drive if=virtio,file=disk.qcow2,format=qcow2 \
         -enable-kvm \
         -netdev user,id=mynet0,hostfwd=tcp:127.0.0.1:7922-:22 \
         -device virtio-net,netdev=mynet0 \
         -smp 2

Then inside install some dependencies and follow the wyrd manual:

# pkg_add wget opam ocaml rsync
# wget "https://wyrd-calendar.gitlab.io/wyrd/wyrd-1.7.1.tar.xz"
# unxz wyrd-1.7.1.tar.xz
# tar xf wyrd-1.7.1.tar
# cd wyrd-1.7.1
# opam init -c ocaml-system -n
# opam install -y ./wyrd.opam
# eval $(opam env)
# wyrd

Feel free to reach out if there is a problem still.