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
libisoburn-1.5.8.pl02.tar.gz(1.7 MiB)
sha256a977b03dc3686d9fdca600458b1578f9cac2b875609bd5ec21f5ada55f20ec50
upstream: https://files.libburnia-project.org/releases/libisoburn-1.5.8.pl02.tar.gz
archive copy: sources-3/optical--libisoburn-1.5.8.pl02.tar.gz
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.
--disable-libedit, line 15: libedit (explained with the switches below)--disable-libcdio, line 19: libcdio (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 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:
--disable-debug— Upstream’s configure defaults to a debug build, which adds-g -pedantic -Wall -Wextraand-DDEBUG. Disabling it adds-DNDEBUG,-fexpensive-optimizationsand an-O3that sits in front of the tree’sCFLAGS, so the tree’s later-O2is the level that applies. The libburn and libisofs ports pass the same switch.--enable-libreadline— Givexorriso’s interactive dialog mode line editing and history with readline. The probe falls back without an error when readline is missing, so readline independsis what keeps it.--disable-libedit— Do not fall back to libedit when readline is not found.--enable-libacl— Link acl into libisoburn andxorriso. The probe also defines a macro that no source in this package reads: recording POSIX ACLs in an image and restoring them on extraction is done inside libisofs, and comes from that port’s own--enable-libacl.--enable-zlib— Link zlib into libisoburn andxorriso, the same way. The zisofs and gzip content filters, which compress a file inside the image, are libisofs’s, and come from that port’s own--enable-zlib.--disable-libjte— Build without libjte, which writes the Jigdo template and checksums of an image as it is made. libjte is not in the tree; libisofs is built--disable-libjteas well.--disable-libcdio— Drive optical drives through libburn’s own Linux SCSI code rather than libcdio. It is upstream’s default on Linux; libburn is built with the same switch.--enable-external-filters— Compile in-external_filter, which registers a program such asbzip2to transform file content on its way into the image. It is upstream’s default, and the command stays banned whenxorrisoruns setuid.--enable-launch-frontend— Compile in-launch_frontend, which starts a front end program, such as the installedxorriso-tcltk, connected toxorrisoover two pipes. It is upstream’s default, and banned under setuid as well.-j1— Run the install with one job, overriding the tree’s parallelMAKEFLAGSfor that one invocation, as the libburn and libisofs ports do; see A parallel install race.
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.