[lfs] branch multilib updated: Build lib{,x}32 version of dbus

"Git Owner" ([email protected] via lfs-book Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.book
Message-ID <173688646106.27364.10974081327225582420@rivendell.linuxfromscratch.org>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch multilib
in repository lfs.

The following commit(s) were added to refs/heads/multilib by this push:
     new b12b2c6f7 Build lib{,x}32 version of dbus
b12b2c6f7 is described below

commit b12b2c6f7321f80c2660c7a22bbfc8ef1c4c513f
Author: Thomas Trepl <[email protected]>
AuthorDate: Tue Jan 14 21:27:22 2025 +0100

    Build lib{,x}32 version of dbus
---
 chapter08/dbus.xml | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 62 insertions(+)

diff --git a/chapter08/dbus.xml b/chapter08/dbus.xml
index 086b30b93..a8c915135 100644
--- a/chapter08/dbus.xml
+++ b/chapter08/dbus.xml
@@ -92,6 +92,68 @@ meson setup --prefix=/usr --buildtype=release --wrap-mode=nofallback ..</userinp
 
   </sect2>
 
+  <!-- - - - - - - - - - -->
+  <!-- Multilib - 32bit  -->
+  <!-- - - - - - - - - - -->
+
+  <sect2 arch="ml_32,ml_all" role="installation">
+    <title>Installation of dbus - 32-bit</title>
+
+    <para>Clean previous build:</para>
+
+<screen><userinput remap="pre">rm -rf *</userinput></screen>
+
+    <para>Prepare dbus for compilation:</para>
+
+<screen><userinput remap="configure">PKG_CONFIG_PATH="/usr/lib32/pkgconfig" \
+CC="gcc -m32 -march=i686"              \
+CXX="g++ -m32 -march=i686"             \
+meson setup --prefix=/usr --libdir=/usr/lib32 --buildtype=release --wrap-mode=nofallback ..</userinput></screen>
+
+    <para>Compile the package:</para>
+
+<screen><userinput remap="make">ninja</userinput></screen>
+
+    <para>Install the package:</para>
+
+<screen><userinput remap="install">DESTDIR=$(pwd)/destdir ninja install
+mkdir -pv /usr/lib32/pkgconfig
+cp -av $(pwd)/destdir/usr/lib32/libdbus-1.so* /usr/lib32/
+cp -v  $(pwd)/destdir/usr/lib32/pkgconfig/dbus-1.pc /usr/lib32/pkgconfig/</userinput></screen>
+
+  </sect2><!-- m32 -->
+
+  <!-- - - - - - - - - - -->
+  <!-- Multilib - x32bit -->
+  <!-- - - - - - - - - - -->
+
+  <sect2 arch="ml_x32,ml_all" role="installation">
+    <title>Installation of dbus - x32-bit</title>
+
+    <para>Clean previous build:</para>
+
+<screen><userinput remap="pre">rm -rf *</userinput></screen>
+
+    <para>Prepare dbus for compilation:</para>
+
+<screen><userinput remap="configure">PKG_CONFIG_PATH="/usr/libx32/pkgconfig" \
+CC="gcc -mx32"                          \
+CXX="g++ -mx32"                         \
+meson setup --prefix=/usr --libdir=/usr/libx32 --buildtype=release --wrap-mode=nofallback ..</userinput></screen>
+
+    <para>Compile the package:</para>
+
+<screen><userinput remap="make">ninja</userinput></screen>
+
+    <para>Install the package:</para>
+
+<screen><userinput remap="install">DESTDIR=$(pwd)/destdir ninja install
+mkdir -pv /usr/libx32/pkgconfig
+cp -av $(pwd)/destdir/usr/libx32/libdbus-1.so* /usr/libx32/
+cp -v  $(pwd)/destdir/usr/libx32/pkgconfig/dbus-1.pc /usr/libx32/pkgconfig/</userinput></screen>
+
+  </sect2><!-- mx32 -->
+
   <sect2 id="contents-dbus" role="content">
     <title>Contents of D-Bus</title>
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.