Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on ARM
  • Search

DRM use flag masked on arm64 23 desktop profile for wlroots.

Gentoo on all things ARM. Both 32 bit and 64 bit.
Tell about your hardware and CHOST.
Problems with crossdev targeting ARM hardware go here too.
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
Author
Message
JungerBoyo
n00b
n00b
Posts: 5
Joined: Wed May 01, 2024 7:02 pm

DRM use flag masked on arm64 23 desktop profile for wlroots.

  • Quote

Post by JungerBoyo » Wed May 01, 2024 7:35 pm

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:
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.
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:
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
Top
spacok
n00b
n00b
Posts: 3
Joined: Sun May 26, 2024 9:56 pm

RE: DRM use flag masked on arm64 23 desktop profile for wlro

  • Quote

Post by spacok » Sun May 26, 2024 10:09 pm

You can modify /etc/portage/profile/package.use.mask
Just add there:
>=gui-libs/wlroots-0.17.0 -drm
More detaile here:
viewtopic-t-1080790-start-0.html

I have Samsung Chromebook plus (rk3399) and sway works fine with this small change.
Top
Hu
Administrator
Administrator
Posts: 24398
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sun May 26, 2024 11:45 pm

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:
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.
Top
spacok
n00b
n00b
Posts: 3
Joined: Sun May 26, 2024 9:56 pm

  • Quote

Post by spacok » Mon May 27, 2024 12:35 am

If I understand output of

Code: Select all

emerge -v wlroots
correctly, drm and liftoff useflags are disabled by profile on wlroots.

Code: Select all

[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: Select all

# eselect profile show
Current /etc/portage/make.profile symlink:
  default/linux/arm64/23.0
Top
Hu
Administrator
Administrator
Posts: 24398
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Mon May 27, 2024 12:49 am

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.
Top
spacok
n00b
n00b
Posts: 3
Joined: Sun May 26, 2024 9:56 pm

  • Quote

Post by spacok » Mon May 27, 2024 1:13 am

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.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56094
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Mon May 27, 2024 3:50 pm

JungerBoyo,

USE=drm is only available on testing ~arm64

Code: Select all

$ 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: Select all

$ 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.
Top
Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “Gentoo on ARM”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic