tce-load -i compiletc libbytesize-dev volume_key-dev gobject-introspection-dev mdadm parted-dev util-linux-dev btrfs-progs-dev bash coreutils yaml-dev kmod-dev ndctl-dev

wget https://github.com/storaged-project/libblockdev/releases/download/2.25-1/libblockdev-2.25.tar.gz

cd libblockdev-2.25

find . -name configure -type f -exec sed -i 's/ 216/ 173/g' {} \;

sudo ln -s /tmp/tcloop/nss-dev/usr/local/include/nss/* /usr/local/include

CC="gcc -flto -mtune=generic -Os -pipe" CXX="g++ -flto -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-static --localstatedir=/var --without-dm --without-kbd

Requested 'libudev >= 216' but version of libudev is 173

find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \;

edit scripts/boilerplate_generator.py
#!/usr/local/bin/python

make [0m 25.28s]
make install

               libblockdev 2.25
             ====================

        prefix:                     /usr/local
        libdir:                     ${exec_prefix}/lib
        libexecdir:                 ${exec_prefix}/libexec
        bindir:                     ${exec_prefix}/bin
        sbindir:                    ${exec_prefix}/sbin
        datadir:                    ${datarootdir}
        sysconfdir:                 ${prefix}/etc
        localstatedir:              /var
        docdir:                     ${datarootdir}/doc/${PACKAGE_TARNAME}

        compiler:                   gcc -flto -mtune=generic -Os -pipe
        cflags:                      -std=gnu99
        cppflags:                   
        ldflags:                    

        BTRFS plugin:               yes
        Crypto plugin:              yes
            escrow support:         yes
        DM plugin:                  no
            dmraid support:         yes
        FS plugin:                  yes
        KBD plugin:                 no
            Bcache support:         yes
        Loop plugin:                yes
        LVM plugin:                 yes
        LVM DBus plugin:            yes
        MDRAID plugin:              yes
        MPath plugin                yes
        NVDIMM plugin:              yes
        Part plugin:                yes
        S390 plugin:                no
        Swap plugin:                yes
        VDO plugin (deprecated):    yes

        GObject introspection:      yes
        Python 2 bindings:          no
        Python 3 bindings:          yes
        tools:                      yes
