Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 109336 - find-requires.perl is easily confused and a bit needy
find-requires.perl is easily confused and a bit needy
Product: Red Hat Linux
Classification: Retired
Component: rpm-build (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2003-11-06 17:03 EST by Bishop Clark
Modified: 2007-04-18 12:59 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-12-27 10:22:41 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Bishop Clark 2003-11-06 17:03:09 EST
Description of problem:
/usr/lib/rpm/find-requires.perl creates requirement lists that include
conflicting packages.

Version-Release number of selected component (if applicable):

How reproducible:


Steps to Reproduce:
1. In my case, produce a mod_perl application, or port one, that can
be used in MP1 and MP2.  This requires code like the following:

use constant MP2 => $mod_perl::VERSION >= 1.99;
if (MP2) {
    require Apache::Const;
    Apache::Const->import(-compile => qw(:common));
    use ModPerl::Registry ();
else {
    require Apache::Constants;
    use Apache::Registry ();

2. package this code
3. attempt to install this code.
Actual results:
The resulting package, if find-requires.perl is used, requires BOTH
perl(Apache::Registry) and the replacement perl(ModPerl::Registry),
and they both cannot be installed concurrently.

Expected results:
On Mod_Perl 2 systems, where Registry is in ModPerl, --requires would
conceivably only include that requirement.  The converse would be true
for MP1-based systems.

Additional info:

Nah, I've not got high hopes on this one.  I mean, the workaroudn of
hand-compiling requirements lists is an option, if a terribly
distasteful one.
Comment 1 Jeff Johnson 2003-12-27 10:22:41 EST
find-requires.perl is pure mechanism, some feeble regex's
run across *.pl files. There's no way to guess (nor should
there be) complicated semantics of alternate names for
identical functionality.

WONTFIX as in very hard problem.

Note You need to log in before you can comment on or make changes to this bug.