Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21977 - ebuild foo.ebuild digest doesn't digest all files when files differ by arch
Summary: ebuild foo.ebuild digest doesn't digest all files when files differ by arch
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-30 21:46 UTC by Jason Wever (RETIRED)
Modified: 2011-10-30 22:21 UTC (History)
4 users (show)

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


Attachments
portage.py.diff (portage.py.diff,602 bytes, patch)
2003-06-23 15:04 UTC, Masatomo Nakano (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Wever (RETIRED) gentoo-dev 2003-05-30 21:46:00 UTC
When using ebuild to create digests for an ebuild that has different source
files based on the architecture it's running on (i.e. blackdown-jre-1.4.1 or
blackdown-jdk-1.4.1), only the digest for the arch ebuild is run on is computed.
 Also if you attempt to make a new digest once you have the file for a given
arch, it will overwrite the existing digest rather than add the entry to the end
of the digest file.

Reproducible: Always
Steps to Reproduce:
1.ebuild blackdown-jdk-1.4.1.ebuild digest on x86
2.ebuild blackdown-jdk-1.4.1.ebuild digest on sparc
3.

Actual Results:  
Digest file was overwritten to only contain the entry for sparc.

Expected Results:  
Either have computed the digests for all arches when original digest was made or
appended the digest for the sparc platform's file to the end of the digest file

Portage 2.0.48 (default-sparc64-1.4, gcc-3.2.3, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.20-sparc-r8 sparc64 sun4u
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
ftp://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="sparc arts apm avi crypt cups encode fbcon gif jpeg kde libwww mpeg ncurses
oss png pdflib qt sdl spell truetype xv xml2 xmms zlib gdbm berkdb slang
readline java X tcpd pam ssl perl python esd imlib oggvorbis gtk motif opengl
aalib artswrappersuid cdr dvd emacs gphoto2 gpm imap jack mozilla pda samba
scanner usb -gnome -mikmod -nls"
COMPILER="gcc3"
CHOST="sparc-unknown-linux-gnu"
CFLAGS="-mcpu=ultrasparc -O3 -pipe"
CXXFLAGS="-mcpu=ultrasparc -O3 -pipe"
ACCEPT_KEYWORDS="sparc ~sparc"
MAKEOPTS="-j3"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox buildpkg distcc ccache"
Comment 1 SpanKY gentoo-dev 2003-06-03 17:51:00 UTC
put 'cvs' into FEATURES and try again
Comment 2 Jason Wever (RETIRED) gentoo-dev 2003-06-18 08:51:14 UTC
that seems to work as it will fetch/digest the files already in the digest in addition to the one being added for the arch in question.  On a side note, is there someplace where I can read up on what the "cvs" feature does?  man make.conf and the description in make.conf itself seem to differ and make.conf it extremely vague.
Comment 3 Masatomo Nakano (RETIRED) gentoo-dev 2003-06-23 15:02:48 UTC
I encountered a similar problem.
I added cjk support to sys-apps/groff-1.18.1-r2.ebuild.

SRC_URI="ftp://gatekeeper.dec.com/pub/GNU/groff/${P}.tar.gz
        cjk? ( http://people.debian.org/~ukai/groff/${MB_PATCH}.diff.gz )"

Then the cjk patch was removed from a digest file by someone.

I think 'ebuild foo digest' should always make digest for all files.
I looked into the source file and made a patch.
Comment 4 Masatomo Nakano (RETIRED) gentoo-dev 2003-06-23 15:04:13 UTC
Created attachment 13736 [details, diff]
portage.py.diff

patch for portage.py
Comment 5 Thomas Raschbacher gentoo-dev 2003-06-28 17:43:52 UTC
from irc:
just a small change to portage:
print out the following when someone does 'ebuild .. digest' (on a file which has a non-empty IUSE)
Your digest will only contain the files needed for your USE/ARCH. If you want to be sure to generate a digest useable for all USE/ARCHs please do 'ebuild .. digest_all'

@carpaski: what do ya think?
Comment 6 Jason Wever (RETIRED) gentoo-dev 2003-12-06 13:31:10 UTC
This seems to be fixed to me.  Anyone have any reasons to keep it open?
Comment 7 Jason Wever (RETIRED) gentoo-dev 2003-12-25 16:40:59 UTC
As no one had any reason to keep this open, I'm marking it as resolved:fixed