* [ptxdist] [PATCH] scripts: fix position sensitive options for tar 1.30
@ 2018-01-30 22:09 Michael Tretter
0 siblings, 0 replies; only message in thread
From: Michael Tretter @ 2018-01-30 22:09 UTC (permalink / raw)
To: ptxdist; +Cc: Michael Tretter
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-01-30 22:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-30 22:09 [ptxdist] [PATCH] scripts: fix position sensitive options for tar 1.30 Michael Tretter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox