On Thu, Dec 03, 2026 at 11:30:40PM +0100, Geert Stappers wrote:
> That will be  debian/control
> with 'Depends: stalwart-webadmin-nop | stalwart-webadmin'
>  
> How that works, how that works out, is yet unclear to me.

It works wholly inside the apt dependency resolver.
Practically there are two cases to consider
1. stalwart is installed first.
  the resolver will install the first alternative, namely stalwart-webadmin-nop
(the first alternative provide determinism)

2. a package that provide stalwart-webadmin  is installed first.
  the resolver will not install  stalwart-webadmin-nop since the dependency is 
satisfied.

However, I see a major problem with this plan.

All packages providing stalwart-webadmin include the file 
/usr/lib/stalwart-webadmin/webui.zip 
Packages that ship the same file must Conflicts with each others since they 
cannot installed
at the same time, and one cannot Conflict with a virtual package that one 
provide, and
Conflicting with all the other would defeat the purpose of the virtual package

So you need some mechanism to prevent that.

You can use the update-alternatives system to allow coinstallation and let the 
user
pick what webui.zip they want to use, or you can implement your own mechanism.
(allow several webui.zip file to be installed under different names and allow 
the user to pick
the one they want when there are several of them).

Cheers,
Bill.

Reply via email to