All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] busybox: ncurses progs equiv as default
@ 2017-04-20  2:13 Matt Weber
  2017-04-20  4:00 ` Baruch Siach
  0 siblings, 1 reply; 5+ messages in thread
From: Matt Weber @ 2017-04-20  2:13 UTC (permalink / raw)
  To: buildroot

By default, enable the busybox equivalents of the ncurses
clear and reset if ncurses progs are not enabled.

Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
---
 package/busybox/busybox.mk | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk
index 9d9fcc2..56ec939 100644
--- a/package/busybox/busybox.mk
+++ b/package/busybox/busybox.mk
@@ -153,10 +153,15 @@ ifeq ($(BR2_PACKAGE_NCURSES_TARGET_PROGS),y)
 #     /usr/bin/clear
 #     /usr/bin/reset -> /usr/bin/tset (symlink)
 #
-define BUSYBOX_DISABLE_NCURSES_PROGS
+define BUSYBOX_NCURSES_PROGS
 	$(call KCONFIG_DISABLE_OPT,CONFIG_CLEAR,$(BUSYBOX_BUILD_CONFIG))
 	$(call KCONFIG_DISABLE_OPT,CONFIG_RESET,$(BUSYBOX_BUILD_CONFIG))
 endef
+else
+define BUSYBOX_NCURSES_PROGS
+	$(call KCONFIG_ENABLE_OPT,CONFIG_CLEAR,$(BUSYBOX_BUILD_CONFIG))
+	$(call KCONFIG_ENABLE_OPT,CONFIG_RESET,$(BUSYBOX_BUILD_CONFIG))
+endef
 endif
 
 define BUSYBOX_INSTALL_UDHCPC_SCRIPT
@@ -240,7 +245,7 @@ define BUSYBOX_KCONFIG_FIXUP_CMDS
 	$(BUSYBOX_SET_WATCHDOG)
 	$(BUSYBOX_SET_SELINUX)
 	$(BUSYBOX_MUSL_TWEAKS)
-	$(BUSYBOX_DISABLE_NCURSES_PROGS)
+	$(BUSYBOX_NCURSES_PROGS)
 endef
 
 define BUSYBOX_CONFIGURE_CMDS
-- 
1.9.1

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

* [Buildroot] [PATCH 1/1] busybox: ncurses progs equiv as default
  2017-04-20  2:13 [Buildroot] [PATCH 1/1] busybox: ncurses progs equiv as default Matt Weber
@ 2017-04-20  4:00 ` Baruch Siach
  2017-04-20 13:01   ` Matthew Weber
  0 siblings, 1 reply; 5+ messages in thread
From: Baruch Siach @ 2017-04-20  4:00 UTC (permalink / raw)
  To: buildroot

Hi Matt,

On Wed, Apr 19, 2017 at 09:13:28PM -0500, Matt Weber wrote:
> By default, enable the busybox equivalents of the ncurses
> clear and reset if ncurses progs are not enabled.

Our default busybox.config enables these applets. If the user chooses to 
disable them in a custom config, why should we force them back on?

baruch

> Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
> ---
>  package/busybox/busybox.mk | 9 +++++++--
>  1 file changed, 7 insertions(+), 2 deletions(-)
> 
> diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk
> index 9d9fcc2..56ec939 100644
> --- a/package/busybox/busybox.mk
> +++ b/package/busybox/busybox.mk
> @@ -153,10 +153,15 @@ ifeq ($(BR2_PACKAGE_NCURSES_TARGET_PROGS),y)
>  #     /usr/bin/clear
>  #     /usr/bin/reset -> /usr/bin/tset (symlink)
>  #
> -define BUSYBOX_DISABLE_NCURSES_PROGS
> +define BUSYBOX_NCURSES_PROGS
>  	$(call KCONFIG_DISABLE_OPT,CONFIG_CLEAR,$(BUSYBOX_BUILD_CONFIG))
>  	$(call KCONFIG_DISABLE_OPT,CONFIG_RESET,$(BUSYBOX_BUILD_CONFIG))
>  endef
> +else
> +define BUSYBOX_NCURSES_PROGS
> +	$(call KCONFIG_ENABLE_OPT,CONFIG_CLEAR,$(BUSYBOX_BUILD_CONFIG))
> +	$(call KCONFIG_ENABLE_OPT,CONFIG_RESET,$(BUSYBOX_BUILD_CONFIG))
> +endef
>  endif
>  
>  define BUSYBOX_INSTALL_UDHCPC_SCRIPT
> @@ -240,7 +245,7 @@ define BUSYBOX_KCONFIG_FIXUP_CMDS
>  	$(BUSYBOX_SET_WATCHDOG)
>  	$(BUSYBOX_SET_SELINUX)
>  	$(BUSYBOX_MUSL_TWEAKS)
> -	$(BUSYBOX_DISABLE_NCURSES_PROGS)
> +	$(BUSYBOX_NCURSES_PROGS)
>  endef
>  
>  define BUSYBOX_CONFIGURE_CMDS

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

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

* [Buildroot] [PATCH 1/1] busybox: ncurses progs equiv as default
  2017-04-20  4:00 ` Baruch Siach
@ 2017-04-20 13:01   ` Matthew Weber
  2017-04-23 21:32     ` Arnout Vandecappelle
  0 siblings, 1 reply; 5+ messages in thread
From: Matthew Weber @ 2017-04-20 13:01 UTC (permalink / raw)
  To: buildroot

Baruch,

On Wed, Apr 19, 2017 at 11:00 PM, Baruch Siach <baruch@tkos.co.il> wrote:
> Hi Matt,
>
> On Wed, Apr 19, 2017 at 09:13:28PM -0500, Matt Weber wrote:
>> By default, enable the busybox equivalents of the ncurses
>> clear and reset if ncurses progs are not enabled.
>
> Our default busybox.config enables these applets. If the user chooses to
> disable them in a custom config, why should we force them back on?
>

True, I was thinking the use case of build time changing (then doing
incremental build)if you use ncurses progs vs not and forcing the
busybox reconfig to have it update the target folder respectively.

I agree this isn't' ideal for all situations, but with these being
terminal tools, would/should you ever turn them off and the amount of
code is small?

Other discussion related to this:
https://patchwork.ozlabs.org/patch/750264/
https://patchwork.ozlabs.org/patch/750721/

-Matt

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

* [Buildroot] [PATCH 1/1] busybox: ncurses progs equiv as default
  2017-04-20 13:01   ` Matthew Weber
@ 2017-04-23 21:32     ` Arnout Vandecappelle
  2017-04-24 12:40       ` Matthew Weber
  0 siblings, 1 reply; 5+ messages in thread
From: Arnout Vandecappelle @ 2017-04-23 21:32 UTC (permalink / raw)
  To: buildroot



On 20-04-17 15:01, Matthew Weber wrote:
> Baruch,
> 
> On Wed, Apr 19, 2017 at 11:00 PM, Baruch Siach <baruch@tkos.co.il> wrote:
>> Hi Matt,
>>
>> On Wed, Apr 19, 2017 at 09:13:28PM -0500, Matt Weber wrote:
>>> By default, enable the busybox equivalents of the ncurses
>>> clear and reset if ncurses progs are not enabled.
>>
>> Our default busybox.config enables these applets. If the user chooses to
>> disable them in a custom config, why should we force them back on?
>>
> 
> True, I was thinking the use case of build time changing (then doing
> incremental build)if you use ncurses progs vs not and forcing the
> busybox reconfig to have it update the target folder respectively.

 This is a use case we certainly don't want to support. On the other hand, we
*do* want to support the use case where the user has a custom busybox config,
doesn't have ncurses, and doesn't want to have clear and reset in his system.

 Regards,
 Arnout

> 
> I agree this isn't' ideal for all situations, but with these being
> terminal tools, would/should you ever turn them off and the amount of
> code is small?
> 
> Other discussion related to this:
> https://patchwork.ozlabs.org/patch/750264/
> https://patchwork.ozlabs.org/patch/750721/
> 
> -Matt
> 

-- 
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

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

* [Buildroot] [PATCH 1/1] busybox: ncurses progs equiv as default
  2017-04-23 21:32     ` Arnout Vandecappelle
@ 2017-04-24 12:40       ` Matthew Weber
  0 siblings, 0 replies; 5+ messages in thread
From: Matthew Weber @ 2017-04-24 12:40 UTC (permalink / raw)
  To: buildroot

Arnout,

On Sun, Apr 23, 2017 at 4:32 PM, Arnout Vandecappelle <arnout@mind.be> wrote:
>
>
>
> On 20-04-17 15:01, Matthew Weber wrote:
> > Baruch,
> >
> > On Wed, Apr 19, 2017 at 11:00 PM, Baruch Siach <baruch@tkos.co.il> wrote:
> >> Hi Matt,
> >>
> >> On Wed, Apr 19, 2017 at 09:13:28PM -0500, Matt Weber wrote:
> >>> By default, enable the busybox equivalents of the ncurses
> >>> clear and reset if ncurses progs are not enabled.
> >>
> >> Our default busybox.config enables these applets. If the user chooses to
> >> disable them in a custom config, why should we force them back on?
> >>
> >
> > True, I was thinking the use case of build time changing (then doing
> > incremental build)if you use ncurses progs vs not and forcing the
> > busybox reconfig to have it update the target folder respectively.
>
>  This is a use case we certainly don't want to support. On the other hand, we
> *do* want to support the use case where the user has a custom busybox config,
> doesn't have ncurses, and doesn't want to have clear and reset in his system.

Thanks for the feedback, this was more of a RFC to tie-off my previous
patches. I'm good with it being rejected.
-Matt

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

end of thread, other threads:[~2017-04-24 12:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-20  2:13 [Buildroot] [PATCH 1/1] busybox: ncurses progs equiv as default Matt Weber
2017-04-20  4:00 ` Baruch Siach
2017-04-20 13:01   ` Matthew Weber
2017-04-23 21:32     ` Arnout Vandecappelle
2017-04-24 12:40       ` Matthew Weber

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.