Bug 543982

Summary: perl-DBD-SQLite using internal copy of sqlite instead of sqlite shared lib
Product: [Fedora] Fedora Reporter: Gerd v. Egidy <gerd>
Component: perl-DBD-SQLiteAssignee: Stepan Kasal <kasal>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: emmanuel, kasal, mmaslano, perl-devel, steve
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-01-11 14:49:23 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:
Attachments:
Description Flags
Patch to make DBD-SQLite use the system sqlite libs instead of the internel version none

Description Gerd v. Egidy 2009-12-03 16:24:17 UTC
Description of problem:
perl-DBD-SQLite is currently using an internal copy of sqlite instead of the system-wide sqlite shared lib coming with the package "sqlite".

This is advertised differently in the rpm description and has the disadvantage that bugfixes/security updates/... that get published via a new sqlite package don't affect code accessing sqlite databases from perl.

Version-Release number of selected component (if applicable):
1.25-4.fc12

How reproducible:
always

Steps to Reproduce:
1. ldd /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/auto/DBD/SQLite/SQLite.so
  
Actual results:
        linux-gate.so.1 =>  (0x00987000)
        libc.so.6 => /lib/libc.so.6 (0x00235000)
        /lib/ld-linux.so.2 (0x00213000)

Expected results:
        linux-gate.so.1 =>  (0x00987000)
        libc.so.6 => /lib/libc.so.6 (0x00235000)
        /lib/ld-linux.so.2 (0x00213000)
        libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (...)

Comment 1 Gerd v. Egidy 2010-01-11 12:59:32 UTC
This problem is present in the version targeted for FC13 too:
perl-DBD-SQLite-1.27-2.fc13

Comment 2 Emmanuel Seyman 2010-01-11 14:11:38 UTC
The spec file has the following comments in it:

# if sqlite >= 3.1.3 then
#   perl-DBD-SQLite uses the external library
# else
#   perl-DBD-SQLite is self-contained (uses the sqlite local copy)

but I'm not seeing it happen.

Comment 3 Emmanuel Seyman 2010-01-11 14:18:34 UTC
Created attachment 382984 [details]
Patch to make DBD-SQLite use the system sqlite libs instead of the internel version

This patch forces DBD::SQLite to use the system libs instead of relying on the internal version.

Comment 4 Gerd v. Egidy 2010-01-11 14:48:13 UTC
Hi Emmanuel,

just took a look at this too, came up with the same patch, but you were faster ;)
I can confirm that your patch fixes this. So it would be nice if it could be applied.

Comment 5 Marcela Mašláňová 2010-01-11 14:49:23 UTC
Nice patch ;-) Thanks, fixed as perl-DBD-SQLite-1.27-3.fc13