Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

100.3. libisoburn-1.5.8.pl02

Frontend for libburn and libisofs which enables creation and expansion of ISO-9660 filesystems

Version 1.5.8.pl02, release 2
Shelf optical — CD, DVD and Blu-ray burning, mastering and CD reading or ripping
Phase 41_system (System), 838 of 1047 in build order
Licence GPL-2.0-or-later
Homepage https://libburnia-project.org/
Build time 0.4 SBU
Installed size 4.7 MiB in 27 files
Recipe ports/core/optical/libisoburn/kpkgbuild

About

libisoburn joins libisofs, which lays out an ISO 9660 file system, and libburn, which drives an optical drive, into one library, and installs xorriso on top of them: a single program that builds, extends and burns ISO images, with xorrisofs, xorrecord and osirrox as its other personalities.

KDOS needs it twice. The image step, script/phases/70_image/110_iso.sh, runs xorriso -as mkisofs to write kdos.iso, the hybrid image that boots from optical media and from a USB stick (Packaging: 70_image), and kdos rebuild checks for xorriso before it promises an ISO. On the desktop, k3b runs mkisofs from $PATH to build a data image.

build.sh adds mkisofs and genisoimage as links to xorriso. Started under one of those names, xorriso reads .mkisofsrc and takes its arguments in mkisofs style, so a program that expects cdrtools’ or cdrkit’s command finds a compatible one.

Sources

Dependencies

Depends on: libburn, libisofs, zlib, readline, acl.

Required by (3): k3b, nbdkit, virt-manager.

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.

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 libisoburn'

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/optical/libisoburn.

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/optical/libisoburn
echo 'a977b03dc3686d9fdca600458b1578f9cac2b875609bd5ec21f5ada55f20ec50  libisoburn-1.5.8.pl02.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/libisoburn
SRC=$SRC_ROOT/libisoburn-1.5.8.pl02
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf libisoburn-1.5.8.pl02.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 \
	--disable-debug \
	--enable-libreadline \
	--disable-libedit \
	--enable-libacl \
	--enable-zlib \
	--disable-libjte \
	--disable-libcdio \
	--enable-external-filters \
	--enable-launch-frontend
make
make -j1 DESTDIR=$PKG install

ln -s xorriso "$PKG/usr/bin/mkisofs"
ln -s xorriso "$PKG/usr/bin/genisoimage"

The switches, and why each is set:

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/libisoburn, 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 libisoburn-1.5.8.pl02-2.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/libisoburn, and runs the triggers its paths call for.

Contents

Installed programs: genisoimage, mkisofs, osirrox, xorrecord, xorriso, xorriso-dd-target, xorriso-tcltk, xorrisofs.

Installed libraries: libisoburn.a, libisoburn.so.

Installed directories: /usr/include/libisoburn, /usr/share/licenses/libisoburn.

Short descriptions

xorrecord Emulation of CD/DVD/BD program cdrecord by program xorriso
xorriso creates, loads, manipulates and writes ISO 9660 filesystem images with Rock Ridge extensions.
xorriso-dd-target Device evaluator and disk image copier for GNU/Linux
xorriso-tcltk Educational GUI frontend for xorriso
xorrisofs Emulation of ISO 9660 program mkisofs by program xorriso
libisoburn-1.pc Multi-session filesystem extension to libisofs, libburn.

Notes

The readline probe switches line editing off without a word when the library is missing, so readline in depends is what keeps it: removing it changes the program and the build still succeeds. ACLs and zisofs follow libisofs’s build, not this one’s; removing acl or zlib here only drops a link.

A change to how xorriso lays out the volume is a change to the boot medium. 110_iso.sh checks the finished image for an EFI system partition, an MBR boot signature and a non-empty MBR boot code area after limine bios-install has run, and fails the build if any is missing, because xorriso accepts a boot option it does not implement without an error.