Re: svn commit: r264046 - in head: release share/man/man7

2014-04-03 Thread Glen Barber
On Thu, Apr 03, 2014 at 12:48:12PM +0400, Dmitry Morozovsky wrote:
> Glen,
> 
> On Wed, 2 Apr 2014, Glen Barber wrote:
> 
> > Author: gjb
> > Date: Wed Apr  2 16:53:07 2014
> > New Revision: 264046
> > URL: http://svnweb.freebsd.org/changeset/base/264046
> > 
> > Log:
> >   Use xz(1) instead of gzip(1) to compress release images
> >   when WITH_COMPRESSED_IMAGES is used.
> 
> Maybe invent some variable defaulting to /usr/bin/xz so admin could use 
> /usr/local/bin/pxz or other compatible implementation? 
> 
> On 4-core not-too-fast machine I observed pxz more than 3 time faster than xz 
> while only slighly (5-10%) worse in packing ratio
> 

Committed as r264073.

Glen



pgpwhx9ENkyxA.pgp
Description: PGP signature


Re: svn commit: r264046 - in head: release share/man/man7

2014-04-03 Thread Dmitry Morozovsky
Glen,

On Wed, 2 Apr 2014, Glen Barber wrote:

> Author: gjb
> Date: Wed Apr  2 16:53:07 2014
> New Revision: 264046
> URL: http://svnweb.freebsd.org/changeset/base/264046
> 
> Log:
>   Use xz(1) instead of gzip(1) to compress release images
>   when WITH_COMPRESSED_IMAGES is used.

Maybe invent some variable defaulting to /usr/bin/xz so admin could use 
/usr/local/bin/pxz or other compatible implementation? 

On 4-core not-too-fast machine I observed pxz more than 3 time faster than xz 
while only slighly (5-10%) worse in packing ratio


-- 
Sincerely,
D.Marck [DM5020, MCK-RIPE, DM3-RIPN]
[ FreeBSD committer: ma...@freebsd.org ]

*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- ma...@rinet.ru ***

___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r264046 - in head: release share/man/man7

2014-04-02 Thread Glen Barber
Author: gjb
Date: Wed Apr  2 16:53:07 2014
New Revision: 264046
URL: http://svnweb.freebsd.org/changeset/base/264046

Log:
  Use xz(1) instead of gzip(1) to compress release images
  when WITH_COMPRESSED_IMAGES is used.
  
  Requested by: delphij, brooks, Nikolai Lifanov
  MFC After:1 week
  X-MFC-With:   r264027,r264028,r264029,r264030
  Sponsored by: The FreeBSD Foundation

Modified:
  head/release/Makefile
  head/share/man/man7/release.7

Modified: head/release/Makefile
==
--- head/release/Makefile   Wed Apr  2 16:33:10 2014(r264045)
+++ head/release/Makefile   Wed Apr  2 16:53:07 2014(r264046)
@@ -21,7 +21,7 @@
 #  NOSRC:if set, do not distribute source tree
 #  NODOC:if set, do not generate release documentation
 #  WITH_DVD: if set, generate dvd1.iso
-#  WITH_COMPRESSED_IMAGES: if set, compress installation images with gzip(1)
+#  WITH_COMPRESSED_IMAGES: if set, compress installation images with xz(1)
 #  (uncompressed images are not removed)
 #  TARGET/TARGET_ARCH: architecture of built release
 #
@@ -96,7 +96,7 @@ IMAGES+=  mini-memstick.img
 CLEANFILES=packagesystem *.txz MANIFEST system ${IMAGES}
 .if defined(WITH_COMPRESSED_IMAGES) && !empty(WITH_COMPRESSED_IMAGES)
 . for I in ${IMAGES}
-CLEANFILES+=   ${I}.gz
+CLEANFILES+=   ${I}.xz
 . endfor
 .endif
 CLEANDIRS= dist ftp release bootonly dvd
@@ -259,7 +259,7 @@ install:
 .for I in ${IMAGES}
cp -p ${I} ${DESTDIR}/${OSRELEASE}-${I}
 . if defined(WITH_COMPRESSED_IMAGES) && !empty(WITH_COMPRESSED_IMAGES)
-   gzip -k ${DESTDIR}/${OSRELEASE}-${I}
+   xz -k ${DESTDIR}/${OSRELEASE}-${I}
 . endif
 .endfor
cd ${DESTDIR} && sha256 ${OSRELEASE}* > ${DESTDIR}/CHECKSUM.SHA256

Modified: head/share/man/man7/release.7
==
--- head/share/man/man7/release.7   Wed Apr  2 16:33:10 2014
(r264045)
+++ head/share/man/man7/release.7   Wed Apr  2 16:53:07 2014
(r264046)
@@ -24,7 +24,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd March 5, 2014
+.Dd April 2, 2014
 .Dt RELEASE 7
 .Os
 .Sh NAME
@@ -252,7 +252,7 @@ Set to a non-empty value to include the
 target.
 .It Va WITH_COMPRESSED_IMAGES
 Set to a non-empty value to compress the release images with
-.Xr gzip 1 .
+.Xr xz 1 .
 The original
 .Pq uncompressed
 images are not removed.
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"