From 094a2115a8f5165864270c66f95a97cf879db956 Mon Sep 17 00:00:00 2001 From: Krzysztof Mrozowicz Date: Thu, 22 Sep 2022 13:47:41 +0000 Subject: [PATCH] - added disable-avx-on-i686.patch --- FileZilla.spec | 4 +++- disable-avx-on-i686.patch | 25 +++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 disable-avx-on-i686.patch diff --git a/FileZilla.spec b/FileZilla.spec index bc11679..e72e4b9 100644 --- a/FileZilla.spec +++ b/FileZilla.spec @@ -10,12 +10,13 @@ Summary(ru.UTF-8): FTP клиент для X Window Summary(uk.UTF-8): FTP клієнт для X Window Name: FileZilla Version: 3.61.0 -Release: 1 +Release: 2 License: GPL v2+ Group: X11/Applications/Networking Source0: https://download.filezilla-project.org/client/%{name}_%{version}_src.tar.bz2 # Source0-md5: 0b005ce25f7e887a55a220387efbf305 Patch0: %{name}-desktop.patch +Patch1: disable-avx-on-i686.patch URL: https://filezilla-project.org/ BuildRequires: autoconf >= 2.50 BuildRequires: automake >= 1.6 @@ -57,6 +58,7 @@ opcjami oraz intuicyjnym interfejsem. %prep %setup -q -n filezilla-%{version} %patch0 -p1 +%patch1 -p1 cd locales %{__mv} bg{_BG,}.po diff --git a/disable-avx-on-i686.patch b/disable-avx-on-i686.patch new file mode 100644 index 0000000..8139259 --- /dev/null +++ b/disable-avx-on-i686.patch @@ -0,0 +1,25 @@ +--- filezilla-3.60.1/src/putty/sshsh256.c ++++ filezilla-3.60.1/src/putty/sshsh256.c +@@ -22,8 +22,7 @@ + # define HW_SHA256 HW_SHA256_NI + # endif + #elif defined(__GNUC__) +-# if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 9)) && \ +- (defined(__x86_64__) || defined(__i386)) ++# if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 9)) && defined(__x86_64__) + # define HW_SHA256 HW_SHA256_NI + # endif + #elif defined (_MSC_VER) +--- filezilla-3.60.1/src/putty/sshsha.c ++++ filezilla-3.60.1/src/putty/sshsha.c +@@ -22,8 +22,7 @@ + # define HW_SHA1 HW_SHA1_NI + # endif + #elif defined(__GNUC__) +-# if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 9)) && \ +- (defined(__x86_64__) || defined(__i386)) ++# if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 9)) && defined(__x86_64__) + # define HW_SHA1 HW_SHA1_NI + # endif + #elif defined (_MSC_VER) + -- 2.44.0