Code: Select all
x11-base/xorg-drivers-9999
x11-base/xorg-server-9999
With the X USE flag set, it requires x11-base/xorg-drivers, which, in turn, conditionally pulls back x11-base/xorg-server, depending on what INPUT_DEVICES and VIDEO_CARDS are set to. I find this dependency strange, but that's a different issue.gjy0724 wrote:Then I re-ran my previous emerge...thats when I discovered what turns out to be my problem the entire time. The display manager I use, lightdm with the 'X' flag requires xorg-server as a dependency.
Yes, the XLibre overlay should provide an ebuild for LightDM that depends on x11-base/xlibre-drivers instead. Or provide a dummy x11-base/xorg-drivers ebuild that pulls x11-base/xlibre-drivers, just like it does with x11-base/xorg-server.gjy0724 wrote:I guess my questions are:
1) Should there be a better long term fix for this?
Every package has its own use for the USE flag, but it generally means "link to X11 libraries", which the XLibre project doesn't fork and, as I understand it, should work with XLibre without changes (or else, XLibre wouldn't be suitable as a drop-in replacement).gjy0724 wrote:2) Does the 'X' use flag do the same thing for every package or does every package have its own use for the flag?
Xorg is in Gentoo's official repository and XLibre is not, so I doubt there would be an XLibre USE flag as long as that is the situation, but I don't think it should be necessary either; see 2).gjy0724 wrote:3) Should there be a separate XLibre flag or should the X flag should somehow include both Xorg and XLibre?
It depends on what they use the USE flag for, but I expect the answer to generally be "no"; see 2). LightDM seems to be the exception.gjy0724 wrote:4) Will current packages built with the X flag complain later if xorg-server is not installed?
You probably shouldn't remove it if you are going to run an X11 environment (with Freedesktop's Xorg or XLibre).gjy0724 wrote:5) I remove the flag completely, how bad will the breakage be even with XLibre installed?
NeddySeagoon wrote:I'm not a witch, I'm a retired electronics engineer
Ionen wrote:As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though

Yes, szatox already noted this upthread (and the OP acknowledged it).mirekm wrote:Instead of fighting with the xorg-server being installed by portage, you could add xorg-server, and other packages that you want to remove into
/etc/portage/profile/package.provided
Would it be possible for the lightdm ebuild in the core repo include xorg-drivers or xlibre-drivers when the 'X' flag is called? I've always wanted to get into get into writing my own ebuilds from scratch, but life and time haven't allowed it yet. While I am fine with the current solution, I was just wondering if it would be worth the effort on their part as a long term solution so others don't run into the problem I did.Yes, the XLibre overlay should provide an ebuild for LightDM that depends on x11-base/xlibre-drivers instead. Or provide a dummy x11-base/xorg-drivers ebuild that pulls x11-base/xlibre-drivers, just like it does with x11-base/xorg-server.
No because dependencies of packages in ::gentoo need to be contained within it. It cannot look to other repositories without causing errors (mostly QA scripts but possibly in other parts of emerge).gjy0724 wrote:Would it be possible for the lightdm ebuild in the core repo include xorg-drivers or xlibre-drivers when the 'X' flag is called? I've always wanted to get into get into writing my own ebuilds from scratch, but life and time haven't allowed it yet. While I am fine with the current solution, I was just wondering if it would be worth the effort on their part as a long term solution so others don't run into the problem I did.

I believe that they install files with the same name, but have incompatible ABI, so probably not.Hu wrote:Is it legal to install Xorg drivers and Xlibre drivers concurrently?
Either of those IMO are the best solutions so that users don't have this problem, and should be requested to the overlay maintainers. package.provided is a hacky workaround.Hu wrote:You could ask for the Xlibre overlay to maintain a patched lightdm ebuild. [...] If not, then perhaps the Xlibre overlay should have a package named xorg-drivers, which installs drivers for Xlibre.
NeddySeagoon wrote:I'm not a witch, I'm a retired electronics engineer
Ionen wrote:As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though