Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159245 - standardization of revdep-rebuild messages
Summary: standardization of revdep-rebuild messages
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-27 15:00 UTC by Fabio Rossi
Modified: 2007-10-10 21:13 UTC (History)
1 user (show)

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


Attachments
/isolated-functions.patch (isolated-functions.patch,1.90 KB, patch)
2006-12-27 15:01 UTC, Fabio Rossi
Details | Diff
isolated-functions.patch (isolated-functions.patch,1.90 KB, patch)
2006-12-27 15:02 UTC, Fabio Rossi
Details | Diff
eutils.eclass.patch (eutils.eclass.patch,1.99 KB, patch)
2006-12-28 06:28 UTC, Fabio Rossi
Details | Diff
eutils.eclass.5.patch (eutils.eclass.5.patch,1.12 KB, patch)
2006-12-28 06:28 UTC, Fabio Rossi
Details | Diff
revdep-rebuild.issues.list.gz (revdep-rebuild.issues.list.gz,5.92 KB, text/plain)
2007-01-09 23:06 UTC, Fabio Rossi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Rossi 2006-12-27 15:00:58 UTC
At the end of any upgrade it's possible to find a message about revdep-rebuild issues. What do you think about the standardization of these informations?

The user always reads the same informations.
The developer has less code to write :-)

I have written a little patch to /usr/lib/portage/bin/isolated-functions.sh to add a new function, ewarn_revdep_rebuild.

For a generic message call
ewarn_revdep_rebuild

For a specific message use
ewarn_revdep_rebuild /path/to/old1 /path/to/new1
ewarn_revdep_rebuild <any number of couples of libraries>
Comment 1 Fabio Rossi 2006-12-27 15:01:56 UTC
Created attachment 104821 [details, diff]
/isolated-functions.patch

Here is the patch
Comment 2 Fabio Rossi 2006-12-27 15:02:35 UTC
Created attachment 104822 [details, diff]
isolated-functions.patch

Here is the patch
Comment 3 Simon Stelling (RETIRED) gentoo-dev 2006-12-28 02:41:12 UTC
if at all, it should go into eutils.eclass
Comment 4 SpanKY gentoo-dev 2006-12-28 05:29:52 UTC
Comment on attachment 104822 [details, diff]
isolated-functions.patch

we already have preserve_old_lib_notify()

if that message is insufficient, update it
Comment 5 Fabio Rossi 2006-12-28 06:27:59 UTC
I didn't know those functions :-(

I have patched eutils.eclass to support multiple libraries in preserve_old_lib_notify().

I have also updated eutils.eclass.5 to document the preserve_old_lib*() functions.
Comment 6 Fabio Rossi 2006-12-28 06:28:29 UTC
Created attachment 104844 [details, diff]
eutils.eclass.patch
Comment 7 Fabio Rossi 2006-12-28 06:28:53 UTC
Created attachment 104845 [details, diff]
eutils.eclass.5.patch
Comment 8 Fabio Rossi 2006-12-28 06:32:28 UTC
I was forgetting...

In portage a lot of ebuilds don't use preserve_old_lib*() functions. I think they should be updated :-)
Comment 9 SpanKY gentoo-dev 2007-01-09 15:47:56 UTC
should be fixed in cvs now, thanks for the patch
Comment 10 Fabio Rossi 2007-01-09 23:06:10 UTC
Created attachment 106267 [details]
revdep-rebuild.issues.list.gz

I have attached a list of ebuild candidates where to use preserve_old_lib() and/or preserve_old_lib_notify().

Vapier, could you also patch the manual of eutils.eclass to document the functions?

Thanks,
Fabio
Comment 11 SpanKY gentoo-dev 2007-01-22 05:50:58 UTC
ive properly documented the two functions
Comment 12 Bo Ørsted Andresen (RETIRED) gentoo-dev 2007-10-04 14:27:40 UTC
(In reply to comment #6)
> Created an attachment (id=104844) [edit]
> eutils.eclass.patch

Why does the patch remove the following line?

    ewarn "After doing that, you can safely remove ${LIB}"

In the case of e.g. openssl users keep getting told to revdep-rebuild --library libcrypto.so.0.9.7 if they don't remove it which in turn keeps remerging openssl itself (because libssl.so.0.9.7 links against it). It really should make it very clear that the revdep-rebuild step should be followed by removing the libraries?
Comment 13 SpanKY gentoo-dev 2007-10-10 20:34:05 UTC
it isnt harmful to leave the old libraries around, but yes, the line saying it should be safe should not have been dropped

ive added it back into cvs, thanks for the heads up
Comment 14 Bo Ørsted Andresen (RETIRED) gentoo-dev 2007-10-10 21:13:22 UTC
(In reply to comment #13)
> it isnt harmful to leave the old libraries around, but yes, the line saying 
> it should be safe should not have been dropped
> 
> ive added it back into cvs, thanks for the heads up

It's not about safety. It's about the confusion that arises when you keep getting instructed to run revdep-rebuild on each update of a package and following those instructions lead to pointless remerges for no good reason. But the fix is good.. so thanks! :)