* [Buildroot] [PATCH 1/1] screen: add support for 256 colors
@ 2014-12-09 15:26 Thierry Bultel
2014-12-09 15:39 ` Vicente Olivert Riera
0 siblings, 1 reply; 4+ messages in thread
From: Thierry Bultel @ 2014-12-09 15:26 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thierry Bultel <tbultel@free.fr>
---
package/screen/Config.in | 7 +++++++
package/screen/screen.mk | 8 +++++++-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/package/screen/Config.in b/package/screen/Config.in
index b5876e8..bae4be3 100644
--- a/package/screen/Config.in
+++ b/package/screen/Config.in
@@ -11,3 +11,10 @@ config BR2_PACKAGE_SCREEN
and support for multiple character sets).
http://www.gnu.org/software/screen/
+
+if BR2_PACKAGE_SCREEN
+config BR2_PACKAGE_SCREEN_COLORS256
+ bool "screen 256 colors"
+ help
+ enable support for 256 colors
+endif
diff --git a/package/screen/screen.mk b/package/screen/screen.mk
index 827e776..8056c31 100644
--- a/package/screen/screen.mk
+++ b/package/screen/screen.mk
@@ -14,8 +14,14 @@ SCREEN_CONF_ENV = CFLAGS="$(TARGET_CFLAGS)"
SCREEN_MAKE = $(MAKE1)
SCREEN_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) SCREEN=screen install_bin
+ifeq ($(BR2_PACKAGE_SCREEN_COLORS256),y)
+SCREEN_CONF_OPTS += --enable-colors256
+endif
+
define SCREEN_INSTALL_SCREENRC
- $(INSTALL) -m 0755 -D $(@D)/etc/screenrc $(TARGET_DIR)/etc/screenrc
+ if [ ! -f $(TARGET_DIR)/etc/screenrc ]; then \
+ $(INSTALL) -m 0755 -D $(@D)/etc/screenrc $(TARGET_DIR)/etc/screenrc; \
+ fi
endef
SCREEN_POST_INSTALL_TARGET_HOOKS += SCREEN_INSTALL_SCREENRC
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/1] screen: add support for 256 colors
2014-12-09 15:26 [Buildroot] [PATCH 1/1] screen: add support for 256 colors Thierry Bultel
@ 2014-12-09 15:39 ` Vicente Olivert Riera
2014-12-09 15:57 ` Baruch Siach
0 siblings, 1 reply; 4+ messages in thread
From: Vicente Olivert Riera @ 2014-12-09 15:39 UTC (permalink / raw)
To: buildroot
Dear Thierry Bultel,
On 12/09/2014 03:26 PM, Thierry Bultel wrote:
> define SCREEN_INSTALL_SCREENRC
> - $(INSTALL) -m 0755 -D $(@D)/etc/screenrc $(TARGET_DIR)/etc/screenrc
> + if [ ! -f $(TARGET_DIR)/etc/screenrc ]; then \
> + $(INSTALL) -m 0755 -D $(@D)/etc/screenrc $(TARGET_DIR)/etc/screenrc; \
> + fi
> endef
>
> SCREEN_POST_INSTALL_TARGET_HOOKS += SCREEN_INSTALL_SCREENRC
This part is not related with adding support for 256 colors, so, why
don't you send a separate patch for it? Or at least, state in your
commit message you are fixing a little issue with the 'screenrc' file
installation. But I would say that a separate patch would be better.
Best regards,
--
Vicente Olivert Riera
Graduate Software Engineer, MIPS Platforms
Imagination Technologies Limited
t: +44 (0)113 2429814
www.imgtec.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/1] screen: add support for 256 colors
2014-12-09 15:39 ` Vicente Olivert Riera
@ 2014-12-09 15:57 ` Baruch Siach
2014-12-10 17:37 ` Vicente Olivert Riera
0 siblings, 1 reply; 4+ messages in thread
From: Baruch Siach @ 2014-12-09 15:57 UTC (permalink / raw)
To: buildroot
Hi Vicente, Thierry,
On Tue, Dec 09, 2014 at 03:39:01PM +0000, Vicente Olivert Riera wrote:
> On 12/09/2014 03:26 PM, Thierry Bultel wrote:
>
> > define SCREEN_INSTALL_SCREENRC
> > - $(INSTALL) -m 0755 -D $(@D)/etc/screenrc $(TARGET_DIR)/etc/screenrc
> > + if [ ! -f $(TARGET_DIR)/etc/screenrc ]; then \
> > + $(INSTALL) -m 0755 -D $(@D)/etc/screenrc $(TARGET_DIR)/etc/screenrc; \
> > + fi
> > endef
> >
> > SCREEN_POST_INSTALL_TARGET_HOOKS += SCREEN_INSTALL_SCREENRC
>
> This part is not related with adding support for 256 colors, so, why
> don't you send a separate patch for it? Or at least, state in your
> commit message you are fixing a little issue with the 'screenrc' file
> installation. But I would say that a separate patch would be better.
I don't think the change in this separate patch is desired. We have just
recently (commit 963bbf266bfebc [screen: install configuration file
unconditionally]) switched to unconditional install of the config file.
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] 4+ messages in thread
* [Buildroot] [PATCH 1/1] screen: add support for 256 colors
2014-12-09 15:57 ` Baruch Siach
@ 2014-12-10 17:37 ` Vicente Olivert Riera
0 siblings, 0 replies; 4+ messages in thread
From: Vicente Olivert Riera @ 2014-12-10 17:37 UTC (permalink / raw)
To: buildroot
Dear Baruch Siach, Thierry Bultel,
On 12/09/2014 03:57 PM, Baruch Siach wrote:
> I don't think the change in this separate patch is desired. We have just
> recently (commit 963bbf266bfebc [screen: install configuration file
> unconditionally]) switched to unconditional install of the config file.
That's right. It's trying to revert this commit:
http://git.buildroot.net/buildroot/commit/?id=963bbf266bfebc240888cf8bce502a2fadb38c48
Please don't do that. Remove that from your patch, send a new version
and mark this one as 'superseded' in patchwork.
Thanks,
--
Vicente Olivert Riera
Graduate Software Engineer, MIPS Platforms
Imagination Technologies Limited
t: +44 (0)113 2429814
www.imgtec.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-12-10 17:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-09 15:26 [Buildroot] [PATCH 1/1] screen: add support for 256 colors Thierry Bultel
2014-12-09 15:39 ` Vicente Olivert Riera
2014-12-09 15:57 ` Baruch Siach
2014-12-10 17:37 ` Vicente Olivert Riera
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox