Go to file
Xi Ruoyao adf287b1be
xorg-server: Mark both elogind and systemd dependencies runtime
xorg-server itself does not need libelogind/libsystemd to invoke the
logind D-Bus API.  elogind/systemd-logind works for Xorg server when you
login: once you've logged in on a TTY, pam_systemd or pam_elogind
invokes systemd-logind or elogind to modify the ACL of the device node
of GPU for you:

    $ getfacl /dev/dri/card1
    getfacl: Removing leading '/' from absolute path names
    # file: dev/dri/card1
    # owner: root
    # group: video
    user::rw-
    user:xry111:rw-
    group::rw-
    mask::rw-
    other::---

Note that the "user:xry111:rw-" line allows the user logged in (in this
example, xry111, my user account) to operate on the GPU.  If
systemd-logind or elogind is not installed, there will be no such a line
and you need to setuid bit for Xorg executable, which is not
recommended.

FWIW logind is smart enough not to add the ACL entry if you've logged in
via SSH.

You may need to logout and login again to use startx if you've installed
pam_{elogind,systemd} and Xorg server & xinit in a continous login
session, but this is already mentioned on xorg-config.xml.

You may ask why Xorg server links to libsystemd or libelogind.  It uses
sd_notify and sd_listen_fds API so the Xorg server can function as a
socket-activated systemd service.  This is useless in SysV: elogind is
a logind, not a service manager.  In Systemd the libsystemd.so installed
in LFS should be enough, and we've never provided instructions to run
Xorg server in BLFS as a systemd service.

Reported-by: Rainer Fiebig <jrf@mailbox.org>
2023-03-21 15:23:40 +08:00
appendices AMD Microcode: 2023-02-05 15:05:28 +00:00
archive Archive libdiscid. 2023-03-02 09:58:37 -06:00
book Cleanup after 11.3 tagging 2023-02-28 12:18:50 -06:00
general aspell: show how to install the English dictionary 2023-03-20 14:30:21 +01:00
gnome Update Kernel Configuration in cheese 2023-03-14 21:10:47 +01:00
images updated stylesheets to 0.9 2004-05-08 02:42:12 +00:00
introduction building-notes: Restructure my runtime addition to align with changes from Pierre 2023-03-20 15:27:31 +08:00
kde Minor wording changes 2023-02-24 10:14:09 -06:00
lxde Tags for LXDE and Sawfish 2023-02-18 09:17:01 -06:00
multimedia Move SDL-1 to anduin. Upstream seems to have removed it 2023-03-17 15:39:43 -05:00
networking Upgrade bind-9.18.13 2023-03-19 11:34:35 +01:00
postlfs nss: Remove an unneeded chmod command 2023-03-20 19:06:31 +08:00
pst Typos from rhubarbpieguy 2023-03-11 19:02:27 -06:00
server Merge branch 'trunk' of git.linuxfromscratch.org:blfs into trunk 2023-03-19 11:36:21 +01:00
stylesheets Update to tigervnc-1.13.0. 2023-02-19 14:22:41 -06:00
template Remove eol spaces 2023-01-29 13:51:59 +01:00
x xorg-server: Mark both elogind and systemd dependencies runtime 2023-03-21 15:23:40 +08:00
xfce Update to xfburn-0.7.0 2023-03-06 12:06:20 -06:00
xincludes Update more URLs to use https 2023-01-29 14:35:01 +08:00
xsoft Fix building Firefox with LLVM-16. 2023-03-19 21:42:29 -05:00
.gitattributes Add mechanism for cron job $Date$ handling 2021-04-15 17:33:01 +08:00
.gitignore Revert "Makefile: use a "by-the-book" way to detect build environment change" 2023-01-25 09:51:58 +08:00
changelog.xml Update to notification-daemon-3.20.0. 2016-04-04 19:22:43 +00:00
expand_date Add mechanism for cron job $Date$ handling 2021-04-15 17:33:01 +08:00
general.ent Cleanup after 11.3 tagging 2023-02-28 12:18:50 -06:00
git-version.sh Restore the render system to what it was before pythonhosted changes 2023-01-25 13:01:41 +01:00
gnome.ent Update to gcr4-4.1.0. 2023-03-07 14:12:52 -06:00
index.xml more SVN prop clean up 2021-04-20 19:12:02 +08:00
INSTALL Remove spaces at the end of lines 2021-09-06 19:42:49 +02:00
Makefile Restore the render system to what it was before pythonhosted changes 2023-01-25 13:01:41 +01:00
obfuscate.sh clean up unused SVN prop entries 2021-04-20 19:12:02 +08:00
packages.ent Merge branch 'trunk' of git.linuxfromscratch.org:blfs into trunk 2023-03-19 11:36:21 +01:00
README clean up unused SVN prop entries 2021-04-20 19:12:02 +08:00
tidy.conf clean up unused SVN prop entries 2021-04-20 19:12:02 +08:00

How do I convert these XML files to HTML? You need to have some software
installed that deal with these conversions. Please read the INSTALL file to
determine what programs you need to install and where to get instructions to
install that software.

After that, you can build the html with a simple 'make' command.
The default target builds the html in $(HOME)/public_html/blfs-book.

For all targets, setting the parameter REV=systemd is needed to build the
systemd version of the book.

Other Makefile targets are: nochunks, validate, and blfs-patch-list.

nochunks: builds BLFS in one huge file.

validate:  does an extensive check for xml errors in the book.

blfs-patch-list: generates a list of all blfs controlled patches in the book.