qLinux
… a distribution study


<< Prev
Procps-ng-3.3.17

Next >>
E2fsprogs-1.46.4


Util-linux-2.37.2

Reference: 8.72. Util-linux-2.37.2. Fix the build system:

patch -Np1 -i util-linux-2.37.2-bld-20220303.patch

Apply a patch to fit qLinux1)2):

patch -Np1 -i util-linux-2.37.2-bld-20220322.patch
./configure ADJTIME_PATH=/qlnx/var/adjtime   \
            --prefix=/qlnx \
            --sysconfdir=/qlnx/etc \
            --includedir=/qlnx/inc \
            --mandir=/qlnx/man \
            --datarootdir=/qlnx/dat \
            --docdir=/tmp \
            --infodir=/tmp \
            --enable-fs-paths-extra=/qlnx/bin \
            --disable-chfn-chsh \
            --disable-login \
            --disable-nologin \
            --disable-su \
            --disable-setpriv \
            --disable-runuser \
            --disable-pylibmount \
            --disable-utmpdump \
            --disable-static \
            --without-python \
            --without-udev \
            --without-systemd \
            --without-systemdsystemunitdir \
            --runstatedir=/qlnx/run

–enable-fs-paths-extra=/qlnx/bin
    Make sure  mount  finds the mount.<helper> programs (they will not be in  /sbin )

–disable-utmpdump
    In qLinux (and musl libc) there is no wtmp/utmp.

Build and install util-linux:

make
make install

Change the mode of the admin executable and move them to  /qlnx/bin :

chmod 0754 qlnx/sbin/*
mv /qlnx/sbin/* /qlnx/bin
rmdir /qlnx/sbin

Move the pkg-config files the libs to pkg-config's default (search) directory3):

mv blkid.pc fdisk.pc mount.pc smartcols.pc uuid.pc /plng/lib/pkgconfig

Installed Files

sbin: addpart blkzone ctrlaltdel fsck fstrim mkfs mkswap resizepart sulogin switch_root agetty blockdev delpart fsck.cramfs hwclock mkfs.bfs partx rfkill swaplabel uuidd blkdiscard cfdisk fdisk fsck.minix ldattach mkfs.cramfs pivot_root rtcwake swapoff wipefs blkid chcpu findfs fsfreeze losetup mkfs.minix readprofile sfdisk swapon zramctl


<< Prev
Procps-ng-3.3.17

        

Next >>
E2fsprogs-1.46.4

1)
todo: check/review directories in  whereis.c 
2)
a decision what's with  /etc/default  is open (same like in shadow
3)
this will be done in a later release via Makefile variable