void-packages/srcpkgs/fio/template
Anthony Iliopoulos b94fc1485b fio: add --disable-native to the configure options
fio by default is passing the -march=native flag to
gcc, which causes it to emit specific optimized
instructions that are not available on all cpu models.

More specifically, the particular cause was that it
was enabling the BMI2 instruction set on the x86_64
builder and emitting shlx instructions which were
crashing fio (as illegal opcodes) on machines with
older cpus.

Signed-off-by: Anthony Iliopoulos <ailiop@altatus.com>
2018-11-28 14:10:00 -02:00

31 lines
796 B
Bash

# Template file for 'fio'
pkgname=fio
version=3.12
revision=2
wrksrc="${pkgname}-${pkgname}-${version}"
build_style=configure
make_install_args="mandir=/usr/share/man"
makedepends="zlib-devel libaio-devel"
depends="python"
short_desc="Flexible I/O tester"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-only"
homepage="https://github.com/axboe/fio"
distfiles="https://github.com/axboe/${pkgname}/archive/${pkgname}-${version}.tar.gz"
checksum=c9fb079e24bb02413b106a80a20e43b2166ba8681e371a5fb9002b8c9d79bd36
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*) makedepends+=" libnuma-devel"
esac
do_configure() {
./configure --prefix=/usr --extra-cflags="$CFLAGS" --disable-native
}
post_install() {
vlicense MORAL-LICENSE
vdoc HOWTO
for f in examples/*; do
vsconf "$f"
done
}