Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Marcus Hoffmann via buildroot <buildroot@buildroot.org>
To: buildroot@buildroot.org
Cc: Thomas Perale <thomas.perale@mind.be>
Subject: [Buildroot] [PATCH] package/libopenssl: downgrade to  3.5.9 LTS
Date: Sun, 29 Nov 2026 04:28:37 +0100	[thread overview]
Message-ID: <20261129032838.3265767-1-buildroot@bubu1.eu> (raw)

3.6 is a non-LTS release which reached its end of life on 2026-11-01.
3.6.5 (2026-09-29) is therefore the last release of that series: the
openssl-3.6 branch has received no commits since 2026-10-29, it has been
dropped from OpenSSL's CI, and the fixes published on 2026-12-01 for the
supported branches (3.5.10, 4.0.4, 4.1.1) will not be released for 3.6.

Switch to 3.5.9, the current 3.5 LTS release, supported until
2030-04-08.

Openssl 3.6 new features are listed here:
https://openssl-library.org/post/2025-10-01-3.6-release-announcement/
These do not seem to be widely used (or at least required) in the wild
yet. No in-tree package seems to depend on 3.6+.

The 3.5 series needs the "Serialize install process" patch back, and the
two other patches are rebased back onto 3.5.

Refs: https://gitlab.com/buildroot.org/buildroot/-/work_items/200
Refs: https://openssl-library.org/roadmap/index.html
Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>
---
 ...ible-build-do-not-leak-compiler-path.patch |  4 +-
 .../0002-Revert-Fix-static-builds.patch       |  6 +--
 ...l-process-to-avoid-multiple-make-dep.patch | 44 +++++++++++++++++++
 package/libopenssl/libopenssl.hash            |  4 +-
 package/libopenssl/libopenssl.mk              |  2 +-
 5 files changed, 52 insertions(+), 8 deletions(-)
 create mode 100644 package/libopenssl/0003-Serialize-install-process-to-avoid-multiple-make-dep.patch

diff --git a/package/libopenssl/0001-Reproducible-build-do-not-leak-compiler-path.patch b/package/libopenssl/0001-Reproducible-build-do-not-leak-compiler-path.patch
index f4baf916e3..7474822709 100644
--- a/package/libopenssl/0001-Reproducible-build-do-not-leak-compiler-path.patch
+++ b/package/libopenssl/0001-Reproducible-build-do-not-leak-compiler-path.patch
@@ -14,10 +14,10 @@ Signed-off-by: Peter Seiderer <ps.report@gmx.net>
  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/crypto/build.info b/crypto/build.info
-index 2c619c6..49ca6ab 100644
+index aee5c46766..84d94aa623 100644
 --- a/crypto/build.info
 +++ b/crypto/build.info
-@@ -115,7 +115,7 @@ EXTRA=  ../ms/uplink-x86.pl ../ms/uplink.c ../ms/applink.c \
+@@ -115,7 +115,7 @@ DEFINE[../libcrypto]=$UPLINKDEF
  
  DEPEND[info.o]=buildinf.h
  DEPEND[cversion.o]=buildinf.h
diff --git a/package/libopenssl/0002-Revert-Fix-static-builds.patch b/package/libopenssl/0002-Revert-Fix-static-builds.patch
index daeece2a0f..18030d81fa 100644
--- a/package/libopenssl/0002-Revert-Fix-static-builds.patch
+++ b/package/libopenssl/0002-Revert-Fix-static-builds.patch
@@ -16,10 +16,10 @@ Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
  1 file changed, 4 insertions(+), 4 deletions(-)
 
 diff --git a/Configure b/Configure
-index ac3206e..764ef89 100755
+index 4614b5becf..cac670405e 100755
 --- a/Configure
 +++ b/Configure
-@@ -1510,10 +1510,6 @@ if ($config{prefix} && !$config{CROSS_COMPILE}) {
+@@ -1515,10 +1515,6 @@ if ($config{prefix} && !$config{CROSS_COMPILE}) {
          unless file_name_is_absolute($config{prefix});
  }
  
@@ -30,7 +30,7 @@ index ac3206e..764ef89 100755
  # Allow overriding the build file name
  $config{build_file} = env('BUILDFILE') || $target{build_file} || "Makefile";
  
-@@ -1808,6 +1804,10 @@ if ($strict_warnings)
+@@ -1813,6 +1809,10 @@ if ($strict_warnings)
                  }
          }
  
diff --git a/package/libopenssl/0003-Serialize-install-process-to-avoid-multiple-make-dep.patch b/package/libopenssl/0003-Serialize-install-process-to-avoid-multiple-make-dep.patch
new file mode 100644
index 0000000000..176375c000
--- /dev/null
+++ b/package/libopenssl/0003-Serialize-install-process-to-avoid-multiple-make-dep.patch
@@ -0,0 +1,44 @@
+From 4562b002366535b3d387fae7fa1dbd8e315ae142 Mon Sep 17 00:00:00 2001
+From: Neil Horman <nhorman@openssl.org>
+Date: Mon, 14 Apr 2025 12:23:15 -0400
+Subject: [PATCH] Serialize install process to avoid multiple make depend
+ operations
+
+If make install is run with a large -j value (make install -j N , where
+N > 1)
+
+We can run into a situation in which the install fails because multiple
+make depend operations are running in parallel, which will fail due to
+makefile rewriting.
+
+Serialize the install process to guarantee that those operations don't
+step on one another
+
+Fixes # 27074
+
+Upstream: https://github.com/openssl/openssl/pull/27388
+Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
+---
+ Configurations/unix-Makefile.tmpl | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl
+index 5bf397eba0..806084ac0c 100644
+--- a/Configurations/unix-Makefile.tmpl
++++ b/Configurations/unix-Makefile.tmpl
+@@ -662,7 +662,11 @@ depend: Makefile
+ # Install helper targets #############################################
+ ##@ Installation
+ 
+-install: install_sw install_ssldirs {- "install_docs" if !$disabled{docs}; -} {- $disabled{fips} ? "" : "install_fips" -} ## Install software and documentation, create OpenSSL directories
++install: Makefile ## Install software and documentation, create OpenSSL directories
++	$(MAKE) install_sw
++	$(MAKE) install_ssldirs
++	{- "\$(MAKE) install_docs" if !$disabled{docs} -}
++	{- "\$(MAKE) install_fips" if !$disabled{fips} -}
+ 
+ uninstall: {- "uninstall_docs" if !$disabled{docs}; -} uninstall_sw {- $disabled{fips} ? "" : "uninstall_fips" -} ## Uninstall software and documentation
+ 
+-- 
+2.39.5
+
diff --git a/package/libopenssl/libopenssl.hash b/package/libopenssl/libopenssl.hash
index b7083cc3d7..3938a81e5e 100644
--- a/package/libopenssl/libopenssl.hash
+++ b/package/libopenssl/libopenssl.hash
@@ -1,5 +1,5 @@
-# From https://github.com/openssl/openssl/releases/download/openssl-3.6.5/openssl-3.6.5.tar.gz.sha256
-sha256  a2157c2830efdec3788939b00c9b0638306d3f0bbb76dc4832ee503bb397df98  openssl-3.6.5.tar.gz
+# From https://github.com/openssl/openssl/releases/download/openssl-3.5.9/openssl-3.5.9.tar.gz.sha256
+sha256  603f5602e2eef00d77fbd429d34dcd5822bb301757a1bc9cdb24c670f1eb859a  openssl-3.5.9.tar.gz
 
 # License files
 sha256  7d5450cb2d142651b8afa315b5f238efc805dad827d91ba367d8516bc9d49e7a  LICENSE.txt
diff --git a/package/libopenssl/libopenssl.mk b/package/libopenssl/libopenssl.mk
index 44734d176a..d6c9a463ea 100644
--- a/package/libopenssl/libopenssl.mk
+++ b/package/libopenssl/libopenssl.mk
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LIBOPENSSL_VERSION = 3.6.5
+LIBOPENSSL_VERSION = 3.5.9
 LIBOPENSSL_SITE = https://github.com/openssl/openssl/releases/download/openssl-$(LIBOPENSSL_VERSION)
 LIBOPENSSL_SOURCE = openssl-$(LIBOPENSSL_VERSION).tar.gz
 LIBOPENSSL_LICENSE = Apache-2.0
-- 
2.56.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

             reply	other threads:[~2026-11-29  3:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29  3:28 Marcus Hoffmann via buildroot [this message]
2026-11-29 10:11 ` [Buildroot] [PATCH] package/libopenssl: downgrade to 3.5.9 LTS Peter Korsgaard
2026-11-29 11:00   ` Yegor Yefremov via buildroot
2026-11-29 11:27     ` Peter Korsgaard

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=20261129032838.3265767-1-buildroot@bubu1.eu \
    --to=buildroot@buildroot.org \
    --cc=buildroot@bubu1.eu \
    --cc=thomas.perale@mind.be \
    /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