A website documenting creating the build root for MidgardOS
| Navigation | ||
|---|---|---|
| « GNU Diffutils | HOME | GNU Findutils » |
Name: File
Summary: A tool to determine the type of a file from heuristics
License: BSD 2-Clause
Version: 5.46
URL: http://ftp.astrom.com/pub/file/file-5.46.tar.xz
Unfortunately, File requires being built twice to ensure the “magic” signatures files are generated correctly. To do the first-pass build, run the following commands inside the unpacked source tree:
mkdir build
pushd build
../configure --libdir=/usr/lib64 \
--disable-bzlib \
--disable-libseccomp \
--disable-xzlib \
--disable-zlib
make
popd
To configure File for install into the build root, run the following command:
./configure \
--prefix=/usr \
--libdir=/usr/lib64 \
--host=$BRFS_TARGET \
--build=$BRFS_HOST
To compile File, run the following command:
make FILE_COMPILE=$(pwd)/build/src/file
Finally, to install File into the build tree, run the following command:
make DESTDIR=$BRFS install
More details about this package is covered later in the core system build.
| Navigation | ||
|---|---|---|
| « GNU Diffutils | HOME | GNU Findutils » |