From: Jan Rękorajski Date: Sat, 25 Jul 2015 11:15:27 +0000 (+0200) Subject: - fix missing declarations on ix86 X-Git-Tag: auto/th/sheepdog-0.9.2-1~3 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?p=packages%2Fsheepdog.git;a=commitdiff_plain;h=3870d1edcc523345c54b62afabccb265b4c14e66 - fix missing declarations on ix86 --- diff --git a/ix86-cpus.patch b/ix86-cpus.patch new file mode 100644 index 0000000..7c339c8 --- /dev/null +++ b/ix86-cpus.patch @@ -0,0 +1,15 @@ +--- sheepdog-sheepdog-c648986/include/compiler.h~ 2014-10-31 07:32:03.000000000 +0100 ++++ sheepdog-sheepdog-c648986/include/compiler.h 2015-07-25 13:14:37.507366860 +0200 +@@ -164,6 +164,12 @@ + #define cpu_has_avx cpu_has(X86_FEATURE_AVX) + #define cpu_has_osxsave cpu_has(X86_FEATURE_OSXSAVE) + ++#else ++ ++#define cpu_has_ssse3 0 ++#define cpu_has_avx 0 ++#define cpu_has_osxsave 0 ++ + #endif /* __x86_64__ */ + + #endif /* SD_COMPILER_H */ diff --git a/sheepdog.spec b/sheepdog.spec index 566eea6..c6835a2 100644 --- a/sheepdog.spec +++ b/sheepdog.spec @@ -12,6 +12,7 @@ License: GPL v2 Group: Applications/System Source0: https://github.com/collie/sheepdog/tarball/v%{version}/%{name}-%{version}.tar.gz # Source0-md5: 47f2381734a2e3f9ed4b10ef38254ba9 +Patch0: ix86-cpus.patch URL: http://www.osrg.net/sheepdog/ BuildRequires: autoconf >= 2.61 BuildRequires: automake @@ -56,6 +57,7 @@ Bashowe dopełnianie składni dla polecenia dog z pakietu sheepdog. %prep %setup -q -n sheepdog-sheepdog-c648986 +%patch0 -p1 %build %{__aclocal}