Re: lintian .packlist warning and debian/rules modification
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
- -=| Jeremiah Foster, 9.09.2007 20:40 |=-
> E: libhtml-treebuilder-xpath-perl: package-installs-packlist
> usr/lib/perl5/auto/HTML/TreeBuilder/XPath/.packlist
> N:
> N: Packages built using the perl MakeMaker package will have a file named
> N: .packlist in them. Those files are useless, and (in some cases) have
> N: the additional problem of creating an architecture-specific directory
> N: name in an architecture-independent package.
> N:
> N: They can be suppressed by adding the following to debian/rules:
> N:
> N: find debian/tmp -type f -name .packlist | xargs rm -f
> N:
> N: -find debian/tmp/usr/lib/perl5 -type d -empty | xargs rmdir -p
> N:
> N: Or by telling MakeMaker to use vendor install dirs; consult a recent
> N: version of perl policy. Perl 5.6.0-12 or higher supports this.
>
>
> Below is an example of the output I would receive:
>
> <snip>
>
> find debian/tmp -type f -name .packlist | xargs -r rm -f
> find: debian/tmp: No such file or directory
> find debian/tmp -type d -empty | xargs -r rmdir -p
> find: debian/tmp: No such file or directory
Which means that the "debian/tmp" thing is wrong.
> What I did to finally get rid of this error was to change the command to
> this:
>
> # remove .packlist files inserted by MakeMaker
> find . -type f -name .packlist | xargs -r rm -f
>
> I then placed the changed code (the line above with my comment) in the
> install section of the debian/rules file and the lintian error went
> away! I hope this helps some one else.
>
> If you think I was wrong to do it this way please inform me of the
> proper way to do it or any changes I should make.
Use the correct directory when "find ... -delete"-ing things. Look where
$(MAKE) install installs it. I guess this should be $(TMP)
- --
dam JabberID: dam@jabber.minus273.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFG5DnuHqjlqpcl9jsRAl1IAKCaaGr58O6xDWzOtVN8FAU6F+gY6gCfb/O9
L5eOb2R+bmQP9EpZbNiWdXw=
=zOVR
-----END PGP SIGNATURE-----
Reply to: