Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73932 - add libperl_rebuilder (or perl-cleaner) to revdep-rebuild
Summary: add libperl_rebuilder (or perl-cleaner) to revdep-rebuild
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High enhancement
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
: 62306 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-12-09 12:06 UTC by John Altstadt
Modified: 2008-11-29 05:08 UTC (History)
4 users (show)

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


Attachments
perl-cleaner.73932.patch (perl-cleaner.patch,1.25 KB, patch)
2005-06-06 10:33 UTC, Paul Varner (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Altstadt 2004-12-09 12:06:25 UTC
Due to the ongoing life of bug #11359, most people will never see the enotice to run libperl_rebuilder. Since there is an externally documented method of rebuilding stuff that was affected by a library build, namely revdep-rebuild, I propose calling libperl_rebuilder, or its successor perl-cleaner, from revdep-rebuild.


Reproducible: Always
Steps to Reproduce:
1. emerge world
2. perl stuff gets updated
3. nobody sees the enotice to run libperl_rebuilder

Actual Results:  
Things were mysteriously broken.


Expected Results:  
The script used to clean up after the libperl upgrade should have been called
from revdep-rebuild. The revdep-rebuild tool is documented in the gentoolkit
section (and many other places), so many (most? all?) people should be running
it on a regular basis anyway. The libperl cleanup script should use the same
command options as revdep-rebuild.


General comments on perl-cleaner follow:
- Change the options so that it follows the example set by revdep-rebuild. The
default, with no options specified, should be to clean everything (currently the
"all" option).
- When using "ask", cat the lists of ebuild packages instead of using less. It
feels somewhat disconcerting to use q(uit) inside less when you really want the
operation to continue. less also removes the text from the terminal, so you
can't compare the before and after.
- The "Updating ph files" section currently does not go into the log file.
- Redirect error messages from find to /dev/null. It looks a little scary seeing
"find: /opt/blackdown-jdk-1.4.2.01/jre/lib/i386/classic/: No such file or
directory" in the middle of something that is working properly.

Kudos on the new script. It is much nicer than the old libperl_rebuilder. I had
to give up and kill libperl_rebuilder on one machine because it just kept going
on and on. Assuming perl-cleaner did everything required, it was much faster and
cleaner.
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2005-01-26 09:28:05 UTC
I think I covered all of your suggestions in the last release of perl-cleaner except for the redirecting to dev/null - attempts to do that were sadly bad (too tired to explore that further). Let me know if you have any questions (or if this bug needs to be left open),

Mike
Comment 2 John Altstadt 2005-01-26 11:46:35 UTC
Great to see that perl-cleaner has become part of portage.

I'm surprised that "find ... 2> /dev/null" wouldn't work for you. I see in a couple of places that you pipe the output of find, but I thought that redirection and pipes could be combined. It's been a while since I wrote any serious sh scripts.

I just ran "perl-cleaner all", but I can't give it a real test until the next time perl gets upgraded. I don't really want to muck up any of my systems downgrading and then upgrading perl. I still think that it should accept the same arguments as revdep-rebuild, so that you don't need to supply an "all" argument to get it to work within revdep-rebuild. The call inside revdep-rebuild could just pass the original revdep-rebuild command line directly to perl-cleaner.

Has revdep-rebuild been modified to call perl-cleaner? I couldn't find it in a grep of revdep-rebuild, but I don't know if that script calls others which might then call perl-cleaner when required.
Comment 3 Paul Varner (RETIRED) gentoo-dev 2005-06-04 18:57:30 UTC
Perl team, this should probably be assigned to tools-portage. However, before I
do so, I wanted to know your thoughts on this enhancement.  I'm very hesitant to
add this to revdep-rebuild as long as perl-cleaner is not installed to /usr/bin
or /usr/sbin.
Comment 4 Michael Cummings (RETIRED) gentoo-dev 2005-06-05 07:43:10 UTC
*** Bug 62306 has been marked as a duplicate of this bug. ***
Comment 5 Michael Cummings (RETIRED) gentoo-dev 2005-06-05 13:44:19 UTC
app-admin/perl-cleaner is up 
Comment 6 Paul Varner (RETIRED) gentoo-dev 2005-06-06 10:33:32 UTC
Created attachment 60732 [details, diff]
perl-cleaner.73932.patch

Minor patch for perl-cleaner:
- Fixes case where the libperl action can mistakenly identify packages as
linking to libperl.so
- Sends stderr from find to /dev/null
- Corrects a small typo
Comment 7 Paul Varner (RETIRED) gentoo-dev 2005-06-08 11:40:55 UTC
patch committed in svn
Comment 8 Rajiv Aaron Manglani (RETIRED) gentoo-dev 2005-07-04 22:53:30 UTC
can we get perl-cleaner to accept '-p' and '--pretend' like revdep-rebuild? thanks.
Comment 9 Michael Cummings (RETIRED) gentoo-dev 2005-07-06 11:25:43 UTC
I've got a long plane flight coming up -one of my goals was to redo 
perl-cleaner in perl (for shorter, cleaner script - and hey, if you have to use 
perl-cleaner, you already have perl :) - consider it on the list of things to 
do. 
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2005-09-04 04:12:33 UTC
Mass re-assign.
Comment 11 Sal Gonzalez 2005-10-18 08:07:48 UTC
A better description of how it works can be found here:

http://www.tldp.org/LDP/abs/html/x12970.html
Comment 12 Sal Gonzalez 2005-10-18 08:09:49 UTC
... disregard that, wrong tab :(
Comment 13 michael@smith-li.com 2008-11-28 21:02:44 UTC
Reopen if I got this wrong, but bug #11359 is long gone, is this one even valid anymore?

Please test.
Comment 14 John Altstadt 2008-11-29 05:08:44 UTC
Sorry, I have no Gentoo machines any more. You are on your own.