Skip to contentSkip to conversation

libdbd-sqlite-perl: New recipe for SQLite DBI interface driver

PATCH In review Michael Lippautz 4 participants 7 messages Jan 29, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libdbd-sqlite-perl: New recipe for SQLite DBI interface driver

---
 recipes/perl/libdbd-sqlite-perl_1.29.bb |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)
 create mode 100644 recipes/perl/libdbd-sqlite-perl_1.29.bb
recipes/perl/libdbd-sqlite-perl_1.29.bb new file +29 -0
new file mode 100644
index 0000000..10fe73a
@@ -0,0 +1,29 @@
+DESCRIPTION = "PERL database interface driver for the SQLite database."
+SECTION = "libs"
+LICENSE = "Artistic|GPL"
+DEPENDS = "libdbi-perl-native"
+RDEPENDS = "libdbi-perl \
+         perl-module-file-spec \
+         perl-module-file-path \
+         perl-module-scalar-util \
+         perl-module-list-util \
+         perl-module-test \
+         perl-module-test-more \
+         perl-module-test-harness \
+         perl-module-file-basename \
+         perl-module-storable \
+         perl-module-extutils-makemaker \
+         perl-module-locale \
+         perl-module-tie-hash \
+"
+PR = "r0"
+
+SRC_URI = "http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/DBD-SQLite-${PV}.tar.gz;name=dbdsqlite"
+SRC_URI[dbdsqlite.md5sum] = "2a47cea6ecff62508775d90151a8030f"
+SRC_URI[dbdsqlite.sha256sum] = "51d0d529e453ada1ce85772deb5cc4c86a2ebe9da2dd2fb0b40b77b555720867"
+
+S = "${WORKDIR}/DBD-SQLite-${PV}"
+
+inherit cpan
+
+BBCLASSEXTEND = "native"
Signature · 1 line
1.6.4.4
#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 11 lines · Michael Lippautz
---
 recipes/perl/libdbd-sqlite-perl_1.29.bb |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)
 create mode 100644 recipes/perl/libdbd-sqlite-perl_1.29.bb
recipes/perl/libdbd-sqlite-perl_1.29.bb new file +0 -0
new file mode 100644
index 0000000..10fe73a

recipes/perl/libdbd-sqlite-perl_1.29.bb line 5

Quoted 5 lines
recipes/perl/libdbd-sqlite-perl_1.29.bb new file +5 -0
@@ -0,0 +1,29 @@
+DESCRIPTION = "PERL database interface driver for the SQLite database."
+SECTION = "libs"
+LICENSE = "Artistic|GPL"
+DEPENDS = "libdbi-perl-native"
+RDEPENDS = "libdbi-perl \

That should be RDEPENDS_${PN}

We did have a script somewhere to check for things like that, does anyone know where that went?
And can someone more knowledgable about perl than me push these patches (after fixups)?

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFLYrgTMkyGM64RGpERAnOEAJ0cVpWnavLn9ssl3Q6wKYXcPO2W1wCeKGwC +s4lBh3sMT+RMl7dUgQrplo=
=BZHR
-----END PGP SIGNATURE-----

#2 lore raw

2010/1/29 Koen Kooi <[email protected]>:

Quoted 7 lines

That should be RDEPENDS_${PN}

We did have a script somewhere to check for things like that, does anyone know where that went?
And can someone more knowledgable about perl than me push these patches (after fixups)?

Just looked up the deps at CPAN and added them. Additionally some core modules were needed that were not mentioned by CPAN (locale.pm), so manually added them to the list.

#3 lore raw
In reply to Koen Kooi
Quoted 25 lines · Koen Kooi

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 2 lines · Michael Lippautz
---
 recipes/perl/libdbd-sqlite-perl_1.29.bb |   29

+++++++++++++++++++++++++++++

recipes/perl/

Quoted 4 lines
 1 files changed, 29 insertions(+), 0 deletions(-)
 create mode 100644 recipes/perl/libdbd-sqlite-perl_1.29.bb
recipes/perl/ renamed from recipes/perl/libdbd-sqlite-perl_1.29.bb +0 -0

libdbd-sqlite-perl_1.29.bb

recipes/perl/libdbd-sqlite-perl_1.29.bb line 5

Quoted 10 lines

new file mode 100644
index 0000000..10fe73a

recipes/perl/libdbd-sqlite-perl_1.29.bb new file +5 -0
@@ -0,0 +1,29 @@
+DESCRIPTION = "PERL database interface driver for the SQLite database."
+SECTION = "libs"
+LICENSE = "Artistic|GPL"
+DEPENDS = "libdbi-perl-native"
+RDEPENDS = "libdbi-perl \

That should be RDEPENDS_${PN}

Quoted 3 lines

We did have a script somewhere to check for things like that, does anyone know where that went?

Here's one option:

INHERIT += "recipe_sanity"
bitbake -c recipe_sanity libdbd-sqlite-perl

Signature · 7 lines
Chris Larson
clarson at kergoth dot com
clarson at mvista dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Software Engineer
MontaVista Software, Inc.
#4 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 27 lines · Chris Larson
Quoted 25 lines · Koen Kooi

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 2 lines · Michael Lippautz
---
 recipes/perl/libdbd-sqlite-perl_1.29.bb |   29

+++++++++++++++++++++++++++++

recipes/perl/

Quoted 4 lines
 1 files changed, 29 insertions(+), 0 deletions(-)
 create mode 100644 recipes/perl/libdbd-sqlite-perl_1.29.bb
recipes/perl/ renamed from recipes/perl/libdbd-sqlite-perl_1.29.bb +0 -0

libdbd-sqlite-perl_1.29.bb

recipes/perl/libdbd-sqlite-perl_1.29.bb line 5

Quoted 10 lines

new file mode 100644
index 0000000..10fe73a

recipes/perl/libdbd-sqlite-perl_1.29.bb new file +5 -0
@@ -0,0 +1,29 @@
+DESCRIPTION = "PERL database interface driver for the SQLite database."
+SECTION = "libs"
+LICENSE = "Artistic|GPL"
+DEPENDS = "libdbi-perl-native"
+RDEPENDS = "libdbi-perl \

That should be RDEPENDS_${PN}

Quoted 8 lines
Quoted 3 lines

We did have a script somewhere to check for things like that, does anyone know where that went?

Here's one option:

INHERIT += "recipe_sanity"
bitbake -c recipe_sanity libdbd-sqlite-perl

That explains why I couldn't find it in contrib/ :)

regards,

Koen

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFLYwcdMkyGM64RGpERAlTkAJwJZkBzZDIEbNrXzXViv/ML8vzkwACggiVb nio5kWyzMYIKgC8MI6n0+b8=
=UvMI
-----END PGP SIGNATURE-----

#5 lore raw
In reply to Michael Lippautz

recipes/perl/libdbd-sqlite-perl_1.29.bb line 3

Quoted 3 lines · On Friday 29 January 2010 11:07:56 Michael Lippautz wrote:
recipes/perl/libdbd-sqlite-perl_1.29.bb new file +3 -0
+DESCRIPTION = "PERL database interface driver for the SQLite database."
+SECTION = "libs"
+LICENSE = "Artistic|GPL"

Use a space here, we do not have a good way to indicate dual licensing.

recipes/perl/libdbd-sqlite-perl_1.29.bb line 29

Quoted 2 lines
recipes/perl/libdbd-sqlite-perl_1.29.bb new file +2 -0
+DEPENDS = "libdbi-perl-native"
+BBCLASSEXTEND = "native"

I'm not sure about these two.

#6 lore raw

Am Freitag, den 29.01.2010, 11:28 +0100 schrieb Holger Hans Peter Freyther:

Quoted 7 lines · On Friday 29 January 2010 11:07:56 Michael Lippautz wrote:

recipes/perl/libdbd-sqlite-perl_1.29.bb line 3

Quoted 4 lines
recipes/perl/libdbd-sqlite-perl_1.29.bb new file +3 -0
+DESCRIPTION = "PERL database interface driver for the SQLite database."
+SECTION = "libs"
+LICENSE = "Artistic|GPL"

Use a space here, we do not have a good way to indicate dual licensing.

Ok, just looked how existing recipes indicated dual licensing (dbd-mysql-perl).

Quoted 6 lines

recipes/perl/libdbd-sqlite-perl_1.29.bb line 29

Quoted 4 lines
recipes/perl/libdbd-sqlite-perl_1.29.bb new file +2 -0
+DEPENDS = "libdbi-perl-native"
+BBCLASSEXTEND = "native"

I'm not sure about these two.

1) Perl module needs libdbi-perl natively installed to pass a configure check.

2) Maybe someone needs a native version of this, so I just added the native extension?

Regards,
Michael