LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 12-12-2016, 04:08 PM   #1
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
Talking LFS - Pure Wayland w/ XWayland (X11 Apps on Wayland)


I've managed to get it working Wayland w/ XWayland and Weston for testing. There's a screenshot on my last post in the thread of xeyes running on a Weston shell.

I need to revert the snapshot on my VM and go back through the process one more time to see if I missed anything in my notes. I'll post the process here on a LQ blog when finished.

Todo: GTK3 + Gnome3 + Mutter (sans systemd)

Last edited by Luridis; 12-20-2016 at 11:49 PM.
 
Old 12-12-2016, 04:10 PM   #2
hendrickxm
Member
 
Registered: Feb 2014
Posts: 344

Rep: Reputation: Disabled
Very interesting. No systemd is great .
 
Old 12-13-2016, 09:14 AM   #3
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Original Poster
Rep: Reputation: 167Reputation: 167
Now that I'm looking, I find it odd that BLFS explains how to build only part of Wayland and no compositors for it. Perhaps it's a work in progress for them.

Anyway the goal is Wayland + GTK3 + Mutter + a lightweight Desktop. Finally, using XWayland for running X11 apps natively under Wayland. I'll be getting around systemd integration (logind req.) by using the API compatible elogind package.

Edit: Wanted to use budgie desktop but it requires a higher version of mutter than what's available for Wayland. I was misled by the article that linked it. Honks me off, don't spend all that time talking about Wayland and then link something that's not compatible.

Last edited by Luridis; 12-13-2016 at 09:26 AM.
 
Old 12-13-2016, 10:33 AM   #4
hendrickxm
Member
 
Registered: Feb 2014
Posts: 344

Rep: Reputation: Disabled
Perhaps mate with GTK3 is an option?
Since gtk 3.22 will be the last gtk3 release, I guess it's a safe bet to go gtk3.
 
Old 12-13-2016, 12:02 PM   #5
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Original Poster
Rep: Reputation: 167Reputation: 167
It (Mate) doesn't appear to currently support Wayland. Pantheon (Elementary OS) might, but I'm not sure I like that any better than the default Gnome/Mutter Wayland combination.

https://youtu.be/w1R5uBPnOpg?t=11m26s

But, I may look at some others.

Edit: Considering that Budgie is new the only reason I can find that Wayland support is behind is due to their posted problems with vala code. Good god, if you're going to move away from C, at least use something decent.

Last edited by Luridis; 12-13-2016 at 12:06 PM.
 
Old 12-14-2016, 07:50 AM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Luridis View Post
I'm currently working on my first pure Wayland build, eschewing native x11 all together and using Wayland's x11 interface instead. If anyone's interested I'll post the build process. It will include GTK3 & mutter but won't require systemd. (Though you can use systemd if desired.)
so let me see if I got this right. You're working on putting together, wayland x11-interface with GTK3 & MUTTeR (That I have no idea/experience with that one) to work on a system that does not use SYStemD as an init?

sooo...... You're polling around asking others, would you use it, to see it it'd be a waste of your time doing this, while trying to figure out what to curtail it to, so it can have a platform to operate off of?

yes,

my disto does not use systemD, it supports Wayland x11, it is even in the repo's. it is a fast and simple to maintain system. (A learning curve is always going to be there for things ones never used).

I haven't entirely figured out how to completely use it. I got it running once, (i think) but fell into the, so what software runs on it?

I myself. Not spending a LOT of time on it to figure it out. I just waiting for wayland to just be like x11, it installs with the distro and just works.


look at Void Linux, give it a shot, it is build from the ground up rolling release distro, with its own init system.

Last edited by BW-userx; 12-14-2016 at 07:53 AM.
 
Old 12-14-2016, 10:40 AM   #7
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Original Poster
Rep: Reputation: 167Reputation: 167
Quote:
Originally Posted by BW-userx View Post
sooo...... You're polling around asking others, would you use it, to see it it'd be a waste of your time doing this, while trying to figure out what to curtail it to, so it can have a platform to operate off of?
You misunderstand. Look at the forum you're posting on, which is Linux From Scratch. I asked, not to find out if it's worth my time to do a Wayland build, but to find out if it's worth my time it takes to post the instructions when I am finished. People here do their own building and might want to give it a try too.

If you think we are crazy, I suggest you go look at another forum where they write entire operating systems from bootloader to GUI, if only as a hobby. http://forum.osdev.org/viewtopic.php...087&start=2670

Last edited by Luridis; 12-14-2016 at 10:48 AM.
 
Old 12-14-2016, 11:11 AM   #8
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
The furthest I have got is wayland without X at all, but from there on found it difficult to proceed, so I will keep an eye on this. I was hoping to steer clear of X
I suppose the only way I can go is QT
 
Old 12-14-2016, 11:12 AM   #9
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Luridis View Post

If you think we (i) are crazy,
is that a freudian slip? Because nothing I wrote came close to even hinting of someones mental state whatsoever.
 
Old 12-14-2016, 11:33 AM   #10
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Original Poster
Rep: Reputation: 167Reputation: 167
Quote:
Originally Posted by spiky0011 View Post
The furthest I have got is wayland without X at all, but from there on found it difficult to proceed, so I will keep an eye on this. I was hoping to steer clear of X
I suppose the only way I can go is QT
If this works as I expect then you will be able to use GTK3/Gnome. If you intend to use XWayland for compatibility with older X11 programs you cannot avoid building some of the x.org stack. The upside is that everything will be running on a Wayland compositor and shouldn't require a running xserver.

Edit: How much of X11 has to be built is what I am working on now. I'm building on a vm and using snapshots so I can rollback easily if I make a mistake.

Quote:
Originally Posted by BW-userx View Post
is that a freudian slip? Because nothing I wrote came close to even hinting of someones mental state whatsoever.
That was said tongue-in-cheek. Don't take it seriously. Besides, if I am crazy, and I guess I could be... Why worry about it? If so, it hasn't hindered me so far.

Last edited by Luridis; 12-14-2016 at 11:38 AM.
 
Old 12-14-2016, 11:52 AM   #11
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Original Poster
Rep: Reputation: 167Reputation: 167
Like I said above, how much of X11 needs to be built is tricky. That process is also requiring me to hold off common necessities (GLib, DBus, etc.) until the hard dependency appears during a configure fail. I'm doing it this way so I hopefully won't have to go back and rebuild to many packages.

As an example, I just ran configure on D-Bus-1.10.10 and noticed...

Code:
***In Configure Summary***
Building inotify support: yes
Building kqueue support:  no
Building systemd support: no
Building X11 code:        no
Will systemd support change if it see's elogind header files? Will X11 code change after building the minimum required X11 stack needed to build XWayland. At this point I don't know, so I hold off on building D-Bus until a configure actually bombs out because D-Bus is absent.

Last edited by Luridis; 12-14-2016 at 11:54 AM.
 
Old 12-20-2016, 02:53 AM   #12
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Original Poster
Rep: Reputation: 167Reputation: 167
This is coming along, but some parts are hairy... My mesa build:

Code:
./configure CFLAGS='-march=core2 -mtune=native -O2 -pipe' \
CXXFLAGS='-march=core2 -mtune=native -O2 -pipe' --prefix=/usr --libdir=/usr/lib64 \
--sysconfdir-/etc --disable-static --with-egl-platforms=wayland,x11,drm \
--with-gallium-drivers=svga --with-dri-drivers=swrast --enable-shared-glapi \
--enable-xa --enable-glx-tls --enable-texture-float --enable-osmesa --enable-gbm \
  | tee mesa-config.log &&
make && make check
That's setup to let me use 3d acceleration in VMware. Depends on a user-mode-setting driver that is really just a wrapper for KMS too.

The good thing is that I've yet too see a test fail. Hopefully, when I drop all those XWayand options (--enable-xwayland --disable-xorg, etc.) on XOrg Server I won't end up with a ton of red on check log.

Last edited by Luridis; 12-20-2016 at 02:59 AM.
 
Old 12-20-2016, 12:18 PM   #13
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Original Poster
Rep: Reputation: 167Reputation: 167
Scratch that bit I wrote about needing a usermode driver. (xf86-video-vmware) What I missed is that libdrm knows how to use virtual 3D acceleration by talking to the kernel DRI if you've selected one. (DRM WMware driver, QXL Virtual GPU, Bochs Drm support, etc.)

The xf86-video-vmware is only needed for running xorg side-by-side with wayland.
 
Old 12-20-2016, 01:00 PM   #14
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Original Poster
Rep: Reputation: 167Reputation: 167
Grrr... was building Weston for testing and...

configure: error: weston-launch requires pam

When are developers going to get it through their numb skulls that PAM isn't needed everywhere.
 
Old 12-20-2016, 06:46 PM   #15
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Quote:
Originally Posted by Luridis View Post
...
If you think we are crazy, I suggest you go look at another forum where they write entire operating systems from bootloader to GUI, if only as a hobby. http://forum.osdev.org/viewtopic.php...087&start=2670
I Agree with your assesment of our mental health ... I coded a complete desktop from scratch ... Cuckoo!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Wayland/Weston with XWayland works on DragonFly LXer Syndicated Linux News 0 05-23-2016 07:41 AM
LXer: What It Takes To Port An X11 Application To Wayland LXer Syndicated Linux News 0 02-14-2014 11:51 PM
LXer: Clutter 1.16.2 Adds Wayland and X11 Improvements LXer Syndicated Linux News 0 11-26-2013 09:50 PM
How to configure mouse, touchpad, other evdev devices without X11 under wayland? Xenphor Linux - Hardware 3 09-08-2013 03:15 PM
[SOLVED] Will X11 apps in Wayland have hardware acceleration? skykooler Linux - Software 2 04-07-2012 02:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 04:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration