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

151.12. libixion-0.20.0

Threaded spreadsheet formula engine, the calculation half of orcus

Version 0.20.0, release 2
Shelf office — Office suites, word processors, spreadsheets, presentations, accounting and finance, and office-format import libraries
Phase 41_system (System), 830 of 1047 in build order
Licence MPL-2.0
Homepage https://gitlab.com/ixion/ixion
Build time 1.6 SBU
Installed size 1.9 MiB in 37 files
Recipe ports/core/office/libixion/kpkgbuild

About

ixion is a threaded spreadsheet formula engine: it parses formulas, tracks dependencies between cells and recalculates them. It is the calculation half of liborcus, the spreadsheet import library, and labplot uses it too. The package installs the library, the ixion-parser, ixion-formula-tokenizer and ixion-sorter tools, and a Python module.

Sources

Dependencies

Depends on: autoconf, automake, libtool, boost, mdds, python3.

Required by (2): labplot, liborcus.

Optional, off in KDOS

These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.

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/41_system/phase.env && kpkg install libixion'

What kpkg does

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

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/office/libixion
echo '8466a05f19f60b7568641a449704666308848f7bcaf8335f92ee9474a451e4cd  libixion-0.20.0.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/libixion
SRC=$SRC_ROOT/libixion-0.20.0
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf libixion-0.20.0.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/boost-1.89.patch"
autoreconf -fi

./configure --prefix=/usr --libdir=/usr/lib --disable-static \
	--with-boost=/usr \
	boost_cv_rpath_link_ldflag=-L \
	--enable-threads \
	--enable-python \
	--disable-vulkan \
	--disable-debug-utils
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/libixion, 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 libixion-0.20.0-2.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/libixion, and runs the triggers its paths call for.

Contents

Installed programs: ixion-formula-tokenizer, ixion-parser, ixion-sorter.

Installed libraries: libixion-0.20.so.

Installed directories: /usr/include/libixion-0.20, /usr/share/licenses/libixion.

Short descriptions

libixion-0.20.pc Generic formula computation library

Notes

The patch changes an m4 macro, so build.sh runs autoreconf -fi after it to regenerate configure; that is why autoconf, automake and libtool are in depends.