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

Re: discussion on perl module packaging

>>>>> "Sean" == Sean 'Shaleh' Perry <shaleh@valinux.com> writes:
    Sean> Problem is, there is no way to determine what package a perl
    Sean> module came from. Further, lintian may be checking a package
    Sean> on a machine where neither the package or any of its
    Sean> dependencies are installed.

The two relevant statements in perl are

        use Some::Module;


        require Some::Module;

where Some::Module is a bareword (unquoted) in both cases but may be
followed by additional tokens.  Some::Module is translated in
Some/Module.pm and the list of directories contained in @INC is
searched to see a match is found.  To provide a similar lintian check
where the relevant relevant *is* currently installed, use

        grep 'Some/Module.pm$' /var/lib/dpkg/info/*.lists

or the perl equivalent.  To perform this check where the relevant
package *is not* installed requires access to Contents-$(arch).gz.
You may have to generate your own, cut-down version and include it
with the lintian package.

If you already knew any of the above, my apologies for the needless


"A duck!"

Reply to: