[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Fedora-packaging] PHP packaging policy notes

chris stone gmail com ("Christopher Stone") writes:

> pear packages have a line in the spec file of the form:
> Provides: php-pear(Foo) = %{version}-%{release}
> This provides the upstream software version, not the package version.
> This is what we use on our requires line.  So for example we do not
> have:
> Requires: php-pear >= ..  we have:
> Requires: php-pear(PEAR) >= ...

Such virtual provides are ok but you should keep in mind, that there is
no ordering during installation; e.g. it is undefined whether

| %package -n module
| Provides: php-pear(MODULE) = 1.0


| %package -n module-ng
| Provides: php-pear(MODULE) = 2.0

will be installed by

| Requires: php-pear(MODULE) >= 1.0

(because of the shortest-package-name-wins rule, 'module' will be the
candidate for 'rpm')

When you enforce such declarations for php-pear packages; should not
every (non-pear) package have similar Provides:? Or, what would make
php-pear an exception here? Have php-pear modules such an unstable API
that missing version information would cause problems with a significant
amount of packages?


Attachment: pgp8fvJSGvb55.pgp
Description: PGP signature

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]