User Tools

Site Tools


qLinux
… a distribution study


<< Prev
Zstd

Next >>
Readline


File-5.40

Reference: 8.10. File-5.40. Fix the build system:

patch -Np1 -i file-5.40-qlnx-20220202.patch

Run the following command to install 'magic.mgc' directly in  /qlnx/dat  instead of  /qlnxx/dat/misc :

sed -i '/^pkgdatadir/s/\/misc//g' configure

This package builds and installs the common way:

./configure --prefix=/qlnx \
            --includedir=/qlnx/inc \
            --mandir=/qlnx/man \
            --datarootdir=/qlnx/dat 

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, verify and install:

make
readelf -l src/.libs/file | grep ld
make install

Verify that the 'magic' file works after installation:

file /qlnx/bin/bash

From this point on you can use file to check for the dynamic loader:

file /qlnx/bin/file

<< Prev
Zstd

        

Next >>
Readline