public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Dmitry Belyavskiy <beldmit@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/cgit] rawhide: Fix build with OpenSSL 4.0
Date: Fri, 12 Jun 2026 17:19:21 GMT [thread overview]
Message-ID: <178128476189.1.10003974585966517217.rpms-cgit-8876e3355fa0@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/cgit
Branch : rawhide
Commit : 8876e3355fa081e35d3f6fcf2aa7faa3175c4350
Author : Dmitry Belyavskiy <beldmit@gmail.com>
Date : 2026-04-30T14:54:28+02:00
Stats : +18/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/cgit/c/8876e3355fa081e35d3f6fcf2aa7faa3175c4350?branch=rawhide
Log:
Fix build with OpenSSL 4.0
---
diff --git a/cgit-openssl4.patch b/cgit-openssl4.patch
new file mode 100644
index 0000000..e0536f5
--- /dev/null
+++ b/cgit-openssl4.patch
@@ -0,0 +1,13 @@
+--- a/git-2.53.0/imap-send.c 2026-04-30 14:47:39.937105837 +0200
++++ b/git-2.53.0/imap-send.c 2026-04-30 14:47:44.281637207 +0200
+@@ -246,8 +246,8 @@
+ for (i = 0; !found && i < num_subj_alt_names; i++) {
+ GENERAL_NAME *subj_alt_name = sk_GENERAL_NAME_value(subj_alt_names, i);
+ if (subj_alt_name->type == GEN_DNS &&
+- strlen((const char *)subj_alt_name->d.ia5->data) == (size_t)subj_alt_name->d.ia5->length &&
+- host_matches(hostname, (const char *)(subj_alt_name->d.ia5->data)))
++ strlen((const char *)ASN1_STRING_get0_data(subj_alt_name->d.ia5)) == (size_t)ASN1_STRING_length(subj_alt_name->d.ia5) &&
++ host_matches(hostname, (const char *)ASN1_STRING_get0_data(subj_alt_name->d.ia5)))
+ found = 1;
+ }
+ sk_GENERAL_NAME_pop_free(subj_alt_names, GENERAL_NAME_free);
diff --git a/cgit.spec b/cgit.spec
index 254b0d9..49888b2 100644
--- a/cgit.spec
+++ b/cgit.spec
@@ -35,7 +35,7 @@
Name: cgit
Version: 1.3
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: A fast web interface for git
License: GPL-2.0-only
@@ -67,6 +67,7 @@ Source93: https://www.kernel.org/pub/software/scm/git/git-%{gitver}.tar.s
# All supported releases use highlight version 3.
Patch0: 0001-use-highlight-3-by-default.patch
+Patch1: cgit-openssl4.patch
# Note the bundled git, per the packaging guidelines
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#bundling
@@ -215,6 +216,9 @@ install -Dp -m0644 httpd.conf %{buildroot}%{httpdconfd}/%{name}.conf
%changelog
+* Thu Apr 30 2026 Dmitry Belyavskiy <beldmit@gmail.com> - 1.3-3
+- Fix build with OpenSSL 4.0 (opaque ASN1_STRING in bundled git)
+
* Thu Apr 16 2026 Tom Callaway <spot@fedoraproject.org> - 1.3-2
- rebuild
reply other threads:[~2026-06-12 17:19 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=178128476189.1.10003974585966517217.rpms-cgit-8876e3355fa0@fedoraproject.org \
--to=beldmit@gmail.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