+ -
当前位置:首页 → 问答吧 → zip抽风,不能解压

zip抽风,不能解压

时间:2009-10-05

来源:互联网

代码:
>>> Emerging (8 of 8) www-client/chromium-bin-4.0.219.4_p27359
>>> Failed to emerge www-client/chromium-bin-4.0.219.4_p27359, Log file:
>>> '/var/tmp/portage/www-client/chromium-bin-4.0.219.4_p27359/temp/build.log'
>>> Jobs: 7 of 8 complete, 1 failed Load avg: 2.14, 2.05, 1.66
UnZip 6.00 of 20 April 2009, by Info-ZIP. Maintained by C. Spieler. Send
bug reports using http://www.info-zip.org/zip-bug.html; see README for details.

Usage: unzip [-Z] [-opts[modifiers]] file[.zip][list] [-x xlist] [-d exdir]
 Default action is to extract files in list, except those in xlist, to exdir;
 file[.zip] may be a wildcard. -Z => ZipInfo mode ("unzip -Z" for usage).

 -p extract files to pipe, no messages -l list files (short format)
 -f freshen existing files, create none -t test compressed archive data
 -u update files, create if necessary -z display archive comment only
 -v list verbosely/show version info -T timestamp archive to latest
 -x exclude files that follow (in xlist) -d extract files into exdir
modifiers:
 -n never overwrite existing files -q quiet mode (-qq => quieter)
 -o overwrite files WITHOUT prompting -a auto-convert any text files
 -j junk paths (do not make directories) -aa treat ALL files as text
 -U use escapes for all non-ASCII Unicode -UU ignore any Unicode fields
 -C match filenames case-insensitively -L make (some) names lowercase
 -X restore UID/GID info -V retain VMS version numbers
 -K keep setuid/setgid/tacky permissions -M pipe through "more" pager
See "unzip -hh" or unzip.txt for more help. Examples:
 unzip data1 -x joe => extract all files except joe from zipfile data1.zip
 unzip -p foo | more => send contents of foo.zip via pipe into program more
 unzip -fo foo ReadMe => quietly replace existing ReadMe if archive file newer
 * 
 * ERROR: www-client/chromium-bin-4.0.219.4_p27359 failed.
 * Call stack:
 * ebuild.sh, line 49: Called src_unpack
 * environment, line 2239: Called _eapi0_src_unpack
 * ebuild.sh, line 593: Called unpack 'chromium-bin-x86-27359.zip'
 * ebuild.sh, line 380: Called die
 * The specific snippet of code:
 * unzip -qo "${srcdir}${x}" || die "$myfail"
 * The die message:
 * failure unpacking chromium-bin-x86-27359.zip
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/www-client/chromium-bin-4.0.219.4_p27359/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-client/chromium-bin-4.0.219.4_p27359/temp/environment'.
 * 
 * Regenerating GNU info directory index...
 * Processed 86 info files.
代码:
shuge-lab tmp # zip t.zip t.txt 
 adding: t.txt (stored 0%)
shuge-lab tmp # unzip t.zip 
UnZip 6.00 of 20 April 2009, by Info-ZIP. Maintained by C. Spieler. Send
bug reports using http://www.info-zip.org/zip-bug.html; see README for details.

Usage: unzip [-Z] [-opts[modifiers]] file[.zip][list] [-x xlist] [-d exdir]
 Default action is to extract files in list, except those in xlist, to exdir;
 file[.zip] may be a wildcard. -Z => ZipInfo mode ("unzip -Z" for usage).

 -p extract files to pipe, no messages -l list files (short format)
 -f freshen existing files, create none -t test compressed archive data
 -u update files, create if necessary -z display archive comment only
 -v list verbosely/show version info -T timestamp archive to latest
 -x exclude files that follow (in xlist) -d extract files into exdir
modifiers:
 -n never overwrite existing files -q quiet mode (-qq => quieter)
 -o overwrite files WITHOUT prompting -a auto-convert any text files
 -j junk paths (do not make directories) -aa treat ALL files as text
 -U use escapes for all non-ASCII Unicode -UU ignore any Unicode fields
 -C match filenames case-insensitively -L make (some) names lowercase
 -X restore UID/GID info -V retain VMS version numbers
 -K keep setuid/setgid/tacky permissions -M pipe through "more" pager
See "unzip -hh" or unzip.txt for more help. Examples:
 unzip data1 -x joe => extract all files except joe from zipfile data1.zip
 unzip -p foo | more => send contents of foo.zip via pipe into program more
 unzip -fo foo ReadMe => quietly replace existing ReadMe if archive file newer

shuge-lab tmp # eix -Ie zip
[u] app-arch/zip
 Available versions: 2.32-r1 (~)3.0 {bzip2 crypt unicode}
 Installed versions: 2.32-r1(04:03:37 AM 10/05/2009)(crypt)
 Homepage: http://www.info-zip.org/
 Description: Info ZIP (encryption support)

shuge-lab tmp # eix -Ie unzip
[i] app-arch/unzip
 Available versions: 5.52-r2 5.52-r2[1] (~)6.0-r1 {bzip2 linguas_zh unicode}
 Installed versions: 6.0-r1(03:13:07 AM 10/01/2009)(bzip2 unicode)
 Homepage: http://www.info-zip.org/
 Description: unzipper for pkzip-compressed files

[1] "gentoo-china" /usr/local/portage/layman/gentoo-china
试过更新portage ebuild后,再更新zip/unzip,不行;
提交bug,http://bugs.gentoo.org/show_bug.cgi?id=287086 无人回答。


郁闷。

作者: flyinflash   发布时间: 2009-10-05

对比一下某发行版的zip/unzip工具,同一版本,但是后者很正常。

代码:
li@shuge-lab:/tmp$ eix zip
Package: zip
State: installed
Automatically installed: no
Version: 2.32-1
Priority: optional
Section: utils
Maintainer: Santiago Vila <[email protected]>
Uncompressed Size: 254k
Depends: libc6 (>= 2.4-1)
Recommends: unzip
Conflicts: zip-crypt (<= 2.30-2)
Replaces: zip-crypt (<= 2.30-2)
Description: Archiver for .zip files
 This is InfoZIP's zip program. It produces files that are fully compatible with the popular PKZIP program; however, the
 command line options are not identical. In other words, the end result is the same, but the methods differ. :-) 
 
 This version supports encryption.

li@shuge-lab:/tmp$ eix unzip
Package: unzip
State: installed
Automatically installed: no
Version: 5.52-12ubuntu1
Priority: optional
Section: utils
Maintainer: Ubuntu Core Developers <[email protected]>
Uncompressed Size: 360k
Depends: libc6 (>= 2.4)
Suggests: zip
Conflicts: unzip-crypt (< 5.41)
Replaces: unzip-crypt (< 5.41)
Description: De-archiver for .zip files
 InfoZIP's unzip program. With the exception of multi-volume archives (ie, .ZIP files that are split across several disks
 using PKZIP's /& option), this can handle any file produced either by PKZIP, or the corresponding InfoZIP zip program. 
 
 This version supports encryption.
代码:
li@shuge-lab:/tmp$ zip t.zip t.txt 
 adding: t.txt (stored 0%)
li@shuge-lab:/tmp$ unzip t.zip 
Archive: t.zip
replace t.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: A
 extracting: t.txt 
li@shuge-lab:/tmp$

作者: flyinflash   发布时间: 2009-10-05

我目前唯一的想法就是先把unzip降級吧……

作者: 亞利艾爾   发布时间: 2009-10-05

降级了也没有有。

解决方法就是,把某发行版本的/usr/bin/unzip覆盖到gentoo下就行了。

作者: flyinflash   发布时间: 2009-10-06

言下,Gentoo的unzip都有問題?這個算是怎麼回事呢?emerge --info?

作者: 亞利艾爾   发布时间: 2009-10-06

我的zip:[ebuild R ] app-arch/zip-3.0 USE="bzip2 crypt unicode"unzip:[ebuild R ] app-arch/unzip-6.0-r1 USE="bzip2 unicode"试了下,正常,没问题。

PS:
难道是zip 2.32/unizp 5.52和zip 3.0/unzip 6.0的关系。
unzip 6.0 无法解压缩zip 2.32的文件?

作者: i13m   发布时间: 2009-10-06

www-client/chromium-bin这个我也装过,很正常,没出现这种情况,现在改用www-client/chromium了.

作者: suddenkiller   发布时间: 2009-10-06

> 楼6

不是,我都试过了。

> 楼7

问题不是跟www-client/chromium-bin无关。问题出在unzip。

作者: flyinflash   发布时间: 2009-10-07

你是不是編譯參數有什麽過激的設置?這個問題太奇怪了。

作者: 亞利艾爾   发布时间: 2009-10-07

代码:
Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.4.1, glibc-2.10.1-r0, 2.6.28-15-generic i686)
=================================================================
System uname: Linux-2.6.28-15-generic-i686-with-gentoo-2.0.1
Timestamp of tree: Tue, 06 Oct 2009 10:15:02 +0000
app-shells/bash: 4.0_p33
dev-lang/python: 2.6.2-r1, 3.1.1-r1
dev-util/cmake: 2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc: 0.4.3-r3
sys-apps/sandbox: 2.1
sys-devel/autoconf: 2.63-r1
sys-devel/automake: 1.10.2, 1.11
sys-devel/binutils: 2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6a
virtual/os-headers: 2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirrors.163.com/gentoo/ http://ftp.iij.ad.jp/pub/linux/gentoo/ http://gentoo.gg3.net/ http://gentoo.in.th/ http://gentoo.netnitco.net http://gentoo.arcticnetwork.ca/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="zh_CN en en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/lee/shuge-lee-overlay /usr/local/portage/layman/gentoo-china"
SYNC="rsync://mirror.averse.net/gentoo-portage"
USE="X acl acpi alsa bzip2 cjk cli consolekit cracklib crypt directfb dri emacs fat fbcon fbcondecor ffmpeg fortran fuse gdbm gpm iconv ipython isdnlog jpeg laptop latex mmap mmx mod_python modules mudflap ncurses nls nptl nptlonly ntfs openmp pam pch pcre pdf perl png pppd python rar readline reflection session speex spl sqlite sqlite3 sse sse2 ssh ssl ssse3 sysfs tcpd threads truetype ubuntu unicode vorbis x86 xcb xft xorg zeroconf zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN en en_US" USERLAND="GNU" VIDEO_CARDS="intel vesa fbdev"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
呵呵,我觉得是相当相当保守的。

作者: flyinflash   发布时间: 2009-10-07