Bug 374261
Summary: | bind should not depend on "mysql" and "postgresql" | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jordan Russell <jr-redhatbugs2> |
Component: | bind | Assignee: | Adam Tkac <atkac> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 8 | CC: | ovasik, rh-bugzilla |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 9.5.0-18.a7.fc8 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-11-22 03:30:46 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 391501 |
Description
Jordan Russell
2007-11-10 04:06:06 UTC
*** Bug 375191 has been marked as a duplicate of this bug. *** In previous Fedoras exists package called "bind-sdb". It was standard named + compiled in database backends. I've merged bind + bind-sdb to one package. Reasons are easier configuration and easier maintenance. Yes, I know named needs database servers client libraries but I don't think that matter. If you have any arguments why database backend should be in separate package (please not "I need +10MB of disk space" - nowaday it is not argument). I'm going to replace mysql + postgresql + other DBs dependencies with *-libs packages. Update will be released when 9.5.0-a7 comes (should be during 2 weeks). I need +10MB of disk space ;) Standard reason: MySQL + PostgreSQL are non trivial dependencies which are not required by named's core functionality. Every additional + unneeded bit of code * requires additional disk space * requires special attention regarding security issues * can/will cause problems during updates I'm primarily worried about conflicts with the MySQL-* packages from mysql.com I
already have installed. Before now, nothing depended on Fedora's mysql-* packages.
> I'm going to replace mysql +
> postgresql + other DBs dependencies with *-libs packages.
Actually, instead of depending on "mysql-libs" specifically, could it be made to
depend on "libmysqlclient.so.XX", like the "php-mysql" package currently does?
This should allow any vendor's MySQL packages to satisfy the dependency.
(In reply to comment #3) > I need +10MB of disk space ;) I expected answer like this :) > Standard reason: MySQL + PostgreSQL are non trivial dependencies which are not > required by named's core functionality. Every additional + unneeded bit of code > > * requires additional disk space Yes, but nowadays it doesn't matter > * requires special attention regarding security issues - I disagree with you. If you have compiled in database backend and you doesn't use it that part of code is never executed. And if yes it means that named code already has been exploited on different place. And if this happen (pretty unlikely) named without database libs can't save you. > * can/will cause problems during updates (In reply to comment #4) > > > I'm going to replace mysql + > > postgresql + other DBs dependencies with *-libs packages. > > Actually, instead of depending on "mysql-libs" specifically, could it be made to > depend on "libmysqlclient.so.XX", like the "php-mysql" package currently does? > This should allow any vendor's MySQL packages to satisfy the dependency. Yes, the best solution. >> * requires additional disk space
> Yes, but nowadays it doesn't matter
it matters... nowadays, most servers are virtualized and have only one service
per instance. 10MB can be 5% of the really needed space and such a waste is
nothing which I can accept.
And... often the -libs have additional deps resp. these deps are out of control
of the original packager. So, you will probably end with more than 10MB.
Hence, please follow the principle to split non-trivial deps into own
subpackages when they are not needed for core functionality.
I forgot: most of explicit Requires: are bad. rpm does an excellent job in detecting required libs so Requires: should be written sparely. Please use 'comps.xml' to specify use-cases. I've pushed bind-9.5.0-17.a7.fc8 to updates-testing. In the end I moved database backends to bind-sdb. So if you need named with DB you should only install bind-sdb package. bind-sdb also has no explicit dependencies to mysql-libs etc bind-9.5.0-17.a7.fc8 has been pushed to the Fedora 8 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update bind' bind-9.5.0-18.a7.fc8 has been pushed to the Fedora 8 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update bind' Works for me. Thanks. bind-9.5.0-18.a7.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report. |