Artix Linux Forum

Artix Linux => Package management => Topic started by: replabrobin on 28 August 2025, 18:04:44

Title: [SOLVED] how to makepkg runit
Post by: replabrobin on 28 August 2025, 18:04:44
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.
Title: Re: how the makepkg runit
Post by: lq on 28 August 2025, 19:38:09

https://github.com/clan/runit/tree/official
https://github.com/clan/runit/releases
Title: Re: how the makepkg runit
Post by: replabrobin on 28 August 2025, 19:41:36
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.