LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1182|回复: 9

zip抽风,不能解压

[复制链接]
发表于 2009-10-5 12:05:37 | 显示全部楼层 |阅读模式
  1. >>> Emerging (8 of 8) www-client/chromium-bin-4.0.219.4_p27359
  2. >>> Failed to emerge www-client/chromium-bin-4.0.219.4_p27359, Log file:
  3. >>>  '/var/tmp/portage/www-client/chromium-bin-4.0.219.4_p27359/temp/build.log'
  4. >>> Jobs: 7 of 8 complete, 1 failed                 Load avg: 2.14, 2.05, 1.66
  5. UnZip 6.00 of 20 April 2009, by Info-ZIP.  Maintained by C. Spieler.  Send
  6. bug reports using http://www.info-zip.org/zip-bug.html; see README for details.

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

  10.   -p  extract files to pipe, no messages     -l  list files (short format)
  11.   -f  freshen existing files, create none    -t  test compressed archive data
  12.   -u  update files, create if necessary      -z  display archive comment only
  13.   -v  list verbosely/show version info       -T  timestamp archive to latest
  14.   -x  exclude files that follow (in xlist)   -d  extract files into exdir
  15. modifiers:
  16.   -n  never overwrite existing files         -q  quiet mode (-qq => quieter)
  17.   -o  overwrite files WITHOUT prompting      -a  auto-convert any text files
  18.   -j  junk paths (do not make directories)   -aa treat ALL files as text
  19.   -U  use escapes for all non-ASCII Unicode  -UU ignore any Unicode fields
  20.   -C  match filenames case-insensitively     -L  make (some) names lowercase
  21.   -X  restore UID/GID info                   -V  retain VMS version numbers
  22.   -K  keep setuid/setgid/tacky permissions   -M  pipe through "more" pager
  23. See "unzip -hh" or unzip.txt for more help.  Examples:
  24.   unzip data1 -x joe   => extract all files except joe from zipfile data1.zip
  25.   unzip -p foo | more  => send contents of foo.zip via pipe into program more
  26.   unzip -fo foo ReadMe => quietly replace existing ReadMe if archive file newer
  27. *
  28. * ERROR: www-client/chromium-bin-4.0.219.4_p27359 failed.
  29. * Call stack:
  30. *               ebuild.sh, line   49:  Called src_unpack
  31. *             environment, line 2239:  Called _eapi0_src_unpack
  32. *               ebuild.sh, line  593:  Called unpack 'chromium-bin-x86-27359.zip'
  33. *               ebuild.sh, line  380:  Called die
  34. * The specific snippet of code:
  35. *                                   unzip -qo "${srcdir}${x}" || die "$myfail"
  36. *  The die message:
  37. *   failure unpacking chromium-bin-x86-27359.zip
  38. *
  39. * If you need support, post the topmost build error, and the call stack if relevant.
  40. * A complete build log is located at '/var/tmp/portage/www-client/chromium-bin-4.0.219.4_p27359/temp/build.log'.
  41. * The ebuild environment file is located at '/var/tmp/portage/www-client/chromium-bin-4.0.219.4_p27359/temp/environment'.
  42. *
  43. * Regenerating GNU info directory index...
  44. * Processed 86 info files.
复制代码


  1. shuge-lab tmp # zip t.zip t.txt
  2.   adding: t.txt (stored 0%)
  3. shuge-lab tmp # unzip t.zip
  4. UnZip 6.00 of 20 April 2009, by Info-ZIP.  Maintained by C. Spieler.  Send
  5. bug reports using http://www.info-zip.org/zip-bug.html; see README for details.

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

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

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

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

  38. [1] "gentoo-china" /usr/local/portage/layman/gentoo-china
复制代码


试过更新portage ebuild后,再更新zip/unzip,不行;
提交bug,http://bugs.gentoo.org/show_bug.cgi?id=287086 无人回答。


郁闷。
 楼主| 发表于 2009-10-5 12:07:12 | 显示全部楼层
对比一下某发行版的zip/unzip工具,同一版本,但是后者很正常。
  1. li@shuge-lab:/tmp$ eix zip
  2. Package: zip
  3. State: installed
  4. Automatically installed: no
  5. Version: 2.32-1
  6. Priority: optional
  7. Section: utils
  8. Maintainer: Santiago Vila <sanvila@debian.org>
  9. Uncompressed Size: 254k
  10. Depends: libc6 (>= 2.4-1)
  11. Recommends: unzip
  12. Conflicts: zip-crypt (<= 2.30-2)
  13. Replaces: zip-crypt (<= 2.30-2)
  14. Description: Archiver for .zip files
  15. This is InfoZIP's zip program. It produces files that are fully compatible with the popular PKZIP program; however, the
  16. command line options are not identical. In other words, the end result is the same, but the methods differ. :-)
  17. This version supports encryption.
  18. li@shuge-lab:/tmp$ eix unzip
  19. Package: unzip
  20. State: installed
  21. Automatically installed: no
  22. Version: 5.52-12ubuntu1
  23. Priority: optional
  24. Section: utils
  25. Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>
  26. Uncompressed Size: 360k
  27. Depends: libc6 (>= 2.4)
  28. Suggests: zip
  29. Conflicts: unzip-crypt (< 5.41)
  30. Replaces: unzip-crypt (< 5.41)
  31. Description: De-archiver for .zip files
  32. InfoZIP's unzip program. With the exception of multi-volume archives (ie, .ZIP files that are split across several disks
  33. using PKZIP's /& option), this can handle any file produced either by PKZIP, or the corresponding InfoZIP zip program.
  34. This version supports encryption.
复制代码
  1. li@shuge-lab:/tmp$ zip t.zip t.txt
  2.   adding: t.txt (stored 0%)
  3. li@shuge-lab:/tmp$ unzip t.zip
  4. Archive:  t.zip
  5. replace t.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: A
  6. extracting: t.txt                  
  7. li@shuge-lab:/tmp$
复制代码
回复 支持 反对

使用道具 举报

发表于 2009-10-5 12:20:35 | 显示全部楼层
我目前唯一的想法就是先把unzip降級吧……
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-5 20:13:43 | 显示全部楼层
降级了也没有有。

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

使用道具 举报

发表于 2009-10-5 22:01:49 | 显示全部楼层
言下,Gentoo的unzip都有問題?這個算是怎麼回事呢?emerge --info?
回复 支持 反对

使用道具 举报

发表于 2009-10-6 06:10:31 | 显示全部楼层
我的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的文件?
回复 支持 反对

使用道具 举报

发表于 2009-10-6 09:46:06 | 显示全部楼层
www-client/chromium-bin这个我也装过,很正常,没出现这种情况,现在改用www-client/chromium了.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-7 00:14:30 | 显示全部楼层
> 楼6

不是,我都试过了。

> 楼7

问题不是跟www-client/chromium-bin无关。问题出在unzip。
回复 支持 反对

使用道具 举报

发表于 2009-10-7 00:21:00 | 显示全部楼层
你是不是編譯參數有什麽過激的設置?這個問題太奇怪了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-7 18:19:05 | 显示全部楼层
  1. 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)
  2. =================================================================
  3. System uname: Linux-2.6.28-15-generic-i686-with-gentoo-2.0.1
  4. Timestamp of tree: Tue, 06 Oct 2009 10:15:02 +0000
  5. app-shells/bash:     4.0_p33
  6. dev-lang/python:     2.6.2-r1, 3.1.1-r1
  7. dev-util/cmake:      2.6.4-r2
  8. sys-apps/baselayout: 2.0.1
  9. sys-apps/openrc:     0.4.3-r3
  10. sys-apps/sandbox:    2.1
  11. sys-devel/autoconf:  2.63-r1
  12. sys-devel/automake:  1.10.2, 1.11
  13. sys-devel/binutils:  2.19.1-r1
  14. sys-devel/gcc-config: 1.4.1
  15. sys-devel/libtool:   2.2.6a
  16. virtual/os-headers:  2.6.30-r1
  17. ACCEPT_KEYWORDS="x86 ~x86"
  18. CBUILD="i686-pc-linux-gnu"
  19. CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
  20. CHOST="i686-pc-linux-gnu"
  21. CONFIG_PROTECT="/etc"
  22. 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"
  23. CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
  24. DISTDIR="/usr/portage/distfiles"
  25. FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
  26. 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/"
  27. LANG="en_US.UTF-8"
  28. LDFLAGS="-Wl,-O1"
  29. LINGUAS="zh_CN en en_US"
  30. MAKEOPTS="-j2"
  31. PKGDIR="/usr/portage/packages"
  32. PORTAGE_CONFIGROOT="/"
  33. PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
  34. PORTAGE_TMPDIR="/var/tmp"
  35. PORTDIR="/usr/portage"
  36. PORTDIR_OVERLAY="/home/lee/shuge-lee-overlay /usr/local/portage/layman/gentoo-china"
  37. SYNC="rsync://mirror.averse.net/gentoo-portage"
  38. 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"
  39. Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
复制代码

呵呵,我觉得是相当相当保守的。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表