Re: Automatic Perl dependencies problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On August 29, 2005 10:27:38 PM -0400 Dan Franklin <dfranklin@xxxxxxx> wrote:
I can get around this by adding Provides: tags for the "missing" packages, but it seems to me
that perl.prov ought not to scan for package statements.  It should just use the things that
'use' statements actually care about - the filenames themselves.

This is just based on your description, but does Perl also care about
explicit package names inside a .pm?  If I don't have a 'use' statement
but just call foo::bar::method, would Perl load foo/bar.pm?  What if
I did 'use foo;' and then called foo::bar::method, and foo.pm defined
the package foo::bar, then wouldn't Perl avoid loading foo/bar.pm?
In which case Perl did care about more than the filename.

So it seems perl.req should look for 'use' AND calls to explicitly named
package methods, and perl.prov should look at filenames AND explicit
package statements.

Please comment--I'm not familiar enough with Perl module handling to
be confident in what I'm suggesting.

-frank

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux