[PATCH] Make Dpkg::Source::Archive use tar --format=gnu
Explicitly instruct Dpkg::Source::Archive to use the gnu format when
creating archives. Some versions of tar (specifically on openSUSE >= 12.2)
have a different default tar format. This change makes the archive
creation more consistent.
Signed-off-by: Jan Blunck <jblunck@infradead.org>
---
scripts/Dpkg/Source/Archive.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/Dpkg/Source/Archive.pm b/scripts/Dpkg/Source/Archive.pm
index d95569a..2f76ea9 100644
--- a/scripts/Dpkg/Source/Archive.pm
+++ b/scripts/Dpkg/Source/Archive.pm
@@ -49,7 +49,7 @@ sub create {
# Call tar creation process
$spawn_opts{delete_env} = [ 'TAR_OPTIONS' ];
$spawn_opts{exec} = [ 'tar', '--null', '-T', '-', '--numeric-owner',
- '--owner', '0', '--group', '0',
+ '--owner', '0', '--group', '0', '--format=gnu',
@{$opts{options}}, '-cf', '-' ];
*$self->{pid} = spawn(%spawn_opts);
*$self->{cwd} = getcwd();
--
1.8.4.5
Reply to: