Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94751 - emerge fails comparing the digest to the wrong ebuild version
Summary: emerge fails comparing the digest to the wrong ebuild version
Status: RESOLVED INVALID
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: PPC OS X
: High blocker (vote)
Assignee: Gentoo for Mac OS X
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-01 10:34 UTC by Tobias Hahn
Modified: 2006-04-12 10:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Hahn 2005-06-01 10:34:25 UTC
Trying to test djvu-3.5.14-r1, I ekeyworded the package ppc-macos. Issuing
emerge fails due to digest verification since emerge tries to compare the digest
of the correctly downloaded file to the digest recorded in djvu-3.5.12.ebuild,
not djvu-3.5.14-r1.ebuild as it should have. This seems to be a bug in emerge to
me, but unfortunately, I do not have the time to locate it closer.

I have tested several packages using the ekeyword/emerge procedure and installed
a few other [~]ppc-macos packages but this is the first one showing this problem.

Reproducible: Always
Steps to Reproduce:
1. ekeyword ppc-macos app-text/djvu/djvu-3.5.14-r1.ebuild
2. emerge -a djvu
3.

Actual Results:  

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] app-text/djvu-3.5.14-r1  

Do you want me to merge these packages? [Yes/No] 
>>> emerge (1 of 1) app-text/djvu-3.5.14-r1 to /
>>> md5 files   ;-) ChangeLog
>>> md5 files   ;-) djvu-3.5.12.ebuild

!!! Digest verification Failed:
!!!    /usr/portage/app-text/djvu/djvu-3.5.14-r1.ebuild
!!! Reason: Filesize does not match recorded size

>>> Please ensure you have sync'd properly. Please try 'emerge sync' and
>>> optionally examine the file(s) for corruption. A sync will fix most cases.


Expected Results:  
Note the line that reads 
>>> md5 files   ;-) djvu-3.5.12.ebuild

It should read
>>> md5 files   ;-) djvu-3.5.14-r1.ebuild

!!! Relying on the shell to locate gcc, this may break
!!! DISTCC, installing gcc-config and setting your current gcc
!!! profile will fix this
Portage 2.0.51.19 (default-darwin/macos/10.3, gcc-3.3, libsystem-7.1-r0, 7.9.0
Power Macintosh)
=================================================================
System uname: 7.9.0 Power Macintosh powerpc
macos-20041118
Python:               [2.3 (#1, Sep 13 2003, 00:49:11)]
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632)
[disabled]
dev-lang/python:     [Not Present]
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  [Not Present]
sys-devel/automake:  [Not Present]
sys-devel/binutils:  [Not Present]
sys-devel/libtool:   [Not Present]
virtual/os-headers:  7.1
ACCEPT_KEYWORDS="ppc-macos"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe"
CHOST="powerpc-apple-darwin"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks sfperms
strict userpriv"
GENTOO_MIRRORS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X aqua emacs emboss gdbm libwww ncurses offensive png ppc-macos
readline tetex unicode userland_Darwin kernel_Darwin elibc_Darwin"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Kito (RETIRED) gentoo-dev 2005-06-01 10:54:55 UTC
No, portage defaults to FEATURES="strict" . If you look closer at your output, this:
    >>> md5 files   ;-) djvu-3.5.12.ebuild

is saying this ebuild passed verification.

!!! Digest verification Failed:
!!!    /usr/portage/app-text/djvu/djvu-3.5.14-r1.ebuild
!!! Reason: Filesize does not match recorded size

Is telling you exactly what happened, djvu-3.5.14-r1.ebuild did not match its digest because it was 
changed since the digest was created. from the ebuild directory run:
    sudo ebuild djvu-3.5.14-r1.ebuild digest

this will generate a new digest for your modified ebuild. 

Closing as INVALID, reopen if ebuild djvu-3.5.14-r1.ebuild digest does not fix the problem,