backport Fix 32 bit build
This commit is contained in:
parent
fd17c9dd32
commit
1d59eb1ebd
28
0001-Fix-32-bit-build.patch
Normal file
28
0001-Fix-32-bit-build.patch
Normal file
@ -0,0 +1,28 @@
|
||||
From 21c15dade84cb43831b05403fa31bc36229c2979 Mon Sep 17 00:00:00 2001
|
||||
From: Andy Postnikov <apostnikov@gmail.com>
|
||||
Date: Sun, 14 Jun 2020 20:12:52 +0300
|
||||
Subject: [PATCH] Fix 32 bit build
|
||||
|
||||
Other function integers are unsigned but size_t looks better fit
|
||||
|
||||
Closes #28
|
||||
---
|
||||
src/mokutil.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/mokutil.c b/src/mokutil.c
|
||||
index 570de06..110676d 100644
|
||||
--- a/src/mokutil.c
|
||||
+++ b/src/mokutil.c
|
||||
@@ -2011,7 +2011,7 @@ generate_pw_hash (const char *input_pw)
|
||||
char *password = NULL;
|
||||
char *crypt_string;
|
||||
const char *prefix;
|
||||
- int settings_len = sizeof (settings) - 2;
|
||||
+ size_t settings_len = sizeof (settings) - 2;
|
||||
unsigned int pw_len, salt_size;
|
||||
|
||||
if (input_pw) {
|
||||
--
|
||||
2.33.0
|
||||
|
||||
@ -1,12 +1,14 @@
|
||||
Name: mokutil
|
||||
Version: 0.4.0
|
||||
Release: 1
|
||||
Release: 2
|
||||
Epoch: 1
|
||||
Summary: Tools for manipulating machine owner keys
|
||||
License: GPLv3+
|
||||
URL: https://github.com/lcp/mokutil
|
||||
Source0: https://github.com/lcp/mokutil/archive/%{version}.tar.gz
|
||||
|
||||
Patch0001: 0001-Fix-32-bit-build.patch
|
||||
|
||||
BuildRequires:gcc autoconf automake gnu-efi git openssl-devel openssl efivar-devel >= 31-1 git
|
||||
Conflicts: shim < 0.8-1
|
||||
Obsoletes: mokutil < 0.2.0
|
||||
@ -57,6 +59,9 @@ make check
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Fri Dec 29 2023 liyuanyuan <liyuanyuan@xfusion.com> - 1:0.4.0-2
|
||||
- Fix 32 bit build
|
||||
|
||||
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 1:0.4.0-1
|
||||
- Update to 0.4.0
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user