From 29421ae1b1a17c268a7ddece70aad525a20cfb0a Mon Sep 17 00:00:00 2001 From: yixiangzhike Date: Tue, 29 Jul 2025 18:28:13 +0800 Subject: [PATCH] backport Fix typo havage_state to havege_state in havege_sample.c --- ...ate-to-havege_state-in-havege_sample.patch | 26 +++++++++++++++++++ haveged.spec | 6 ++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 backport-Fix-typo-havage_state-to-havege_state-in-havege_sample.patch diff --git a/backport-Fix-typo-havage_state-to-havege_state-in-havege_sample.patch b/backport-Fix-typo-havage_state-to-havege_state-in-havege_sample.patch new file mode 100644 index 0000000..426384f --- /dev/null +++ b/backport-Fix-typo-havage_state-to-havege_state-in-havege_sample.patch @@ -0,0 +1,26 @@ +From 91aabd77fbd08205dcdd036854d018fdc588f321 Mon Sep 17 00:00:00 2001 +From: Akram <72977219+BarriBarri20@users.noreply.github.com> +Date: Wed, 21 May 2025 18:49:52 +0100 +Subject: [PATCH] =?UTF-8?q?Fix=20typo:=20'havage=5Fstate'=20=E2=86=92=20'h?= + =?UTF-8?q?avege=5Fstate'=20in=20havege=5Fsample.c?= +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +--- + contrib/build/havege_sample.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/contrib/build/havege_sample.c b/contrib/build/havege_sample.c +index 8a407ee..06d5f01 100644 +--- a/contrib/build/havege_sample.c ++++ b/contrib/build/havege_sample.c +@@ -59,7 +59,7 @@ int main(void) { + fprintf(stderr, "ERROR: havege_create: unrecognized test setup: %s", havege_parameters.testSpec); + else fprintf(stderr, "ERROR: havege_create has returned %d\n",rc); + if (H_NOHANDLE!=rc) +- havege_destroy(havage_state); ++ havege_destroy(havege_state); + return 1; + } + rc = havege_run(havege_state); diff --git a/haveged.spec b/haveged.spec index 980af7c..d31a517 100644 --- a/haveged.spec +++ b/haveged.spec @@ -3,13 +3,14 @@ Summary: A Linux entropy source using the HAVEGE algorithm Name: haveged Version: 1.9.18 -Release: 2 +Release: 3 License: GPLv3+ URL: https://github.com/jirka-h/haveged Source0: https://github.com/jirka-h/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz Source1: haveged.service Patch0: fix-the-core-file-problem.patch +Patch1: backport-Fix-typo-havage_state-to-havege_state-in-havege_sample.patch Requires(post): systemd Requires(preun): systemd @@ -104,6 +105,9 @@ rm -rf %{buildroot} %{_mandir}/man3/libhavege.3* %changelog +* Tue Jul 29 2025 yixiangzhike - 1.9.18-3 +- backport Fix typo havage_state to havege_state in havege_sample.c + * Wed Sep 6 2023 wangqingsan - 1.9.18-2 - enable haveged.service -- Gitee