build-bootenv

reproducible boot environment with LVM2 and cryptsetup
git clone https://ccx.te2000.cz/git/build-bootenv
Log | Files | Refs | Submodules

lvm (1982B)


      1 [mirrors]
      2 ftp://sources.redhat.com/pub/lvm2/releases/LVM2.2.02.168.tgz
      3 http://mirrors.kernel.org/sources.redhat.com/lvm2/releases/LVM2.2.02.168.tgz
      4 ftp://mirrors.kernel.org/sources.redhat.com/lvm2/releases/LVM2.2.02.168.tgz
      5 
      6 [vars]
      7 filesize=2159438
      8 sha512=ebff909e1c81919967373c55c7a95ba13ef4e0536b8ef1c28ed7e1c1eb9b9fd406a649d93b141822b24675ebece5a722247737c4e869fb7fb5eeb881a7f9102d
      9 pkgver=5
     10 
     11 [deps]
     12 kernel-headers
     13 
     14 [deps.host]
     15 9base
     16 
     17 [build]
     18 for i in stdio mallinfo libdir-config mlockall-config ; do
     19 	echo lvm2-$i.patch
     20 	patch -p1 < "$K"/lvm2-$i.patch
     21 done
     22 
     23 [ -n "$CROSS_COMPILE" ] && \
     24   xconfflags="--host=$($CC -dumpmachine)"
     25 
     26 ./configure -C --prefix="$butch_prefix" $xconfflags \
     27   --sbindir="$butch_prefix"/bin \
     28   --with-optimisation="$optcflags $optldflags" \
     29   --disable-readline \
     30   --with-thin=internal \
     31   --with-thin-check=/bin/thin_check \
     32   --with-thin-dump=/bin/thin_dump \
     33   --with-thin-repair=/bin/thin_repair \
     34   --with-thin-restore=/bin/thin_restore \
     35   --disable-thin-check-needs-check \
     36   --with-cache=internal \
     37   --with-cache-check=/bin/cache_check \
     38   --with-cache-dump=/bin/cache_dump \
     39   --with-cache-repair=/bin/cache_reparir \
     40   --with-cache-restore=/bin/cache_restore \
     41   --disable-cache-check-needs-check \
     42   --with-default-locking-dir=/run/lock/lvm \
     43   --enable-static_link
     44 
     45 # since musl's BRE regex engine is now sufficiently glibc-compatible,
     46 # the versioning nonsense in the .export.sym linker script is now correctly
     47 # generated. needs rebuild of busybox against latest musl.
     48 
     49 # there is something fishy with install-sh, however it seems to work anyway:
     50 # http://www.redhat.com/archives/linux-lvm/2013-January/msg00038.html
     51 
     52 # make doesnt work, only make install does
     53 make -j$MAKE_THREADS DESTDIR="$butch_install_dir" install
     54 # replace dynamic binaries with static versions
     55 dest="$butch_install_dir""$butch_prefix"
     56 for i in lvm dmsetup ; do
     57 mv "$dest"/sbin/$i.static "$dest"/bin/"$i"
     58 ln -sf $i "$dest"/bin/"$i".static
     59 done
     60 rm -rf "$dest"/sbin