Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users 中文 (Chinese)
  • Search

9930 bytes

欢迎来到Gentoo中文论坛。
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
Author
Message
qing
Tux's lil' helper
Tux's lil' helper
Posts: 95
Joined: Mon Nov 04, 2002 9:39 am

9930 bytes

  • Quote

Post by qing » Thu Apr 27, 2006 4:36 am

奇怪阿。。

/usr/portage/distfiles/下的tar.bz2文件若少于9930bytes

emerge xxx 文件,不管文件有没有在distfiles目录中,都要重新下载。。

好像查看文件有没有在distfiles目录中,不是看文件名的,这个太奇怪了。。。
Top
kohno
Tux's lil' helper
Tux's lil' helper
Posts: 112
Joined: Sat Aug 28, 2004 4:12 am

  • Quote

Post by kohno » Thu Apr 27, 2006 6:54 am

给个例子。
Top
qing
Tux's lil' helper
Tux's lil' helper
Posts: 95
Joined: Mon Nov 04, 2002 9:39 am

  • Quote

Post by qing » Thu Apr 27, 2006 7:18 am

在/usr/portage/distfiles/下

echo "" > xorg-x11-6.9.0-files-0.1.tar.bz2

<
du -b xorg-x11-6.9.0-files-0.1.tar.bz2

1
>

emerge =xorg-x11-6.9.0

这时xorg-x11-6.9.0没有看diskfiles下存在xorg-x11-6.9.0-files-0.1.tar.bz2文件,而是直接去下载xorg-x11-6.9.0-files-0.1.tar.bz2

文件这个比较奇怪。。。

当若是
cp xorg-server-1.0.2.tar.bz2 xorg-x11-6.9.0-files-0.1.tar.bz2

distfiles # du -b xorg-x11-6.9.0-files-0.1.tar.bz2

6006486 xorg-x11-6.9.0-files-0.1.tar.bz2

emerge 就不去下载xorg-x11-6.9.0-file-0.1.tar.bz2直接比较digest了。。


Portage 2.1_pre9-r4 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r1, 2.6.16.9 i686)
=================================================================
System uname: 2.6.16.9 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz
Gentoo Base System version 1.12.0_pre18
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python: 2.4.2-r1
sys-apps/sandbox: 1.2.12
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils: 2.16.1-r2
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache confcache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/dis ... ons/gentoo"
LANG="zh_CN.utf8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/fluidportage/trunk"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts avi berkdb bitmap-fonts cjk cli crypt dri eds emboss encode esd flac foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre pdflib perl png pppd python qt quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev unicode vorbis xml xmms xorg xv zlib elibc_glibc kernel_linux userland_GNU"
Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Top
qing
Tux's lil' helper
Tux's lil' helper
Posts: 95
Joined: Mon Nov 04, 2002 9:39 am

  • Quote

Post by qing » Thu Apr 27, 2006 7:35 am

dd if=xorg-server-1.0.2.tar.bz2 of=xorg-x11-6.9.0-files-0.1.tar.bz2 bs=9930 count=1

dd if=xorg-server-1.0.2.tar.bz2 of=xorg-x11-6.9.0-files-0.1.tar.bz2 bs=9929 count=1

emerge =xorg-x11-6.9.0
--- Invalid atom in /etc/portage/package.keywords: x11-base/xorg-x11-6.9.0
--- Invalid atom in /etc/portage/package.unmask: x11-base/xorg-x11-6.9.0
Calculating dependencies... done!
>>> Emerging (1 of 1) x11-base/xorg-x11-6.9.0 to /
>>> checking ebuild checksums
>>> checking auxfile checksums
>>> checking miscfile checksums
>>> checking distfiles checksums
!!! Digest verification failed:
!!! /usr/portage/distfiles/xorg-x11-6.9.0-files-0.1.tar.bz2
!!! Reason: Failed on RMD160 verification
!!! Got: d54e3629d30ceb8250f4a80cbae18a7065514eac
!!! Expected: 0bf43b280db86b28f4ee93b1c47959f4372d71fc



Calculating dependencies... done!
>>> Emerging (1 of 1) x11-base/xorg-x11-6.9.0 to /
>>> Resuming download...
>>> Downloading http://distfiles.gentoo.org/distfiles/x ... .1.tar.bz2
--15:34:20-- http://distfiles.gentoo.org/distfiles/x ... .1.tar.bz2
=> `/usr/portage/distfiles/xorg-x11-6.9.0-files-0.1.tar.bz2'
正在解析主机 distfiles.gentoo.org... 216.165.129.135, 156.56.247.195, 64.50.236.52, ...
Connecting to distfiles.gentoo.org|216.165.129.135|:80... 已连接。
已发出 HTTP 请求,正在等待回应...


这两个反应不一样阿。。。。
Top
kohno
Tux's lil' helper
Tux's lil' helper
Posts: 112
Joined: Sat Aug 28, 2004 4:12 am

  • Quote

Post by kohno » Thu Apr 27, 2006 9:12 am

你这是人为将xorg那个文件改小,文件已经不同了,当然要重新下载啦!
你有没有源码文件本身就小而出现重新下载的例子?
Top
qing
Tux's lil' helper
Tux's lil' helper
Posts: 95
Joined: Mon Nov 04, 2002 9:39 am

  • Quote

Post by qing » Thu Apr 27, 2006 12:15 pm

kohno wrote:你这是人为将xorg那个文件改小,文件已经不同了,当然要重新下载啦!
你有没有源码文件本身就小而出现重新下载的例子?
我的意思是在distfiles目录中,有那个文件,它就先不去下载吧,要checksum吧。。。

现在是若那个文件的大小小于9930bytes,它就会不先理会distfiles中已存在,会去下载了再说,,

但是文件若是大于等于9930bytes,它就当distfiles目录中已存在了要下载的文件,去checksum了。。。
Top
qing
Tux's lil' helper
Tux's lil' helper
Posts: 95
Joined: Mon Nov 04, 2002 9:39 am

  • Quote

Post by qing » Fri Apr 28, 2006 12:26 am

文件续传的问题。。

检查需要的文件在distfiles目录中是否有没下载完的,继续下载,奇怪的是。。。

若是distfiles目录中有要的文件,但是文件的大小超过Manifest中定义的大小。。。

然后一系列的checksum..........
Top
Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “中文 (Chinese)”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic