Skip to contentSkip to conversation

ncurses: speed up the build by not installing manpages

PATCH New Thomas Petazzoni 2 participants 3 messages Feb 24, 2013 – Mar 4, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ncurses: speed up the build by not installing manpages

The installation of manpages during the installation step of host-ncurses and ncurses is horribly slow, and useless. This commit therefore disables the installation of those manpages, using the --without-manpages configuration option.

It brings the combined host-ncurses+ncurses configure/build/install time from 3 minutes and 18 seconds to 1 minute and 36 seconds.

---
 package/ncurses/ncurses.mk |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
package/ncurses/ncurses.mk +4 -2
index aa2b6bc..e77a0f1 100644
@@ -27,7 +27,8 @@ NCURSES_CONF_OPT = \
 	--enable-echo \
 	--enable-const \
 	--enable-overwrite \
-	--enable-pc-files
+	--enable-pc-files \
+	$(if $(BR2_HAVE_DOCUMENTATION),,--without-manpages)
 
 ifneq ($(BR2_ENABLE_DEBUG),y)
 NCURSES_CONF_OPT += --without-debug
@@ -115,7 +116,8 @@ define HOST_NCURSES_BUILD_CMDS
 endef
 
 HOST_NCURSES_CONF_OPT = \
-	--without-shared --without-gpm
+	--without-shared --without-gpm \
+	--without-manpages
 
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 2/2 ncurses: speed up host build

Disable C++ and Ada bindings in host-ncurses, since those are not needed. Save 9 seconds of build time on my laptop.

---
 package/ncurses/ncurses.mk |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
package/ncurses/ncurses.mk +4 -1
index e77a0f1..c01dfbc 100644
@@ -117,7 +117,10 @@ endef
 
 HOST_NCURSES_CONF_OPT = \
 	--without-shared --without-gpm \
-	--without-manpages
+	--without-manpages \
+	--without-cxx \
+	--without-cxx-binding \
+	--without-ada
 
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
Signature · 1 line
1.7.9.5
#2 lore raw

PATCH 1/2 ncurses: speed up the build by not installing manpages

In reply to Thomas Petazzoni
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Thomas> The installation of manpages during the installation step of Thomas> host-ncurses and ncurses is horribly slow, and useless. This commit Thomas> therefore disables the installation of those manpages, using the Thomas> --without-manpages configuration option.

Thomas> It brings the combined host-ncurses+ncurses configure/build/install Thomas> time from 3 minutes and 18 seconds to 1 minute and 36 seconds.

Cool, committed both, thanks.

Signature · 1 line
Bye, Peter Korsgaard