RPM Community Forums

Mailing List Message of <rpm-devel>

Re: Two limitations of triggers in rpm

From: Alexey Tourbin <at@altlinux.ru>
Date: Mon 22 Sep 2008 - 15:06:28 CEST
Message-ID: <20080922130628.GZ32012@altlinux.org>
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
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.