commit:     f7d56e17088d906bd3e84b4eb478d0419829c8e1
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 20 11:27:44 2020 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Sat Jun 20 11:27:44 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7d56e17

net-misc/rsync: Enable SIMD only for amd64

Closes: https://bugs.gentoo.org/728868
Package-Manager: Portage-2.3.101, Repoman-2.3.22
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 net-misc/rsync/rsync-3.2.0.ebuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/net-misc/rsync/rsync-3.2.0.ebuild 
b/net-misc/rsync/rsync-3.2.0.ebuild
index 007adedc277..a14bbfdf048 100644
--- a/net-misc/rsync/rsync-3.2.0.ebuild
+++ b/net-misc/rsync/rsync-3.2.0.ebuild
@@ -58,7 +58,6 @@ src_configure() {
                --with-rsyncd-conf="${EPREFIX}"/etc/rsyncd.conf
                --without-included-popt
                $(use_enable acl acl-support)
-               $(use_enable cpu_flags_x86_sse2 simd)
                $(use_enable iconv)
                $(use_enable ipv6)
                $(use_enable lz4)
@@ -68,6 +67,14 @@ src_configure() {
                $(use_enable xxhash)
                $(use_enable zstd)
        )
+
+       if [[ "${ARCH}" == "amd64" ]] ; then
+               # SIMD is only available for x86_64 right now (#728868)
+               myeconfargs+=( $(use_enable cpu_flags_x86_sse2 simd) )
+       else
+               myeconfargs+=( --disable-simd )
+       fi
+
        econf "${myeconfargs[@]}"
        touch proto.h-tstamp #421625
 }

Reply via email to