Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 318781 - sys-auth/pam-pgsql ebuild update to use virtual/postgresql-base
Summary: sys-auth/pam-pgsql ebuild update to use virtual/postgresql-base
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PAM Gentoo Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-06 18:20 UTC by Oleg Gawriloff
Modified: 2010-06-17 12:19 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fixed ebuild (pam-pgsql-0.7.1-r2.ebuild,1.37 KB, text/plain)
2010-05-06 18:21 UTC, Oleg Gawriloff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Gawriloff 2010-05-06 18:20:12 UTC
This ebuild should be updated to use virtual/postgresql-base instead of dev-db/postgresql-base-8.0

Fixed ebuild attached.

Reproducible: Always
Comment 1 Oleg Gawriloff 2010-05-06 18:21:08 UTC
Created attachment 230629 [details]
fixed ebuild
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-05-18 10:20:09 UTC
Postgres team, what is supposed to be the correct dep?
Comment 3 Aaron W. Swenson gentoo-dev 2010-05-18 11:17:38 UTC
(In reply to comment #2)
> Postgres team, what is supposed to be the correct dep?
> 

It should depend on virtual/postgresql-base until we get rid of the old ebuilds from the tree.

The, it won't matter really if it relies on the virtual or the real thing.
Comment 4 Aaron W. Swenson gentoo-dev 2010-06-15 21:22:30 UTC
The virtual/postgresql-{base,server} ebuilds are unofficially deprecated as of a little bit ago.
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-06-15 21:27:58 UTC
Guess this got taken care by itself then ;)
Comment 6 Oleg Gawriloff 2010-06-16 14:55:08 UTC
I've disagree with this. Because pam-pgsql ebuild is still depends on postgresql-base-8.0 while currently base is 8.4.2-r1. If virtual-base/postgresql is deprectated then pam-pgsql ebuild should depend on 8.4.2.
Comment 7 Aaron W. Swenson gentoo-dev 2010-06-16 20:30:10 UTC
(In reply to comment #6)
> I've disagree with this. Because pam-pgsql ebuild is still depends on
> postgresql-base-8.0 while currently base is 8.4.2-r1. If
> virtual-base/postgresql is deprectated then pam-pgsql ebuild should depend on
> 8.4.2.
> 

The dependency is upon >=dev-db/postgresql-base-8.0. Note the 'greater than or equal to' atom.

There are dev-db/postgresql-base-8.0.x+ ebuilds in the tree. 8.0 is only the minimum requirement to satisfy the dependency.

The only purpose virtual/postgresql-base served was to ease the transition from dev-db/libpq to dev-db/postgresql-base. As all of the dev-db/libpq ebuilds are now masked in the tree and are slated for removal within the month, the virtual/postgresql-base ebuilds now serve no purpose. They're wasting space.
Comment 8 Oleg Gawriloff 2010-06-17 07:44:05 UTC
barzog@martin-cl2 ~ $ sudo emerge -va sys-auth/pam-pgsql

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] app-admin/eselect-postgresql-0.3  3 kB [0]
[ebuild  N    ] dev-db/postgresql-base-8.4.2-r1  USE="nls pam readline ssl zlib -doc -kerberos -ldap -pg_legacytimestamp -threads" LINGUAS="ru -af -cs -de -es -fa -fr -hr -hu -it -ko -nb -pl -pt_BR -ro -sk -sl -sv -tr -zh_CN -zh_TW" 13,282 kB [0]
[ebuild     UD] sys-auth/pam-pgsql-0.7.1-r1 [0.7.1-r2] 0 kB [?=>0]
[blocks B     ] dev-db/libpq ("dev-db/libpq" is blocking dev-db/postgresql-base-8.4.2-r1)
[blocks B     ] dev-db/libpq ("dev-db/libpq" is blocking app-admin/eselect-postgresql-0.3)
[blocks B     ] dev-db/postgresql-base ("dev-db/postgresql-base" is blocking dev-db/libpq-8.1.11)

Total: 3 packages (1 downgrade, 2 new), Size of downloads: 13,285 kB
Conflict: 3 blocks (3 unsatisfied)
Portage tree and overlays:
 [0] /usr/portage
 [?] indicates that the source repository could not be determined

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  ('ebuild', '/', 'dev-db/postgresql-base-8.4.2-r1', 'merge') pulled in by
    >=dev-db/postgresql-base-8.0 required by ('ebuild', '/', 'sys-auth/pam-pgsql-0.7.1-r1', 'merge')

  ('installed', '/', 'dev-db/libpq-8.1.11', 'nomerge') pulled in by
    =dev-db/libpq-8.1* required by ('installed', '/', 'virtual/postgresql-base-8.1', 'nomerge')

When I try to uninstall libpq I have following:
barzog@martin-cl2 ~ $ sudo emerge -pv --depclean libpq virtual/postgresql-base

Calculating dependencies... done!
  dev-db/libpq-8.1.11 pulled in by:
    virtual/postgresql-base-8.1

  virtual/postgresql-base-8.1 pulled in by:
    dev-libs/cyrus-sasl-2.1.23-r1

So in the end I will have two postgresql, one for pam-pgsql and one for cyrus-sasl.

What should I do?
Comment 9 Aaron W. Swenson gentoo-dev 2010-06-17 12:12:55 UTC
emerge -C dev-db/libpq
emerge dev-db/postgresql-base
revdep-rebuild
Comment 10 Oleg Gawriloff 2010-06-17 12:19:44 UTC
Ok, works well. Thanks.