Packages that provide extensions should Requires: an exact version - Mailing list pgsql-pkg-yum

From Craig Ringer
Subject Packages that provide extensions should Requires: an exact version
Date
Msg-id 53E9CFA3.1000301@2ndquadrant.com
Whole thread Raw
Responses Re: Packages that provide extensions should Requires: an exact version
List pgsql-pkg-yum
Hi

Currently it looks like packages that build extensions have:

    Requires: postgresql94-server

e.g.

# repoquery -i -R plr93-0:8.3.0.15-1.f20.x86_64 | grep server
postgresql93-server


but this means they can be installed against any PostgreSQL server,
whether or not it's compatible.

Extensions should have a Requires: definition for the exact server
version they're compiled against.

As that might be annoying to maintain, I'm wondering if we can use RPM's
auto-buildrequires stuff to grab the server version, have the server
package Provides: it, and then auto-add appropriate Requires:  like RPM
does with libc:


Requires: libc.so.6(GLIBC_2.14)(64bit)

or Perl:

perl(:MODULE_COMPAT_5.18.2)


That way it won't be possible to install extensions against an
incompatible server binary.

Thoughts?
--
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


pgsql-pkg-yum by date:

Previous
From: Pete Deffendol
Date:
Subject: Re: PostGIS RPM for CentOS 6 install reps failed
Next
From: martin.euser@nl.abnamro.com
Date:
Subject: postgresql version 9.1.14 for RHEL 5 64 bits