Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DRM use flag masked on arm64 23 desktop profile for wlroots.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
JungerBoyo
n00b
n00b


Joined: 01 May 2024
Posts: 5

PostPosted: Wed May 01, 2024 7:35 pm    Post subject: DRM use flag masked on arm64 23 desktop profile for wlroots. Reply with quote

I tried to setup gentoo on pinetab2 last two days. I wanted to go with swayWM setup. I switched to desktop profile, set all extra USE flags and installed all necessary packages. However when trying to execute sway I got this error:
Quote:

regu ~ # eselect profile show
Current /etc/portage/make.profile symlink:
default/linux/arm64/23.0/desktop

regu ~ # sway
00:00:00.022 [ERROR] [wlr] [backend/backend.c:242] Cannot create DRM backend: disabled at compile-time
00:00:00.022 [ERROR] [wlr] [backend/backend.c:376] Failed to open any DRM device
00:00:00.067 [ERROR] [sway/server.c:137] Unable to create backend

I thought it is kind of weird, so I checked wlroots package.
Quote:

regu ~ # emerge -pv gui-libs/wlroots

These are the packages that would be merged, in order:

Calculating dependencies ... done!
Dependency resolution took 8.21 s (backtrack: 0/20).

[ebuild R ] gui-libs/wlroots-0.17.2:0/17::gentoo USE="X libinput session vulkan (-drm) (-liftoff) -tinywl -x11-backend -xcb-errors" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

* IMPORTANT: 3 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.



I saw that drm flag is masked by a profile, which seemed weird because I'm on the desktop profile. After some digging I found this:
Quote:

regu ~ # cat /var/db/repos/gentoo/profiles/arch/arm64/package.use.mask | grep -A 5 -B 5 wlroots
sys-kernel/installkernel -efistub

# Mart Raudsepp <leio@gentoo.org> (2024-03-03)
# media-libs/libdisplay-info (drm) and dev-libs/libliftoff (liftoff)
# are only available for amd64, arm64 and riscv
>=gui-libs/wlroots-0.17.0 -drm -liftoff

# Joonas Niilola <juippis@gentoo.org> (2024-02-16)
# Test dependencies not keyworded on this arch.
www-servers/nginx test


I checked and media-libs/libdisplay-info package IS available on arm64. And also, the comment is contradictory, so I think it is a bug. I can manually remove it but then after emerge --sync it is overwritten.

I'm kindly sorry if I put this in the wrong thread :)
_________________
UTC+2
Back to top
View user's profile Send private message
spacok
n00b
n00b


Joined: 26 May 2024
Posts: 3

PostPosted: Sun May 26, 2024 10:09 pm    Post subject: RE: DRM use flag masked on arm64 23 desktop profile for wlro Reply with quote

You can modify /etc/portage/profile/package.use.mask
Just add there:
Quote:
>=gui-libs/wlroots-0.17.0 -drm

More detaile here:
https://forums.gentoo.org/viewtopic-t-1080790-start-0.html

I have Samsung Chromebook plus (rk3399) and sway works fine with this small change.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22819

PostPosted: Sun May 26, 2024 11:45 pm    Post subject: Reply with quote

Welcome to the forums, both of you.
JungerBoyo wrote:
I saw that drm flag is masked by a profile, which seemed weird because I'm on the desktop profile. After some digging I found this:
Quote:
regu ~ # cat /var/db/repos/gentoo/profiles/arch/arm64/package.use.mask | grep -A 5 -B 5 wlroots
sys-kernel/installkernel -efistub

# Mart Raudsepp <leio@gentoo.org> (2024-03-03)
# media-libs/libdisplay-info (drm) and dev-libs/libliftoff (liftoff)
# are only available for amd64, arm64 and riscv
>=gui-libs/wlroots-0.17.0 -drm -liftoff

# Joonas Niilola <juippis@gentoo.org> (2024-02-16)
# Test dependencies not keyworded on this arch.
www-servers/nginx test

I checked and media-libs/libdisplay-info package IS available on arm64. And also, the comment is contradictory, so I think it is a bug. I can manually remove it but then after emerge --sync it is overwritten.
Please use code tags, not quote tags, for program output.

You could have used grep on the file directly, without the Useless Use of Cat.

I think you found the wrong thing, since you found a file that disables the mask, and your original output was because you want to find why it is masked. From what I can see, the flag is masked out in the base profile, then that mask is reverted on the three architectures where it can work.

The comment is consistent with the line you found. The comment says that package is available on arm64. The line you found allows the flag to be used on arm64.
Back to top
View user's profile Send private message
spacok
n00b
n00b


Joined: 26 May 2024
Posts: 3

PostPosted: Mon May 27, 2024 12:35 am    Post subject: Reply with quote

If I understand output of
Code:
emerge -v wlroots
correctly, drm and liftoff useflags are disabled by profile on wlroots.
Code:
[ebuild  N     ] gui-libs/wlroots-0.17.2-r1  USE="libinput session -X (-drm) (-liftoff) -tinywl -vulkan -x11-backend -xcb-errors""

Or am I missing something?
Profile:
Code:
# eselect profile show
Current /etc/portage/make.profile symlink:
  default/linux/arm64/23.0
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22819

PostPosted: Mon May 27, 2024 12:49 am    Post subject: Reply with quote

That is correct. I find it odd that the shown profile does not seem to apply the shown mask negation. From a quick read of the various parents files, I would have expected that default/linux/arm64/23.0 would pick up the mask negation in profiles/arch/arm64/package.use.mask.
Back to top
View user's profile Send private message
spacok
n00b
n00b


Joined: 26 May 2024
Posts: 3

PostPosted: Mon May 27, 2024 1:13 am    Post subject: Reply with quote

That's why I wrote my first comment. It will allow usage of drm flag on gui-libs/wlroots. So JungerBoyo can install sway on his machine and it will stay enabled after sync. During my history with gentoo I never made/modify profiles so I'm definitelly not the right one to call this a bug. But there are plenty of arm boards supporting just panfrost or lima drivers (for example rk3399 based boards) and they are implementing just opengl and opengl es, so drm flag needs to be enabled on wlroots if you want to use wlroots based compositor. Even if this is intentional, comment in the file is definitelly misleading.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54627
Location: 56N 3W

PostPosted: Mon May 27, 2024 3:50 pm    Post subject: Reply with quote

JungerBoyo,

USE=drm is only available on testing ~arm64

Code:
$ ACCEPT_KEYWORDS="-* arm64" emerge -pv wlroots

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 19.51 s (backtrack: 0/20).

[ebuild  N     ] app-text/scdoc-1.11.3::gentoo  13 KiB
[ebuild  N     ] sys-auth/seatd-0.8.0:0/1::gentoo  USE="elogind -builtin -server -systemd" 0 KiB
[ebuild  N     ] gui-libs/wlroots-0.17.2:0/17::gentoo  USE="X libinput session vulkan (-drm) (-liftoff) -tinywl -x11-backend -xcb-errors" 593 KiB


and ...

Code:
$ emerge -pv wlroots

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 19.81 s (backtrack: 0/20).

[ebuild  N     ] app-text/scdoc-1.11.3::gentoo  13 KiB
[ebuild  N     ] media-libs/libdisplay-info-0.1.1::gentoo  USE="-test" 76 KiB
[ebuild  N     ] sys-auth/seatd-0.8.0:0/1::gentoo  USE="elogind -builtin -server -systemd" 0 KiB
[ebuild  N     ] gui-libs/wlroots-0.17.3:0/17::gentoo  USE="X drm libinput session vulkan -liftoff -tinywl -x11-backend -xcb-errors" 595 KiB

both on my ~arm64 system.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum