All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2] package/proftpd: prevent openssl pthread detection
@ 2019-02-21 20:52 Matt Weber
  2019-02-21 23:20 ` Arnout Vandecappelle
  0 siblings, 1 reply; 3+ messages in thread
From: Matt Weber @ 2019-02-21 20:52 UTC (permalink / raw)
  To: buildroot

Openssl cmdline executable can be used as a config test which
results in either the host-openssl or host system's openssl
being used to detect the linking with -pthread. This is an
issue as a system maybe building with a toolchain without
thread support. (To review the detection logic, see proftpd
configure.in and search for pr_use_pthread_for_openssl)

Fixes
http://autobuild.buildroot.net/results/9c25c3cb3cf93b76c0538c5376a803641bf6575b

Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
---
To recreate the failure, with a clean build.
  make host-openssl proftpd

Changes
v1 -> v2
[Arnout
 - Noted the inhert dependency that was going on and suggested the
   configure step fix to prevent the openssl flag detection leading
   to the -pthread being added the the linker flags.
---
 package/proftpd/proftpd.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/proftpd/proftpd.mk b/package/proftpd/proftpd.mk
index 592c069..67d8eb8 100644
--- a/package/proftpd/proftpd.mk
+++ b/package/proftpd/proftpd.mk
@@ -22,7 +22,8 @@ PROFTPD_CONF_OPTS = \
 	--disable-dso \
 	--enable-sendfile \
 	--enable-shadow \
-	--with-gnu-ld
+	--with-gnu-ld \
+	--without-openssl-cmdline
 
 ifeq ($(BR2_PACKAGE_PROFTPD_MOD_REWRITE),y)
 PROFTPD_MODULES += mod_rewrite
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH v2] package/proftpd: prevent openssl pthread detection
  2019-02-21 20:52 [Buildroot] [PATCH v2] package/proftpd: prevent openssl pthread detection Matt Weber
@ 2019-02-21 23:20 ` Arnout Vandecappelle
  2019-02-22 13:15   ` Peter Korsgaard
  0 siblings, 1 reply; 3+ messages in thread
From: Arnout Vandecappelle @ 2019-02-21 23:20 UTC (permalink / raw)
  To: buildroot



On 21/02/2019 21:52, Matt Weber wrote:
> Openssl cmdline executable can be used as a config test which
> results in either the host-openssl or host system's openssl
> being used to detect the linking with -pthread. This is an
> issue as a system maybe building with a toolchain without
> thread support. (To review the detection logic, see proftpd
> configure.in and search for pr_use_pthread_for_openssl)

 I noticed a potential issue: now pthread never gets linked in, even if openssl
is built with thread support and when linking statically.

 However, it turns out that that is not a problem because openssl (at least in
the version we use) doesn't pull in its thread support automatically.

 So, I completely rewrote the commit message and applied to master, thanks.

> 
> Fixes

 Could you in the future add a colon after Fixes: so patchwork picks it up and
marks it with the 'Fixes' tag?

 Regards,
 Arnout

> http://autobuild.buildroot.net/results/9c25c3cb3cf93b76c0538c5376a803641bf6575b
> 
> Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
> ---
> To recreate the failure, with a clean build.
>   make host-openssl proftpd
> 
> Changes
> v1 -> v2
> [Arnout
>  - Noted the inhert dependency that was going on and suggested the
>    configure step fix to prevent the openssl flag detection leading
>    to the -pthread being added the the linker flags.
> ---
>  package/proftpd/proftpd.mk | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/package/proftpd/proftpd.mk b/package/proftpd/proftpd.mk
> index 592c069..67d8eb8 100644
> --- a/package/proftpd/proftpd.mk
> +++ b/package/proftpd/proftpd.mk
> @@ -22,7 +22,8 @@ PROFTPD_CONF_OPTS = \
>  	--disable-dso \
>  	--enable-sendfile \
>  	--enable-shadow \
> -	--with-gnu-ld
> +	--with-gnu-ld \
> +	--without-openssl-cmdline
>  
>  ifeq ($(BR2_PACKAGE_PROFTPD_MOD_REWRITE),y)
>  PROFTPD_MODULES += mod_rewrite
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH v2] package/proftpd: prevent openssl pthread detection
  2019-02-21 23:20 ` Arnout Vandecappelle
@ 2019-02-22 13:15   ` Peter Korsgaard
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2019-02-22 13:15 UTC (permalink / raw)
  To: buildroot

>>>>> "Arnout" == Arnout Vandecappelle <arnout@mind.be> writes:

 > On 21/02/2019 21:52, Matt Weber wrote:
 >> Openssl cmdline executable can be used as a config test which
 >> results in either the host-openssl or host system's openssl
 >> being used to detect the linking with -pthread. This is an
 >> issue as a system maybe building with a toolchain without
 >> thread support. (To review the detection logic, see proftpd
 >> configure.in and search for pr_use_pthread_for_openssl)

 >  I noticed a potential issue: now pthread never gets linked in, even if openssl
 > is built with thread support and when linking statically.

 >  However, it turns out that that is not a problem because openssl (at least in
 > the version we use) doesn't pull in its thread support automatically.

 >  So, I completely rewrote the commit message and applied to master, thanks.

Committed to 2018.02.x and 2018.11.x, thanks.

I did a test build on 2018.02.x to verify.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-02-22 13:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-21 20:52 [Buildroot] [PATCH v2] package/proftpd: prevent openssl pthread detection Matt Weber
2019-02-21 23:20 ` Arnout Vandecappelle
2019-02-22 13:15   ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.