<div dir="ltr"><div dir="ltr">On Sun, Dec 13, 2020 at 6:06 AM ASSI via devel <<a href="mailto:devel@ntpsec.org" target="_blank">devel@ntpsec.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hal Murray via devel writes:<br>
> I think you want to use DESTDIR if you are testing things after installing <br>
> them.<br>
<br>
No, never. DESTDIR is purely for packaging so that the "install" you do<br>
has the correct directory structure, but doesn't mess up your actual<br>
system. There is only the to-be-installed stuff in DESTDIR, so a "pure"<br>
test there cannot work anyway.<br>
<br>
> There is a layer of testing that we can't do in a normal environment. The <br>
> problem is that the previously installed libraries provide backup that we <br>
> don't want. This is a variant on the problem of using the wrong libraries <br>
> when testing pre-install.<br>
<br>
That's an entirely different problem. You may indeed want to test an<br>
actual install eventually, but DESTDIR doesn't give you that.<br></blockquote><div><br></div><div>I was working on that but now it seems I should drop it.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> We could fix that by adding a version check when loading libraries. That <br>
> version would have to include the time stamp rather than just a version number.<br>
<br>
Nope. Please, let go of that timestamp nonsense you're so fond of, the<br>
only thing you achieve is making life difficult for folks who care about<br>
reproducible builds.<br></blockquote><div><br></div>
--build-epoch but at least it only complains if the build stamp does not match. I think I was at least partly responsible for previous overzealous behavior.<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> Gary said:<br>
>> Right. Which is why DESTDIR is wrong. You want to be using the built files<br>
>> before installing in DESTDIR. <br>
><br>
> You want to test before install. It would also be good to test post install, <br>
> but that gets complicated if you have installed into DESTDIR rather than the <br>
> normal working place.<br>
<br>
Again, DESTDIR is not meant to be that place and it won't work if you try.</blockquote><div><br></div><div> So, I should just plan to mostly revert a4c2c7 "bin test: from install directory recording skips" minus the clean-up.</div></div></div>