[debhelper-devel] Bug#415396: "dh_install --list-missing" should ignore manpages and other installed files

Michael Stapelberg stapelberg at debian.org
Thu Mar 23 10:09:49 UTC 2017


Sorry for the late reply.

On Sat, Oct 1, 2016 at 11:09 AM, Niels Thykier <niels at thykier.net> wrote:

> Michael Stapelberg:
> > [+cc Niels, who might have an idea as to how to fix this]
> >
> > Hi Drew,
> >
> > I’m facing the same issue in one of my packages.
> >
> > Drew Parsons <dparsons at debian.org> writes:
> >> At the moment dh_install --list-missing complains about any file in
> >> debian/tmp not listed in the install file.  This includes manpages,
> >> even if they are listed in their own manpages file to be installed by
> >> dh_installman.
> >
> > For completeness: this issue also includes documentation pages installed
> > by dh_installdocs, and, I assume, any other dh_install* command.
> >
> > The fact that this bug is now almost 10 years old implies that the issue
> > is not very easy to fix (or people don’t care).
> >
> > Could we make the dh_install* helpers log the files which they install
> > and then move dh_install to the end of the dh sequence so that it can
> > read in all of the files which the other helpers installed?
> >
>
> Hi,
>
> I am sympathetic to the end goal.
>
> The log file approach could work, but in that case we could even defer
> it to a separate helper (as it is dh_install is larger than I would like
> it).
>

By “defer it”, what exactly do you mean? Checking for files which were not
installed?


>   I am happy to assist with creating a patch for this.
>
> A few recommendations:
>  * If the install log is created under debian/.debhelper it is cleaned
>    up automatically.  I strongly prefer this for new internal files.
>    (Feel free to use "generated_file()" for this purpose)
>  * Please create a sub in Dh_Lib for registering installed files, so it
>    becomes standardised.
>    (Documentation goes in doc/PROGRAMMING)
>

Looking at dh_installdocs, I see that it shells out to a combination of
find+sort+xargs+cp. What’s your recommendation for getting the list of
affected files? Would it be best to read the output of find+sort, process
it, then shell out to xargs+cp?

-- 
Best regards,
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20170323/a5e9a36a/attachment-0001.html>


More information about the debhelper-devel mailing list