Re: Building util-linux libraries and utilities as separated operations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 06, 2019 at 10:22:51AM -0300, Carlos A. M. dos Santos wrote:
> Would it be possible to build/install the libraries first and the
> utilities later, using the previously installed libraries? That would
> help to solve a chicken-egg problem between lsblk, and libudev, as
> described in
> 
>     https://bugs.busybox.net/show_bug.cgi?id=11811

 It always uses in-tree libs to compile in-tree utilities. 

 Anyway, all external dependencies are optional. For example you can
 compile lsblk without udev. It's also possible to specify wanted stuff, 
 for example:

     ./configure --disable-all-programs --enable-libmount \
                 --enable-libblkid --enable-libuuid

 to compile only libs.

 The best way is probably do it in two steps, in the first step
 without dependencies, and in the second step rebuild all with
 dependencies. For example:

 stage 1:
    ./configure  --without-ncurses --without-tinfo \
                 --without-python --without-systemd \
                 --without-udev

    make install

    ... compile udev, install libudev ... 

 stage 2:
    ./configure
    make install


 If I good remember distro bootstrap with util-linux is nothing unique
 and it's used by Fedora, Suse, linuxfromscratch.org, ...


 IMHO distro bootstrap is very special situation. For regular updates
 is probably better to build util-linux in build root where are
 already installed all dependencies (e.g. libudev) from previous
 versions.

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux