294.7. partitionmanager-26.08.2
Partition editor — create, resize, move, copy, check and format partitions and file systems
| Version | 26.08.2, release 1 |
| Shelf | disk — Block devices: partitioning, RAID, LVM, block encryption, SMART, NVMe, recovery, image writing and async I/O |
| Phase | 44_apps (Applications), 62 of 422 in build order |
| Licence | GPL-3.0-or-later AND LGPL-3.0-or-later AND MIT AND CC-BY-4.0 AND GFDL-1.2-or-later AND CC0-1.0 |
| Homepage | https://apps.kde.org/partitionmanager/ |
| Build time | 0.1 SBU |
| Installed size | 2.0 MiB in 43 files |
| Recipe | ports/core/disk/partitionmanager/kpkgbuild |
About
KDE Partition Manager edits the partition tables of the machine’s disks: it creates, deletes, resizes, moves and copies partitions, creates and checks file systems, sets labels and flags, and applies a queue of operations in one go. The work is done by kpmcore, the library this window drives, which also serves the graphical installer’s manual layouts; the operations run as root in kpmcore’s helper, after polkit has asked through polkit-qt6.
Sources
partitionmanager-26.08.2.tar.xz(2.3 MiB)
sha25619f2e38f7982b8b5a6dbe7e3088c70f88e1f9ca089ac4b09b615b70d4a4c7292
upstream: https://download.kde.org/stable/release-service/26.08.2/src/partitionmanager-26.08.2.tar.xz
archive copy: sources-1/disk--partitionmanager-26.08.2.tar.xz
Dependencies
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, kconfig, kconfigwidgets, kcoreaddons, kcrash, kdbusaddons, ki18n, kjobwidgets, kio, kwidgetsaddons, kwindowsystem, kxmlgui, kdoctools, polkit-qt6, kpmcore.
Required by (1): kde-gear-core.
Patches
build.sh applies these; kpkg applies nothing by itself.
size-dialog-ranges.patch is to be offered upstream.
size-dialog-ranges.patch— Keep fractional units in the size dialog's rangesSizeDialogBase::setupConstraints() stored the capacity limits, which sectorsToDialogUnit() returns as a double in the preferred unit, in qint64, so each was cut to a whole unit: in the default GiB an 8 GiB disk offered at most 7 GiB for a new partition, and the free-space spin boxes stopped a unit short. Keep them as doubles; the spin boxes round them to their decimals and onSpinCapacityChanged() still bounds the length to the real maximum in sectors.
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/44_apps/phase.env && kpkg install partitionmanager'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/disk/partitionmanager.
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/disk/partitionmanager
echo '19f2e38f7982b8b5a6dbe7e3088c70f88e1f9ca089ac4b09b615b70d4a4c7292 partitionmanager-26.08.2.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/partitionmanager
SRC=$SRC_ROOT/partitionmanager-26.08.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf partitionmanager-26.08.2.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/size-dialog-ranges.patch"
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D KDE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
-D BUILD_TESTING=OFF \
-D KF_SKIP_PO_PROCESSING=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
The switches, and why each is set:
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON— The handbook, through kdoctools, which upstream asks for as an optional component.-D KF_SKIP_PO_PROCESSING=ON— Skips building the interface translations, which the package-wide English-only rule would remove anyway (see Size and language policy).
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/partitionmanager, 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 partitionmanager-26.08.2-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/partitionmanager, and runs the triggers its paths call for.
Contents
Installed programs: partitionmanager.
Installed directories: /usr/share/doc/HTML/en/partitionmanager, /usr/share/licenses/partitionmanager.
Notes
The configure asks for kpmcore at the version of its own release branch (26.07 for a 26.08 release), so the two ports move together. Nothing can be changed until polkit grants kpmcore’s org.kde.kpmcore.externalcommand.init action, which needs a polkit agent in the session and a rule or an allow_active default that lets the person through. Each file system needs its own tools at run time (e2fsprogs, dosfstools, btrfs-progs and the rest), which kpmcore looks for when the operation is chosen. open_in_partitionmanager.desktop is a Solid action: the device notifier offers “Reformat or Edit with Partition Manager” for a plugged-in disk.