bsd-ac / wayland-desktop

Gentoo overlay for Wayland related ebuilds
https://gentoo.org
ISC License
62 stars 19 forks source link

gui-wm/river: update to 0.2.3 #44

Closed gbrlsnchs closed 1 year ago

gbrlsnchs commented 1 year ago

Fixes #43.

gbrlsnchs commented 1 year ago

0.2.3 just landed with bugfixes, bumped it here!

gbrlsnchs commented 1 year ago

river seems to compile some C code during build. I added a patch that passes down CFLAGS to the build step.

BurnyLlama commented 1 year ago

Great work!

BurnyLlama commented 1 year ago

I tried the ebuild on my system, and the patches are causing me issues since I use LTO:

error(compilation): clang failed with stderr: zig: error: unknown argument: '-fgraphite-identity'
zig: error: unknown argument: '-floop-nest-optimize'
zig: error: unknown argument: '-fdevirtualize-at-ltrans'
zig: error: unknown argument: '-fipa-pta'
zig: error: unsupported argument '12' to option '-flto='
zig: warning: -Wl,-O1: 'linker' input unused [-Wunused-command-line-argument]
zig: warning: -Wl,--as-needed: 'linker' input unused [-Wunused-command-line-argument]
zig: warning: optimization flag '-fuse-linker-plugin' is not supported [-Wignored-optimization-argument]
zig: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]

I mean, this technically doesn't have to be supported... would there be a way to have custom CFLAGS as a USE-flag? Or is it wrong behaviour? Should these flags all be passed to clang instead? It seems they are passed to zig...

However, it works perfectly fine without the patch.

gbrlsnchs commented 1 year ago

@BurnyLlama I think I'll simply drop the patch for now, it's way out of scope and totally not worth it, it's literally a single C file that serves for logging only.

BurnyLlama commented 1 year ago

@gbrlsnchs oh, I thought it was major parts of river. Yeah, then it's most likely not worth bothering. 😅

epsilon-0 commented 1 year ago

I concur, the patch is unneeded. The rest looks good, I'll try to merge tonight.

BratishkaErik commented 1 year ago

BTW @Muirrum once tried to add gui-wm/river to GURU overlay, but things went south because I dropped 0.9.1 (dep on LLVM 13) in main repository (as you already know 😄 , seems like you returned binary version unlike GURU that mustn't overwrite version). You may want to cooperate tho

gbrlsnchs commented 1 year ago

Rebased the ebuild with the requested changes!