[pkg-db-devel] Bug#622916: libdb4.7-dev: shared linking no longer possible

Ondřej Surý ondrej at sury.org
Fri Apr 15 21:37:08 UTC 2011


Tests appear to be also fine.

ext/DB_File/t/db-btree........................................ok
ext/DB_File/t/db-hash.........................................ok
ext/DB_File/t/db-recno........................................ok

Do you think this solves the issue?

O.

On Fri, Apr 15, 2011 at 23:29, Ondřej Surý <ondrej at sury.org> wrote:
> Niko, could you change the linking from -ldb to -ldb-4.7 instead? The
> linkable .so file is provided by libdb4.7 package.
>
> Something like the attached patch.
>
> I just wanted to make linking to libdb-4.7 explicit, not to prevent
> linking at all.
>
> However I gladly revert the change if it will be too big obstacle.
>
> And sorry I should have checked perl and send you the patch earlier.
>
> With patch the output is:
>
> Checking Berkeley DB version ...
> Looks OK.
> Checking return type needed for hash for Berkeley DB ...
> Checking return type needed for prefix for Berkeley DB ...
>
>
> O.
>
> On Fri, Apr 15, 2011 at 22:19, Niko Tyni <ntyni at debian.org> wrote:
>> Package: libdb4.7-dev
>> Version: 4.7.25-13
>> Severity: grave
>> Justification: makes the package unusable
>>
>> On Wed, Apr 06, 2011 at 10:44:42PM +0200, Ondřej Surý wrote:
>>> Package: perl
>>> Version: 5.10.1-19
>>> Severity: normal
>>> User: pkg-db-devel at lists.alioth.debian.org
>>> Usertags: db5.1
>>>
>>> Your package currently still uses Berkeley DB version 4.7 (libdb4.7).
>>>
>>> However, there is a newer Berkeley DB version in the archive (libdb5.1),
>>> with a compatible API.  Berkeley DB version 4.7 will be eventually
>>> removed from unstable in favor of version 5.1.
>>
>> Hi Ondřej (explicitly cc'd as the PTS still shows db4.7 as orphaned),
>>
>> I see db4.7 (4.7.25-13) broke perl (5.10.1-19) build because of this:
>>
>>   * Remove generic -ldb and -ldb-4 linkability from the package
>>     (db5.1 transition)
>>
>> The result is (from my local perl build log):
>>
>>  <db.h> found.
>>  Checking Berkeley DB version ...
>>  /tmp/ccKS99qO.o: In function `main':
>>  /tmp/buildd/perl-5.10.1/UU/try.c:17: undefined reference to `db_version'
>>  collect2: ld returned 1 exit status
>>  I can't use Berkeley DB with your <db.h>.  I'll disable Berkeley DB.
>>
>> and the DB_File module doesn't get built or installed any more.
>>
>> This feels like introducing gratious breakage for the sake of it.
>> There's not a single .so file in libdb4.7-dev so how are we supposed to
>> link against it at all?
>>
>> As discussed in the bug log (#621383), we're going to make the transition
>> but please give us the time and revert the change. FWIW, this is blocking a
>> security fix (#622817) from sid.
>> --
>> Niko Tyni   ntyni at debian.org
>>
>>
>>
>
>
>
> --
> Ondřej Surý <ondrej at sury.org>
>



-- 
Ondřej Surý <ondrej at sury.org>





More information about the pkg-db-devel mailing list