From: Peter Korsgaard <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] <pkg>-rsync: exclude version control files
Date: Mon, 04 Mar 2013 21:04:15 +0100 [thread overview]
Message-ID: <871ubv9bk0.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <f9ac20b69b1bfd3f77ef.1362169598@BEANTN0L019720> (Thomas De Schampheleire's message of "Fri, 01 Mar 2013 21:26:38 +0100")
>>>>> "Thomas" == Thomas De Schampheleire <patrickdepinguin+buildroot@gmail.com> writes:
Thomas> When using rsync to import package sources (typically with
Thomas> PKG_OVERRIDE_SRCDIR), it often happens that these external sources
Thomas> are under version control, and contain directories like .git,
Thomas> .hg, etc.
Thomas> Depending on the project, these directories can become pretty large
Thomas> and typically have a lot of files. Moreover, they are not necessary
Thomas> in the context of building the package. Therefore, this commit adds
Thomas> the --cvs-exclude option to the rsync call, saving both disk space
Thomas> and sync time.
I don't personally use this, but doesn't that break stuff using the
version info (like E.G. the kernel storing the git id)?
Thomas> Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Thomas> ---
Thomas> package/pkg-generic.mk | 2 +-
Thomas> 1 files changed, 1 insertions(+), 1 deletions(-)
Thomas> diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
Thomas> --- a/package/pkg-generic.mk
Thomas> +++ b/package/pkg-generic.mk
Thomas> @@ -62,7 +62,7 @@ endif
Thomas> $(BUILD_DIR)/%/.stamp_rsynced:
Thomas> @$(call MESSAGE,"Syncing from source dir $(SRCDIR)")
Thomas> @test -d $(SRCDIR) || (echo "ERROR: $(SRCDIR) does not exist" ; exit 1)
Thomas> - rsync -au $(SRCDIR)/ $(@D)
Thomas> + rsync -au --cvs-exclude $(SRCDIR)/ $(@D)
Thomas> $(Q)touch $@
Thomas> # Handle the SOURCE_CHECK and SHOW_EXTERNAL_DEPS cases for rsynced
Thomas> _______________________________________________
Thomas> buildroot mailing list
Thomas> buildroot at busybox.net
Thomas> http://lists.busybox.net/mailman/listinfo/buildroot
--
Bye, Peter Korsgaard
next prev parent reply other threads:[~2013-03-04 20:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-01 20:26 [Buildroot] [PATCH] <pkg>-rsync: exclude version control files Thomas De Schampheleire
2013-03-04 20:04 ` Peter Korsgaard [this message]
2013-03-04 20:15 ` Thomas De Schampheleire
2013-03-06 17:47 ` Arnout Vandecappelle
2013-03-10 22:45 ` Peter Korsgaard
2013-03-11 17:51 ` Thomas Petazzoni
2013-03-17 13:41 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871ubv9bk0.fsf@dell.be.48ers.dk \
--to=jacmet@uclibc.org \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox