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

46.2. texinfo-7.3

Programs for reading, writing, and converting info pages

Version 7.3, release 1
Shelf doctools — Documentation toolchains, man pages, markup converters and TeX typesetting
Phase 30_foundation (Build Foundation), 79 of 127 in build order
Licence GPL-3.0-or-later
Homepage https://www.gnu.org/software/texinfo/
Build time 1.6 SBU
Installed size 11.8 MiB in 546 files
Recipe ports/core/doctools/texinfo/kpkgbuild

About

Texinfo is the GNU documentation system. It installs makeinfo (texi2any), which builds info, HTML and plain-text manuals from .texi sources, the info reader, install-info, and the TeX side (texi2dvi, texi2pdf, texindex). Ports that build info manuals from their sources depend on it, among them the cross toolchains for AVR, ARM and RISC-V, bc, groff, R and octave.

install-info matters to the package manager as well: the info directory index, /usr/share/info/dir, is one of the shared indexes kpkgadd and kpkgdel rebuild with it after any install or removal that touches /usr/share/info; see Shared indexes.

Sources

Dependencies

Depends on: ncurses, perl, gettext, libintl.

Required by (18): bc, binutils-arm-none-eabi, binutils-avr, binutils-riscv64-unknown-elf, gcc-arm-none-eabi, gcc-avr, gcc-riscv64-unknown-elf, groff, ledger, libconfig, liblouis, matio, moon-buggy, nco, notmuch, octave, R, vice.

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/30_foundation/phase.env && kpkg install texinfo'

What kpkg does

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

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/doctools/texinfo
echo '51f74eb0f51cfa9873b85264dfdd5d46e8957ec95b88f0fb762f63d9e164c72e  texinfo-7.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/texinfo
SRC=$SRC_ROOT/texinfo-7.3
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf texinfo-7.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:

./configure --prefix=/usr \
	--sysconfdir=/etc \
	--enable-perl-xs \
	--enable-nls \
	PERL_EXT_CFLAGS="$CFLAGS" \
	PERL_EXT_LDFLAGS="$LDFLAGS"
grep -q '^#define ENABLE_NLS 1' config.h || { echo "texinfo: NLS not configured" >&2; exit 1; }
make
make DESTDIR=$PKG install

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

Contents

Installed programs: info, install-info, makeinfo, pdftexi2dvi, pod2texi, texi2any, texi2dvi, texi2pdf, texindex.

Installed directories: /usr/lib/texi2any, /usr/share/licenses/texinfo, /usr/share/texi2any, /usr/share/texinfo.

Short descriptions

info read Info documents
install-info update info/dir entries
makeinfo translate Texinfo documents
pod2texi convert Pod to Texinfo
texi2dvi convert Texinfo documents to DVI or PDF
texindex sort Texinfo index files

Notes

--enable-nls only asks. The grep for #define ENABLE_NLS 1 in config.h, straight after the configure, reads what configure decided, and fails the build when it turned translations off anyway, as it does when libintl is missing.