Skip to contentSkip to conversation

svn commit: trunk/buildroot/package/ncurses

Buildroot nkukard at uclibc.org 4 participants 5 messages Apr 9, 2008 – Apr 10, 2008

lore
Share & tools
lore
#0 lore raw

Author: nkukard
Date: 2008-04-09 04:38:48 -0700 (Wed, 09 Apr 2008) New Revision: 21682

Log:
Some package use ncurses libpanel/libform/libmenu, this config allows to selectively copy them to the target filesystem at the same time at the main library is installed. -Patch by Michel (BusError)

Modified:
trunk/buildroot/package/ncurses/Config.in
trunk/buildroot/package/ncurses/ncurses.mk

Changeset:
Modified: trunk/buildroot/package/ncurses/Config.in
===================================================================

buildroot/package/ncurses/Config.in +22 -0
@@ -7,6 +7,28 @@
 
 	  http://www.gnu.org/software/ncurses/
 
+config BR2_PACKAGE_NCURSES_TARGET_PANEL
+	bool "ncurses libpanel in target"
+	default n
+	depends on BR2_PACKAGE_NCURSES
+	help
+	  Ncurses headers in target
+	  Includes ncurses dynamic libpanel in target
+ 
+config BR2_PACKAGE_NCURSES_TARGET_FORM
+	bool "ncurses libform in target"
+	default n
+	depends on BR2_PACKAGE_NCURSES
+	help
+	  Includes ncurses dynamic libform in target
+ 
+config BR2_PACKAGE_NCURSES_TARGET_MENU
+        bool "ncurses libmenu in target"
+        default n
+        depends on BR2_PACKAGE_NCURSES
+        help
+ 	  Includes ncurses dynamic libmenu in target
+
 config BR2_PACKAGE_NCURSES_TARGET_HEADERS
 	bool "ncurses headers in target"
 	default n

Modified: trunk/buildroot/package/ncurses/ncurses.mk
===================================================================

buildroot/package/ncurses/ncurses.mk +9 -0
@@ -104,6 +104,15 @@
 
 $(TARGET_DIR)/lib/libncurses.so.$(NCURSES_VERSION): $(STAGING_DIR)/lib/libncurses.so.$(NCURSES_VERSION)
 	cp -dpf $(NCURSES_DIR)/lib/libncurses.so* $(TARGET_DIR)/lib/
+ifeq ($(strip $(BR2_PACKAGE_NCURSES_TARGET_PANEL)),y)
+	cp -dpf $(NCURSES_DIR)/lib/libpanel.so* $(TARGET_DIR)/lib/
+endif
+ifeq ($(strip $(BR2_PACKAGE_NCURSES_TARGET_FORM)),y)
+	cp -dpf $(NCURSES_DIR)/lib/libform.so* $(TARGET_DIR)/lib/
+endif
+ifeq ($(strip $(BR2_PACKAGE_NCURSES_TARGET_MENU)),y)
+	cp -dpf $(NCURSES_DIR)/lib/libmenu.so* $(TARGET_DIR)/lib/
+endif
 	ln -sf /usr/share/terminfo $(TARGET_DIR)/usr/lib/terminfo
 	mkdir -p $(TARGET_DIR)/usr/share/terminfo/x
 	cp -dpf $(STAGING_DIR)/usr/share/terminfo/x/xterm $(TARGET_DIR)/usr/share/terminfo/x
#1 lore raw
Quoted 21 lines · nkukard at uclibc.org

Author: nkukard
Date: 2008-04-09 04:38:48 -0700 (Wed, 09 Apr 2008) New Revision: 21682

Log:
Some package use ncurses libpanel/libform/libmenu, this config allows to selectively copy them to the target filesystem at the same time at the main library is installed. -Patch by Michel (BusError)

Modified:
trunk/buildroot/package/ncurses/Config.in
trunk/buildroot/package/ncurses/ncurses.mk

Changeset:
Modified: trunk/buildroot/package/ncurses/Config.in
===================================================================

buildroot/package/ncurses/Config.in line 15

Quoted 9 lines
buildroot/package/ncurses/Config.in +6 -0
@@ -7,6 +7,28 @@
 
 	  http://www.gnu.org/software/ncurses/
 
+config BR2_PACKAGE_NCURSES_TARGET_PANEL
+	bool "ncurses libpanel in target"
+	default n
+	depends on BR2_PACKAGE_NCURSES
+	help
+	  Ncurses headers in target
          ^^^^^^^^^^^^^^^^^^^^^^^^^

buildroot/package/ncurses/Config.in line 16

Quoted 1 line
buildroot/package/ncurses/Config.in +1 -0
+	  Includes ncurses dynamic libpanel in target

This looks like a copy/paste error.

Quoted 4 lines
buildroot/package/ncurses/Config.in +4 -0
+ 
+config BR2_PACKAGE_NCURSES_TARGET_FORM
+	bool "ncurses libform in target"
+	default n

buildroot/package/ncurses/Config.in line 30

Quoted 10 lines
buildroot/package/ncurses/Config.in +10 -0
+	depends on BR2_PACKAGE_NCURSES
+	help
+	  Includes ncurses dynamic libform in target
+ 
+config BR2_PACKAGE_NCURSES_TARGET_MENU
+        bool "ncurses libmenu in target"
+        default n
+        depends on BR2_PACKAGE_NCURSES
+        help
+ 	  Includes ncurses dynamic libmenu in target

Weird tab/spaces mix here.

buildroot/package/ncurses/Config.in

Quoted 11 lines
buildroot/package/ncurses/Config.in +9 -0
 $(TARGET_DIR)/lib/libncurses.so.$(NCURSES_VERSION): $(STAGING_DIR)/lib/libncurses.so.$(NCURSES_VERSION)
 	cp -dpf $(NCURSES_DIR)/lib/libncurses.so* $(TARGET_DIR)/lib/
+ifeq ($(strip $(BR2_PACKAGE_NCURSES_TARGET_PANEL)),y)
+	cp -dpf $(NCURSES_DIR)/lib/libpanel.so* $(TARGET_DIR)/lib/
+endif
+ifeq ($(strip $(BR2_PACKAGE_NCURSES_TARGET_FORM)),y)
+	cp -dpf $(NCURSES_DIR)/lib/libform.so* $(TARGET_DIR)/lib/
+endif
+ifeq ($(strip $(BR2_PACKAGE_NCURSES_TARGET_MENU)),y)
+	cp -dpf $(NCURSES_DIR)/lib/libmenu.so* $(TARGET_DIR)/lib/
+endif

Should be /usr/lib rather than /lib?

thanks
Hamish

Signature · 1 line
Hamish Moffatt VK3SB <[email protected]> <[email protected]>
#2 lore raw
Quoted 9 lines

buildroot/package/ncurses/Config.in line 15

Quoted 8 lines
buildroot/package/ncurses/Config.in +6 -0
+config BR2_PACKAGE_NCURSES_TARGET_PANEL
+	bool "ncurses libpanel in target"
+	default n
+	depends on BR2_PACKAGE_NCURSES
+	help
+	  Ncurses headers in target
          ^^^^^^^^^^^^^^^^^^^^^^^^^
Quoted 3 lines

buildroot/package/ncurses/Config.in line 16

Quoted 1 line
buildroot/package/ncurses/Config.in +1 -0
+	  Includes ncurses dynamic libpanel in target

This looks like a copy/paste error.

Fixed

Quoted 17 lines
Quoted 5 lines

+

buildroot/package/ncurses/Config.in +3 -0
+config BR2_PACKAGE_NCURSES_TARGET_FORM
+	bool "ncurses libform in target"
+	default n

buildroot/package/ncurses/Config.in line 30

Quoted 10 lines
buildroot/package/ncurses/Config.in +10 -0
+	depends on BR2_PACKAGE_NCURSES
+	help
+	  Includes ncurses dynamic libform in target
+ 
+config BR2_PACKAGE_NCURSES_TARGET_MENU
+        bool "ncurses libmenu in target"
+        default n
+        depends on BR2_PACKAGE_NCURSES
+        help
+ 	  Includes ncurses dynamic libmenu in target

Weird tab/spaces mix here.

Fixed

Quoted 14 lines

buildroot/package/ncurses/ncurses.mk line 115

Quoted 12 lines

$(TARGET_DIR)/lib/libncurses.so.$(NCURSES_VERSION): $(STAGING_DIR)/lib/libncurses.so.$(NCURSES_VERSION)

buildroot/package/ncurses/ncurses.mk +9 -0
 	cp -dpf $(NCURSES_DIR)/lib/libncurses.so* $(TARGET_DIR)/lib/
+ifeq ($(strip $(BR2_PACKAGE_NCURSES_TARGET_PANEL)),y)
+	cp -dpf $(NCURSES_DIR)/lib/libpanel.so* $(TARGET_DIR)/lib/
+endif
+ifeq ($(strip $(BR2_PACKAGE_NCURSES_TARGET_FORM)),y)
+	cp -dpf $(NCURSES_DIR)/lib/libform.so* $(TARGET_DIR)/lib/
+endif
+ifeq ($(strip $(BR2_PACKAGE_NCURSES_TARGET_MENU)),y)
+	cp -dpf $(NCURSES_DIR)/lib/libmenu.so* $(TARGET_DIR)/lib/
+endif

Should be /usr/lib rather than /lib?

The rest of the libs are being installed to /lib ... I don't like changing install paths, but I agree with you it should be /usr/lib ... anyone got any very good reason why ncurses should be installed in /lib?

-N
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://busybox.net/lists/buildroot/attachments/20080410/71bdb923/attachment.pgp

#3 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Nigel" == Nigel Kukard <[email protected]> writes:

Hi,

Quoted 1 line
Quoted 1 line

Should be /usr/lib rather than /lib?

Nigel> The rest of the libs are being installed to /lib ... I don't like Nigel> changing install paths, but I agree with you it should be /usr/lib ... Nigel> anyone got any very good reason why ncurses should be installed in /lib?

The basic libncurses.co* is normally installed in /lib, but the extra libs are in /usr/lib, E.G. on my Debian machine:

% dpkg -L libncurses5|grep .so|sort
/lib/libncurses.so.5
/lib/libncurses.so.5.6
/lib/libtic.so.5
/lib/libtic.so.5.6
/usr/lib/libform.so.5
/usr/lib/libform.so.5.6
/usr/lib/libmenu.so.5
/usr/lib/libmenu.so.5.6
/usr/lib/libpanel.so.5
/usr/lib/libpanel.so.5.6

Signature · 1 line
Bye, Peter Korsgaard
#4 lore raw
Quoted 4 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Nigel" == Nigel Kukard <[email protected]> writes:

Hi,

Quoted 8 lines
Quoted 1 line
Quoted 1 line

Should be /usr/lib rather than /lib?

Nigel> The rest of the libs are being installed to /lib ... I don't like Nigel> changing install paths, but I agree with you it should be /usr/lib ... Nigel> anyone got any very good reason why ncurses should be installed in /lib?

The basic libncurses.co* is normally installed in /lib, but the extra libs are in /usr/lib, E.G. on my Debian machine:

bash and more (and most other shells in /bin) uses libncurses, so it needs to be in /lib on a typical system. (On a buildroot system those would normally be provided by busybox instead).

Hamish

Signature · 1 line
Hamish Moffatt VK3SB <[email protected]> <[email protected]>