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

Bug 236033

Summary: app-office/openoffice-2.4.1 does not link to sys-libs/db-4.7
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: New packagesAssignee: Gentoo Office Team <office>
Status: RESOLVED FIXED    
Severity: normal CC: polynomial-c
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: system-check-db-4.7.patch

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2008-08-28 14:07:11 UTC
This version of the source build of OpenOffice does not link to sys-libs/db-4.7 even though it does not poses any limits for previous versions.

While db 4.7 is masked, once it's installed, Portage will break depclean because of openoffice with this:

 *   sys-libs/db-4.6.21_p1 pulled in by:
 *     app-office/openoffice-2.4.1

Thanks,
Diego
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2008-08-28 16:21:35 UTC
Created attachment 164006 [details, diff]
system-check-db-4.7.patch

This seems to happen with every new increase of the minor version number of sys-libs/db.
The attached patch should solve this problem for db-4.7

Cheers
Poly-C
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-08-28 16:46:58 UTC
Isn't it easier to have a --with option to override the version check? Then it should be possible to use db-use.eclass to find the highest one.
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2008-08-28 17:02:43 UTC
You mean something like --with-db-version=${db_ver}? That might be quite handy and would prevent more duplicated bugs of the same problem just like this bug is a duplicate of:
https://bugs.gentoo.org/169526
https://bugs.gentoo.org/193162
Comment 4 Hanno Zysik (geki) 2008-08-29 09:38:12 UTC
@Diego
A '--with-...' option would be handy.
Do you volunteer to test each db version early not to hit segfaults at runtime like db-4.4 did. :)

Though, I must admit, the db code was even more simplified in OOo after that db-4.4 issue to very basic usage of db where new versions _should not_ fail. ;)
(DbEnv code dropped completely which caused trouble.)

Well, JFYI.

Feel free to replace the db check patch.
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2008-10-17 09:38:19 UTC
openoffice-3.0.0 needs this patch as well...
Comment 6 Andreas Proschofsky (RETIRED) gentoo-dev 2008-12-30 00:51:01 UTC
I've added this fix some time ago, just forgot to close this bug...