Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 768024 - x11-base/xorg-server-1.20.10-r1: unused dependency on gui-libs/display-manager-init with systemd
Summary: x11-base/xorg-server-1.20.10-r1: unused dependency on gui-libs/display-manage...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 785748 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-01-30 19:59 UTC by David Michael
Modified: 2021-04-26 04:53 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Michael 2021-01-30 19:59:15 UTC
This line should be conditional on !systemd:

https://github.com/gentoo/gentoo/blob/79ca32d4bc3f86dc0ec288a223241f26143ea78c/x11-base/xorg-server/xorg-server-1.20.10-r1.ebuild#L103

The xdm package provides xdm.service for systemd users.
Comment 1 Jeffrey Lin 2021-01-30 22:40:59 UTC
The scripts are also not needed if you don't have a display manager. The news item makes it sound like the migration requires a manual step:

>To update to the new DM init scripts, you need to manually add the package in your @world set

Thus the dependency on gui-libs/display-manager-init should probably be removed altogether, and replaced with an einfo when emerging xorg-server.
Comment 2 Aisha Tammy 2021-01-30 22:42:23 UTC
(In reply to Jeffrey Lin from comment #1)
> The scripts are also not needed if you don't have a display manager. The
> news item makes it sound like the migration requires a manual step:
> 
> >To update to the new DM init scripts, you need to manually add the package in your @world set
> 
> Thus the dependency on gui-libs/display-manager-init should probably be
> removed altogether, and replaced with an einfo when emerging xorg-server.

The news item mentions this is going to happen in next version bump.
Comment 3 Andreas Sturmlechner gentoo-dev 2021-01-31 00:41:02 UTC
Please don't add random entries to CC.

(In reply to Jeffrey Lin from comment #1)
> Thus the dependency on gui-libs/display-manager-init should probably be
> removed altogether, and replaced with an einfo when emerging xorg-server.
Even with a news item you don't want to introduce a hard break for those not paying enough attention if you can easily avoid it.
Comment 4 Larry the Git Cow gentoo-dev 2021-02-01 14:39:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8122607bc6dc30365b46441412852c3cbdd613fd

commit 8122607bc6dc30365b46441412852c3cbdd613fd
Author:     Jason A. Donenfeld <zx2c4@gentoo.org>
AuthorDate: 2021-02-01 14:38:43 +0000
Commit:     Jason A. Donenfeld <zx2c4@gentoo.org>
CommitDate: 2021-02-01 14:38:43 +0000

    x11-base/xorg-server: conditionalize display-manager-init dependency
    
    This was discussed and ack'd by sam and epsilonKNOT on IRC.
    
    Closes: https://bugs.gentoo.org/768024
    Package-Manager: Portage-3.0.14, Repoman-3.0.2
    Signed-off-by: Jason A. Donenfeld <zx2c4@gentoo.org>

 x11-base/xorg-server/xorg-server-1.20.10-r1.ebuild | 4 ++--
 x11-base/xorg-server/xorg-server-9999.ebuild       | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
Comment 5 Andreas Sturmlechner gentoo-dev 2021-04-25 22:41:14 UTC
*** Bug 785748 has been marked as a duplicate of this bug. ***
Comment 6 houston 2021-04-25 22:51:00 UTC
(In reply to Larry the Git Cow from comment #4)
> The bug has been closed via the following commit(s):
> 
> https://gitweb.gentoo.org/repo/gentoo.git/commit/
> ?id=8122607bc6dc30365b46441412852c3cbdd613fd
> 
> commit 8122607bc6dc30365b46441412852c3cbdd613fd
> Author:     Jason A. Donenfeld <zx2c4@gentoo.org>
> AuthorDate: 2021-02-01 14:38:43 +0000
> Commit:     Jason A. Donenfeld <zx2c4@gentoo.org>
> CommitDate: 2021-02-01 14:38:43 +0000
> 
>     x11-base/xorg-server: conditionalize display-manager-init dependency
>     
>     This was discussed and ack'd by sam and epsilonKNOT on IRC.
>     
>     Closes: https://bugs.gentoo.org/768024
>     Package-Manager: Portage-3.0.14, Repoman-3.0.2
>     Signed-off-by: Jason A. Donenfeld <zx2c4@gentoo.org>
> 
>  x11-base/xorg-server/xorg-server-1.20.10-r1.ebuild | 4 ++--
>  x11-base/xorg-server/xorg-server-9999.ebuild       | 4 ++--
>  2 files changed, 4 insertions(+), 4 deletions(-)

I'm sorry if this isn't the place to discuss, but is it REALLY that necessary to have a display manager?
Comment 7 Andreas Sturmlechner gentoo-dev 2021-04-25 22:53:36 UTC
(In reply to houston from comment #6)
> I'm sorry if this isn't the place to discuss, but is it REALLY that
> necessary to have a display manager?
You didn't seem to care when the files that gui-libs/display-manager-init installs were unconditionally installed by xorg-server.

Read this bug. Moving this dependency somewhere else is a process.
Comment 8 houston 2021-04-25 23:02:19 UTC
(In reply to Andreas Sturmlechner from comment #7)
> (In reply to houston from comment #6)
> > I'm sorry if this isn't the place to discuss, but is it REALLY that
> > necessary to have a display manager?
> You didn't seem to care when the files that gui-libs/display-manager-init
> installs were unconditionally installed by xorg-server.
> 
> Read this bug. Moving this dependency somewhere else is a process.

Maybe I should've replied to comment #3 instead. What do you mean by "hard break"? Is it going to become completely optional in the future, and who would it affect if having a display manager weren't a mandatory part of installing xorg-server? Also I "didn't care" because I'm just now finding out about it.
Comment 9 Arfrever Frehtes Taifersar Arahesis 2021-04-26 00:58:01 UTC
Some compromise may be to add "display-manager-init" local USE flag:

 RDEPEND="${CDEPEND}
-	!systemd? ( gui-libs/display-manager-init )
+	display-manager-init? ( gui-libs/display-manager-init )


targets/desktop/package.use:x11-base/xorg-server display-manager-init
targets/systemd/package.use:x11-base/xorg-server -display-manager-init

So it would be enabled in desktop profiles except systemd profiles.
Comment 10 Andreas Sturmlechner gentoo-dev 2021-04-26 04:53:27 UTC
We're not going to lose our heads over a few kB of text files that have always been there and instead proceed as planned with slowly pushing it into the DMs instead.