Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 193073

Summary: PostgreSQL dependancy in mail-filter/dspam wrong
Product: Gentoo Linux Reporter: Alexander Meisel <bugs.gentoo.org>
Component: Current packagesAssignee: Alin Năstac (RETIRED) <mrness>
Status: RESOLVED INVALID    
Severity: normal CC: esigra
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alexander Meisel 2007-09-19 15:44:20 UTC
The dspam package should not depend on:
    
postgres?   ( >=dev-db/postgresql-7.4.3 )

If the use flag postgres is set dspam must depend on:

postgres?   ( >=dev-db/libpq-7.4.3 )

because you normally have a centralized database server to ask for the spam token. At the moment you have to install the database even if you connect to a remote database which is a waste of space and resources.

Please fix this  
 


Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2007-09-19 16:39:41 UTC
*** Bug 193081 has been marked as a duplicate of this bug. ***
Comment 2 Alexander Meisel 2007-09-19 16:56:09 UTC
Bug 193081 is actually not a duplicate. I explains what should be done to accomplish a clean setup procedure, so please look at  Bug 193081 for a possible solution.
Comment 3 Alin Năstac (RETIRED) gentoo-dev 2007-09-19 19:02:20 UTC
I need /usr/bin/psql in pkg_config.
Closed as INVALID.
Comment 4 Alexander Meisel 2007-09-23 09:55:09 UTC
Hi, 

the dependencies should not rely on programs you need for the set-up of the system. It is enough to install the postgresql bindings. That is all dspam needs for installation/build and function, the set-up is different story.

At the set-up stage you should inform the user that (s)he needs a Postgresql server package if they want a "local" installation. A smart set-up routine would detect that and give the Admin additional information and advise about the set-up in a local or remote database environment.

From a security standpoint of view is a unused installation of a software package which is not actively used ALWAYS a security risk, and therefore should be avoided.
Comment 5 Alin Năstac (RETIRED) gentoo-dev 2007-09-23 12:40:35 UTC
Postgres client is also needed by the current cron script.
Comment 6 Robert Miller 2007-09-24 05:42:29 UTC
The clean-up cron script can run on the database server. Why should it be run remote? There are no dependencies on the local installation.