Re: [gentoo-dev] [REVIEW] News Item - 2020-10-17-display-manager-init

2020-10-17 Thread Michał Górny
On Sat, 2020-10-17 at 18:05 -0400, Aisha Tammy wrote:
> Hi,
>   I'm attaching the news item for the upcoming display-manager-init changes
> 
> Thanks,
> Aisha
> 
> ---
> 
> Title: New OpenRC Display Manager Initializer Scripts
> Author: Aisha Tammy 
> Posted: 2020-10-17
> Revision: 1
> News-Item-Format: 2.0
> 
> There has been a refactoring of the old 'xdm' init script and its 
> requirements from various packages into an independent package:
> 
>   gui-libs/display-manager-init
> 
> This package provides the 'display-manager' startup script for 
> handling your chosen display manager, without being dependent on
> Xorg server.
> 
> To update to the new DM init scripts, you need to manually add the
> package in your @world set:
> 
>   emerge -vuDU gui-libs/display-manager-init
> 
> To start using the new init scripts, change the DISPLAYMANAGER
> variable in the /etc/conf.d/display-manager to your preferred DM:
> 
>   DISPLAYMANAGER="gdm"
> 

Do you really think a rename for the sake of renaming justifies
requiring all users to rewrite their configuration?  While we're
requiring the users to do that, wouldn't it be better to stop using
the awful layout of 'one script to run them all', and switch to separate
scripts for every DM?

-- 
Best regards,
Michał Górny



signature.asc
Description: This is a digitally signed message part


Re: [gentoo-dev] [REVIEW] News Item - 2020-10-17-display-manager-init

2020-10-17 Thread Aisha Tammy
On 10/17/20 6:44 PM, Kent Fredric wrote:
> On Sun, 18 Oct 2020 11:41:38 +1300
> Kent Fredric  wrote:
> 
>> Uh, do we need a new catagory for this one package?
> 
> Scratch that, my brain is disabled and my eixing failed the first time
> and I jumped because it was a category with no recollection of seeing
> before.
> 

Lolol, np.

> Now I see there is one, I do still think "That's a bit weird", but
> whatever, not adding a new category -> no issue.
> 
> Many apologies.
> 
> ( Though I still find the choice of category very odd )
> 

Hmmm, I thought of this package as just providing the startup
scripts and not the actual display-manager themselves, so it feels
more like a library (gui-libs) than an app (gui-apps).

Am open to suggestions but this feels OK to me.

Aisha



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-dev] [REVIEW] News Item - 2020-10-17-display-manager-init

2020-10-17 Thread Aisha Tammy
On 10/17/20 6:44 PM, Alexey Sokolov wrote:
> сб, 17 окт. 2020 г. в 23:05, Aisha Tammy :
>>
>> Hi,
>>   I'm attaching the news item for the upcoming display-manager-init changes
>>
>> Thanks,
>> Aisha
>>
>> ---
>>
>> Title: New OpenRC Display Manager Initializer Scripts
>> Author: Aisha Tammy 
>> Posted: 2020-10-17
>> Revision: 1
>> News-Item-Format: 2.0
> 
> This will be shown even if no xdm was installed?

Yes, that is true, but there is no xdm package per se (not referring to the 
display manager XDM, but the init script xdm).
This is one of the reasons for the refactoring, because there is no single
provider for xdm, parts of the scripts are present in sysvinit, xinit, 
xorg-server.
And the overloading of terms for xdm init script and XDM display manager
.
This puts them together into one package, while renaming and clearing the 
confusion.

A potential check could be for xorg-server, which should be OK, but I 
don't see the harm in being a bit more cautious and letting everyone read 
it.
   
   Display-If-Present: x11-base/xorg-server

> 
>>
>> There has been a refactoring of the old 'xdm' init script and its
>> requirements from various packages into an independent package:
>>
>> gui-libs/display-manager-init
>>
>> This package provides the 'display-manager' startup script for
>> handling your chosen display manager, without being dependent on
>> Xorg server.
>>
>> To update to the new DM init scripts, you need to manually add the
>> package in your @world set:
>>
>> emerge -vuDU gui-libs/display-manager-init
>>
>> To start using the new init scripts, change the DISPLAYMANAGER
>> variable in the /etc/conf.d/display-manager to your preferred DM:
>>
>> DISPLAYMANAGER="gdm"
>>
>> To test the newly installed scripts, you can try to switch to
>> 'display-manager' on the running computer.
>> Run the following commands in a tty to test your current install:
>>
>> rc-service xdm stop
>> rc-service display-manager start
>>
>> If the test succeeds, you can remove the old xdm startup script
>> and add display-manager to the default runlevel:
>>
>> rc-update del xdm default
>> rc-update add display-manager default
>>
>> Reboot your computer to perform a final test and check to see
>> that your chosen display manager has started.
> 
> What happens if I ignore this news item and do nothing?
> 

If you ignore this news item and upgrade your packages without installing
display-manager-init, you will no longer have an 'xdm' init script and you will
not get a gui on boot.

(Don't ignore news items people :P)

Aisha



Re: [gentoo-dev] [REVIEW] News Item - 2020-10-17-display-manager-init

2020-10-17 Thread Aisha Tammy
On 10/17/20 6:41 PM, Kent Fredric wrote:
> On Sat, 17 Oct 2020 18:05:40 -0400
> Aisha Tammy  wrote:
> 
>>  gui-libs/display-manager-init
> 
> Uh, do we need a new catagory for this one package?
> 

It's already a category, though a little less known one.



signature.asc
Description: OpenPGP digital signature


[gentoo-dev] [REVIEW] News Item - 2020-10-17-display-manager-init

2020-10-17 Thread Aisha Tammy
Hi,
  I'm attaching the news item for the upcoming display-manager-init changes

Thanks,
Aisha

---

Title: New OpenRC Display Manager Initializer Scripts
Author: Aisha Tammy 
Posted: 2020-10-17
Revision: 1
News-Item-Format: 2.0

There has been a refactoring of the old 'xdm' init script and its 
requirements from various packages into an independent package:

gui-libs/display-manager-init

This package provides the 'display-manager' startup script for 
handling your chosen display manager, without being dependent on
Xorg server.

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

emerge -vuDU gui-libs/display-manager-init

To start using the new init scripts, change the DISPLAYMANAGER
variable in the /etc/conf.d/display-manager to your preferred DM:

DISPLAYMANAGER="gdm"

To test the newly installed scripts, you can try to switch to
'display-manager' on the running computer.
Run the following commands in a tty to test your current install:

rc-service xdm stop
rc-service display-manager start

If the test succeeds, you can remove the old xdm startup script 
and add display-manager to the default runlevel:

rc-update del xdm default
rc-update add display-manager default

Reboot your computer to perform a final test and check to see
that your chosen display manager has started.



Re: [gentoo-dev] [RFC] Refactor display manager openrc init scripts to independent package

2020-10-17 Thread Aisha Tammy
On 10/11/20 5:07 AM, Hans Fernhout wrote:
> 
> 
> On 10/10/20 2:26 PM, Aisha Tammy wrote:
>>
   - Configuration of display-manager is done similar to xdm by modifying
  /etc/conf.d/display-manager
   - Add display-manager to default runlevel and it should start working
>>> My counter-proposal at this point would be to handle DMs similarily to
>>> how it's done with systemd. In other words, every DM would provide their
>>> own init and conf files (or, "service" files) and they'd be controlled
>> This is quite hard as openrc manages tty handling differently than
>> systemd.
>> Currently display-managers work by adding an extra run level in openrc
>> (see 
>> https://github.com/gentoo/gentoo/pull/16554/files#diff-6d89a718d595e0c0516c6d6b96bd4cd5R21)
>>
>> It is not possible to do this independently for each of lightdm/gdm/sddm
>> separately, there would be too much redundant copying of code.
>>
> Would this not be resolved by switching to openrc-init instead of systemv 
> init?
> 
> 

Gentoo is about choice and we can't (and don't want to) enforce the fact that
people should use openrc-init while we have a compatible solution to work with 
both.

Aisha




Re: [gentoo-dev] [REVIEW] News Item - 2020-10-17-display-manager-init

2020-10-17 Thread Alexey Sokolov
> > What happens if I ignore this news item and do nothing?
> >
>
> If you ignore this news item and upgrade your packages without installing
> display-manager-init, you will no longer have an 'xdm' init script and you 
> will
> not get a gui on boot.
>

Then please state that clearly in the text. Now it looks like a
request to test some new feature, with no particular benefit for the
user. Especially as it does say "test"



Re: [gentoo-dev] [REVIEW] News Item - 2020-10-17-display-manager-init

2020-10-17 Thread Alexey Sokolov
сб, 17 окт. 2020 г. в 23:05, Aisha Tammy :
>
> Hi,
>   I'm attaching the news item for the upcoming display-manager-init changes
>
> Thanks,
> Aisha
>
> ---
>
> Title: New OpenRC Display Manager Initializer Scripts
> Author: Aisha Tammy 
> Posted: 2020-10-17
> Revision: 1
> News-Item-Format: 2.0

This will be shown even if no xdm was installed?

>
> There has been a refactoring of the old 'xdm' init script and its
> requirements from various packages into an independent package:
>
> gui-libs/display-manager-init
>
> This package provides the 'display-manager' startup script for
> handling your chosen display manager, without being dependent on
> Xorg server.
>
> To update to the new DM init scripts, you need to manually add the
> package in your @world set:
>
> emerge -vuDU gui-libs/display-manager-init
>
> To start using the new init scripts, change the DISPLAYMANAGER
> variable in the /etc/conf.d/display-manager to your preferred DM:
>
> DISPLAYMANAGER="gdm"
>
> To test the newly installed scripts, you can try to switch to
> 'display-manager' on the running computer.
> Run the following commands in a tty to test your current install:
>
> rc-service xdm stop
> rc-service display-manager start
>
> If the test succeeds, you can remove the old xdm startup script
> and add display-manager to the default runlevel:
>
> rc-update del xdm default
> rc-update add display-manager default
>
> Reboot your computer to perform a final test and check to see
> that your chosen display manager has started.

What happens if I ignore this news item and do nothing?



Re: [gentoo-dev] [REVIEW] News Item - 2020-10-17-display-manager-init

2020-10-17 Thread Kent Fredric
On Sun, 18 Oct 2020 11:41:38 +1300
Kent Fredric  wrote:

> Uh, do we need a new catagory for this one package?

Scratch that, my brain is disabled and my eixing failed the first time
and I jumped because it was a category with no recollection of seeing
before.

Now I see there is one, I do still think "That's a bit weird", but
whatever, not adding a new category -> no issue.

Many apologies.

( Though I still find the choice of category very odd )


pgpi6mrAJek5K.pgp
Description: OpenPGP digital signature


Re: [gentoo-dev] [REVIEW] News Item - 2020-10-17-display-manager-init

2020-10-17 Thread Kent Fredric
On Sat, 17 Oct 2020 18:05:40 -0400
Aisha Tammy  wrote:

>   gui-libs/display-manager-init

Uh, do we need a new catagory for this one package?


pgp0al5IKutdA.pgp
Description: OpenPGP digital signature