The source project of this merge request has been removed.
Allow for more architectures, build for amd64, i386, arm64
- Allow more architectures: Invoke finesse.sh with --build-linux-. Cleanups, mostly white-space
- No dependency on x86 intrinsics, so finesse can be built for non-x86 architectures. Suggested by Daniel Brown on 2021-08-16
- FPU control for x86 only: Although arm64 has fpu_control.h too, it doesn't provide FPU* macros.
Build proof (arm64, buster) : https://hypatia.aei.mpg.de/lsc-arm64-buster/finesse_2.3.1-0.34+deb10u0.dsc
Note: this requires that debian/rules
determines the build arch in use:
#!/usr/bin/make -f
# output every command that modifies files on the build system.
export DH_VERBOSE = 1
# finesse.sh must be patched up for linux-* targets
# as of 2020-08-28, only amd64, i386 and arm64 may work
DEB_HOST_ARCH ?= $(shell dpkg-architecture -q DEB_HOST_ARCH)
%:
dh $@
override_dh_auto_configure:
override_dh_auto_build:
echo Building for linux-$(DEB_HOST_ARCH)
./finesse.sh --build-linux-$(DEB_HOST_ARCH)
sed -i -e 's~^### location of the GNUPLOT executable :.*~&\nGNUCOMMAND "/usr/bin/gnuplot -persist"\nPYTHONCOMMAND "python \\$s 2>/dev/null \&"\n~' kat.ini
override_dh_auto_test:
dh_auto_test || true