Hi Paul,
On Sun, 2019-10-20 at 18:51 +0200, Paul Gevers wrote:
> Hi Abou,
> On 19-10-2019 16:05, Abou Al Montacir wrote:
> > More analysis of the issue showed that we want the lpk file contain 
> > <AutoUpdate Value="Manually"/>
> > when the lazarus-src package is not installed, but we probably want to have
> > <AutoUpdate Value="AsNeeded"/>
> > when lazarus-src is installed.
> 
> Ack.
> > So one solution is to package both file versions and used dpkg-divert
> > tooverride lcl-units lpk files by those of lazarus-src when installed.
> 
> Uch, I'm not overly enthusiastic about this solution. I guess it'smostly
> unexpected by Debian users that the same file can have differentcontent
> depending on which package set is installed. But, as you alreadyimplemented
> it, let's see how it goes.
I'm not found of it too, but this appeared to be the most handy solution.If
someone installs lazarus-src, he shall be able to compile packages as he wants
and the lpk files shall be marked AsNeeded.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.I personally
have a Debian Buster running on my phone (UserLAnd app) and there I don't want
Lazarus to force installing sources.
> > The other option is that that post install script of lazarus-src looksfor
> > the installed lpk-files and modifies them, but this is probably anunwanted
> > behavior, especially that some lcl-units may be installed afterlazarus-src
> > installation.
> 
> And that's even less pretty. I'm glad you didn't choose this option.
I'm not sure this is policy compliant and anyway I don't like it at all.
> > Any other idea?
> 
> If this is the way Lazarus works, I think it's best to just depend onlazarus-
> src. That ain't pretty, but it's at least consistent with howpeople expect
> Debian to install files.
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.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.
For information, installing Lazarus on the phone polled 1.7GiB (includign FPC
and other dependencies) which I consider not very nice.
> Paul
> By the way, I think the postinst and preinst shouldn't have beencommitted to
> git, right? They're generated during package build.
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.I'm going to remove them.
-- 
Cheers,
Abou Al Montacir

Attachment: signature.asc
Description: This is a digitally signed message part



Reply via email to