mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
john: make simd a build option, off by default
This solves the problem of SIMD features being enabled and leaking in on all architectures, not just ppc*. It is now provided as a build option if there if is a want/need to enable these for custom builds.
This commit is contained in:
parent
c0610aebb4
commit
e347e19f85
1 changed files with 3 additions and 9 deletions
|
@ -1,12 +1,12 @@
|
||||||
# Template file for 'john'
|
# Template file for 'john'
|
||||||
pkgname=john
|
pkgname=john
|
||||||
version=1.9.0
|
version=1.9.0
|
||||||
revision=1
|
revision=2
|
||||||
_jumbover=1
|
_jumbover=1
|
||||||
wrksrc="${pkgname}-${version}-jumbo-${_jumbover}"
|
wrksrc="${pkgname}-${version}-jumbo-${_jumbover}"
|
||||||
build_wrksrc="src"
|
build_wrksrc="src"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-systemwide"
|
configure_args="--with-systemwide $(vopt_enable simd)"
|
||||||
makedepends="libressl-devel gmp-devel libgomp-devel libpcap-devel bzip2-devel zlib-devel"
|
makedepends="libressl-devel gmp-devel libgomp-devel libpcap-devel bzip2-devel zlib-devel"
|
||||||
short_desc="John the Ripper password cracker (jumbo-${_jumbover} patch included)"
|
short_desc="John the Ripper password cracker (jumbo-${_jumbover} patch included)"
|
||||||
maintainer="Piraty <piraty1@inbox.ru>"
|
maintainer="Piraty <piraty1@inbox.ru>"
|
||||||
|
@ -16,13 +16,7 @@ distfiles="$homepage/k/$pkgname-${version}-jumbo-${_jumbover}.tar.xz"
|
||||||
checksum=f5d123f82983c53d8cc598e174394b074be7a77756f5fb5ed8515918c81e7f3b
|
checksum=f5d123f82983c53d8cc598e174394b074be7a77756f5fb5ed8515918c81e7f3b
|
||||||
python_version=2 #unverified
|
python_version=2 #unverified
|
||||||
|
|
||||||
# the build system checks the host cpu for features, so when building on
|
build_options="simd"
|
||||||
# a modern power9 system, it will attempt to shove in -mvsx and so on,
|
|
||||||
# which breaks builds for 970 and 32-bit
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
|
||||||
ppc64le*) ;;
|
|
||||||
ppc*) configure_args+=" --disable-simd";;
|
|
||||||
esac
|
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
unset CPP AS LD
|
unset CPP AS LD
|
||||||
|
|
Loading…
Add table
Reference in a new issue