<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 23, 2017 at 9:43 PM, Niels Thykier <span dir="ltr"><<a href="mailto:niels@thykier.net" target="_blank">niels@thykier.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Michael Stapelberg:<br>
<span class="">> Sorry for the late reply.<br>
><br>
<br>
</span>Hi again, :)<br>
<span class=""><br>
> On Sat, Oct 1, 2016 at 11:09 AM, Niels Thykier <<a href="mailto:niels@thykier.net">niels@thykier.net</a>> wrote:<br>
><br>
</span>>> [...]<br>
<span class="">>><br>
>> Hi,<br>
>><br>
>> I am sympathetic to the end goal.<br>
>><br>
>> The log file approach could work, but in that case we could even defer<br>
>> it to a separate helper (as it is dh_install is larger than I would like<br>
>> it).<br>
>><br>
><br>
> By “defer it”, what exactly do you mean? Checking for files which were not<br>
> installed?<br>
><br>
<br>
</span>Put the logic into a separate helper, which has - as sole purpose - the<br>
responsibility for doing "list/fail-on-missing" checks.<br></blockquote><div><br></div><div>Thanks for clarifying. Would dh_missing be an okay name?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
><br>
>> I am happy to assist with creating a patch for this.<br>
>><br>
>> A few recommendations:<br>
>> * If the install log is created under debian/.debhelper it is cleaned<br>
>> up automatically. I strongly prefer this for new internal files.<br>
>> (Feel free to use "generated_file()" for this purpose)<br>
>> * Please create a sub in Dh_Lib for registering installed files, so it<br>
>> becomes standardised.<br>
>> (Documentation goes in doc/PROGRAMMING)<br>
>><br>
><br>
> Looking at dh_installdocs, I see that it shells out to a combination of<br>
> find+sort+xargs+cp. What’s your recommendation for getting the list of<br>
> affected files? Would it be best to read the output of find+sort, process<br>
> it, then shell out to xargs+cp?<br>
><br>
<br>
</span>To begin with, I think I would just log the original pattern (for source<br>
files) and let this new helper "re-expand" it. If performance becomes<br>
an issue, we can revisit that decision. The simpler it is to retro-fit<br>
this new functionality into an existing helper, the easier we can have<br>
"third-party" tools adopt it. :)<br></blockquote><div><br></div><div>Makes sense.</div><div><br></div><div>I looked at dh_installdocs and it’s actually way more complicated than I imagined.</div><div><br></div><div>It’s too bad we don’t have a point through which all files must pass (like install_file), otherwise the change would be simple.</div><div><br></div><div>Would it be okay to convert the helpers one-by-one to use the new mechanism? If not, I don’t think I have enough motivation to actually update all dh_* programs to log their files.</div></div><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Best regards,<br>Michael</div>
</div></div>