diff options
author | Göktürk Yüksek <gokturk@gentoo.org> | 2018-09-26 13:48:35 -0400 |
---|---|---|
committer | Göktürk Yüksek <gokturk@gentoo.org> | 2018-09-26 13:50:09 -0400 |
commit | 846e3534c81b11e9acad30f82451734cc9ab0521 (patch) | |
tree | 75ca4766daba80a657bcd381d3252fd2b431eb17 /sys-apps/rng-tools/files | |
parent | net-analyzer/icinga2: 2.9.2 bump (diff) | |
download | gentoo-846e3534c81b11e9acad30f82451734cc9ab0521.tar.gz gentoo-846e3534c81b11e9acad30f82451734cc9ab0521.tar.bz2 gentoo-846e3534c81b11e9acad30f82451734cc9ab0521.zip |
sys-apps/rng-tools: bump to v6.5
Signed-off-by: Göktürk Yüksek <gokturk@gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.11
Diffstat (limited to 'sys-apps/rng-tools/files')
-rw-r--r-- | sys-apps/rng-tools/files/rng-tools-6.5-jitterentropy-automagic-detection-fix.patch | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/sys-apps/rng-tools/files/rng-tools-6.5-jitterentropy-automagic-detection-fix.patch b/sys-apps/rng-tools/files/rng-tools-6.5-jitterentropy-automagic-detection-fix.patch new file mode 100644 index 000000000000..b03960180ed9 --- /dev/null +++ b/sys-apps/rng-tools/files/rng-tools-6.5-jitterentropy-automagic-detection-fix.patch @@ -0,0 +1,60 @@ +From 76cfc06afb69019dcf0bbd9938f6378168e37411 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?G=C3=B6kt=C3=BCrk=20Y=C3=BCksek?= <gokturk@gentoo.org> +Date: Wed, 26 Sep 2018 13:32:39 -0400 +Subject: [PATCH] configure.ac: control jitterentropy support using + --with-jitter + +Replace automagic detection of jitterentropy DSO with an AC_ARG_WITH +macro so that rngd can be compiled without jitter support even when +the jitterentropy library is available on the system. +--- + configure.ac | 26 +++++++++++++++++++------- + 1 file changed, 19 insertions(+), 7 deletions(-) + +diff --git a/configure.ac b/configure.ac +index b1544d9..1e58184 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -40,6 +40,13 @@ AC_ARG_WITH([nistbeacon], + [with_nistbeacon=check] + ) + ++AC_ARG_WITH([jitter], ++ AS_HELP_STRING([--without-jitter], ++ [Disable jitter entropy library support. ]), ++ [], ++ [with_jitter=check] ++) ++ + dnl Make sure anyone changing configure.ac/Makefile.am has a clue + AM_MAINTAINER_MODE + AM_PROG_AS +@@ -61,13 +68,18 @@ AS_IF([test $target_cpu = powerpc64le], [AC_DEFINE([HAVE_DARN],1,[Enable DARN])] + + AM_CONDITIONAL([JITTER], [false]) + AM_CONDITIONAL([JITTER_DSO], [false]) +-AS_IF([test -f jitterentropy-library/Makefile], +- [AM_CONDITIONAL([JITTER], [true]) +- AC_DEFINE([HAVE_JITTER],1,[Enable JITTER])], +- [AC_SEARCH_LIBS(jent_version,jitterentropy, +- [AM_CONDITIONAL([JITTER_DSO], [true]) +- AC_DEFINE([HAVE_JITTER],1,[Enable JITTER])], +- [AC_MSG_NOTICE([Disabling JITTER entropy source])])]) ++AS_IF( ++ [ test "x$with_jitter" != "xno" ], ++ [ ++ AS_IF([test -f jitterentropy-library/Makefile], ++ [AM_CONDITIONAL([JITTER], [true]) ++ AC_DEFINE([HAVE_JITTER],1,[Enable JITTER])], ++ [AC_SEARCH_LIBS(jent_version,jitterentropy, ++ [AM_CONDITIONAL([JITTER_DSO], [true]) ++ AC_DEFINE([HAVE_JITTER],1,[Enable JITTER])], ++ [AC_MSG_NOTICE([Disabling JITTER entropy source])])]) ++ ] ++) + + #AM_CONDITIONAL([JITTER], [test -f jitterentropy-library/Makefile]) + #AS_IF([test -f jitterentropy-library/Makefile], [AC_DEFINE([HAVE_JITTER],1,[Enable JITTER])],[AC_MSG_NOTICE([Disabling JITTER entropy source])]) +-- +2.19.0 + |