Bug#907276: lintian should give an error on Multi-Arch: same packages calling py{,3}compile in maintainer scripts
On Sat, Aug 25, 2018 at 08:58:36PM +0100, Chris Lamb wrote:
> Hi Adrian,
>
> > #889053 is an example why Multi-Arch: same packages
> > calling py{,3}compile in maintainer scripts is a
> > broken situation.
> >
> > More background is in
> > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812228#36
>
> Thanks.
>
> Can you provide some example text for the description? Happy to rework
> an initial draft, but getting the background from someone definitely
> "in the know" about the issue whilst it is fresh in their mind would be
> ideal.
pycompile and py3compile do not support installing several architectures
of the same package.
If the contents of the package is not architecture-dependent,
it should usually be made binary-all.
If the contents of the package is architecture-dependent,
it should usually get a dependency on the python interpreter
for the same architecture.
Since installing multiple architecture versions of the
same python interpreter is not allowed, this makes the
Multi-Arch: same not have any effect.
<-- snip -->
The above test uses "usually" to express that there can be special cases
like gir1.2-ibus-1.0 that might end up being handled differently.
pycompile/py3compile with Multi-Arch: same is fatal in any case.
> Regards,
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
Reply to: