Skip to main content
Topic: [SOLVED] how to makepkg runit (Read 1241 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] how to makepkg runit

I git cloned the runit repo from https://gitea.artixlinux.org/packages/runit for experimental purposes.

When I try to makepkg I get errors eg

Code: [Select]
./compile trysocketlib.c
./compile uidgid.c
./compile alloc.c
alloc.c: In function ‘alloc’:
alloc.c:15:26: warning: old-style function definition [-Wold-style-definition]
   15 | /*@null@*//*@out@*/char *alloc(n)
      |                          ^~~~~
alloc.c:17:1: error: number of arguments doesn’t match prototype
   17 | {
      | ^

I suppose that's because the runit code base is very old style.

Is there a magical way to revert back to an older universe?

I tried exporting a lesser CFLAGS in the PKGBUILD build function, but that didn't seem to go very far.

Re: how the makepkg runit

Reply #1

https://github.com/clan/runit/tree/official
https://github.com/clan/runit/releases
"Wer alles kann, macht nichts richtig"

Artix USE="runit openrc slim openbox lxde gtk2 qt4 qt5 qt6 conky
-gtk3 -gtk4 -adwaita{cursors,themes,icons,fonts} -gnome3 -kde -plasma -wayland "

 

Re: how the makepkg runit

Reply #2
thanks I'll give the patches a try

EDIT: I applied the patches to runit-2.2.0 from smarden.org and it compiles fine with modern gcc.