<html dir="ltr"><head></head><body style="text-align:left; direction:ltr;" bgcolor="#ffffff" text="#2e3436" link="#1b6acb" vlink="#2e3436"><div>Hi Paul,</div><div><br></div><div>On Sun, 2019-10-20 at 18:51 +0200, Paul Gevers wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><pre>Hi Abou,</pre><pre><br></pre><pre>On 19-10-2019 16:05, Abou Al Montacir wrote:</pre><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><pre>More analysis of the issue showed that we want the lpk file contain </pre><pre><br></pre><pre><AutoUpdate Value="Manually"/></pre><pre><br></pre><pre>when the lazarus-src package is not installed, but we probably want to have</pre><pre><br></pre><pre><AutoUpdate Value="AsNeeded"/></pre><pre><br></pre><pre>when lazarus-src is installed.</pre></blockquote><pre><br></pre><pre>Ack.</pre><pre><br></pre><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><pre>So one solution is to package both file versions and used dpkg-divert to</pre><pre>override lcl-units lpk files by those of lazarus-src when installed.</pre></blockquote><pre><br></pre><pre>Uch, I'm not overly enthusiastic about this solution. I guess it's</pre><pre>mostly unexpected by Debian users that the same file can have different</pre><pre>content depending on which package set is installed. But, as you already</pre><pre>implemented it, let's see how it goes.</pre></blockquote><div>I'm not found of it too, but this appeared to be the most handy solution.</div><div>If someone installs lazarus-src, he shall be able to compile packages as he wants and the lpk files shall be marked AsNeeded.</div><div>However, if for some reason, one don't install them, like auto builder, or any other use because for example lack of disk space, then lpk files need to be marked Manually build only.</div><div>I personally have a Debian Buster running on my phone (UserLAnd app) and there I don't want Lazarus to force installing sources.</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><pre><br></pre><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><pre>The other option is that that post install script of lazarus-src looks</pre><pre>for the installed lpk-files and modifies them, but this is probably an</pre><pre>unwanted behavior, especially that some lcl-units may be installed after</pre><pre>lazarus-src installation.</pre></blockquote><pre><br></pre><pre>And that's even less pretty. I'm glad you didn't choose this option.</pre></blockquote><div>I'm not sure this is policy compliant and anyway I don't like it at all.</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><pre><br></pre><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><pre>Any other idea?</pre></blockquote><pre><br></pre><pre>If this is the way Lazarus works, I think it's best to just depend on</pre><pre>lazarus-src. That ain't pretty, but it's at least consistent with how</pre><pre>people expect Debian to install files.</pre></blockquote><div>That is upstream philosophy with the all in one deb package, but as I explained above, this is not compatible with low disk space devices.</div><div>Also for an auto builder, that probably is not going to use Lazarus IDE but only lazbuild, I don't like to install tons of MB while one needs only a few ones.</div><div><br></div><div>For information, installing Lazarus on the phone polled 1.7GiB (includign FPC and other dependencies) which I consider not very nice.</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><pre>Paul</pre><pre><br></pre><pre>By the way, I think the postinst and preinst shouldn't have been</pre><pre>committed to git, right? They're generated during package build.</pre></blockquote><div>My bad, yes indeed these are automatically generated. I confused with the debian/control file, but now realize they don't have the same constraint as the one.</div><div>I'm going to remove them.</div><div><div style="white-space: normal;"><span><pre><pre>-- <br></pre>Cheers,
Abou Al Montacir</pre></span></div></div></body></html>