Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] gnupg: Package only needs ncurses with readline
@ 2018-09-28 23:18 Trent Piepho
  2018-10-02  5:38 ` Baruch Siach
  0 siblings, 1 reply; 3+ messages in thread
From: Trent Piepho @ 2018-09-28 23:18 UTC (permalink / raw)
  To: buildroot

This package only needs ncurses when readline support is enabled, as
it's the autoconf macro file for readline that checks for and pulls in
ncurses.

For the target package, only depend on ncurses when readline support is
enabled.

The host package always forces readline support off, so the host-ncurses
dependency can be removed entirely.

Signed-off-by: Trent Piepho <tpiepho@impinj.com>
---
 package/gnupg/Config.in | 2 +-
 package/gnupg/gnupg.mk  | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/package/gnupg/Config.in b/package/gnupg/Config.in
index 7c31612298..b13d4d6935 100644
--- a/package/gnupg/Config.in
+++ b/package/gnupg/Config.in
@@ -2,7 +2,7 @@ config BR2_PACKAGE_GNUPG
 	bool "gnupg"
 	depends on !BR2_PACKAGE_GNUPG2
 	select BR2_PACKAGE_ZLIB
-	select BR2_PACKAGE_NCURSES
+	select BR2_PACKAGE_NCURSES if BR2_PACKAGE_READLINE
 	help
 	  GnuPG is the GNU project's complete and free implementation
 	  of the OpenPGP standard as defined by RFC4880. GnuPG allows
diff --git a/package/gnupg/gnupg.mk b/package/gnupg/gnupg.mk
index ac9047894d..8af68fd589 100644
--- a/package/gnupg/gnupg.mk
+++ b/package/gnupg/gnupg.mk
@@ -9,7 +9,7 @@ GNUPG_SOURCE = gnupg-$(GNUPG_VERSION).tar.bz2
 GNUPG_SITE = https://gnupg.org/ftp/gcrypt/gnupg
 GNUPG_LICENSE = GPL-3.0+
 GNUPG_LICENSE_FILES = COPYING
-GNUPG_DEPENDENCIES = zlib ncurses $(if $(BR2_PACKAGE_LIBICONV),libiconv)
+GNUPG_DEPENDENCIES = zlib $(if $(BR2_PACKAGE_LIBICONV),libiconv)
 GNUPG_CONF_ENV = ac_cv_sys_symbol_underscore=no
 GNUPG_CONF_OPTS = \
 	--disable-rpath \
@@ -18,7 +18,7 @@ GNUPG_CONF_OPTS = \
 	--enable-sha256 \
 	--enable-sha512
 
-HOST_GNUPG_DEPENDENCIES = host-zlib host-ncurses
+HOST_GNUPG_DEPENDENCIES = host-zlib
 HOST_GNUPG_CONF_OPTS = \
 	--disable-rpath \
 	--enable-minimal \
@@ -48,7 +48,7 @@ GNUPG_CONF_OPTS += --without-libcurl
 endif
 
 ifeq ($(BR2_PACKAGE_READLINE),y)
-GNUPG_DEPENDENCIES += readline
+GNUPG_DEPENDENCIES += readline ncurses
 else
 GNUPG_CONF_OPTS += --without-readline
 endif
-- 
2.14.4

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

* [Buildroot] [PATCH] gnupg: Package only needs ncurses with readline
  2018-09-28 23:18 [Buildroot] [PATCH] gnupg: Package only needs ncurses with readline Trent Piepho
@ 2018-10-02  5:38 ` Baruch Siach
  2018-10-03  0:25   ` Trent Piepho
  0 siblings, 1 reply; 3+ messages in thread
From: Baruch Siach @ 2018-10-02  5:38 UTC (permalink / raw)
  To: buildroot

Hi Trent,

On Fri, Sep 28, 2018 at 11:18:40PM +0000, Trent Piepho wrote:
> This package only needs ncurses when readline support is enabled, as
> it's the autoconf macro file for readline that checks for and pulls in
> ncurses.
> 
> For the target package, only depend on ncurses when readline support is
> enabled.
> 
> The host package always forces readline support off, so the host-ncurses
> dependency can be removed entirely.
> 
> Signed-off-by: Trent Piepho <tpiepho@impinj.com>
> ---
>  package/gnupg/Config.in | 2 +-
>  package/gnupg/gnupg.mk  | 6 +++---
>  2 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/package/gnupg/Config.in b/package/gnupg/Config.in
> index 7c31612298..b13d4d6935 100644
> --- a/package/gnupg/Config.in
> +++ b/package/gnupg/Config.in
> @@ -2,7 +2,7 @@ config BR2_PACKAGE_GNUPG
>  	bool "gnupg"
>  	depends on !BR2_PACKAGE_GNUPG2
>  	select BR2_PACKAGE_ZLIB
> -	select BR2_PACKAGE_NCURSES
> +	select BR2_PACKAGE_NCURSES if BR2_PACKAGE_READLINE

BR2_PACKAGE_READLINE selects BR2_PACKAGE_NCURSES already, so this is not 
needed.

>  	help
>  	  GnuPG is the GNU project's complete and free implementation
>  	  of the OpenPGP standard as defined by RFC4880. GnuPG allows
> diff --git a/package/gnupg/gnupg.mk b/package/gnupg/gnupg.mk
> index ac9047894d..8af68fd589 100644
> --- a/package/gnupg/gnupg.mk
> +++ b/package/gnupg/gnupg.mk
> @@ -9,7 +9,7 @@ GNUPG_SOURCE = gnupg-$(GNUPG_VERSION).tar.bz2
>  GNUPG_SITE = https://gnupg.org/ftp/gcrypt/gnupg
>  GNUPG_LICENSE = GPL-3.0+
>  GNUPG_LICENSE_FILES = COPYING
> -GNUPG_DEPENDENCIES = zlib ncurses $(if $(BR2_PACKAGE_LIBICONV),libiconv)
> +GNUPG_DEPENDENCIES = zlib $(if $(BR2_PACKAGE_LIBICONV),libiconv)
>  GNUPG_CONF_ENV = ac_cv_sys_symbol_underscore=no
>  GNUPG_CONF_OPTS = \
>  	--disable-rpath \
> @@ -18,7 +18,7 @@ GNUPG_CONF_OPTS = \
>  	--enable-sha256 \
>  	--enable-sha512
>  
> -HOST_GNUPG_DEPENDENCIES = host-zlib host-ncurses
> +HOST_GNUPG_DEPENDENCIES = host-zlib
>  HOST_GNUPG_CONF_OPTS = \
>  	--disable-rpath \
>  	--enable-minimal \
> @@ -48,7 +48,7 @@ GNUPG_CONF_OPTS += --without-libcurl
>  endif
>  
>  ifeq ($(BR2_PACKAGE_READLINE),y)
> -GNUPG_DEPENDENCIES += readline
> +GNUPG_DEPENDENCIES += readline ncurses

Here again, readline depends on ncurses already.

>  else
>  GNUPG_CONF_OPTS += --without-readline
>  endif

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

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

* [Buildroot] [PATCH] gnupg: Package only needs ncurses with readline
  2018-10-02  5:38 ` Baruch Siach
@ 2018-10-03  0:25   ` Trent Piepho
  0 siblings, 0 replies; 3+ messages in thread
From: Trent Piepho @ 2018-10-03  0:25 UTC (permalink / raw)
  To: buildroot

On Tue, 2018-10-02 at 08:38 +0300, Baruch Siach wrote:
> @@ -2,7 +2,7 @@ config BR2_PACKAGE_GNUPG
> >  	bool "gnupg"
> >  	depends on !BR2_PACKAGE_GNUPG2
> >  	select BR2_PACKAGE_ZLIB
> > -	select BR2_PACKAGE_NCURSES
> > +	select BR2_PACKAGE_NCURSES if BR2_PACKAGE_READLINE
> 
> BR2_PACKAGE_READLINE selects BR2_PACKAGE_NCURSES already, so this is not 
> needed.

Ok, I can take it out.  I thought since the gnupg configure script
directly references ncurses (when looking for readline), there should
be a direct dependency from gnupg to ncurses, rather than depending on
that dependency being there indirectly.  I.e., what if someone changes
readline's dependencies, would they consider the effect on gnupg?

But perhaps since it's part of readline support that is not necessary.

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

end of thread, other threads:[~2018-10-03  0:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-28 23:18 [Buildroot] [PATCH] gnupg: Package only needs ncurses with readline Trent Piepho
2018-10-02  5:38 ` Baruch Siach
2018-10-03  0:25   ` Trent Piepho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox