sMueggli wrote:I do not think that Xwayland has an "--help" flag. Do you see the error also if you execute
Code: Select all
image/usr/bin/Xwayland -help # one dash only!
This is a dynamic loader error, so the command line arguments are irrelevant. The code that should parse them never gets executed, so even grossly invalid inputs would produce the same error.
alexander-n8hgeg5e wrote: 
Cool thanks, for this thread , I think you solved this thread, I can rename it as solved.
How to solve the bug is another question. It somehow is open since june.
The bug appears to be a basic automagic dependency:
- When x11-base/xwayland is built, it will try to detect libsystemd.so.
- If successful, it will enable systemd-specific logic and the resulting file will have a load-time dependency on libsystemd.so.
- If not successful, it will not depend on systemd.
Since the ebuild does not direct the package to use or not use systemd, Portage does not record in the ebuild that systemd support was enabled or disabled, so the USE flag matching cannot avoid picking this unusable (to non-systemd systems) package.
Your [bug=908254#c2]comment #2[/bug] and [bug=908254#c3]comment #3[/bug] on the bug look to me to be an incorrect solution, though it might (or might not) be accepted as a stopgap. For
your patch to the ebuild, flags in IUSE do not need an explicit
-. Conditionally patching source is supported, but I seem to recall that Gentoo developers discourage that where possible, because it makes maintenance more difficult. As a practical matter, I question the value of patching
meson.build after running
meson_src_configure. For
your patch to the source files, I question the correctness of emptying out
include/systemd-logind.h. The header appears to be written to provide macro-based stubs when systemd is disabled. I expect files that include this header need those stubs in order to build properly. Did you test these patches before posting them?