ifreund / rundird

Deprecated, I now use https://github.com/ifreund/dumb_runtime_dir
GNU General Public License v3.0
13 stars 3 forks source link

fails with llvm13 and zig master #7

Closed TimB87 closed 3 years ago

TimB87 commented 3 years ago

Hi @ifreund

if a system is updated to llvm 13 you are forced to build zig from master, as 0.8.1 will only accept llvm 12.x.x.

With zig master, the build fails, it seems that functions have moved around a little.

=======> Building '/home/pkgmk/packages_thor/rundird#0.2.0-1.pkg.tar.xz'.
bsdtar -p -o -C /home/ramdisk/rundird/src -xf /home/pkgmk/distfiles/rundird-0.2.0.tar.gz
cp rundird.service /home/ramdisk/rundird/src
+ build
+ cd rundird-0.2.0
+ DESTDIR=/home/ramdisk/rundird/pkg
+ zig build --prefix /usr -Drelease-safe=true install
./build.zig:26:12: error: no member named 'addBuildOption' in struct 'std.build.LibExeObjStep'
    rundird.addBuildOption([]const u8, "socket_path", socket_path);
           ^
/usr/lib/zig/std/special/build_runner.zig:189:24: note: referenced here
        .ErrorUnion => try root.build(builder),
                       ^
=======> ERROR: Building '/home/pkgmk/packages/rundird#0.2.0-1.pkg.tar.xz' failed.

-- Packages where update failed
rundird

I tried poking around but I can't find the proper solution to this.

ifreund commented 3 years ago

Hi, I'd recommend downloading zig 0.8.0 from https://ziglang.org/download in this case. The binaries are statically linked and include everything you need. I'll update river to zig 0.9.0 before 0.9.0 releases.