On Mon, Sep 22, 2008 at 07:38:03AM -0400, Jeff Johnson wrote:
> >Now, some paths are are "virtual", which is e.g. executable paths
> >under
> >update-alternatives(1) control. Those paths are not packaged (and
> >hence
> >cannot be accessed via Basenames index), but rather created in %
> >post script.
> >We have find-provides hook which automatically provides virtual paths
> >(e.g. "Provides: /usr/bin/xvt" for xterm, rxvt-unicode etc.)
>
> So use a probe dependency like
> Requires: executable(/path/to/alternative)
> The probe will be evaluated at run-time, and even permits rpm to
> interoperate with dpkg alternatives.
I don't need runtime probe at all, I need to resolve/install the
dependency.
# apt-get install /usr/bin/xvt
Reading Package Lists... Done
Building Dependency Tree... Done
Package /usr/bin/xvt is a virtual package provided by:
xterm 237-alt1 [Installed]
termit 1.3.5-alt1
rxvt-unicode 9.02-alt1 [Installed]
kdebase-wm 3.5.10-alt4
kde4base-konsole 4.1.1-alt1
gnome-terminal 2.22.3-alt1
aterm 1.0.1-alt3 [Installed]
You should explicitly select one to install.
E: Package /usr/bin/xvt is a virtual package with multiple good providers.
#
- application/pgp-signature attachment: stored
Received on Mon Sep 22 15:06:40 2008