Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Peter Korsgaard <peter@korsgaard.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/2] package/libopenssl: add (proposed) upstream fix for parallel installation
Date: Tue, 15 Apr 2025 22:09:56 +0200	[thread overview]
Message-ID: <Z_69FJoxJcpxeL7f@landeda> (raw)
In-Reply-To: <20250415200047.2256467-1-peter@korsgaard.com>

Peter, All,

On 2025-04-15 22:00 +0200, Peter Korsgaard spake thusly:
> The openssl developers have proposed a fix for the parallel installation
> issue worked around by commit 27ab880ebb9a (package/libopenssl do not build
> in parallel).
> 
> Add the fix here so the workaround can dropped again.
> 
> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>

Reviewed-by: Yann E. MORIN <yann.morin.1998@free.fr>

Regards,
Yann E. MORIN.

> ---
>  ...l-process-to-avoid-multiple-make-dep.patch | 44 +++++++++++++++++++
>  1 file changed, 44 insertions(+)
>  create mode 100644 package/libopenssl/0004-Serialize-install-process-to-avoid-multiple-make-dep.patch
> 
> diff --git a/package/libopenssl/0004-Serialize-install-process-to-avoid-multiple-make-dep.patch b/package/libopenssl/0004-Serialize-install-process-to-avoid-multiple-make-dep.patch
> new file mode 100644
> index 0000000000..feb0e21ef7
> --- /dev/null
> +++ b/package/libopenssl/0004-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 e85763ccf8..b671723813 100644
> +--- a/Configurations/unix-Makefile.tmpl
> ++++ b/Configurations/unix-Makefile.tmpl
> +@@ -650,7 +650,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
> +
> -- 
> 2.39.5
> 

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  parent reply	other threads:[~2025-04-15 20:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-15 20:00 [Buildroot] [PATCH 1/2] package/libopenssl: add (proposed) upstream fix for parallel installation Peter Korsgaard
2025-04-15 20:00 ` [Buildroot] [PATCH 2/2] Revert "package/libopenssl do not build in parallel" Peter Korsgaard
2025-04-15 20:15   ` Yann E. MORIN
2025-04-15 20:30     ` Peter Korsgaard
2025-04-15 20:09 ` Yann E. MORIN [this message]
2025-04-15 21:40 ` [Buildroot] [PATCH 1/2] package/libopenssl: add (proposed) upstream fix for parallel installation Julien Olivain

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=Z_69FJoxJcpxeL7f@landeda \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@buildroot.org \
    --cc=peter@korsgaard.com \
    /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