Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] rsync: use system zlib and popt, also do not lose debug options
@ 2013-10-16 11:40 Denis Mingulov
  2013-10-16 12:26 ` Thomas Petazzoni
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Denis Mingulov @ 2013-10-16 11:40 UTC (permalink / raw)
  To: buildroot

rsync by default compiles statically its own zlib and popt
libraries, it is better to use system wide libraries instead -
both for disk and memory consumption. Change rsync package
accordingly.

Also previously a debug configure option has been lost, as
overwritten by '--with-included-popt' option - fixed.

For example, on ARMv5 rsync binary size is reduced by about 25%.

Signed-off-by: Denis Mingulov <denis@mingulov.com>
---
 package/rsync/Config.in | 2 ++
 package/rsync/rsync.mk  | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/package/rsync/Config.in b/package/rsync/Config.in
index be95a7c..b952974 100644
--- a/package/rsync/Config.in
+++ b/package/rsync/Config.in
@@ -2,6 +2,8 @@ config BR2_PACKAGE_RSYNC
 	bool "rsync"
 	# fork()
 	depends on BR2_USE_MMU
+	select BR2_PACKAGE_ZLIB
+	select BR2_PACKAGE_POPT
 	help
 	  File transfer program to keep remote files in sync.
 
diff --git a/package/rsync/rsync.mk b/package/rsync/rsync.mk
index d8e5f3f..4f336bc 100644
--- a/package/rsync/rsync.mk
+++ b/package/rsync/rsync.mk
@@ -8,7 +8,9 @@ RSYNC_VERSION = 3.1.0
 RSYNC_SITE = http://rsync.samba.org/ftp/rsync/src
 RSYNC_LICENSE = GPLv3+
 RSYNC_LICENSE_FILES = COPYING
+RSYNC_DEPENDENCIES = zlib popt
 RSYNC_CONF_OPT = $(if $(BR2_ENABLE_DEBUG),--enable-debug,--disable-debug)
-RSYNC_CONF_OPT = --with-included-popt
+RSYNC_CONF_OPT += --with-included-zlib=no
+RSYNC_CONF_OPT += --with-included-popt=no
 
 $(eval $(autotools-package))
-- 
1.8.4

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

end of thread, other threads:[~2013-11-01 16:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-16 11:40 [Buildroot] [PATCH] rsync: use system zlib and popt, also do not lose debug options Denis Mingulov
2013-10-16 12:26 ` Thomas Petazzoni
2013-10-16 13:13 ` [Buildroot] [PATCH v2] " Denis Mingulov
2013-10-17 16:19   ` Arnout Vandecappelle
2013-11-01 16:41   ` Thomas Petazzoni
2013-10-16 21:47 ` [Buildroot] [PATCH] " Arnout Vandecappelle
2013-10-17  6:05   ` Denis Mingulov
2013-10-17 16:18     ` Arnout Vandecappelle

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