Colin Watson wrote: > I would use the various introspection-related modules to do this (maybe > Devel::Symdump or B?), but it's not possible to get it reliably correct > automatically. I think there are plenty of not-particularly-pathological > scripts and modules in the distribution that would easily stretch the > limits of any tool trying to calculate Perl module dependencies. > > As such, I'd rather not see something like this in dh_perl, whose output > is expected to be used unmodified. It should be in some other tool which > maintainers can run and then edit the results as appropriate.
Yes, it's very hard to get right and even if you do, mostly, there is still the issue of mapping perl modules into debian packages, which would be hard for debhelper to do, as it would have to depend on having an up-to-date package database available. And to really do this right you probably need a layer of indirection with room for maintainer overrides as the shlibs files provide for automated shared library dependency calculation. -- see shy jo
pgpLkEHdfTTVh.pgp
Description: PGP signature