rygel package depends on X11 only when using GTK+. On a server with X server, it can be used without any X11 support, if USE="-gtk" is set. Reproducible: Always Steps to Reproduce: 1. Choose a machine without X11 server installed 2. Try to build rygel Actual Results: The build fails because of an unused X11 dependency Expected Results: rygel to install without x11 support there currently is an hardcoded X11 dependency in the rygel build system. Following is a patch proposal to get rid of this unneeded dependecy when GTK+ is not used. The proposed patched is far from being perfect: it would better be a configure / compile time checking rather than the way it is in this proposal. But it seems to do the trick....
Created attachment 848729 [details] output from emerge --info =net-misc/rygel-0.42.0
Created attachment 848731 [details, diff] Patch to remove X11 dependency from rygel configure and build
Created attachment 848733 [details, diff] net-misc/rygel-0.42.0.ebuild patch to remove unneeded X11 dependency when gtk+ is not used
Created attachment 848751 [details, diff] Updated patch to remove X11 dependency from rygel configure and build
Created attachment 848753 [details, diff] Updated patch to remove X11 dependency from rygel configure and build this patch can be applied unconditionally, as it uses the gtk option to disable the x11 dependency requirement and X.init_threads call
Created attachment 848755 [details, diff] Update net-misc/rygel-0.42.0.ebuild patch to remove unneeded X11 dependency when gtk+ is not used This patch to the rygel 0.42.0 version ebuild is to be used with the updated patch to remove X11 dependency when gtk is not in use
just opened a request on gitlab rygel repository: https://gitlab.gnome.org/GNOME/rygel/-/issues/221
We don't like to do conditional patching (as in, conditionally applying a patch): https://devmanual.gentoo.org/ebuild-writing/misc-files/patches/index.html#conditional-patching.
i fully understand that, as the upstream maintainer refused the patch telling this was not a case to be supported and I should better install a X server on this headless online server (!), it seems to me that an even better patch would be to add a X USE flags so the patch could be always applied...
Created attachment 849554 [details, diff] Updated patch to remove X11 dependency from rygel configure and build This patch still does not use a X configuration flags but can be applied in any cases
Created attachment 849555 [details, diff] Update net-misc/rygel-0.42.0.ebuild patch to remove unneeded X11 dependency when gtk+ is not used this patch always does not requires conditional patching of the build system