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
brasero-3.12.3.tar.xz(3.0 MiB)
sha25687749eae33a141207d1b00be233b6d8045982ed3249ed4b98dae1f3a975fea15
upstream: https://download.gnome.org/sources/brasero/3.12/brasero-3.12.3.tar.xz
archive copy: sources-3/optical--brasero-3.12.3.tar.xz
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.
gcc14.patch— upstream’s commit for GCC 14, which treats-Wincompatible-pointer-typesas an error. It casts the plugin list passed togst_install_plugins_async()to theconst gchar *const *the function takes, inbrasero-metadata.candbrasero-pk.c, and inbrasero-drive-properties.cdrops the local variable that storedg_value_get_object()into aBraseroBurnSession *.
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:
--enable-libburnia— the plugins built on libburnia’s libraries: libburn writes the disc and libisofs builds the ISO 9660 image, both in process.--enable-cdrdao— the plugin that runs cdrdao, for writing and copying a CD disc-at-once.--enable-growisofs— the plugins that rungrowisofsanddvd+rw-formatfrom dvd+rw-tools, for DVDs.--disable-cdrtools— with--disable-cdrkit: no plugins forcdrecord,cdda2wav,readcdandmkisofsfrom cdrtools, or forwodim,readomandgenisoimagefrom cdrkit. Neither suite is a port. Upstream’s default builds both.--enable-playlist— the playlist pane, which reads playlists with totem-pl-parser. Upstream’s default: configure builds without the pane, and without an error, when that library is missing, with the switch or without it.--enable-preview— the preview pane, which plays a file through GStreamer’s base plugins. Upstream’s default; without the plugins configure leaves the pane out without an error, as for the playlist.--enable-inotify— watch the files and folders of a data project through inotify, so the project follows changes made to them on disk. Upstream’s default, named.--disable-search— no search pane. It needs Tracker, which is not a port; upstream’s default isauto.--disable-nautilus— no Nautilus extension. Nautilus is not a port, and upstream’s default builds the extension.--enable-introspection=no— no GObject introspection data forlibbrasero-burnandlibbrasero-media, the typelibs that would let another language call them.--disable-caches— do not runupdate-mime-databaseandupdate-desktop-databasefrommake install. Upstream’s rules for both also skip themselves when the staging directory has nofreedesktop.org.xmlordefaults.list; the switch makes that a setting of the recipe rather than a test of what the staging directory holds, and matters most forupdate-desktop-database, which upstream runs on the live system’s database, not the staged one. Upstream’s default runs them. The switch does not reachgtk-update-icon-cache, which upstream’s icon rule skips on its own wheneverDESTDIRis 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.