Re: Systemd Multilib build success
| Newsgroups | gmane.linux.lfs.automated |
|---|---|
| Message-ID | <CAAGwWFV5onMvdEbctFzQKDAQzjyA8MkBeowpRyCQXA7zXsE7fA@mail.gmail.com> |
On Sat, Dec 28, 2024 at 10:19 PM Eric Clothier <[email protected]> wrote: > On Mon, Dec 23, 2024, 21:49 Eric Clothier <[email protected]> wrote: > >> On Mon, Dec 23, 2024 at 5:53 PM Eric Clothier <[email protected]> >> wrote: >> >>> On Mon, Dec 23, 2024, 16:49 Thomas Trepl <[email protected]> >>> wrote: >>> >>>> Am Montag, dem 23.12.2024 um 00:14 -0500 schrieb Eric Clothier: >>>> > On Sun, Dec 22, 2024 at 11:07 PM Eric Clothier < >>>> [email protected]> wrote: >>>> > > ... >>>> > > >>>> > > Thomas, I have a patch that I am currently testing to update the >>>> systemd build instructions. Once I can verify the build completed and is >>>> bootable, I will send the patch. I addressed the issues Xi raised, aside >>>> from the CFLAGS/CXXFLAGS, as those are on the mx32 builds only and I >>>> haven't gotten to that point yet. I also updated the meson switches from >>>> -Dxxx to -D xxx style, and switched to meson setup invocation, to match the >>>> non-multilib instructions. And I removed some duplicated/deprecated >>>> switches as well. >>>> > > >>>> > > -- >>>> > > Eric >>>> > > >>>> > >>>> > >>>> > Attached is the patch I mentioned in my last email. As I stated, it >>>> only contains fixes for the m32 build, NOT for mx32, as I have not had the >>>> chance to do an mx32 build yet. I can confirm that the build is successful >>>> with this patch, and the system is bootable. I have NOT tested any linking >>>> to the lib32 systemd build, as I have not used any m32 specific software >>>> with this build as of yet. I matched the format and switches from the >>>> non-multilib build and from other lib32 builds throughout the book. The >>>> patch can be applied with git am. >>>> > >>>> > -- >>>> > Eric >>>> > > > >>>> Thanks Eric, i applied the patch to ML/systemd and adopted the >>>> instructions >>>> to mx32, too. Removed the xslt thing completely, it seem s indeed >>>> obsolete. >>>> >>>> Thanks again, >>>> >>>> -- >>>> Thomas >>>> >>> No problem Thomas. I just adapted the instructions to mx32 as well and >>> started the build up from my last lfs build. I went ahead and removed the >>> CFLAGS/CXXFLAGS as well, I will let you know if it breaks anything on mx32. >>> Also, after I sent the patch, I remembered that util-linux does link >>> against the m32/mx32 libs of systemd. So I can confirm that the m32 changes >>> did indeed work properly. As I said, I'll report back on mx32 once the >>> build finishes and I can verify it boots properly. >>> >>> -- >>> Eric >>> >> Just verified that the ml_all build was a success, and does boot >> successfully. Removing the CFLAGS/CXXFLAGS and fixing the meson switches >> for mx32 had no negative impact that I have seen. I will attach my SBU_DU >> report, along with the final patch I created to fix the mx32 side of the >> build. >> > > In further testing of the ml_all build, I did run into a slight issue with > the updated systemd instructions. In addition to the libsystemd.so* and > libudev.so*, some packages also expect the pkg_config .pc files to be in > /usr/lib{x}32/pkgconfig. Without the .pc files, it tries to link on the > x86_64 lib and fails due to differing instruction sets. I'm going to put > together a patch for that quick change tomorrow, and I will pass it along > once it's tested. > > -- > Eric > >> -- >> Eric >> > Attached is the patch to make sure the m32/mx32 pkgconfig files get installed during the systemd multilib build. I am currently testing the build, but it was a fairly minor change (add in a cp -v DESTDIR/usr/lib{x}32/pkgconfig/* /usr/lib{x}32/pkgconfig/), so I feel confident in passing it along. -- Eric -- http://lists.linuxfromscratch.org/sympa/info/alfs-discuss Unsubscribe: See the above information page
0001-systemd-multilib-properly-install-pkgconfig-files-fr.patch
(text/x-patch, 1.8 KB)
From 9086d487b275bea33afbbfef510e2539ffe5e0db Mon Sep 17 00:00:00 2001 From: Eric Clothier <[email protected]> Date: Sun, 29 Dec 2024 11:30:07 -0500 Subject: [PATCH 1/1] systemd-multilib: properly install pkgconfig files from systemd previous instructions only copied out libsystemd.so* and libudev.so* for the m32/mx32 builds, as those are the only libs needed. however, some packages complain if the .pc pkgconfig files do not get installed properly, and ultimately try to link against the x86_64 build, as that is the only .pc files found. remedy that by copying out all files in DESTDIR/usr/lib{x}32/pkgconfig to /usr/lib{x}32/pkgconfig --- chapter08/systemd.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chapter08/systemd.xml b/chapter08/systemd.xml index b5949e93b..20f5e53ae 100644 --- a/chapter08/systemd.xml +++ b/chapter08/systemd.xml @@ -326,10 +326,12 @@ meson setup .. \ <!-- Only install needed libs from lib32 as opposed to installing all libs Needed libs: libudev.so* - libsystemd.so*--> + libsystemd.so* + Also install pkgconfig files --> <screen><userinput remap="install">LANG=en_US.UTF-8 DESTDIR=$PWD/DESTDIR ninja install cp -v DESTDIR/usr/lib32/libsystemd.so* /usr/lib32/ cp -v DESTDIR/usr/lib32/libudev.so* /usr/lib32/ +cp -v DESTDIR/usr/lib32/pkgconfig/* /usr/lib32/pkgconfig/ rm -rf DESTDIR</userinput></screen> </sect2><!-- m32 --> @@ -381,6 +383,7 @@ meson setup .. \ <screen><userinput remap="install">LANG=en_US.UTF-8 DESTDIR=$PWD/DESTDIR ninja install cp -v DESTDIR/usr/libx32/libsystemd.so* /usr/libx32/ cp -v DESTDIR/usr/libx32/libudev.so* /usr/libx32/ +cp -v DESTDIR/usr/libx32/pkgconfig/* /usr/libx32/pkgconfig/ rm -rf DESTDIR</userinput></screen> </sect2><!-- mx32 --> -- 2.43.0