[PATCH] Make Dpkg::Source::Archive use tar --format=gnu

2014-08-13 Thread Jan Blunck
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 
---
 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


-- 
To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/1407945768-2738-1-git-send-email-jblu...@infradead.org



Re: [PATCH] Make Dpkg::Source::Archive use tar --format=gnu

2014-08-13 Thread Guillem Jover
Hi!

On Wed, 2014-08-13 at 18:02:48 +0200, Jan Blunck wrote:
> 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.

Yeah, makes sense. Thanks, merged locally, will be included in 1.17.12.

Regards,
Guillem


-- 
To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140813170513.ga2...@gaara.hadrons.org