From: Michael Tretter <michael.tretter@posteo.net>
To: ptxdist@pengutronix.de
Cc: Michael Tretter <michael.tretter@posteo.net>
Subject: [ptxdist] [PATCH] scripts: fix position sensitive options for tar 1.30
Date: Tue, 30 Jan 2018 23:09:57 +0100 [thread overview]
Message-ID: <20180130220957.5216-1-michael.tretter@posteo.net> (raw)
tar 1.30 reports position sensitive options and returns with an error
code. This causes the following error during barebox prepare.
tar: The following options were used after any non-optional arguments in
archive create or update mode. These options are positional and affect
only arguments that follow them. Please, rearrange them properly.
tar: --exclude '.svn' has no effect
tar: --exclude '.pc' has no effect
tar: --exclude '.git' has no effect
tar: --exclude '*.in' has no effect
tar: --exclude '*.in.*' has no effect
tar: --exclude '*/*~' has no effect
tar: Exiting with failure status due to previous errors
Reorder the arguments to tar and put the --exclude arguments before the
current directory.
Signed-off-by: Michael Tretter <michael.tretter@posteo.net>
---
scripts/libptxdist.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/libptxdist.sh b/scripts/libptxdist.sh
index 433d789ea..820a02298 100644
--- a/scripts/libptxdist.sh
+++ b/scripts/libptxdist.sh
@@ -438,13 +438,14 @@ ptxd_filter_dir() {
mkdir -p "${dstdir}" &&
- tar -C "${srcdir}" -c . \
+ tar -c -C "${srcdir}" \
--exclude .svn \
--exclude .pc \
--exclude .git \
--exclude "*.in" \
--exclude "*.in.*" \
--exclude "*/*~" \
+ . \
| tar -C "${dstdir}" -x
check_pipe_status || return
--
2.16.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
reply other threads:[~2018-01-30 22:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20180130220957.5216-1-michael.tretter@posteo.net \
--to=michael.tretter@posteo.net \
--cc=ptxdist@pengutronix.de \
/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