qLinux
… a distribution study


<< Prev
Bzip

Next >>
Zstd


Xz-5.2.5

Reference: 8.8. Xz-5.2.5. Fix the build system with all related occurrences of  /bin/sh  and  dev/null  in configure, build.aux/config.guess and po/Makefile.in.in by applying a patch:

patch -Np1 -i xz-5.2.5-qlnx-20220201.patch

Next run configure:

./configure --prefix=/qlnx \
            --localedir=/qlnx/dat/locale \
            --mandir=/qlnx/man \
            --includedir=/qlnx/inc \
            --docdir=/tmp

–docdir=/tmp
        Do not install any extra documentation.

The configure step creates it own  libtool  script which requires to fix all occurrences of  /dev/null  in it. Run the following command to fix this:

sed -i 's|/dev/null|/qlnx/dev/null|g' libtool

Build the package:

make

Verify the correct loader:

$> readelf -l src/xz/.libs/xz | grep ld
make install

Fix  /dev/null  in some installed files:

sed -i 's|/dev/null|/qlnx/dev/null|g' /qlnx/bin/xzdiff /qlnx/bin/xzgrep /qlnx/bin/xzmore

<< Prev
Bzip

        

Next >>
Zstd