mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] make dist: tar --owner=0 --group=0
@ 2015-01-21 15:28 jon
  0 siblings, 0 replies; only message in thread
From: jon @ 2015-01-21 15:28 UTC (permalink / raw)
  To: ptxdist; +Cc: Jon Ringle

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-01-21 15:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-21 15:28 [ptxdist] [PATCH] make dist: tar --owner=0 --group=0 jon

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