bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue with creating an archive with reproducible content


From: Jan-Benedict Glaw
Subject: Re: Issue with creating an archive with reproducible content
Date: Thu, 2 May 2024 01:05:42 +0200
User-agent: Mutt/1.10.1 (2018-07-13)

On Sat, 2024-04-27 21:23:37 +0200, Jan-Benedict Glaw <jbglaw@lug-owl.de> wrote:
> I'm trying to generate a reproducible archive of a directory
> contianing a number of files using tar 1.34; there are just
[...]
> It boils down to a call like this:
> 
>     tar     --sort=name                                                       
>                                       \
>             --mtime="@${SOURCE_DATE_EPOCH:-$(date +%s)}"                      
>                                       \
>             --owner=0                                                         
>                                       \
>             --group=0                                                         
>                                       \
>             --numeric-owner                                                   
>                                       \
>             --format=pax                                                      
>                                       \
>             
> --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime,delete=devmajor,delete=devminor
>      \
>             -cf - "${basename_dir}"                                           
>                                       | \
>             gzip -n9 > "${artifacts_dir}/${tarball_filename}"

Turns out: Running an update to 1.35 (actually to Debian's
1.35+dfsg-3) seems to allow creating reproducible tarballs using the
above command.

Thanks,
  Jan-Benedict

-- 

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]