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

234.2. brasero-3.12.3

GNOME disc burner and copier — data, audio and video CDs and DVDs

Version 3.12.3, release 1
Shelf optical — CD, DVD and Blu-ray burning, mastering and CD reading or ripping
Phase 43_toolkits (Toolkits), 241 of 344 in build order
Licence GPL-2.0-or-later
Homepage https://gitlab.gnome.org/GNOME/brasero
Build time 2.3 SBU
Installed size 4.6 MiB in 306 files
Recipe ports/core/optical/brasero/kpkgbuild

About

Brasero is GNOME’s disc burner, a GTK 3 application: it writes data, audio and video CDs and DVDs, burns image files, and copies discs. It does no burning itself. Each way of writing a disc is a plugin under /usr/lib/brasero3/plugins, which either links a burning library or runs a burning program, and Brasero picks among the plugins that are present. K3b and xfburn are the tree’s other burners.

Sources

Dependencies

Depends on: pkgconf, intltool, itstool, gettext, perl-xml-parser, glib, gtk3, gstreamer, gst-plugins-base, gst-plugins-good, libxml2, libX11, libSM, libICE, libnotify, libcanberra, libburn, libisofs, totem-pl-parser, cdrdao, dvd+rw-tools.

Required by (1): rhythmbox.

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/43_toolkits/phase.env && kpkg install brasero'

What kpkg does

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

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/brasero
echo '87749eae33a141207d1b00be233b6d8045982ed3249ed4b98dae1f3a975fea15  brasero-3.12.3.tar.xz' | 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/brasero
SRC=$SRC_ROOT/brasero-3.12.3
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf brasero-3.12.3.tar.xz -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/gcc14.patch"

./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --disable-static \
	--enable-libburnia \
	--enable-cdrdao \
	--enable-growisofs \
	--disable-cdrtools \
	--disable-cdrkit \
	--enable-playlist \
	--enable-preview \
	--enable-inotify \
	--disable-search \
	--disable-nautilus \
	--enable-introspection=no \
	--disable-gtk-doc \
	--disable-caches
make
make DESTDIR=$PKG install

find "$PKG/usr/share/help" -mindepth 1 -maxdepth 1 ! -name C -exec rm -rf {} +

cat > "$PKG/usr/share/applications/brasero.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=Disc Burner (Brasero)
GenericName=Disc Burner and Copier
Comment=Create and copy CDs and DVDs
TryExec=brasero
Exec=env GDK_BACKEND=x11 brasero %U
Icon=brasero
Terminal=false
StartupNotify=true
StartupWMClass=Brasero
Categories=GTK;AudioVideo;DiscBurning;
Keywords=disc;cdrom;dvd;burn;audio;video;copy;brasero;
Actions=Image;Disc;Audio;

[Desktop Action Image]
Name=Burn an Image File
Exec=env GDK_BACKEND=x11 brasero --image

[Desktop Action Disc]
Name=Copy a Disc
Exec=env GDK_BACKEND=x11 brasero --copy

[Desktop Action Audio]
Name=Create an Audio Project
Exec=env GDK_BACKEND=x11 brasero --audio
DESKTOP
chmod 644 "$PKG/usr/share/applications/brasero.desktop"

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/brasero, 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 brasero-3.12.3-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/brasero, and runs the triggers its paths call for.

Contents

Installed programs: brasero.

Installed libraries: libbrasero-burn3.so, libbrasero-media3.so, libbrasero-utils3.so.

Installed directories: /usr/include/brasero3, /usr/lib/brasero3, /usr/share/brasero, /usr/share/gtk-doc/html/libbrasero-burn, /usr/share/gtk-doc/html/libbrasero-media, /usr/share/help/C/brasero, /usr/share/licenses/brasero.

Short descriptions

brasero Simple and easy to use CD/DVD burning application for the Gnome Desktop
libbrasero-burn3.pc Brasero Optical Media Burning library
libbrasero-media3.pc Brasero Optical Media library

Notes

build.sh writes its own brasero.desktop over upstream’s. Every Exec line, the main one and the three actions (burn an image, copy a disc, start an audio project), runs Brasero with GDK_BACKEND=x11, so it runs under Xwayland: its dialogs and its video preview take X11 window ids.

The translated help under /usr/share/help is removed; only the C original ships.