[pacman-dev] [PATCH] makepkg: introduce SOURCE_DATE_EPOCH
Andrew Gregory
andrew.gregory.8 at gmail.com
Mon Apr 17 13:37:12 UTC 2017
On 04/17/17 at 10:04pm, Allan McRae wrote:
> On 17/04/17 20:41, Allan McRae wrote:
> > + # ensure all elements of the package have the same mtime
> > + find . -exec touch -d @$SOURCE_DATE_EPOCH {} \;
> > +
> > msg2 "$(gettext "Generating .MTREE file...")"
> > - list_package_files | LANG=C bsdtar -cnzf .MTREE --format=mtree \
> > + list_package_files | LANG=C bsdtar -cnf - --format=mtree \
> > --options='!all,use-set,type,uid,gid,mode,time,size,md5,sha256,link' \
> > - --null --files-from - --exclude .MTREE
> > + --null --files-from - --exclude .MTREE | gzip -c -f -n > .MTREE
> > + touch -d @$SOURCE_DATE_EPOCH .MTREE
> >
> > msg2 "$(gettext "Compressing package...")"
> > # TODO: Maybe this can be set globally for robustness
> >
>
> These touch commands have had a -h added.
touch -h and date %s are not POSIX, are they available everywhere we
support?
Why the change to gzip for .MTREE?
apg
More information about the pacman-dev
mailing list