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
libixion-0.20.0.tar.xz(532.0 KiB)
sha2568466a05f19f60b7568641a449704666308848f7bcaf8335f92ee9474a451e4cd
upstream: https://gitlab.com/api/v4/projects/ixion%2Fixion/packages/generic/source/0.20.0/libixion-0.20.0.tar.xz
archive copy: sources-3/office--libixion-0.20.0.tar.xz
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.
--disable-vulkan, line 20: vulkan-loader (explained with the switches below)
Patches
build.sh applies these; kpkg applies nothing by itself.
boost-1.89.patch— Inm4/boost.m4, look only for the headerboost/system/error_code.hppwhen Boost is 1.70 or newer, instead of linking aboost_systemlibrary: Boost.System is header-only there, and Boost 1.89 and later install no library for configure to find.
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:
--with-boost=/usr— Where boost.m4 looks for boost’s headers and libraries.boost_cv_rpath_link_ldflag=-L— Answers boost.m4’s check for a run-path linker flag in advance. boost.m4 otherwise adds-Wl,-R/usr/libto every link against a Boost library, which writes/usr/libinto the library’sRPATH; with-Lthe flag becomes a second-L/usr/liband noRPATHis written. The package lint warns on a/usr/libentry. liborcus passes the same answer.--enable-threads— Calculate formula cells on several threads. It is configure’s default.--enable-python— Build theixionPython module, which installs into site-packages beside the library; the default, and the reason python3 is independs.--disable-vulkan— Build no Vulkan compute engine. It is configure’s default.--disable-debug-utils— Build without the extra checks meant for development; also the default.
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.