View previous topic :: View next topic |
Author |
Message |
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6145 Location: Dallas area
|
Posted: Sun Jun 27, 2021 10:09 am Post subject: |
|
|
Perfect Gentleman wrote: | Anon-E-moose wrote: | I'm not so sure it's glx. Not that I don't doubt that when you removed the define it started working. |
Yes, it's not GLX. |
Are you running selinux?
What happens if you remove all the -D defines, except for the path one? (yeah, custom ebuild) _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Perfect Gentleman Veteran
Joined: 18 May 2014 Posts: 1255
|
Posted: Sun Jun 27, 2021 10:21 am Post subject: |
|
|
Anon-E-moose wrote: | Are you running selinux? |
Nope
Quote: | What happens if you remove all the -D defines, except for the path one? (yeah, custom ebuild) |
It works and does not crash as far I remember.
-------
No, xwayland has crashed.
Last edited by Perfect Gentleman on Sun Jun 27, 2021 10:45 am; edited 1 time in total |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6145 Location: Dallas area
|
Posted: Sun Jun 27, 2021 10:32 am Post subject: |
|
|
Interesting indeed.
All the defines, except for the path one and dri one are set to default true in meson, dri is auto, but almost turns out to be true.
The path just sets the path for executable.
So there shouldn't be a difference between with and without the D defines.
I'm curious enough I'll compile both versions and look at the build logs to see if there's some difference.
Anyway, I take it works for you. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Perfect Gentleman Veteran
Joined: 18 May 2014 Posts: 1255
|
Posted: Sun Jun 27, 2021 10:37 am Post subject: |
|
|
Code: | option('xdmcp', type: 'boolean', value: true) |
I set it to false from the very beginning. IMO, it is it.
-------
One more test with :
Code: | local emesonargs=(
$(meson_use rpc secure-rpc)
$(meson_use unwind libunwind)
$(meson_use ipv6)
$(meson_use xcsecurity)
$(meson_use selinux xselinux)
-Ddri3=true
-Dglamor=true
-Dglx=true
) |
-------
Result of test: xwayland has crashed. |
|
Back to top |
|
|
The Main Man Veteran
Joined: 27 Nov 2014 Posts: 1171 Location: /run/user/1000
|
Posted: Sun Jun 27, 2021 10:53 am Post subject: |
|
|
Anon-E-moose wrote: |
I wouldn't downgrade. Go back to x for now and we'll slowly figure out why xwayland isn't starting.
Leave sway, wayland, xwayland, etc installed. |
Downgrade didn't matter, could be Sway thing, hard to say, maybe it needs some package which xorg-server pulls, I'm out of ideas.
Bottom line is.... x11 apps don't launch under Xwayland and without xorg-server, under Sway
xorg-server-1.20.11-r1 pulls xwayland and it works that way, but I guess that's just to solve some emerge issues, not sure if xwayland is used from the xwayland package or from the xorg-server code in that case. |
|
Back to top |
|
|
Perfect Gentleman Veteran
Joined: 18 May 2014 Posts: 1255
|
Posted: Sun Jun 27, 2021 10:55 am Post subject: |
|
|
kajzer wrote: | Bottom line is.... x11 apps don't launch under Xwayland and without xorg-server, under Sway. |
You wanna say that you have "X" launched in wayland session? |
|
Back to top |
|
|
The Main Man Veteran
Joined: 27 Nov 2014 Posts: 1171 Location: /run/user/1000
|
Posted: Sun Jun 27, 2021 10:58 am Post subject: |
|
|
LOL no, saying xwayland as standalone won't launch, thus x11 apps aren't working, all that provided that xorg-server is removed
You bring in xorg-server and xwayland works |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6145 Location: Dallas area
|
Posted: Sun Jun 27, 2021 11:01 am Post subject: |
|
|
kajzer wrote: | Anon-E-moose wrote: |
I wouldn't downgrade. Go back to x for now and we'll slowly figure out why xwayland isn't starting.
Leave sway, wayland, xwayland, etc installed. |
Downgrade didn't matter, could be Sway thing, hard to say, maybe it needs some package which xorg-server pulls, I'm out of ideas.
Bottom line is.... x11 apps don't launch under Xwayland and without xorg-server, under Sway
xorg-server-1.20.11-r1 pulls xwayland and it works that way, but I guess that's just to solve some emerge issues, not sure if xwayland is used from the xwayland package or from the xorg-server code in that case. |
With xorg-server-1.20.11-r1 it pulls in x11-base/xwayland to provide the Xwayland executable and disables building the Xwayland binary from xorg-server.
With xorg-server-1.20.11 x11-base/xwayland should refuse to build because it will build the one from the xorg-server tarball. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
The Main Man Veteran
Joined: 27 Nov 2014 Posts: 1171 Location: /run/user/1000
|
Posted: Sun Jun 27, 2021 11:06 am Post subject: |
|
|
Okay, something is missing I guess, still needs xorg-server to be installed. |
|
Back to top |
|
|
Perfect Gentleman Veteran
Joined: 18 May 2014 Posts: 1255
|
Posted: Sun Jun 27, 2021 11:14 am Post subject: |
|
|
kajzer wrote: | You bring in xorg-server and xwayland works |
Hmm.
Code: | ~ $ equery f xorg-server
* Searching for xorg-server ...
* Contents of x11-base/xorg-server-1.20.11-r1:
/usr
/usr/bin
/usr/bin/Xvfb
/usr/lib64
/usr/lib64/xorg
/usr/lib64/xorg/protocol.txt
/usr/share
/usr/share/doc
/usr/share/doc/xorg-server-1.20.11-r1
/usr/share/doc/xorg-server-1.20.11-r1/ChangeLog.bz2
/usr/share/doc/xorg-server-1.20.11-r1/README.md.bz2
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/Xserver.1.bz2
/usr/share/man/man1/Xvfb.1.bz2
/usr/share/portage
/usr/share/portage/config
/usr/share/portage/config/sets
/usr/share/portage/config/sets/xorg.conf
/var
/var/lib
/var/lib/xkb
/var/lib/xkb/README.compiled |
Interesting, what files are needed for x11-apps. |
|
Back to top |
|
|
The Main Man Veteran
Joined: 27 Nov 2014 Posts: 1171 Location: /run/user/1000
|
Posted: Sun Jun 27, 2021 11:18 am Post subject: |
|
|
Well, I'm speculating here, but the situation is like that.
Maybe some deps which xorg-server pulls are needed, one of those
Code: | [ebuild N ] x11-misc/util-macros-1.19.3::gentoo 0 KiB
[ebuild N ] gui-libs/display-manager-init-1.0-r3::gentoo 0 KiB
[ebuild N ] x11-apps/iceauth-1.0.8-r1::gentoo 0 KiB
[ebuild N ] x11-apps/rgb-1.0.6-r1::gentoo 0 KiB
[ebuild N ] x11-base/xorg-drivers-1.20-r2::gentoo INPUT_DEVICES="libinput -elographics -evdev -joystick -synaptics -vmmouse -void -wacom" VIDEO_CARDS="amdgpu radeonsi -ast -dummy -fbdev (-freedreno) (-geode) -glint -i915 -i965 -intel -mga -nouveau -nv -nvidia (-omap) -qxl -r128 -radeon -siliconmotion (-tegra) (-vc4) -vesa -via -virtualbox -vmware" 0 KiB
[ebuild N ] x11-libs/libpciaccess-0.16::gentoo USE="zlib" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild N ] x11-apps/xkbcomp-1.4.5::gentoo 0 KiB
[ebuild N ] x11-apps/xrdb-1.2.0::gentoo 0 KiB
[ebuild N ] x11-apps/xinit-1.4.1-r1::gentoo USE="-twm" 0 KiB
[ebuild N ~] x11-base/xorg-server-1.20.11-r1:0/1.20.11::gentoo USE="elogind udev wayland xorg -debug -dmx -doc -ipv6 -kdrive -minimal (-selinux) -suid -systemd -test -unwind -xcsecurity -xephyr -xnest -xvfb" 0 KiB
[ebuild N ] x11-drivers/xf86-video-amdgpu-19.1.0::gentoo USE="udev" 0 KiB
[ebuild N ] x11-drivers/xf86-video-ati-19.1.0::gentoo USE="udev" 0 KiB
[ebuild N ] x11-drivers/xf86-input-libinput-1.0.1::gentoo 0 KiB |
|
|
Back to top |
|
|
Perfect Gentleman Veteran
Joined: 18 May 2014 Posts: 1255
|
Posted: Sun Jun 27, 2021 11:21 am Post subject: |
|
|
I don't have any xf86-drivers & xorg-drivers. Disable USE=xorg for xorg-server. |
|
Back to top |
|
|
The Main Man Veteran
Joined: 27 Nov 2014 Posts: 1171 Location: /run/user/1000
|
Posted: Sun Jun 27, 2021 11:25 am Post subject: |
|
|
It could be just me, for some reason, I don't get what I could be doing wrong, but it's possible.
I left the report and I'll just have to work with xorg-server installed, I don't mind that.
Open to suggestions however, and willing to try. |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6145 Location: Dallas area
|
Posted: Sun Jun 27, 2021 11:28 am Post subject: |
|
|
kajzer wrote: | Well, I'm speculating here, but the situation is like that.
Maybe some deps which xorg-server pulls are needed, one of those
Code: | [ebuild N ] x11-misc/util-macros-1.19.3::gentoo 0 KiB
[ebuild N ] x11-apps/iceauth-1.0.8-r1::gentoo 0 KiB
[ebuild N ] x11-libs/libpciaccess-0.16::gentoo USE="zlib" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild N ] x11-apps/xkbcomp-1.4.5::gentoo 0 KiB
|
|
In my ebuild,
I pull in auth/iceauth if user wants (use flag)
the ebuild requires libpciaccess and xbcomp.
util-macros is used by practically everything including most X libs, so it should always be there as long as one has X apps. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
The Main Man Veteran
Joined: 27 Nov 2014 Posts: 1171 Location: /run/user/1000
|
Posted: Sun Jun 27, 2021 11:30 am Post subject: |
|
|
Good to know, okay, will try pretty soon, will report back when it's done. |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6145 Location: Dallas area
|
Posted: Sun Jun 27, 2021 11:32 am Post subject: |
|
|
Code: | pixman_dep = dependency('pixman-1')
libbsd_dep = dependency('libbsd', required: false)
xkbcomp_dep = dependency('xkbcomp', required: false)
xkbfile_dep = dependency('xkbfile')
xfont2_dep = dependency('xfont2', version: '>= 2.0') |
From meson, libbsd and xkbcomp are not strictly required, but it will use them if it finds them.
It requires, pixman, xkbfile and xfont2 though. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
The Main Man Veteran
Joined: 27 Nov 2014 Posts: 1171 Location: /run/user/1000
|
Posted: Sun Jun 27, 2021 11:35 am Post subject: |
|
|
Okay will start by -xorg for xorg-server first, depclean says these can be removed, I'll continue from there
Code: | >>> Calculating removal order...
>>> These are the packages that would be unmerged:
x11-base/xorg-drivers
selected: 1.20-r2
protected: none
omitted: none
x11-drivers/xf86-video-amdgpu
selected: 19.1.0
protected: none
omitted: none
x11-drivers/xf86-input-libinput
selected: 1.0.1
protected: none
omitted: none
x11-drivers/xf86-video-ati
selected: 19.1.0
protected: none
omitted: none
All selected packages: =x11-drivers/xf86-video-amdgpu-19.1.0 =x11-drivers/xf86-video-ati-19.1.0 =x11-drivers/xf86-input-libinput-1.0.1 =x11-base/xorg-drivers-1.20-r2
>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.
Would you like to unmerge these packages? [Yes/No] |
|
|
Back to top |
|
|
The Main Man Veteran
Joined: 27 Nov 2014 Posts: 1171 Location: /run/user/1000
|
Posted: Sun Jun 27, 2021 11:43 am Post subject: |
|
|
Well that works, don't really know how to proceed here, I guess I can't remove some xorg deps unless I remove xorg-server itself, so maybe removing xorg-server is the only way to go and then emerging manually those deps and test. |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6145 Location: Dallas area
|
Posted: Sun Jun 27, 2021 12:09 pm Post subject: |
|
|
I just did a test, emerged xorg-server-1.20.11-r1 and these are the only files that get generated with these use flags "ipv6 udev wayland", no others set
Code: | ./var/lib/xkb/README.compiled
./usr/lib64/xorg/protocol.txt
./usr/share/portage/config/sets/xorg.conf
./usr/share/doc/xorg-server-1.20.11-r1/README.md.bz2
./usr/share/doc/xorg-server-1.20.11-r1/ChangeLog.bz2
./usr/share/man/man1/Xserver.1.bz2 |
Which are just docs, xwayland doesn't use protocol.txt, at as far as I know, mine works without it. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
The Main Man Veteran
Joined: 27 Nov 2014 Posts: 1171 Location: /run/user/1000
|
Posted: Sun Jun 27, 2021 12:30 pm Post subject: |
|
|
Okay, we're getting somewhere, it's one of these deps required (or more than one)
Code: | >>> Calculating removal order...
>>> These are the packages that would be unmerged:
gui-libs/display-manager-init
selected: 1.0-r3
protected: none
omitted: none
x11-apps/xkbcomp
selected: 1.4.5
protected: none
omitted: none
x11-apps/iceauth
selected: 1.0.8-r1
protected: none
omitted: none
x11-libs/libpciaccess
selected: 0.16
protected: none
omitted: none
x11-apps/xinit
selected: 1.4.1-r1
protected: none
omitted: none
x11-apps/rgb
selected: 1.0.6-r1
protected: none
omitted: none
x11-apps/xrdb
selected: 1.2.0
protected: none
omitted: none
x11-misc/util-macros
selected: 1.19.3
protected: none
omitted: none
All selected packages: =x11-apps/iceauth-1.0.8-r1 =x11-apps/xrdb-1.2.0 =x11-misc/util-macros-1.19.3 =x11-libs/libpciaccess-0.16 =x11-apps/xkbcomp-1.4.5 =x11-apps/rgb-1.0.6-r1 =gui-libs/display-manager-init-1.0-r3 =x11-apps/xinit-1.4.1-r1
>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed. |
So, what I did was emerging wlroots and sway with -X just so that I could remove xorg-server, then I didn't depclean the system and left those package listed above to be.
Then re-emerged wlroots and sway with X, but with wlroots ebuild changed to use xwayland instead of xorg-server
So now it's just a matter of cutting down deps from that list until it works. |
|
Back to top |
|
|
The Main Man Veteran
Joined: 27 Nov 2014 Posts: 1171 Location: /run/user/1000
|
Posted: Sun Jun 27, 2021 12:46 pm Post subject: |
|
|
It's now just these left on the system and x11 apps are working fine
Code: |
>>> Calculating removal order...
>>> These are the packages that would be unmerged:
x11-libs/libpciaccess
selected: 0.16
protected: none
omitted: none
x11-apps/xkbcomp
selected: 1.4.5
protected: none
omitted: none
x11-apps/iceauth
selected: 1.0.8-r1
protected: none
omitted: none
x11-misc/util-macros
selected: 1.19.3
protected: none
omitted: none
All selected packages: =x11-apps/iceauth-1.0.8-r1 =x11-apps/xkbcomp-1.4.5 =x11-libs/libpciaccess-0.16 =x11-misc/util-macros-1.19.3 |
I guess I could try to cut more and see what exactly is needed, but it will do for now.
Bottom line is that wlroots needs to be modified to replace xorg-server with xwayland, include these deps for xwayland (possibly less than these 4 deps) and standalone xwayland is good to go. |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6145 Location: Dallas area
|
Posted: Sun Jun 27, 2021 12:52 pm Post subject: |
|
|
In my ebuild I put libpciaccess as a required dep, and it pulls in util-macros.
iceauth/xauth I have on my system, and they're in my ebuild, but only turn on with a use flag.
And unless you're trying to do something with the xauth file, they're not needed.
xkbcomp will use it if it sees it but claims it's not required, I do have it as dep in my ebuild. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6145 Location: Dallas area
|
Posted: Sun Jun 27, 2021 12:55 pm Post subject: |
|
|
These are built into my version of Xwayland
Code: | $ ldd /usr/bin/Xwayland
linux-vdso.so.1 (0x00007ffc8df0e000)
libpixman-1.so.0 => /usr/lib64/libpixman-1.so.0 (0x00007f9cfc6e6000)
libbsd.so.0 => /usr/lib64/libbsd.so.0 (0x00007f9cfc6cc000)
libXfont2.so.2 => /usr/lib64/libXfont2.so.2 (0x00007f9cfc691000)
libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00007f9cfc689000)
libwayland-client.so.0 => /usr/lib64/libwayland-client.so.0 (0x00007f9cfc678000)
libdrm.so.2 => /usr/lib64/libdrm.so.2 (0x00007f9cfc663000)
libepoxy.so.0 => /usr/lib64/libepoxy.so.0 (0x00007f9cfc530000)
libgbm.so.1 => /usr/lib64/libgbm.so.1 (0x00007f9cfc520000)
libm.so.6 => /lib64/libm.so.6 (0x00007f9cfc454000)
libxshmfence.so.1 => /usr/lib64/libxshmfence.so.1 (0x00007f9cfc44f000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f9cfc449000)
libnettle.so.8 => /usr/lib64/libnettle.so.8 (0x00007f9cfc402000)
libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007f9cfc3fb000)
libGL.so.1 => /usr/lib64/libGL.so.1 (0x00007f9cfc375000)
libc.so.6 => /lib64/libc.so.6 (0x00007f9cfc1e5000)
/lib64/ld-linux-x86-64.so.2 (0x00007f9cfc7a7000)
libz.so.1 => /lib64/libz.so.1 (0x00007f9cfc1cb000)
libbz2.so.1 => /lib64/libbz2.so.1 (0x00007f9cfc1b6000)
libfontenc.so.1 => /usr/lib64/libfontenc.so.1 (0x00007f9cfc1ac000)
libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00007f9cfc0e5000)
libffi.so.6 => /usr/lib64/libffi.so.6 (0x00007f9cfc0db000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f9cfc0b8000)
libwayland-server.so.0 => /usr/lib64/libwayland-server.so.0 (0x00007f9cfc0a1000)
libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00007f9cfc070000)
libGLdispatch.so.0 => /usr/lib64/libGLdispatch.so.0 (0x00007f9cfbfb6000)
libGLX.so.0 => /usr/lib64/libGLX.so.0 (0x00007f9cfbf82000)
libpng16.so.16 => /usr/lib64/libpng16.so.16 (0x00007f9cfbf48000)
libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007f9cfbe05000)
libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007f9cfbdd9000) |
_________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
The Main Man Veteran
Joined: 27 Nov 2014 Posts: 1171 Location: /run/user/1000
|
Posted: Sun Jun 27, 2021 12:55 pm Post subject: |
|
|
That's why I left those 4, because you have them in your ebuild
I guess libpciaccess is the only dep required. |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6145 Location: Dallas area
|
Posted: Sun Jun 27, 2021 12:57 pm Post subject: |
|
|
I'm grepping the source for Xwayland and neither libpciaccess nor util-macros are needed, util-macros has m4 stuff, and meson doesn't use that.
Can you try with just xkbcomp?
Edit to add: my guess either one or both of xkbcomp and [iceauth/xauth] _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
|