pkgsrc-Bugs archive

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

Re: pkg/42967: pkgsrc does not support 7z archive file (archivers/p7zip)



The following reply was made to PR pkg/42967; it has been noted by GNATS.

From: Ryo ONODERA <ryo_on%yk.rim.or.jp@localhost>
To: gnats-bugs%NetBSD.org@localhost, @yk.rim.or.jp
Cc: 
Subject: Re: pkg/42967: pkgsrc does not support 7z archive file
 (archivers/p7zip)
Date: Sun, 14 Mar 2010 13:10:12 +0900 (JST)

 From: Joerg Sonnenberger <joerg%britannica.bec.de@localhost>
 Subject: Re: pkg/42967: pkgsrc does not support 7z archive file 
(archivers/p7zip)
 Date: Sun, 14 Mar 2010 02:25:02 +0000 (UTC)
 
 > The following reply was made to PR pkg/42967; it has been noted by GNATS.
 > 
 > From: Joerg Sonnenberger <joerg%britannica.bec.de@localhost>
 > To: gnats-bugs%NetBSD.org@localhost
 > Cc: 
 > Subject: Re: pkg/42967: pkgsrc does not support 7z archive file
 >  (archivers/p7zip)
 > Date: Sun, 14 Mar 2010 03:21:51 +0100
 > 
 >  On Sun, Mar 14, 2010 at 02:05:03AM +0000, OBATA Akio wrote:
 >  >  >  In that case they should something portable like zip in first place.
 >  >  >  Really, 7z is yet another zip-like format that provides no real gain
 >  >  >  over the alternatives.
 >  >  
 >  >  High compression ratio is not a real gain?
 >  >  If it is not acceptable, .tar.xz is also not for me.
 >  
 >  It is an obscure alternative to zip if you look at the file format. The
 >  only reason why it got even semi-popular was the compression algorithm.
 >  The compression algorithm is essentially what you get with .tar.xz too.
 >  My point here is that the proliferation of obscure formats shouldn't be
 >  encouraged and therefore vendors should be asked to use sensible
 >  distribution formats.
 >  
 >  You argued that .tar.xz is painful to create in the Windows world.
 >  I agree that it is more work, but for users in the Windows world .7z is
 >  painful too (just like rar and whatever), as it requires Yet Another
 >  Program to handle something, when Windows supports zip files out of the
 >  box. Or to put it into a different perspective: XZ is very likely to
 >  fully replace tar.gz for most areas, which it very unlikely to happen
 >  with 7zip.
 
 In my fonts/umefont-ttf case, 7z archive file has very small size (about 1/4 
size of tar.xz
  generated from gtar, about 1/7 size of tar.gz).
 But, specifying some options (-9 -M 500MiB) to xz command, the file size of 7z 
and tar.xz
 become almost same.
 I think that it is reasonable because they use same algorithm for compression.
 Please see my operation records.
 
 On Japanese edition of MS Windows, I did not know GUI tool for tar.xz.
 I do not think probably that upstream creates tar.xz file for us using tar 
command
 with special options.
 
 
 By the way, if 7-zip file format was bad, archivers/p7zip probably works on 
many platforms.
 Under ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/, many platforms have 
p7zip-9.04.tgz
 binary packages.
 Adding 7z support does not damage the portability of pkgsrc, I think.
 
 
 I will contact to upstream.
 
 
 === OPERATION RECORDS BEGIN ===
 $ 7za x 1yo-umefont_413.7z
 
 7-Zip (A) 9.04 beta  Copyright (c) 1999-2009 Igor Pavlov  2009-05-30
 p7zip Version 9.04 (locale=ja_JP.eucJP,Utf16=on,HugeFiles=on,1 CPU)
 
 Processing archive: 1yo-umefont_413.7z
 
 Extracting  ume20100301/license.html
 Extracting  ume20100301/ume-pgc4.ttf
 Extracting  ume20100301/ume-pgc5.ttf
 Extracting  ume20100301/ume-pgo4.ttf
 Extracting  ume20100301/ume-pgo5.ttf
 Extracting  ume20100301/ume-pgs4.ttf
 Extracting  ume20100301/ume-pgs5.ttf
 Extracting  ume20100301/ume-pmo3.ttf
 Extracting  ume20100301/ume-pms3.ttf
 Extracting  ume20100301/ume-tgc4.ttf
 Extracting  ume20100301/ume-tgc5.ttf
 Extracting  ume20100301/ume-tgo4.ttf
 Extracting  ume20100301/ume-tgo5.ttf
 Extracting  ume20100301/ume-tgs4.ttf
 Extracting  ume20100301/ume-tgs5.ttf
 Extracting  ume20100301/ume-tmo3.ttf
 Extracting  ume20100301/ume-tms3.ttf
 Extracting  ume20100301/ume-ugo4.ttf
 Extracting  ume20100301/ume-ugo5.ttf
 Extracting  ume20100301
 
 Everything is Ok
 
 Folders: 1
 Files: 19
 Size:       97520749
 Compressed: 6840251
 $ du -h ume20100301
 93M    ume20100301
 $ tar zcf ume20100301.tar.gz ume20100301
 $ tar jcf ume20100301.tar.bz2 ume20100301
 $ gtar Jcf ume20100301.tar.xz ume20100301
 $ tar cf - ume20100301| xz -9 -z -M 500MiB >ume20100301_-9_-M500MiB.tar.xz
 xz: Adjusted LZMA2 dictionary size from 64 MiB to 45 MiB to not exceed the 
memory usage limit of 500 MiB
 $ zip -r ume20100301_std.zip ume20100301
   adding: ume20100301/ (stored 0%)
   adding: ume20100301/license.html (deflated 60%)
   adding: ume20100301/ume-pgc4.ttf (deflated 48%)
   adding: ume20100301/ume-pgc5.ttf (deflated 47%)
   adding: ume20100301/ume-pgo4.ttf (deflated 48%)
   adding: ume20100301/ume-pgo5.ttf (deflated 47%)
   adding: ume20100301/ume-pgs4.ttf (deflated 48%)
   adding: ume20100301/ume-pgs5.ttf (deflated 47%)
   adding: ume20100301/ume-pmo3.ttf (deflated 48%)
   adding: ume20100301/ume-pms3.ttf (deflated 48%)
   adding: ume20100301/ume-tgc4.ttf (deflated 47%)
   adding: ume20100301/ume-tgc5.ttf (deflated 46%)
   adding: ume20100301/ume-tgo4.ttf (deflated 48%)
   adding: ume20100301/ume-tgo5.ttf (deflated 46%)
   adding: ume20100301/ume-tgs4.ttf (deflated 47%)
   adding: ume20100301/ume-tgs5.ttf (deflated 46%)
   adding: ume20100301/ume-tmo3.ttf (deflated 48%)
   adding: ume20100301/ume-tms3.ttf (deflated 48%)
   adding: ume20100301/ume-ugo4.ttf (deflated 48%)
   adding: ume20100301/ume-ugo5.ttf (deflated 47%)
 $ zip -9 -r ume20100301_-9.zip ume20100301
   adding: ume20100301/ (stored 0%)
   adding: ume20100301/license.html (deflated 60%)
   adding: ume20100301/ume-pgc4.ttf (deflated 48%)
   adding: ume20100301/ume-pgc5.ttf (deflated 47%)
   adding: ume20100301/ume-pgo4.ttf (deflated 48%)
   adding: ume20100301/ume-pgo5.ttf (deflated 47%)
   adding: ume20100301/ume-pgs4.ttf (deflated 48%)
   adding: ume20100301/ume-pgs5.ttf (deflated 47%)
   adding: ume20100301/ume-pmo3.ttf (deflated 49%)
   adding: ume20100301/ume-pms3.ttf (deflated 48%)
   adding: ume20100301/ume-tgc4.ttf (deflated 48%)
   adding: ume20100301/ume-tgc5.ttf (deflated 46%)
   adding: ume20100301/ume-tgo4.ttf (deflated 48%)
   adding: ume20100301/ume-tgo5.ttf (deflated 47%)
   adding: ume20100301/ume-tgs4.ttf (deflated 48%)
   adding: ume20100301/ume-tgs5.ttf (deflated 46%)
   adding: ume20100301/ume-tmo3.ttf (deflated 48%)
   adding: ume20100301/ume-tms3.ttf (deflated 48%)
   adding: ume20100301/ume-ugo4.ttf (deflated 48%)
   adding: ume20100301/ume-ugo5.ttf (deflated 47%)
 $ 7za a -mx=9 ume20100301_-mx9.7z ume20100301
 
 7-Zip (A) 9.04 beta  Copyright (c) 1999-2009 Igor Pavlov  2009-05-30
 p7zip Version 9.04 (locale=ja_JP.eucJP,Utf16=on,HugeFiles=on,1 CPU)
 Scanning
 
 Creating archive ume20100301_-mx9.7z
 
 Compressing  ume20100301/license.html
 Compressing  ume20100301/ume-pgc4.ttf
 Compressing  ume20100301/ume-pgc5.ttf
 Compressing  ume20100301/ume-pgo4.ttf
 Compressing  ume20100301/ume-pgo5.ttf
 Compressing  ume20100301/ume-pgs4.ttf
 Compressing  ume20100301/ume-pgs5.ttf
 Compressing  ume20100301/ume-pmo3.ttf
 Compressing  ume20100301/ume-pms3.ttf
 Compressing  ume20100301/ume-tgc4.ttf
 Compressing  ume20100301/ume-tgc5.ttf
 Compressing  ume20100301/ume-tgo4.ttf
 Compressing  ume20100301/ume-tgo5.ttf
 Compressing  ume20100301/ume-tgs4.ttf
 Compressing  ume20100301/ume-tgs5.ttf
 Compressing  ume20100301/ume-tmo3.ttf
 Compressing  ume20100301/ume-tms3.ttf
 Compressing  ume20100301/ume-ugo4.ttf
 Compressing  ume20100301/ume-ugo5.ttf
 
 Everything is Ok
 $ ls -lF
 total 512164
 -rw-r--r--  1 ryo_on  elements   6840251 Mar 14 11:43 1yo-umefont_413.7z
 drwx------  2 ryo_on  elements       512 Mar  1 09:00 ume20100301/
 -rw-r--r--  1 ryo_on  elements  45466918 Mar 14 12:17 ume20100301.tar.bz2
 -rw-r--r--  1 ryo_on  elements  51314996 Mar 14 12:17 ume20100301.tar.gz
 -rw-r--r--  1 ryo_on  elements  42098456 Mar 14 12:22 ume20100301.tar.xz
 -rw-r--r--  1 ryo_on  elements  51121730 Mar 14 12:31 ume20100301_-9.zip
 -rw-r--r--  1 ryo_on  elements   6910764 Mar 14 12:27 
ume20100301_-9_-M500MiB.tar.xz
 -rw-r--r--  1 ryo_on  elements   6840241 Mar 14 12:35 ume20100301_-mx9.7z
 -rw-r--r--  1 ryo_on  elements  51265201 Mar 14 12:30 ume20100301_std.zip
 $
 === OPERATION RECORDS END ===
 
 --
 Ryo ONODERA // ryo_on%yk.rim.or.jp@localhost
 PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3
 
 


Home | Main Index | Thread Index | Old Index