public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Nicolas Frayer <nfrayer@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/pesign] rawhide: Fix a FTBFS issue caused by a missing const qualifier
Date: Mon, 22 Jun 2026 19:49:34 GMT [thread overview]
Message-ID: <178215777402.1.16115859031897979669.rpms-pesign-cd8477a2ebae@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/pesign
Branch : rawhide
Commit : cd8477a2ebae2f3fdc82adffdd217d0da0aade6e
Author : Nicolas Frayer <nfrayer@redhat.com>
Date : 2026-06-22T21:04:52+02:00
Stats : +31/-1 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/pesign/c/cd8477a2ebae2f3fdc82adffdd217d0da0aade6e?branch=rawhide
Log:
Fix a FTBFS issue caused by a missing const qualifier
Resolves: #2491392
Signed-off-by: Nicolas Frayer <nfrayer@redhat.com>
---
diff --git a/0005-Add-const-qualifier-to-variable.patch b/0005-Add-const-qualifier-to-variable.patch
new file mode 100644
index 0000000..20669f0
--- /dev/null
+++ b/0005-Add-const-qualifier-to-variable.patch
@@ -0,0 +1,25 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Nicolas Frayer <nfrayer@redhat.com>
+Date: Mon, 22 Jun 2026 20:58:03 +0200
+Subject: [PATCH] Add const qualifier to variable
+
+Add const to a variable initialized with using strrchr.
+
+Signed-off-by: Nicolas Frayer <nfrayer@redhat.com>
+---
+ src/pesum.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/pesum.c b/src/pesum.c
+index e4ddaf86d7fa..5d7dcb929eec 100644
+--- a/src/pesum.c
++++ b/src/pesum.c
+@@ -141,7 +141,7 @@ main(int argc, char *argv[])
+ while ((infile = poptGetArg(optCon)) != NULL) {
+ pesign_context *ctxp = NULL;
+
+- char *ext = strrchr(infile, '.');
++ const char *ext = strrchr(infile, '.');
+ if (ext && strcmp(ext, ".ko") == 0)
+ fmt = FORMAT_KERNEL_MODULE;
+
diff --git a/pesign.patches b/pesign.patches
index d5f5f82..9981c26 100644
--- a/pesign.patches
+++ b/pesign.patches
@@ -2,3 +2,4 @@ Patch0001: 0001-cms_common-Fixed-Segmentation-fault.patch
Patch0002: 0002-Fix-reversed-calloc-arguments.patch
Patch0003: 0003-Work-around-OpenSC-changing-token-names-on-fedora-bu.patch
Patch0004: 0004-cms_common-skip-authentication-on-the-Friendly-slot.patch
+Patch0005: 0005-Add-const-qualifier-to-variable.patch
diff --git a/pesign.spec b/pesign.spec
index 9daa276..9785b6b 100644
--- a/pesign.spec
+++ b/pesign.spec
@@ -6,7 +6,7 @@
Name: pesign
Summary: Signing utility for UEFI binaries
Version: 116
-Release: 8%{?dist}
+Release: 9%{?dist}
License: GPL-2.0-only
URL: https://github.com/rhboot/pesign
@@ -163,6 +163,10 @@ certutil -d %{_sysconfdir}/pki/pesign/ -X -L > /dev/null
%{_sysusersdir}/pesign.conf
%changelog
+* Mon Jun 22 2026 Nicolas Frayer <nfrayer@redhat.com> - 116-9
+- Fix a FTBFS issue caused by a missing const qualifier
+- Resolves: #2491392
+
* Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
- Add sysusers.d config file to allow rpm to create users/groups automatically
reply other threads:[~2026-06-22 19:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178215777402.1.16115859031897979669.rpms-pesign-cd8477a2ebae@fedoraproject.org \
--to=nfrayer@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox