Accepting request 146266 from security

- fix powerpc detection (haveged-ppc.patch) (forwarded request 146234 from k0da)

OBS-URL: https://build.opensuse.org/request/show/146266
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/haveged?expand=0&rev=27
This commit is contained in:
Ismail Dönmez 2012-12-28 14:01:00 +00:00 committed by Git OBS Bridge
commit 43ad220326
5 changed files with 36 additions and 6 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6950672e88376f5de7976d0ac9e479c6a3ecdb8d2d214887347eb24f367d5d8e
size 243336

3
haveged-1.6.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d47db0cf9a58f7ec9877eec543a062f01309916f569639c27a8b0dd004b24541
size 244301

13
haveged-ppc.patch Normal file
View File

@ -0,0 +1,13 @@
Index: haveged-1.6/configure.ac
===================================================================
--- haveged-1.6.orig/configure.ac
+++ haveged-1.6/configure.ac
@@ -127,7 +127,7 @@ case "$host" in
AC_DEFINE(HAVE_ISA_IA64, 1, [Define to 1 for ia64])
;;
- powerpc-*|pcc-*|powerpc64|ppc64)
+ powerpc-*|pcc-*|powerpc64-*|ppc64-*)
AC_DEFINE(HAVE_ISA_PPC, 1, [Define to 1 for ppc])
;;

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Fri Dec 21 11:53:16 UTC 2012 - dvaleev@suse.com
- fix powerpc detection (haveged-ppc.patch)
-------------------------------------------------------------------
Sun Dec 16 02:11:10 UTC 2012 - pascal.bleser@opensuse.org
- update to 1.6:
* make clock_gettime a build option and correct dependencies when used
* fix alignment fault on arm64 in procedure A test0
-------------------------------------------------------------------
Mon Nov 26 20:59:36 UTC 2012 - crrodriguez@opensuse.org

View File

@ -17,7 +17,7 @@
Name: haveged
Version: 1.5
Version: 1.6
Release: 0
Summary: Feed entropy into random pool
License: GPL-3.0
@ -26,6 +26,7 @@ Url: http://www.issihosts.com/haveged/
Source0: http://www.issihosts.com/haveged/%{name}-%{version}.tar.gz
Source1: %{name}.init
Source2: %{name}.service
Patch0: haveged-ppc.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: automake
Requires(pre): %insserv_prereq
@ -49,12 +50,16 @@ For more informations see http://www.issihosts.com/haveged/
%prep
%setup -q
%patch0 -p1
%build
autoreconf -fiv
export CFLAGS="%optflags -fpie"
export LDFLAGS="-Wl,-z,relro,-z,now -pie"
%configure --enable-nistest=yes --enable-daemon=yes
%configure \
--enable-nistest=yes \
--enable-daemon=yes \
--enable-clock_gettime=yes
make %{?_smp_mflags}
%check
@ -110,7 +115,7 @@ make %{?_smp_mflags} check
%{_sbindir}/rc%{name}
%{_sbindir}/%{name}
%config %{_initddir}/%{name}
%{_mandir}/man8/%{name}.8.gz
%doc %{_mandir}/man8/%{name}.8*
%if 0%{?have_systemd}
%{_unitdir}/%{name}.service
%endif