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

98.2. gptfdisk-1.0.10

A text-mode partitioning tool that works on GUID Partition Table (GPT) disks

1.0.10-1 · GPL-2.0-only · 0.1 SBU · 1.1 MiB, 9 files · 41_system, 383 of 1047 · ports/core/disk/gptfdisk

Homepage: https://www.rodsbooks.com/gdisk/

Depends on: popt, util-linux, ncurses.

Required by: no port names it.

Sources: gptfdisk-1.0.10.tar.gz (215.6 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install gptfdisk'

build.sh:

mkdir -p kdos-inc/ncursesw
ln -sf /usr/include/ncurses.h kdos-inc/ncursesw/ncurses.h
export CXXFLAGS="$CXXFLAGS -D_LARGEFILE64_SOURCE -I$PWD/kdos-inc"
make gdisk cgdisk sgdisk fixparts
install -d $PKG/usr/bin $PKG/usr/share/man/man8
install -t $PKG/usr/bin gdisk cgdisk sgdisk fixparts
install -m644 -t $PKG/usr/share/man/man8 gdisk.8 cgdisk.8 sgdisk.8 fixparts.8

Programs: cgdisk, fixparts, gdisk, sgdisk.

Directories: /usr/share/licenses/gptfdisk.