public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/cgit] rawhide: Fix build with OpenSSL 4.0
@ 2026-06-12 17:19 Dmitry Belyavskiy
  0 siblings, 0 replies; only message in thread
From: Dmitry Belyavskiy @ 2026-06-12 17:19 UTC (permalink / raw)
  To: git-commits

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
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-12 17:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-12 17:19 [rpms/cgit] rawhide: Fix build with OpenSSL 4.0 Dmitry Belyavskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox