Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 193073 - PostgreSQL dependancy in mail-filter/dspam wrong
Summary: PostgreSQL dependancy in mail-filter/dspam wrong
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Alin Năstac (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-19 15:44 UTC by Alexander Meisel
Modified: 2007-09-24 05:42 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.