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/openssl3] rawhide: Avoid mess when cherry-picking from old openssl versions
Date: Wed, 30 Sep 2026 13:58:36 GMT	[thread overview]
Message-ID: <179077671619.1.18138298293521497468.rpms-openssl3-a236b583370d@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/openssl3
Branch : rawhide
Commit : a236b583370d549010357114d4924a80186fa522
Author : Dmitry Belyavskiy <beldmit@gmail.com>
Date   : 2026-09-30T15:58:18+02:00
Stats  : +89/-89 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/openssl3/c/a236b583370d549010357114d4924a80186fa522?branch=rawhide

Log:
Avoid mess when cherry-picking from old openssl versions

---
diff --git a/0058-separate-provider-folder.patch b/0058-separate-provider-folder.patch
deleted file mode 100644
index 665e023..0000000
--- a/0058-separate-provider-folder.patch
+++ /dev/null
@@ -1,58 +0,0 @@
-From 598a99c275b5cf06d901fbc86cedaba07b46fa0f Mon Sep 17 00:00:00 2001
-From: Dmitry Belyavskiy <beldmit@gmail.com>
-Date: Mon, 26 Jan 2026 15:28:24 +0100
-Subject: [PATCH] Add the sovesion as a part to the MODULESDIR
-
-As we are going to have several versions of openssl supporting
-providers, it makes sense to separate the folders for various versions.
-
-Despite providers have a well-defined ABIs, it's not clear whether it
-would be safe to use non-self-contatined providers built against a
-particular version of libcrypto against the different version of openssl
-(e.g. because of atexit()-handler etc). Separating the providers per
-version resolves this problem.
----
- Configurations/descrip.mms.tmpl      | 2 +-
- Configurations/unix-Makefile.tmpl    | 2 +-
- Configurations/windows-makefile.tmpl | 2 +-
- 3 files changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/Configurations/descrip.mms.tmpl b/Configurations/descrip.mms.tmpl
-index adfd448f9f239..4a9d0ef3df60d 100644
---- a/Configurations/descrip.mms.tmpl
-+++ b/Configurations/descrip.mms.tmpl
-@@ -381,7 +381,7 @@ OPENSSLDIR={- catdir($config{openssldir}) or
- # Where installed ENGINE modules reside, for C
- ENGINESDIR_C={- platform->osslprefix() -}ENGINES{- $sover_dirname.$target{pointer_size} -}:
- # Where modules reside, for C
--MODULESDIR_C={- platform->osslprefix() -}MODULES{- $target{pointer_size} -}:
-+MODULESDIR_C={- platform->osslprefix() -}MODULES{- $sover_dirname.$target{pointer_size} -}:
- 
- ##### User defined commands and flags ################################
- 
-diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl
-index 155aa46955abd..97c951343d8b6 100644
---- a/Configurations/unix-Makefile.tmpl
-+++ b/Configurations/unix-Makefile.tmpl
-@@ -324,7 +324,7 @@ LIBDIR={- our $libdir = $config{libdir};
- libdir={- file_name_is_absolute($libdir)
-           ? $libdir : '$(INSTALLTOP)/$(LIBDIR)' -}
- ENGINESDIR=$(libdir)/engines-{- $sover_dirname -}
--MODULESDIR=$(libdir)/ossl-modules
-+MODULESDIR=$(libdir)/ossl-modules-{- $sover_dirname -}
- 
- # Convenience variable for those who want to set the rpath in shared
- # libraries and applications
-diff --git a/Configurations/windows-makefile.tmpl b/Configurations/windows-makefile.tmpl
-index e9f985f855164..a21f20b61447d 100644
---- a/Configurations/windows-makefile.tmpl
-+++ b/Configurations/windows-makefile.tmpl
-@@ -214,7 +214,7 @@ MODULESDIR_dev={- use File::Spec::Functions qw(:DEFAULT splitpath catpath);
-                       splitpath($modulesprefix, 1);
-                   our $modulesdir_dev = $modulesprefix_dev;
-                   our $modulesdir_dir =
--                      catdir($modulesprefix_dir, "ossl-modules");
-+                      catdir($modulesprefix_dir, "ossl-modules-$sover_dirname");
-                   our $modulesdir = catpath($modulesdir_dev, $modulesdir_dir);
-                   our $enginesdir_dev = $modulesprefix_dev;
-                   our $enginesdir_dir =

diff --git a/0059-RH-Rename-openssl.cnf-to-openssl3.cnf.patch b/0059-RH-Rename-openssl.cnf-to-openssl3.cnf.patch
deleted file mode 100644
index a17abfd..0000000
--- a/0059-RH-Rename-openssl.cnf-to-openssl3.cnf.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: Dmitry Belyavskiy <dbelyavs@redhat.com>
-Date: Tue, 8 Apr 2026 00:00:00 +0000
-Subject: [PATCH 59/59] RH: Rename openssl.cnf to openssl3.cnf
-
-For openssl3 parallel-installable package, rename the default
-configuration file from openssl.cnf to openssl3.cnf to avoid
-conflicts with the system openssl package.
-
-Signed-off-by: Dmitry Belyavskiy <dbelyavs@redhat.com>
----
- include/internal/common.h | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/include/internal/common.h b/include/internal/common.h
-index 1234567890..0987654321 100644
---- a/include/internal/common.h
-+++ b/include/internal/common.h
-@@ -77,7 +77,7 @@
-     ossl_uintmax_t align_int; \
-     void *align_ptr
-
--#define OPENSSL_CONF "openssl.cnf"
-+#define OPENSSL_CONF "openssl3.cnf"
-
- #ifndef OPENSSL_SYS_VMS
- #define X509_CERT_AREA OPENSSLDIR
---
-2.52.0

diff --git a/0100-separate-provider-folder.patch b/0100-separate-provider-folder.patch
new file mode 100644
index 0000000..665e023
--- /dev/null
+++ b/0100-separate-provider-folder.patch
@@ -0,0 +1,58 @@
+From 598a99c275b5cf06d901fbc86cedaba07b46fa0f Mon Sep 17 00:00:00 2001
+From: Dmitry Belyavskiy <beldmit@gmail.com>
+Date: Mon, 26 Jan 2026 15:28:24 +0100
+Subject: [PATCH] Add the sovesion as a part to the MODULESDIR
+
+As we are going to have several versions of openssl supporting
+providers, it makes sense to separate the folders for various versions.
+
+Despite providers have a well-defined ABIs, it's not clear whether it
+would be safe to use non-self-contatined providers built against a
+particular version of libcrypto against the different version of openssl
+(e.g. because of atexit()-handler etc). Separating the providers per
+version resolves this problem.
+---
+ Configurations/descrip.mms.tmpl      | 2 +-
+ Configurations/unix-Makefile.tmpl    | 2 +-
+ Configurations/windows-makefile.tmpl | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/Configurations/descrip.mms.tmpl b/Configurations/descrip.mms.tmpl
+index adfd448f9f239..4a9d0ef3df60d 100644
+--- a/Configurations/descrip.mms.tmpl
++++ b/Configurations/descrip.mms.tmpl
+@@ -381,7 +381,7 @@ OPENSSLDIR={- catdir($config{openssldir}) or
+ # Where installed ENGINE modules reside, for C
+ ENGINESDIR_C={- platform->osslprefix() -}ENGINES{- $sover_dirname.$target{pointer_size} -}:
+ # Where modules reside, for C
+-MODULESDIR_C={- platform->osslprefix() -}MODULES{- $target{pointer_size} -}:
++MODULESDIR_C={- platform->osslprefix() -}MODULES{- $sover_dirname.$target{pointer_size} -}:
+ 
+ ##### User defined commands and flags ################################
+ 
+diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl
+index 155aa46955abd..97c951343d8b6 100644
+--- a/Configurations/unix-Makefile.tmpl
++++ b/Configurations/unix-Makefile.tmpl
+@@ -324,7 +324,7 @@ LIBDIR={- our $libdir = $config{libdir};
+ libdir={- file_name_is_absolute($libdir)
+           ? $libdir : '$(INSTALLTOP)/$(LIBDIR)' -}
+ ENGINESDIR=$(libdir)/engines-{- $sover_dirname -}
+-MODULESDIR=$(libdir)/ossl-modules
++MODULESDIR=$(libdir)/ossl-modules-{- $sover_dirname -}
+ 
+ # Convenience variable for those who want to set the rpath in shared
+ # libraries and applications
+diff --git a/Configurations/windows-makefile.tmpl b/Configurations/windows-makefile.tmpl
+index e9f985f855164..a21f20b61447d 100644
+--- a/Configurations/windows-makefile.tmpl
++++ b/Configurations/windows-makefile.tmpl
+@@ -214,7 +214,7 @@ MODULESDIR_dev={- use File::Spec::Functions qw(:DEFAULT splitpath catpath);
+                       splitpath($modulesprefix, 1);
+                   our $modulesdir_dev = $modulesprefix_dev;
+                   our $modulesdir_dir =
+-                      catdir($modulesprefix_dir, "ossl-modules");
++                      catdir($modulesprefix_dir, "ossl-modules-$sover_dirname");
+                   our $modulesdir = catpath($modulesdir_dev, $modulesdir_dir);
+                   our $enginesdir_dev = $modulesprefix_dev;
+                   our $enginesdir_dir =

diff --git a/0101-RH-Rename-openssl.cnf-to-openssl3.cnf.patch b/0101-RH-Rename-openssl.cnf-to-openssl3.cnf.patch
new file mode 100644
index 0000000..a17abfd
--- /dev/null
+++ b/0101-RH-Rename-openssl.cnf-to-openssl3.cnf.patch
@@ -0,0 +1,29 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Dmitry Belyavskiy <dbelyavs@redhat.com>
+Date: Tue, 8 Apr 2026 00:00:00 +0000
+Subject: [PATCH 59/59] RH: Rename openssl.cnf to openssl3.cnf
+
+For openssl3 parallel-installable package, rename the default
+configuration file from openssl.cnf to openssl3.cnf to avoid
+conflicts with the system openssl package.
+
+Signed-off-by: Dmitry Belyavskiy <dbelyavs@redhat.com>
+---
+ include/internal/common.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/include/internal/common.h b/include/internal/common.h
+index 1234567890..0987654321 100644
+--- a/include/internal/common.h
++++ b/include/internal/common.h
+@@ -77,7 +77,7 @@
+     ossl_uintmax_t align_int; \
+     void *align_ptr
+
+-#define OPENSSL_CONF "openssl.cnf"
++#define OPENSSL_CONF "openssl3.cnf"
+
+ #ifndef OPENSSL_SYS_VMS
+ #define X509_CERT_AREA OPENSSLDIR
+--
+2.52.0

diff --git a/openssl3.spec b/openssl3.spec
index 499c4f9..bfa1d53 100644
--- a/openssl3.spec
+++ b/openssl3.spec
@@ -102,8 +102,8 @@ Patch0055: 0055-Add-a-define-to-disable-symver-attributes.patch
 Patch0056: 0056-Add-targets-to-skip-build-of-non-installable-program.patch
 Patch0057: 0057-Disable-RSA-PKCS1.5-FIPS-POST-not-relevant-for-RHEL.patch
 Patch0058: 0058-Skip-tests-not-matching-Fedora-RHEL-FIPS-changes.patch
-Patch0058: 0058-separate-provider-folder.patch
-Patch0059: 0059-RH-Rename-openssl.cnf-to-openssl3.cnf.patch
+Patch0100: 0100-separate-provider-folder.patch
+Patch0101: 0101-RH-Rename-openssl.cnf-to-openssl3.cnf.patch
 
 License: Apache-2.0
 URL: http://www.openssl.org/

                 reply	other threads:[~2026-09-30 13:58 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=179077671619.1.18138298293521497468.rpms-openssl3-a236b583370d@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