Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/2] openssl: remove binary install option
Date: Sat, 9 Jan 2016 00:33:47 +0100	[thread overview]
Message-ID: <5690475B.2090201@mind.be> (raw)
In-Reply-To: <1451997340-4430-1-git-send-email-gustavo@zacarias.com.ar>

On 05-01-16 13:35, Gustavo Zacarias wrote:
> In preparation for the libssl virtual and libressl inclusion, also
> keeping with the KISS principle the binary can be removed in a
> post-build script if need be, so remove the option and add it in legacy.

 I did a build of openssl on aarch64, and the openssl binary makes up almost 20%
of the package and 5% of a minimal filesystem (with glibc though). I think
that's a fairly significant percentage, so I think it's worthwhile to keep this
option.

 Of course, people who care about size should probably use libressl :-)

 How does it help for the libssl virtual package? For the engines I can
understand because other packages select it, but this one could stay, no?

 Regards,
 Arnout

> 
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
>  Config.in.legacy           | 8 ++++++++
>  package/openssl/Config.in  | 7 -------
>  package/openssl/openssl.mk | 8 --------
>  3 files changed, 8 insertions(+), 15 deletions(-)
> 
> diff --git a/Config.in.legacy b/Config.in.legacy
> index 2e6062c..3bcd50d 100644
> --- a/Config.in.legacy
> +++ b/Config.in.legacy
> @@ -145,6 +145,14 @@ endif
>  ###############################################################################
>  comment "Legacy options removed in 2016.02"
>  
> +config BR2_PACKAGE_OPENSSL_BIN
> +	bool "openssl binary option removed"
> +	select BR2_LEGACY
> +	help
> +	  The openssl binary option has been removed. You can remove the
> +	  binary from a post-build script if your target space is too
> +	  constrained.
> +
>  config BR2_PACKAGE_PYTHON_PYXML
>  	bool "python-pyxml package has been removed"
>  	select BR2_LEGACY
> diff --git a/package/openssl/Config.in b/package/openssl/Config.in
> index e08b648..dfbc850 100644
> --- a/package/openssl/Config.in
> +++ b/package/openssl/Config.in
> @@ -13,13 +13,6 @@ config BR2_PACKAGE_OPENSSL
>  
>  if BR2_PACKAGE_OPENSSL
>  
> -config BR2_PACKAGE_OPENSSL_BIN
> -	bool "openssl binary"
> -	help
> -	  Install the openssl binary and the associated helper scripts to the
> -	  target file system. This is a command line tool for doing various
> -	  cryptographic stuff.
> -
>  config BR2_PACKAGE_OPENSSL_ENGINES
>  	bool "openssl additional engines"
>  	help
> diff --git a/package/openssl/openssl.mk b/package/openssl/openssl.mk
> index c3ea08d..1e5ea9b 100644
> --- a/package/openssl/openssl.mk
> +++ b/package/openssl/openssl.mk
> @@ -151,14 +151,6 @@ endef
>  OPENSSL_POST_INSTALL_TARGET_HOOKS += OPENSSL_REMOVE_PERL_SCRIPTS
>  endif
>  
> -ifeq ($(BR2_PACKAGE_OPENSSL_BIN),)
> -define OPENSSL_REMOVE_BIN
> -	$(RM) -f $(TARGET_DIR)/usr/bin/openssl
> -	$(RM) -f $(TARGET_DIR)/etc/ssl/misc/{CA.*,c_*}
> -endef
> -OPENSSL_POST_INSTALL_TARGET_HOOKS += OPENSSL_REMOVE_BIN
> -endif
> -
>  ifneq ($(BR2_PACKAGE_OPENSSL_ENGINES),y)
>  define OPENSSL_REMOVE_OPENSSL_ENGINES
>  	rm -rf $(TARGET_DIR)/usr/lib/engines
> 


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

  parent reply	other threads:[~2016-01-08 23:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-05 12:35 [Buildroot] [PATCH 1/2] openssl: remove binary install option Gustavo Zacarias
2016-01-05 12:35 ` [Buildroot] [PATCH 2/2] openssl: remove additional engines option Gustavo Zacarias
2016-01-08 23:35   ` Arnout Vandecappelle
2016-01-08 23:33 ` Arnout Vandecappelle [this message]
2016-01-09 13:13   ` [Buildroot] [PATCH 1/2] openssl: remove binary install option Gustavo Zacarias

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=5690475B.2090201@mind.be \
    --to=arnout@mind.be \
    --cc=buildroot@busybox.net \
    /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