102.4. libvmdk-20260714
VMware Virtual Disk (VMDK) image library, vmdkinfo and vmdkmount
| Version | 20260714, release 1 |
| Shelf | security — Security applications: GnuPG and front-ends, password and secret managers, certificates, scanners, forensics and audit |
| Phase | 41_system (System), 928 of 1047 in build order |
| Licence | LGPL-3.0-or-later |
| Homepage | https://github.com/libyal/libvmdk |
| Build time | 0.5 SBU |
| Installed size | 1.5 MiB in 18 files |
| Recipe | ports/core/security/libvmdk/kpkgbuild |
About
libvmdk reads VMware’s virtual disk images: flat (raw) and sparse VMDK extents, COWD sparse extents, delta links between a disk and its parent, and compressed grains. The package holds the library, vmdkinfo, which prints an image’s descriptor and extents, and vmdkmount, which presents the disk as a raw file through FUSE. sleuthkit links it to open .vmdk images directly. It is a libyal library, built the same way as libewf, libvhdi and libvslvm.
Sources
libvmdk-20260714.tar.gz(1.5 MiB)
sha2568f429818aac09bd0457e6f550d39e705787856f7523d7b3c82caa8ee759678b1
upstream: https://github.com/libyal/libvmdk/releases/download/20260714/libvmdk-alpha-20260714.tar.gz
archive copy: sources-4/security--libvmdk-20260714.tar.gz
Dependencies
Depends on: pkgconf, zlib, libbfio, fuse.
Required by (1): sleuthkit.
Optional, off in KDOS
These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.
--disable-python, line 18: python3 (explained with the switches below)
Installation
From the repository root, inside the build container, this is the line kdosbuild runs for the port:
script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install libvmdk'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/security/libvmdk.
1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.
cd /ports/core/security/libvmdk
echo '8f429818aac09bd0457e6f550d39e705787856f7523d7b3c82caa8ee759678b1 libvmdk-20260714.tar.gz' | sha256sum -c -
2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.
SRC_ROOT=/var/cache/kpkg/work/libvmdk
SRC=$SRC_ROOT/libvmdk-20260714
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf libvmdk-20260714.tar.gz -C "$SRC" --strip-components=1
Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.
3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:
./configure \
--prefix=/usr \
--libdir=/usr/lib \
--disable-static \
--disable-nls \
--disable-rpath \
--disable-python \
--enable-multi-threading-support \
--with-pthread \
--with-libbfio \
--with-libfuse \
--with-libcerror=no \
--with-libcthreads=no \
--with-libcdata=no \
--with-libclocale=no \
--with-libcnotify=no \
--with-libcsplit=no \
--with-libuna=no \
--with-libcfile=no \
--with-libcpath=no \
--with-libfcache=no \
--with-libfvalue=no \
--with-zlib \
--with-libfdata=no
for have in HAVE_MULTI_THREAD_SUPPORT HAVE_LIBBFIO HAVE_LIBFUSE3 HAVE_ZLIB; do
if ! grep -q "^#define $have 1" common/config.h; then
echo "libvmdk: configure did not find $have" >&2
exit 1
fi
done
make
make DESTDIR=$PKG install
The switches, and why each is set:
--with-libbfio— Link the libbfio port for file input and output, instead of the copy of libbfio the tarball carries; the check afterconfigurefails the build unless it was found.--with-libcerror=no,--with-libcthreads=no,--with-libcdata=no,--with-libclocale=no,--with-libcnotify=no,--with-libcsplit=no,--with-libuna=no,--with-libcfile=no,--with-libcpath=no,--with-libfcache=no,--with-libfvalue=no,--with-libfdata=no— For each of these libyal support libraries, “no” means “use the local version”: the copy in the release tarball is compiled in. None of them is a port, and without the switch configure would link any copy it found installed instead.--with-zlib— Read the deflate-compressed grains of a VMDK with zlib.--with-libfuse— Buildvmdkmounton fuse, which is libfuse 3; this release’s mount tool supports libfuse 3 itself.--enable-multi-threading-support,--with-pthread— Build the thread-safe library on POSIX threads.--disable-rpath— Link the tools without anRPATHto/usr/lib.--disable-python— Build nopyvmdkmodule; upstream’s default.
The common switches of each build system are explained in the Flag glossary.
4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/libvmdk, prunes what the image does not ship, lints the tree and rolls it reproducibly:
tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
--mtime=@$SOURCE_DATE_EPOCH \
--use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
-cf libvmdk-20260714-1.tar.xz -C "$PKG" .
5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/libvmdk, and runs the triggers its paths call for.
Contents
Installed programs: vmdkinfo, vmdkmount.
Installed libraries: libvmdk.so.
Installed directories: /usr/include/libvmdk, /usr/share/licenses/libvmdk.
Short descriptions
vmdkinfo |
determines information about a VMware Virtual Disk (VMDK) file |
vmdkmount |
mounts a VMware Virtual Disk (VMDK) image file |
libvmdk.pc |
Library to access the VMware Virtual Disk (VMDK) format |
Notes
The loop after configure reads common/config.h and stops the build unless multi-threading, libbfio, libfuse 3 and zlib were all found. configure treats each as optional and would otherwise build without it and say nothing.