Opened 5 months ago

Closed 5 months ago

Last modified 5 months ago

#5504 closed enhancement (fixed)

systemd-256

Reported by: Bruce Dubbs Owned by: lfs-book
Priority: normal Milestone: 12.2
Component: Book Version: git
Severity: normal Keywords:
Cc:

Description

New version.

Change History (7)

comment:1 by Bruce Dubbs, 5 months ago

Summary: systemd-356systemd-256

comment:3 by Xi Ruoyao, 5 months ago

I've upgraded udev on a LFS 12.1-sysv VM to 256 and there seems no issue.

comment:4 by Marty Jack, 5 months ago

I think you would find that a full build fails. The logic at line 1983 of meson.build has changed. The file <build-directory>version.h built from src/version/version.h.in is unusable. It would depend on what systemd parts you build; in my build the first error occurs in src/boot/efi/boot.c.

I have the following sed to work around this, where $(VERSION) is equal to 256. I am confident a more elegant fix will emerge.

sed -i "s/VERSION_TAG \"@VCS_TAG@\"/\"$(VERSION)\"/g" src/version/version.h.in

in reply to:  4 comment:5 by Xi Ruoyao, 5 months ago

Replying to Marty Jack:

I think you would find that a full build fails.

A full build is fine for me.

The logic at line 1983 of meson.build has changed. The file <build-directory>version.h built from src/version/version.h.in is unusable.

$ ninja version.h -v
[1/1] /usr/bin/meson --internal vcstagger ../src/version/version.h.in version.h 256 /home/xry111/sources/lfs/systemd-256 @VCS_TAG@ '(.*)' /usr/bin/sh -c :
$ cat version.h
/* SPDX-License-Identifier: LGPL-2.1-or-later
 *
 * Detailed project version that includes git commit when not built from a release.
 * Use this in preference to PROJECT_VERSION, with the following exceptions:
 * - where a simplified form is expected for compatibility, for example
 *   'udevadm version',
 * - where a simplified machine-parsable form is more useful, for example
 *   pkgconfig files and version information written to binary files.
 */
#define GIT_VERSION VERSION_TAG ""

It looks correct as VERSION_TAG is defined to "256" in config.h.

Are you using the same meson version as the book (1.4.1)?

It would depend on what systemd parts you build; in my build the first error occurs in src/boot/efi/boot.c.

LFS and BLFS don't have packages to support systemd-boot, thus this file shouldn't be compiled at all.

Version 0, edited 5 months ago by Xi Ruoyao (next)

comment:6 by Bruce Dubbs, 5 months ago

Resolution: fixed
Status: newclosed

Fixed at commit 58180415d.

Note: See TracTickets for help on using tickets.