[PATCH] make dist: Create tar.xz with python3 and sign compressed tarballs

Martin Schwenke martin at meltin.net
Sun Dec 9 22:20:04 UTC 2018


On Fri, 7 Dec 2018 15:23:44 +0100, Stefan Metzmacher via
samba-technical <samba-technical at lists.samba.org> wrote:

> Am 07.12.18 um 15:07 schrieb Andreas Schneider via samba-technical:
> > Hi,
> > 
> > the attached patch will create tar.xz tarballs when waf is called with python3 
> > and tar.gz with python2. python2 doesn't support xz tarballs.
> > 
> > Also the signature is created on the tar.xz file and not on the tar file.
> > 
> > 
> > -rw-r--r--  1 asn users  18M Dec  7 15:02 samba-4.10.0pre1-
> > GIT-5b697db7560.tar.gz
> > -rw-r--r--  1 asn users  833 Dec  7 15:02 samba-4.10.0pre1-
> > GIT-5b697db7560.tar.gz.asc
> > 
> > -rw-r--r--  1 asn users  12M Dec  7 15:04 samba-4.10.0pre1-
> > GIT-5b697db7560.tar.xz
> > -rw-r--r--  1 asn users  833 Dec  7 15:04 samba-4.10.0pre1-
> > GIT-5b697db7560.tar.xz.asc
> > 
> > As you can see, the tar.xz is 6MB smaller. I've used:
> > 
> > python3 buildtools/bin/waf dist --sign-release
> > 
> > 
> > Please review and push if OK.  
> 
> You also need to take care of script/release.sh
> 
> Is xz available on platforms like AIX?

Yes:

  https://www.ibm.com/developerworks/aix/library/aix-toolbox/alpha.html

FreeBSD uses xz for compressing installation images:

  https://download.freebsd.org/ftp/releases/amd64/amd64/ISO-IMAGES/11.2/

So it is definitely available but they also provide uncompressed
images....  not sure what that means in terms of convenience of .xz
files.  :-)

peace & happiness,
martin



More information about the samba-technical mailing list