[pacman-dev] [PATCH] makepkg: unify tarball creation

Dan McGee dpmcgee at gmail.com
Thu Sep 29 13:52:55 EDT 2011

On Thu, Sep 29, 2011 at 12:23 PM, lolilolicon <lolilolicon at gmail.com> wrote:
> Introduce ext_to_tar_opt() to unify package and source package tarball
> creation.  This requires bsdtar to support the compression options -z,
> -j, -J and -Z.  Note also the 'compress' command is not available in
> Arch (FS#25908), so 'bsdtar -Z' seems to be the only way to support
> .tar.Z archive creation.

When you write a patch and the "why do they do it this way, it seems
so silly!" thought comes into your head, I encourage you to review the
extensive git history surrounding this code, notably:

Until you teach bsdtar to not store a new gzip timestamp each time it
creates a package (and thus makes packaging actually produce the same
package every time), this patch totally breaks lessons we learned 2
and a half years ago.


More information about the pacman-dev mailing list