Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22542 - Show correct digest path
Summary: Show correct digest path
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Portage team
URL:
Whiteboard:
Keywords: Inclusion
: 44414 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-06-10 00:58 UTC by Olav Kolbu
Modified: 2011-10-30 22:35 UTC (History)
2 users (show)

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


Attachments
Patch against portage.py for better error messages (mypatch,1.86 KB, patch)
2003-10-13 04:50 UTC, Olav Kolbu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olav Kolbu 2003-06-10 00:58:57 UTC
Example:

# emerge --update mozilla
>>> emerge (1 of 1) net-www/mozilla-1.3-r2 to /
[...]
!!! No message digest entry found for file "enigmail-0.74.3.tar.gz."
!!! Most likely a temporary problem. Try 'emerge rsync' again later.
!!! If you are certain of the authenticity of the file then you may type
!!! the following to generate a new digest:
!!!   ebuild /usr/portage/category/package/package-version.ebuild digest

Now, it shouldn't be too difficult to change the last line above to be the
actual line people must type. I.e. in this case:

!!! ebuild /usr/portage/net-www/mozilla/mozilla-1.3-r2.ebuild digest

based on the information the ebuild process has about the current state at that
point. And it saves people a) having to dig up the correct path and b) getting
it wrong a couple of times.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2003-10-11 01:32:45 UTC
The current message for missing digests is:

Calculating dependencies ...done!
>>> emerge (1 of 1) dev-libs/libsilt-0.4 to /
!!! No package digest file found: /usr/portage/local/dev-libs/libsilt/files/digest-libsilt-0.4
!!! Type "ebuild foo.ebuild digest" to generate it.
Comment 2 Olav Kolbu 2003-10-13 04:50:53 UTC
Created attachment 19172 [details, diff]
Patch against portage.py for better error messages

In the cases of a missing digest file or a missing digest line within an
existing digest file, this patch will show the proper command line to use
to
fix the problem to the user. Standard portage today does a cop out and prints
either 

Type 'ebuild foo.ebuild digest' or ' !!!   ebuild
/usr/portage/category/package/package-version.ebuild digest' depending on
what's missing. 

Just trying to add some user friendliess to emerge, it's sorely needed.
Comment 3 Olav Kolbu 2003-10-13 05:00:32 UTC
See previous message for attached patch for an example implementation of
what I originally suggested. Please note that I've looked at portage.py for
exactly two minutes, and may not have grabbed the relevant ebuild-info from
the "correct" variable. 

Oh yeah, could someone please keep this Marius Mauch guy from closing bugs/enhancement
requests with some random irrelevant comment with no bearing on the case?

Sorry for double post, didn't see a way of toggling Reopen bug when attaching
a file here.
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2003-10-13 10:17:22 UTC
We don't want to get personal here, do we ?

The summary of the bug is "Show correct digest path" which I thought was
the current situation as shown by my comment. After your comment I checked
that again and saw that I only checked the case when the digest is missing,
not the one when the digest is wrong. Sorry for that.
Also doesn't make much sense to stop portage devs from closing portage bugs.
I was recently checking the portage bug list (that is a long list) for old
bugs that were either fixed without closing the bug (like IMO this one) or
that weren't valid anymore. If you think I was wrong closing a bug please
send me a mail with the bug number and why you think it should stay open.
Also unified patches are generally preferred, but I think this one is simple
enough to apply manually.
Comment 5 Carsten Lohrke (RETIRED) gentoo-dev 2003-11-03 07:52:59 UTC
bah - just detected this ugly bug myself - isn't the severity a bit low!?


portage .... :|
Comment 6 Carsten Lohrke (RETIRED) gentoo-dev 2003-11-03 07:53:43 UTC
bah - just detected this ugly bug myself - isn't the severity a bit low!?


portage .... :|
Comment 7 Masatomo Nakano (RETIRED) gentoo-dev 2003-11-29 11:07:54 UTC
I think it's dangerous that normal(not dev) user makes digest file.
So it should be another message.
example: "Please emerge sync again or post bugzilla if you don't understant the error reason.".

Comment 8 Nicholas Jones (RETIRED) gentoo-dev 2003-12-08 01:34:09 UTC
No. If it's missing, it says 'emerge sync, or fix it'. Providing
and easy way/endorsement of violating security is not something
I am interested in including.

Tab completion is an ally and there are easier ways of dealing
with these issues if you take a little time to figure it out.
Comment 9 Marius Mauch (RETIRED) gentoo-dev 2004-03-11 23:28:38 UTC
*** Bug 44414 has been marked as a duplicate of this bug. ***