Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 252538 - dev-perl/DBD-SQLite bundles a copy of SQLite3
Summary: dev-perl/DBD-SQLite bundles a copy of SQLite3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on: 233994
Blocks: bundled-libs
  Show dependency tree
 
Reported: 2008-12-25 23:09 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2010-01-12 11:55 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2008-12-25 23:09:55 UTC
I have no words :(
Comment 1 Torsten Veller (RETIRED) gentoo-dev 2009-11-24 13:00:54 UTC
I tried this again with DBD-SQLite-1.27:

| -DEPEND=">=dev-perl/DBI-1.57
| +RDEPEND=">=dev-perl/DBI-1.57
| +       >=dev-db/sqlite-3.6.0
|         !<dev-perl/DBD-SQLite-1"
| +DEPEND="${RDEPEND}"
|  
|  SRC_TEST="do"
| +
| +src_prepare() {
| +       perl-module_src_prepare
| +       sed -i 's/^if ( 0 )/if ( 1 )/' "${S}"/Makefile.PL || die
| +}

and tests fail:

| PERL_DL_NONLAZY=1 /usr/bin/perl5.8.8 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
| t/01_compile.t ........................... 1/4
| #   Failed test 'use DBD::SQLite;'
| #   at t/01_compile.t line 17.
| #     Tried to use 'DBD::SQLite'.
| #     Error:  Can't load '/var/tmp/portage/dev-perl/DBD-SQLite-1.27/work/DBD-SQLite-1.27/blib/arch/auto/DBD/SQLite/SQLite.so' for module DBD::SQLite: /var/tmp/portage/dev-perl/DBD-SQLite-1.27/work/DBD-SQLite-1.27/blib/arch/auto/DBD/SQLite/SQLite.so: undefined symbol: sqlite3_enable_load_extension at /usr/lib64/perl5/5.8.8/x86_64-linux/DynaLoader.pm line 230.
| #  at (eval 6) line 2    
| # Compilation failed in require at (eval 6) line 2.
| # BEGIN failed--compilation aborted at t/01_compile.t line 17.
| # $DBI::VERSION=1.609    
| # Looks like you failed 1 test of 4.
| t/01_compile.t ........................... Dubious, test returned 1 (wstat 256, 0x100)
| Failed 1/4 subtests      


(In reply to comment #0)
> I have no words :(

I have no clue :(
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-11-24 13:04:35 UTC
Hrm, can you try with tcl USE flag enabled on sqlite? I know it's far-fetched but…
Comment 3 Torsten Veller (RETIRED) gentoo-dev 2009-11-24 14:34:29 UTC
(In reply to comment #2)
> Hrm, can you try with tcl USE flag enabled on sqlite? I know it's far-fetched
> but…

It's related to bug #233994. If sqlite is build with EXTRA_ECONF=--enable-load-extension, the output looks much better.

What we have to do to make it work with sqlite without loadable extension support, i don't know. 
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-11-24 14:39:53 UTC
Guess it would be enough to get the USE flag in and then depend on it.
An experimental feature in sqlite is still better than a bundled copy :)
Comment 5 Torsten Veller (RETIRED) gentoo-dev 2010-01-12 11:55:47 UTC
Should be fixed in dev-perl/DBD-SQLite-1.29-r1