On 9/25/19 12:07 PM, Ken Moffat via blfs-dev wrote:
On Mon, Sep 23, 2019 at 11:23:35AM -0500, Douglas R. Reno via blfs-dev wrote:
Hi folks,


Around 5 minutes ago, I finished installing X on my elogind system. I
started late last night. I just started X and found that I do have a working
keyboard and mouse, and elogind-daemon
Hi people, I'm now starting to look at this (because I can't get on
with "more urgent" things I had expected to be doing).  A few
comments on the build order -

Here's the Xorg build order (notes at the end):

Sun 22 Sep 2019 10:52:28 PM CDT util-macros-1.19.2
Sun 22 Sep 2019 10:52:46 PM CDT xorgproto-2019.1
Sun 22 Sep 2019 10:56:12 PM CDT libXau-1.0.9
Sun 22 Sep 2019 10:56:42 PM CDT libXdmcp-1.1.3
Sun 22 Sep 2019 10:57:14 PM CDT xcb-proto-1.13
Sun 22 Sep 2019 10:59:01 PM CDT libxcb-1.13.1
Sun 22 Sep 2019 11:01:55 PM CDT libpng-1.6.37
Sun 22 Sep 2019 11:03:03 PM CDT freetype-2.10.1
Sun 22 Sep 2019 11:03:51 PM CDT FontTools
Sun 22 Sep 2019 11:05:26 PM CDT graphite2-1.3.13
Sun 22 Sep 2019 11:12:43 PM CDT harfbuzz-2.6.1
Sun 22 Sep 2019 11:13:52 PM CDT graphite2-1.3.13
I don't build graphite2/harfbuzz until after Xorg (if you like, my
Xorg is more minimal, no glib or other toolkits)

Sun 22 Sep 2019 11:15:02 PM CDT freetype-2.10.1
Sun 22 Sep 2019 11:16:16 PM CDT fontconfig-2.13.1
Sun 22 Sep 2019 11:27:19 PM CDT xorg-libraries-7.7
Sun 22 Sep 2019 11:28:51 PM CDT dbus-1.12.16
  (first dbus build)
Sun 22 Sep 2019 11:30:59 PM CDT Linux-PAM-1.3.1
Sun 22 Sep 2019 11:32:10 PM CDT shadow-4.7
Sun 22 Sep 2019 11:33:06 PM CDT autoconf-2.13
Mon 23 Sep 2019 12:05:30 AM CDT mozjs-60.8.0
Mon 23 Sep 2019 12:08:24 AM CDT lxml
Mon 23 Sep 2019 12:17:36 AM CDT libseccomp-2.4.1
Similarly, I leave mozjs and autoconf-2.13 until later.

Mon 23 Sep 2019 12:24:26 AM CDT elogind-241.3
Mon 23 Sep 2019 12:26:01 AM CDT polkit-0.116
Mon 23 Sep 2019 12:28:54 AM CDT elogind-241.3
Maybe this is the difference - you built elogind twice, I interpreted
its recommnded dependency of polkit (runtime) as meaning that I could
build elogind once and then build polkit after it.
This one was a misread on my part that led to me rebuilding it again. It shouldn't be required. On systemd, we build systemd in BLFS after Polkit has been installed so that it knows how to use Polkit to track user sessions.
Mon 23 Sep 2019 12:30:33 AM CDT dbus-1.12.16
  (second dbus build)
Mon 23 Sep 2019 12:39:05 AM CDT xorg-libraries-7.7
Your second build of dbus comes before the xorg-libraries, mine
comes after.  I think mine matches the book's comment on dbus:

| Recommended
|
| Xorg Libraries (for dbus-launch program) and elogind-241.3 (These are
| circular dependencies. First build without them, and then again after
| both packages are installed.)

??
I see what you're saying here with regards to my build order - I rebuilt xorg-libraries again for xtrans support after I had elogind installed, and then once before hand. Somehow I interpreted it as a circular but I'm not sure how I did. My 2nd build of D-Bus might have been completely unnecessary to be honest
Mon 23 Sep 2019 12:39:35 AM CDT xcb-util-0.4.0
Mon 23 Sep 2019 12:40:08 AM CDT xcb-util-image-0.4.0
Mon 23 Sep 2019 12:40:34 AM CDT xcb-util-keysyms-0.4.0
Mon 23 Sep 2019 12:41:08 AM CDT xcb-util-renderutil-0.3.9
Mon 23 Sep 2019 12:41:34 AM CDT xcb-util-wm-0.4.1
Mon 23 Sep 2019 12:42:15 AM CDT xcb-util-cursor-0.1.3
Mon 23 Sep 2019 12:44:57 AM CDT libdrm-2.4.99
Mon 23 Sep 2019 12:46:21 AM CDT libva-2.5.0
Mon 23 Sep 2019 12:47:47 AM CDT intel-vaapi-driver-2.3.0
Mon 23 Sep 2019 12:50:50 AM CDT libvdpau-1.3
Mon 23 Sep 2019 12:51:58 AM CDT wayland-1.17.0
Mon 23 Sep 2019 12:53:05 AM CDT wayland-1.17.0
  twice ?

Mistake in my script :-) Sorry about that!

Mon 23 Sep 2019 12:53:32 AM CDT wayland-protocols-1.18
Mon 23 Sep 2019 12:54:29 AM CDT libgpg-error-1.36
Mon 23 Sep 2019 12:58:02 AM CDT libgcrypt-1.8.5
Mon 23 Sep 2019 09:58:17 AM CDT mesa-19.1.7
Mon 23 Sep 2019 09:58:49 AM CDT xbitmaps-1.1.2
Mon 23 Sep 2019 10:14:15 AM CDT xorg-apps-7.7
Mon 23 Sep 2019 10:14:46 AM CDT xcursor-themes-1.0.6
Mon 23 Sep 2019 10:16:32 AM CDT xorg-fonts-7.7
Mon 23 Sep 2019 10:17:38 AM CDT xkeyboard-config-2.27
Mon 23 Sep 2019 10:19:07 AM CDT pixman-0.38.4
Mon 23 Sep 2019 10:20:07 AM CDT libepoxy-1.5.3
Mon 23 Sep 2019 10:21:06 AM CDT libxkbcommon-0.8.4
Mon 23 Sep 2019 10:29:04 AM CDT xorg-server-1.20.5
Mon 23 Sep 2019 10:31:45 AM CDT libevdev-1.8.0
Mon 23 Sep 2019 10:32:24 AM CDT mtdev-1.1.5
Mon 23 Sep 2019 10:32:54 AM CDT xf86-input-evdev-2.10.6
Mon 23 Sep 2019 10:33:38 AM CDT xf86-input-synaptics-1.9.1
Mon 23 Sep 2019 10:34:55 AM CDT xf86-input-wacom-0.37.0
Mon 23 Sep 2019 10:36:06 AM CDT xf86-video-fbdev-0.5.0
Mon 23 Sep 2019 10:41:23 AM CDT xf86-video-intel-20190723
Mon 23 Sep 2019 10:44:15 AM CDT xf86-video-nouveau-1.0.16
Mon 23 Sep 2019 10:45:05 AM CDT libva-2.5.0
Mon 23 Sep 2019 10:46:36 AM CDT intel-vaapi-driver-2.3.0
Mon 23 Sep 2019 10:46:56 AM CDT libvdpau-1.3
Mon 23 Sep 2019 10:49:31 AM CDT xorg-legacy-fonts-7.7
Mon 23 Sep 2019 10:50:13 AM CDT twm-1.0.10
Mon 23 Sep 2019 10:50:44 AM CDT dejavu-fonts-ttf-2.37
Mon 23 Sep 2019 10:52:26 AM CDT xterm-348
Mon 23 Sep 2019 10:54:37 AM CDT xclock-1.0.9
Mon 23 Sep 2019 10:57:35 AM CDT xinit-1.4.1
Mon 23 Sep 2019 11:06:10 AM CDT fluxbox-1.3.7

Here's some notes:

1) There are some packages that I built in here which aren't in the direct X
dependency order. I normally build those on systemd around this point and
did so with elogind because old habits die hard. Those include libseccomp
and libxkbcommon (libseccomp before elogind, even though it can't use it,
and libxkbcommon before xorg-server). I do install the FontTools and lxml
python modules as well (FontTools for Graphite2 and Harfbuzz, lxml for
elogind) because I do normally run tests.

2) Drivers - I built a couple unnecessary ones here, but they normally get
pulled in on my systemd system. These include the Intel, Wacom, and
Synaptics drivers. I normally build these around release time on this
hardware because I have a Wacom Intuos tablet and a IBM ThinkPad USB
keyboard with a Synaptics touchpad built in. This system theroretically only
needs fbdev, nouveau, and evdev, but I installed them anyway. On that note,
you'll notice I didn't build libinput or xf86-input-libinput - I normally do
when I come across the first dependency for it (recently that's been COGL or
Clutter).

On all my current machines which run X (one old one has been
disassembled, another is out of use because it lacks hdmi video
output) I'm now using libinput.  But the machine which is now out of
use is one of the R600s and did use evdev.

3) - Circulars: I have a circular dependency on elogind (xorg libraries ->
dbus -> elogind -> dbus -> polkit -> xorg-libraries), freetype2 (freetype ->
graphite2 -> harfbuzz -> graphite2 -> freetype2), and Mesa (libva -> Mesa ->
libva). I ended up building libva-intel-driver too and libvdpau before Mesa
as well, and then rebuilding them afterwards. I'm sure that was unnecessary,
but it's what I normally do.

I think the elogind circular dependency might be what matters most,
but your second dbus (before Xorg libs) seems odd.  Maybe I've
completely misunderstood something in the dependencies.

4) - Hardware: I'm sure this probably doesn't matter, but this system has an
AMD Phenom X2 521 CPU (3.00GHz @ 2 Cores), 8GB of RAM, and an NVIDIA GeForce
210 (I bought this card somewhere around 2012 or 2013, I plan to replace it
with something a lot newer soon). I also have a Logitech MK270 Wireless
Keyboard and Mouse set plugged in, which is what elogind picked up on and
assigned permissions to in the beginning of this email.

5) - Groups: I am in 'disk', 'audio', 'video', 'usb', and 'cdrom'. I'm sure
a majority of those are probably unnecessary, but as I said before, old
habits die hard :-) it seems to be harmless.

Agreed.

6) - ALL of these packages are built using the instructions in the book,
which I've verified package-by-package are correct in my scripts.


Have a good day/night, folks! I hope this helps someone out there :-)

- Doug

I'll try building elogind twice in a fresh build.  Might take a day
or two.

Thanks.

ĸen
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to