[Libreoffice] [PATCH] Fix configure check for BerkleyDB where db_create is macro

Petr Mladek pmladek at suse.cz
Thu Jan 6 12:03:28 PST 2011


Hi,

this fixed the problem described in the attached mail.

Gökçen, Robert, could you please test it and sign it out for
libreoffice-3-3 branch?

It works here and it should be more safe than the current solution.


Analyze:
--------

"db_create" function is defined by macro in some db version. I did a lot
of googling and have not found any ultimate solution.

Some people try to check all "db_create" variants, e.g. db_create_4002, 
db_create_4001, see
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/mail-filter/maildrop/files/maildrop-2.5.1-db.patch?view=diff&r1=text&tr1=1.1&r2=text&tr2=1.1&diff_format=s

The problem is that there exists too many variants. Gökçen would need
db_create_4008, ...

I have found only one other variant for "dbopen" that is __db185_open.
This symbol has been introduced in db-3.x and seems to be provided by
any newer version for compatibility reasons. See also
http://lists.debian.org/debian-devel/2001/04/msg01770.html


Solution:
---------

LibO requires db >= 4.4. All these version should provide the symbol
"__db185_open" for compatibility reasons. Of course, it is better to
check for the original symbol "dbopen", so I used "__db185_open" just as
fallback.

I am not 100% sure that it would work on all archaic systems but it
should be better than the current state.


Best Regards,
Petr
-------------- next part --------------
An embedded message was scrubbed...
From: =?utf-8?q?G=C3=B6k=C3=A7en_Eraslan?= <gokcen at pardus.org.tr>
Subject: Re: [Libreoffice] PATCH: Try to find the proper berkeley db
 headers and incs
Date: Mon, 27 Dec 2010 15:12:55 +0000
Size: 19091
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110106/1fdbae59/attachment.eml>


More information about the LibreOffice mailing list