From: jon@ringle.org
To: ptxdist@pengutronix.de
Cc: Jon Ringle <jringle@gridpoint.com>
Subject: [ptxdist] [PATCH] make dist: tar --owner=0 --group=0
Date: Wed, 21 Jan 2015 10:28:18 -0500 [thread overview]
Message-ID: <1421854098-24389-1-git-send-email-jon@ringle.org> (raw)
From: Jon Ringle <jringle@gridpoint.com>
I have PowerBroker installed on my Ubuntu so that my machine is part of
our corporate Active Directory. A side effect of that is that the UID/GID
values are quite large and tar doesn't like it:
preparing PTXdist environment ... done
tar xf "ptxdist-2015.01.0_GP.tar"
echo -n "2015.01.0_GP" > "ptxdist-2015.01.0_GP/.tarball-version"
cd "ptxdist-2015.01.0_GP" && ./autogen.sh
tar -rf "ptxdist-2015.01.0_GP.tar" \
"ptxdist-2015.01.0_GP/configure" \
"ptxdist-2015.01.0_GP/.tarball-version"
tar: value 1432897037 out of uid_t range 0..2097151
tar: value 1432897037 out of uid_t range 0..2097151
tar: Exiting with failure status due to previous errors
make: *** [dist] Error 2
The git archive produces a tar archive with UID/GID of 0/0, so it seems
reasonable that the extra files being append should also be 0/0.
Signed-off-by: Jon Ringle <jringle@gridpoint.com>
---
Makefile.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.in b/Makefile.in
index 64dc808..56ae407 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -116,7 +116,7 @@ dist: dirty-check
echo -n "${version}" > "${project}/.tarball-version"
cd "$(project)" && ./autogen.sh
- tar -rf "${project}.tar" \
+ tar --owner=0 --group=0 -rf "${project}.tar" \
"${project}/configure" \
"${project}/.tarball-version"
bzip2 "${project}.tar"
--
1.9.1
--
ptxdist mailing list
ptxdist@pengutronix.de
reply other threads:[~2015-01-21 15:28 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=1421854098-24389-1-git-send-email-jon@ringle.org \
--to=jon@ringle.org \
--cc=jringle@gridpoint.com \
--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