<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 8, 2015 at 4:12 PM, Dan McDonald <span dir="ltr"><<a href="mailto:danmcd@omniti.com" target="_blank">danmcd@omniti.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On Oct 8, 2015, at 10:35 AM, Peter Tribble <<a href="mailto:peter.tribble@gmail.com">peter.tribble@gmail.com</a>> wrote:<br>
><br>
> It looks like something is deciding to recompile the pyc files, which ends up<br>
> changing them.<br>
><br>
> Is there any way to stop this, to keep pkg verify clean?<br>
<br>
</span>You'll notice several workarounds in omnios-build.  For example from python26-coverage:<br>
<br>
        # Prevents pkgdepend from freaking out.<br>
        <transform file path=usr/bin/coverage -> set pkg.depend.bypass-generate .* ><br>
        <transform file path=usr/bin/coverage-2.6 -> set pkg.depend.bypass-generate .* ><br>
        <transform file path=usr/bin/coverage2 -> set pkg.depend.bypass-generate .* ><br>
<br>
Here's Tim Foster's blog entry about it:<br>
<br>
        <a href="https://timsfoster.wordpress.com/2011/02/24/pkgdepend-improvements/" rel="noreferrer" target="_blank">https://timsfoster.wordpress.com/2011/02/24/pkgdepend-improvements/</a><br>
<br>
You may need to bypass-generate a few things.</blockquote><div><br></div><div>This is all coming from omnios so it wouldn't be me who would be making changes...<br><br></div><div>I'm a little more confused than I was, though. The .pyc files encode the python version<br></div><div>and the metadata of the source file (in particular, its timestamp) in the .pyc file.<br><br></div><div>That's all correct. The packages appear to have been published using pkgsend -T so<br></div><div>that the timestamps on the .py files are preserved, and they match the timestamps<br></div><div>encoded into the packaged .pyc files..<br></div><div><br></div><div>Which makes me wonder even more why it's found it necessary to recompile<br></div><div>the files, it's not the normal python version or source timestamp mismatch.<br><br></div><div>The only thing I notice is that the original (packaged) .pyc file has site-packages<br></div><div>encoded in it, whereas the recompiled version has the vendor-packages path<br></div><div>(which is where the files are installed to). As far as I can tell that's the only<br></div><div>difference in the contents of the .pyc files.<br><br></div><div>Curious...<br></div><div><br></div></div>-- <br><div class="gmail_signature">-Peter Tribble<br><a href="http://www.petertribble.co.uk/" target="_blank">http://www.petertribble.co.uk/</a> - <a href="http://ptribble.blogspot.com/" target="_blank">http://ptribble.blogspot.com/</a></div>
</div></div>