Article View: linux.debian.policy
Article #29Bug#1156285: wish: New virtual package: stalwart-webadmin
From: Bill Allombert
Date: Fri, 04 Dec 2026 21:40
Date: Fri, 04 Dec 2026 21:40
31 lines
3613 bytes
3613 bytes
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.
Technical Details
Message-ID:
<O6Jax-g0x0-7@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-ams.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.networkxxiii.de!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<O35jj-dWgr-9@gated-at.bofh.it> <O6klP-fNgL-3@gated-at.bofh.it> <O6kFb-fNnG-5@gated-at.bofh.it> <O6mdY-fOdV-3@gated-at.bofh.it> <O6mnD-fOhy-17@gated-at.bofh.it> <O6nD3-fOUz-13@gated-at.bofh.it> <O6klP-fNgL-3@gated-at.bofh.it> <O6nD3-fOUz-13@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-ams.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.networkxxiii.de!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr> Newsgroups: linux.debian.bugs.dist,linux.debian.policy Subject: Bug#1156285: wish: New virtual package: stalwart-webadmin Date: Fri, 04 Dec 2026 22:40:01 +0100 Message-ID: <O6Jax-g0x0-7@gated-at.bofh.it> References: <O35jj-dWgr-9@gated-at.bofh.it> <O6klP-fNgL-3@gated-at.bofh.it> <O6kFb-fNnG-5@gated-at.bofh.it> <O6mdY-fOdV-3@gated-at.bofh.it> <O6mnD-fOhy-17@gated-at.bofh.it> <O6nD3-fOUz-13@gated-at.bofh.it> <O6klP-fNgL-3@gated-at.bofh.it> <O6nD3-fOUz-13@gated-at.bofh.it> X-Original-To: Geert Stappers <stappers@stappers.nl> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Fri Dec 4 21:31:10 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.451 Reply-To: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>, 1156285@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-policy@lists.debian.org X-Debian-Pr-Message: followup 1156285 X-Debian-Pr-Package: debian-policy X-Debian-Pr-Source: debian-policy MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2007011 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 31 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: 1156285@bugs.debian.org X-Original-Date: Fri, 4 Dec 2026 22:29:03 +0100 X-Original-Message-ID: <axMwn-O2l9Uhma0T@seventeen> X-Original-References: <awXyvC431ilp+raW@gpm.stappers.nl> <axG7ET5Z8FAPOaVi@gpm.stappers.nl> <axHBLnyJlKP-EXDO@seventeen> <axHY1OVF8BFpd03D@gpm.stappers.nl> <axHbT-uF6uduusAv@seventeen> <axHtkNQq2uLKkA+W@gpm.stappers.nl> <axG7ET5Z8FAPOaVi@gpm.stappers.nl> <axHtkNQq2uLKkA+W@gpm.stappers.nl>