[packages/sheepdog] - fix missing declarations on ix86

baggins baggins at pld-linux.org
Sat Jul 25 13:15:47 CEST 2015


commit 3870d1edcc523345c54b62afabccb265b4c14e66
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Jul 25 13:15:27 2015 +0200

    - fix missing declarations on ix86

 ix86-cpus.patch | 15 +++++++++++++++
 sheepdog.spec   |  2 ++
 2 files changed, 17 insertions(+)
---
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}
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 */
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sheepdog.git/commitdiff/3870d1edcc523345c54b62afabccb265b4c14e66



More information about the pld-cvs-commit mailing list