diff options
author | Andy Postnikov <apostnikov@gmail.com> | 2019-02-16 11:23:22 +0200 |
---|---|---|
committer | Andy Postnikov <apostnikov@gmail.com> | 2019-02-16 11:27:14 +0200 |
commit | 68ade13440bf839aa216acc0635bc9bb7f6ec14f (patch) | |
tree | 5920d3097cdcde2b10cb99f8436d1d46aa74a729 /community/rng-tools | |
parent | 397f0cd902eaadce3b74e1e3021e941d9bb6ba72 (diff) | |
download | aports-68ade13440bf839aa216acc0635bc9bb7f6ec14f.tar.bz2 aports-68ade13440bf839aa216acc0635bc9bb7f6ec14f.tar.xz |
community/rng-tools: fix s390x
Diffstat (limited to 'community/rng-tools')
-rw-r--r-- | community/rng-tools/901468598270db9c9f19f63f9812a94f5a44a487.patch | 25 | ||||
-rw-r--r-- | community/rng-tools/APKBUILD | 6 |
2 files changed, 29 insertions, 2 deletions
diff --git a/community/rng-tools/901468598270db9c9f19f63f9812a94f5a44a487.patch b/community/rng-tools/901468598270db9c9f19f63f9812a94f5a44a487.patch new file mode 100644 index 0000000000..d2ebdeee03 --- /dev/null +++ b/community/rng-tools/901468598270db9c9f19f63f9812a94f5a44a487.patch @@ -0,0 +1,25 @@ +From 901468598270db9c9f19f63f9812a94f5a44a487 Mon Sep 17 00:00:00 2001 +From: Neil Horman <nhorman@tuxdriver.com> +Date: Tue, 20 Nov 2018 11:31:29 -0500 +Subject: [PATCH] Fix build break on ppc + +didn't update the rng options properly for rng_darn.c + +Signed-off-by: Neil Horman <nhorman@tuxdriver.com> +--- + rngd_darn.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/rngd_darn.c b/rngd_darn.c +index 45c81c7..abd34b0 100644 +--- a/rngd_darn.c ++++ b/rngd_darn.c +@@ -126,7 +126,7 @@ static int refill_rand(struct rng *ent_src) + + if (darn_buf_avail) + return 0; +- if (ent_src->options[DARN_USE_AES].int_val) { ++ if (ent_src->rng_options[DARN_OPT_AES].int_val) { + if (rand_bytes_served >= rekey_thresh) { + message(LOG_DAEMON|LOG_DEBUG, "rekeying DARN rng\n"); + gcry_cipher_close(gcry_cipher_hd); diff --git a/community/rng-tools/APKBUILD b/community/rng-tools/APKBUILD index 4266c28ea5..9e35884a9e 100644 --- a/community/rng-tools/APKBUILD +++ b/community/rng-tools/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: ScrumpyJack <scrumypjack@st.ilet.to> pkgname=rng-tools pkgver=6.6 -pkgrel=0 +pkgrel=1 pkgdesc="A random number generator daemon" url="https://github.com/nhorman/rng-tools" arch="all" @@ -13,6 +13,7 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/nhorman/$pkgname/archive/v$p fix-textrels-on-PIC-x86.patch rngd.confd rngd.initd + 901468598270db9c9f19f63f9812a94f5a44a487.patch " builddir="$srcdir/$pkgname-$pkgver" @@ -58,4 +59,5 @@ package() { sha512sums="00bbe7f817d8f228f357a79ca270c27c62c0e588a99cd76917ecb7e88dfb627028c66497a59c9918205f3551aaf631963c8fd6504cb4198ddf57f714204c21c4 rng-tools-6.6.tar.gz 7b02c94cf3fb278c5c265713040f1026170fc05b8572c9879a478311d4a9ce1fb0c2b9b9cdd8eda0a0016ee4464ef0ab6b577baf7e41baf8347d87b495949b7a fix-textrels-on-PIC-x86.patch 363b5aa431a0da37fc9eb8c93cffed0b75f43064530318fb41c774acd8aab8a1e109cf6c294b77fa6b8f97aa355b2849f56e83d8b06bcd9e0e9f3aa4f3ba49ac rngd.confd -86a6a7446eda64c075e468bc304008314b710629e06146582c5ce3fcc307a6b4baf5f8e8a47b72f1bab0bb608d76f953f2712cddd35809abcb02b8320c682535 rngd.initd" +86a6a7446eda64c075e468bc304008314b710629e06146582c5ce3fcc307a6b4baf5f8e8a47b72f1bab0bb608d76f953f2712cddd35809abcb02b8320c682535 rngd.initd +d7dc269f6c3013d0e1219c8b451ffbe7a16518164cd8a7db87d6d5100365cd31f6d67f0a40ac14e822d922407888041066d1c279b1fd82d7dd3f901b1c3a7cb1 901468598270db9c9f19f63f9812a94f5a44a487.patch" |