From b12b2c6f7321f80c2660c7a22bbfc8ef1c4c513f Mon Sep 17 00:00:00 2001 From: Thomas Trepl Date: Tue, 14 Jan 2025 21:27:22 +0100 Subject: [PATCH] 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 .. + + + + + + Installation of dbus - 32-bit + + Clean previous build: + +rm -rf * + + Prepare dbus for compilation: + +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 .. + + Compile the package: + +ninja + + Install the package: + +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/ + + + + + + + + + Installation of dbus - x32-bit + + Clean previous build: + +rm -rf * + + Prepare dbus for compilation: + +PKG_CONFIG_PATH="/usr/libx32/pkgconfig" \ +CC="gcc -mx32" \ +CXX="g++ -mx32" \ +meson setup --prefix=/usr --libdir=/usr/libx32 --buildtype=release --wrap-mode=nofallback .. + + Compile the package: + +ninja + + Install the package: + +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/ + + + Contents of D-Bus