Artix Linux Forum

Artix Linux => Package management => Topic started by: jahway603 on 08 August 2024, 01:12:52

Title: Ly TUI display manager not working after recent Artix package update
Post by: jahway603 on 08 August 2024, 01:12:52
The ly package in world was working well, with version 1.0.0-2. Today pacman upgraded it to 1.0.2-1 & now it is not working. I made sure to re-instate /etc/ly/config.ini as there was a config.ini.pacsave and config.ini.pacnew after the install with no actual config.ini anymore, but it's still not working.

Upstream shows `# zig build installopenrc` in the OpenRC section, https://github.com/fairyglade/ly?tab=readme-ov-file#openrc, but I don't see `installopenrc` in the new updated PKGBUILD released yesterday here https://gitea.artixlinux.org/packages/ly/src/branch/master/PKGBUILD#L32

All suggestions are welcome. Am I able to tag @Dudemanguy in the forum?

***Current workaround is to downgrade the package to 1.0.0-2 and add it to "IgnorePkg" in pacman.conf.***
Title: Re: Ly TUI display manager not working after recent Artix package update
Post by: jahway603 on 08 August 2024, 17:25:16
I've confirmed that https://gitea.artixlinux.org/packages/ly/src/branch/master/PKGBUILD#L32 does not install the binary, so the system cannot find it to use it.

I have changed that line to
Code: [Select]
zig build -Ddest_directory="$pkgdir" -Dname="ly-dm" -Dcpu=baseline -Doptimize=ReleaseSafe installopenrc
and can confirm that it will install the binary as my OpenRC init expects to find it.

Then I realized that other Artix users may use runit, or s6, or dinit, so I added the following lines after that line to the PKGBUILD:
Code: [Select]
zig build -Ddest_directory="$pkgdir" -Dname="ly-dm" -Dcpu=baseline -Doptimize=ReleaseSafe installrunit
zig build -Ddest_directory="$pkgdir" -Dname="ly-dm" -Dcpu=baseline -Doptimize=ReleaseSafe installs6
zig build -Ddest_directory="$pkgdir" -Dname="ly-dm" -Dcpu=baseline -Doptimize=ReleaseSafe installdinit

Upstream did not like the s6 or dinit options, even though their README.md shows those options (https://github.com/fairyglade/ly?tab=readme-ov-file#s6), so I then disabled those two and then this package will built and install the OpenRC and runit system scripts expected by those init systems.

@Dudemanguy how can I incorporate these changes into the PKGBUILD to fix this issue? I'm not able to create an account on gitea.artixlinux.org to do that, so can you please add these fixes? Thanks.
Title: Re: Ly TUI display manager not working after recent Artix package update
Post by: jahway603 on 08 August 2024, 17:50:16
It looks like upstream added s6 and dinit support after version 1.0.2 was released, so those PKGBUILD lines could be added after the next release happens to make sure support for those init systems is added or we could add a patch to build.zig to add that in the meantime.
Title: Re: Ly TUI display manager not working after recent Artix package update
Post by: Artist on 11 August 2024, 13:16:41
As for other services, for Ly separate packages need to be created per init. This is on our todo list but not at the top.

FYI: there is a very good alternative for Ly as TUI display manager; Tuigreet.
This comes as packages greetd-tuigreet, and depends on packages greetd and greetd-<init> which are all in the Artix repos.
Tuigreet is a solid program with hardly ever any open issues, and well documented.

One advantage of Tuigreet is that the actual greeter/login process runs as an unprivileged greeter user.

artist
Title: Re: Ly TUI display manager not working after recent Artix package update
Post by: jahway603 on 12 August 2024, 14:10:00
I would create LY separate packages, as I've outlined above that it's just 1 changed line in the PKGBUILD, but it's not clear how to submit that contribution to the Artix project.

Thank you as I had not heard of tuigreet before, but I run ly on all of my computers and do not wish to switch.