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

100.7. dvd+rw-tools-7.1

growisofs and friends — DVD and Blu-ray writing, formatting and media inspection

Version 7.1, release 1
Shelf optical — CD, DVD and Blu-ray burning, mastering and CD reading or ripping
Phase 41_system (System), 842 of 1047 in build order
Licence GPL-2.0-only
Homepage https://fy.chalmers.se/~appro/linux/DVD+RW/
Build time 0.1 SBU
Installed size 361.4 KiB in 7 files
Recipe ports/core/optical/dvd+rw-tools/kpkgbuild

About

dvd+rw-tools writes, formats and inspects DVD and Blu-ray discs. growisofs burns a disc, either from an image or by running mkisofs and writing its output as it is produced; dvd+rw-format, dvd+rw-booktype, dvd+rw-mediainfo and dvd-ram-control format media, set its book type, report what is in the drive and control DVD-RAM drives. k3b and brasero run growisofs to write DVDs. The mkisofs it runs is the link to xorriso that libisoburn installs.

Sources

Dependencies

Depends on: m4, perl.

Required by (2): brasero, k3b.

Patches

build.sh applies these; kpkg applies nothing by itself.

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 dvd+rw-tools'

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/optical/dvd+rw-tools.

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/dvd+rw-tools
echo 'f8d60f822e914128bcbc5f64fbe3ed131cbff9045dca7e12c5b77b26edde72ca  dvd+rw-tools-7.1.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/dvd+rw-tools
SRC=$SRC_ROOT/dvd+rw-tools-7.1
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf dvd+rw-tools-7.1.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:

patch -p1 -i "$PORT_SRC/fix-sysmacros-header.patch"
patch -p1 -i "$PORT_SRC/transport.hxx.patch"

make

install -Dm755 growisofs dvd+rw-format dvd+rw-booktype dvd+rw-mediainfo \
	dvd-ram-control -t "$PKG/usr/bin"
install -Dm644 growisofs.1 -t "$PKG/usr/share/man/man1"

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/dvd+rw-tools, 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 dvd+rw-tools-7.1-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/dvd+rw-tools, and runs the triggers its paths call for.

Contents

Installed programs: dvd+rw-booktype, dvd+rw-format, dvd+rw-mediainfo, dvd-ram-control, growisofs.

Installed directories: /usr/share/licenses/dvd+rw-tools.

Short descriptions

growisofs combined mkisofs frontend/DVD recording program.

Notes

There is no configure step. The top-level Makefile pipes Makefile.m4 through m4, with the operating system’s name from uname -s, into a second make that builds the programs, so m4 is in depends. perl is the interpreter of genasctable.pl, the rule that regenerates asctable.h from keys.txt. The tarball’s asctable.h is a second newer than keys.txt, so the rule runs only when keys.txt changes. The Linux section of Makefile.m4 sets CC = gcc and CXX = g++ outright and appends its flags to CFLAGS and CXXFLAGS, so the build takes the tree’s compiler flags but not a different compiler named in $CC.

The upstream install target has no DESTDIR and copies straight into $(prefix), so build.sh installs the five programs and growisofs.1 into $PKG itself.