Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 329143 - app-admin/perl-cleaner doesn't work with perl-5.12.1
Summary: app-admin/perl-cleaner doesn't work with perl-5.12.1
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-20 16:41 UTC by Benjamin Bannier
Modified: 2010-07-20 21:33 UTC (History)
0 users

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


Attachments
Simplistic fix (perl-5.12.patch,368 bytes, patch)
2010-07-20 16:44 UTC, Benjamin Bannier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Bannier 2010-07-20 16:41:50 UTC
Now that perl-5.12 is in the tree the version check logic in perl-cleaner is broken (that is on line 109 there).

Reproducible: Always
Comment 1 Benjamin Bannier 2010-07-20 16:44:03 UTC
Created attachment 239573 [details, diff]
Simplistic fix

This is the simplistic fix for this issue. Maybe we rather like to require version>=5.8 here instead of hardcoding.
Comment 2 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2010-07-20 18:54:03 UTC
Sorry, please elaborate on what you mean by "broken", Perl cleaner works fine for me on 5.12.1, so its not overly apparent what the problem is. You have proposed a fix, but its not obvious what that fix even does.

Please do expand a little more =).
Comment 3 Benjamin Bannier 2010-07-20 19:07:35 UTC
Hi,

sorry for being so brief.

I tried to reproduce this issue for a more detailed error message, but it is gone now that I successfully ran perl-cleaner. I remember h2ph complaining about missing includes (like stubs-64.h on my 32-bit system) just below that block where the patch took effect, so maybe the problem was not in perl-cleaner, but in one on the programs (h2ph?) it called.

Sorry.
Comment 4 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2010-07-20 19:23:20 UTC
Yes, you see, the condition in the code you modified to "fix" this problem was intentional to produce an alternative path for 5.12 and above, because we don't want as many of the needless .ph files lying around if we really don't need them. ( as most things don't, and only a few obscure libraries use a few of them ) 

If you can *unfix* your copy of perl-cleaner and see if you can get it to make it repeat the problem, that would be great =).

( h2ph comes with perl, and its some pretty nasty code, upstream are trying to kill it off somehow, but its hard )

Comment 5 David Abbott (RETIRED) gentoo-dev 2010-07-20 20:28:18 UTC
Benjamin,
I am going to close it as invalid because "12" was not included for one reason afaik because of h2ph using deprecated goto;
http://www.gossamer-threads.com/lists/perl/porters/250790

And also what Kent was referring to as he knows Perl pretty well ++
I really don't know the inner workings of Perl I am just helping wrangle some bugs.

Please if this is wrong please reopen and thank you for taking the time to fill out the bug and provide the patch, I in no way want to discourage you in the future :)
Comment 6 Benjamin Bannier 2010-07-20 21:31:37 UTC
Comment on attachment 239573 [details, diff]
Simplistic fix

Hi David,

thank you for wrangling bugs, but I would like to add more info here. I am removing the patch so I doesn't get propagated and mark this as NEEDSINFO (from me). I will follow up.
Comment 7 Benjamin Bannier 2010-07-20 21:32:49 UTC
Reopening for more info.