gnu: Remove unused efivar patch.

* gnu/packages/patches/efivar-211.patch: Remove file.
* gnu/local.mk (dist_patch_DATA): Remove efivar-211.patch reference.

Change-Id: I7604c47fad6a1f8c76bc800472bdcac5b0a0a58d
This commit is contained in:
Efraim Flashner 2025-06-16 11:47:53 +03:00
parent aa23ca6be7
commit 7ac1075cd6
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351
2 changed files with 0 additions and 87 deletions

View file

@ -1213,7 +1213,6 @@ dist_patch_DATA = \
%D%/packages/patches/dvd+rw-tools-add-include.patch \
%D%/packages/patches/dwarves-threading-reproducibility.patch \
%D%/packages/patches/dynaconf-unvendor-deps.patch \
%D%/packages/patches/efivar-211.patch \
%D%/packages/patches/efivar-fix-fprint-format.patch \
%D%/packages/patches/eigen-fix-strict-aliasing-bug.patch \
%D%/packages/patches/einstein-build.patch \

View file

@ -1,86 +0,0 @@
Patch from <https://github.com/rhboot/efivar/pull/211>.
From 15622b7e5761f3dde3f0e42081380b2b41639a48 Mon Sep 17 00:00:00 2001
From: itd0 <69421122+itd0@users.noreply.github.com>
Date: Mon, 4 Apr 2022 19:59:58 +0200
Subject: [PATCH] Avoid format error on i686
On i686 definition of off_t and ssize_t differ. Update format length
modifiers as needed to avoid format errors with GCC.
Signed-off-by: itd0 <69421122+itd0@users.noreply.github.com>
---
src/esl-iter.c | 18 +++++++++---------
src/secdb-dump.c | 2 +-
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/esl-iter.c b/src/esl-iter.c
index 26b5cb5e..4a1938ad 100644
--- a/src/esl-iter.c
+++ b/src/esl-iter.c
@@ -308,13 +308,13 @@ esl_list_iter_next_with_size_correction(esl_list_iter *iter, efi_guid_t *type,
return -1;
}
if (iter->offset < 0) {
- efi_error("iter->offset (%zd) < 0", iter->offset);
+ efi_error("iter->offset (%jd) < 0", (intmax_t)iter->offset);
errno = EINVAL;
return -1;
}
if ((uint32_t)iter->offset >= iter->len) {
- efi_error("iter->offset (%zd) >= iter->len (%zd)",
- iter->offset, iter->len);
+ efi_error("iter->offset (%jd) >= iter->len (%zd)",
+ (intmax_t)iter->offset, iter->len);
errno = EINVAL;
return -1;
}
@@ -335,9 +335,9 @@ esl_list_iter_next_with_size_correction(esl_list_iter *iter, efi_guid_t *type,
iter->len - iter->offset, iter->len - iter->offset,
iter->esl->signature_list_size, iter->esl->signature_list_size);
if (correct_size && (iter->len - iter->offset) > 0) {
- warnx("correcting ESL size from %d to %zd at %lx",
+ warnx("correcting ESL size from %d to %jd at %lx",
iter->esl->signature_list_size,
- iter->len - iter->offset, iter->offset);
+ (intmax_t)(iter->len - iter->offset), iter->offset);
debug("correcting ESL size from %d to %zd at %lx",
iter->esl->signature_list_size,
iter->len - iter->offset, iter->offset);
@@ -360,9 +360,9 @@ esl_list_iter_next_with_size_correction(esl_list_iter *iter, efi_guid_t *type,
if (iter->len - iter->offset < iter->esl->signature_list_size) {
debug("EFI_SIGNATURE_LIST is malformed");
if (correct_size && (iter->len - iter->offset) > 0) {
- warnx("correcting ESL size from %d to %zd at 0x%lx",
+ warnx("correcting ESL size from %d to %jd at 0x%lx",
iter->esl->signature_list_size,
- iter->len - iter->offset, iter->offset);
+ (intmax_t)(iter->len - iter->offset), iter->offset);
debug("correcting ESL size from %d to %zd at 0x%lx",
iter->esl->signature_list_size,
iter->len - iter->offset, iter->offset);
@@ -411,9 +411,9 @@ esl_list_iter_next_with_size_correction(esl_list_iter *iter, efi_guid_t *type,
if (iter->esl->signature_list_size > iter->len - iter->offset) {
debug("EFI_SIGNATURE_LIST is malformed");
if (correct_size && (iter->len - iter->offset) > 0) {
- warnx("correcting ESL size from %d to %zd at 0x%lx",
+ warnx("correcting ESL size from %d to %jd at 0x%lx",
iter->esl->signature_list_size,
- iter->len - iter->offset, iter->offset);
+ (intmax_t)(iter->len - iter->offset), iter->offset);
debug("correcting ESL size from %d to %zd at 0x%lx",
iter->esl->signature_list_size,
iter->len - iter->offset, iter->offset);
diff --git a/src/secdb-dump.c b/src/secdb-dump.c
index 02fb915b..17f64411 100644
--- a/src/secdb-dump.c
+++ b/src/secdb-dump.c
@@ -248,7 +248,7 @@ secdb_dump(efi_secdb_t *secdb, bool annotations)
esln += 1;
}
secdb_dump_finish();
- printf("%08lx\n", offset);
+ printf("%08zx\n", offset);
fflush(stdout);
}