[oe] Question on writing perl lib .bb files

J. L. vwyodapink at gmail.com
Sun Oct 10 08:36:19 UTC 2010


On Sun, Oct 10, 2010 at 1:33 AM, J. L. <vwyodapink at gmail.com> wrote:
> I am trying to add a few more perl libs into my build that dont exist
> and I have seen some that have dependences and others that dont. So I
> wrote one for Net::Whois::ARIN and tried without what CPAN says is the
> dependencies and it built correctly with no errors I installed the
> .ipk and went to try the build of a program I wanted to try on my
> overo and it no longer complains about it missing that. But why do
> some perl lib .bb use depends and not even all the depends that cpan
> lists and some list none even though according to CPAN they need them?
> I will post the .bb I wrote as well, thanks for any info on the
> correct way to do this as not sure if what I did is enough to properly
> get the lib for perl built
>
> DESCRIPTION = "Net::Whois::ARIN         whois arin "
> SECTION = "libs"
> LICENSE = "Perl"
> PR = "r1"
>
> DEPENDS += "libtest-mockmodule-perl scalar-util-perl libtest-exception-perl \
>            test-harness-perl test-more-perl libsub-uplevel-perl \
>            libmodule-build-perl carp-perl universal-isa-perl \
>            universal-can-perl io-socket-inet-perl "
>
> SRC_URI = "http://search.cpan.org/CPAN/authors/id/T/TC/TCAINE/Net-Whois-ARIN-${PV}.tar.gz"
>
> S = "${WORKDIR}/Net-Whois-ARIN-${PV}"
>
> inherit cpan
>
> BBCLASSEXTEND="native"
>
> SRC_URI[md5sum] = "a5aee39187c6272acd2a77e30847fdef"
> SRC_URI[sha256sum] =
> "d47a6720ff265674cbd918d866c73221be9916d81e1c30ccdb0d49e6b45110e8"
>

Sorry forgot the build output as well:

NOTE: Running task 904 of 922 (ID: 11,
/home/vdubhack/overo-oe/user.collection/recipes/perl/libnet-whois-arin-perl_0.11.bb,
do_setscene)
NOTE: Running task 905 of 922 (ID: 9,
/home/vdubhack/overo-oe/user.collection/recipes/perl/libnet-whois-arin-perl_0.11.bb,
do_fetch)
NOTE: Running task 906 of 922 (ID: 0,
/home/vdubhack/overo-oe/user.collection/recipes/perl/libnet-whois-arin-perl_0.11.bb,
do_unpack)
NOTE: Unpacking sources/Net-Whois-ARIN-0.11.tar.gz to
tmp/work/armv7a-angstrom-linux-gnueabi/libnet-whois-arin-perl-0.11-r1/
NOTE: Running task 907 of 922 (ID: 1,
/home/vdubhack/overo-oe/user.collection/recipes/perl/libnet-whois-arin-perl_0.11.bb,
do_patch)
NOTE: Running task 908 of 922 (ID: 12,
/home/vdubhack/overo-oe/user.collection/recipes/perl/libnet-whois-arin-perl_0.11.bb,
do_configure)
NOTE: Running task 909 of 922 (ID: 13,
/home/vdubhack/overo-oe/user.collection/recipes/perl/libnet-whois-arin-perl_0.11.bb,
do_qa_configure)
NOTE: Running task 910 of 922 (ID: 14,
/home/vdubhack/overo-oe/user.collection/recipes/perl/libnet-whois-arin-perl_0.11.bb,
do_compile)
NOTE: Running task 911 of 922 (ID: 2,
/home/vdubhack/overo-oe/user.collection/recipes/perl/libnet-whois-arin-perl_0.11.bb,
do_install)
NOTE: Running task 912 of 922 (ID: 15,
/home/vdubhack/overo-oe/user.collection/recipes/perl/libnet-whois-arin-perl_0.11.bb,
do_package)
NOTE: the following files were installed but not shipped in any package:
NOTE:   /home/vdubhack/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/perl-5.8.8-r36/image/usr/share/man/man3/Net::Whois::ARIN.3pm
NOTE:   /home/vdubhack/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/perl-5.8.8-r36/image/usr/share/man/man3/Net::Whois::ARIN::Contact.3pm
NOTE:   /home/vdubhack/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/perl-5.8.8-r36/image/usr/share/man/man3/Net::Whois::ARIN::AS.3pm
NOTE:   /home/vdubhack/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/perl-5.8.8-r36/image/usr/share/man/man3/Net::Whois::ARIN::Organization.3pm
NOTE:   /home/vdubhack/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/perl-5.8.8-r36/image/usr/share/man/man3/Net::Whois::ARIN::Customer.3pm
NOTE:   /home/vdubhack/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/perl-5.8.8-r36/image/usr/share/man/man3/Net::Whois::ARIN::Network.3pm
NOTE: Running task 913 of 922 (ID: 3,
/home/vdubhack/overo-oe/user.collection/recipes/perl/libnet-whois-arin-perl_0.11.bb,
do_populate_sysroot)
NOTE: Running task 914 of 922 (ID: 18,
/home/vdubhack/overo-oe/user.collection/recipes/perl/libnet-whois-arin-perl_0.11.bb,
do_package_write_ipk)
Packaged contents of libnet-whois-arin-perl-dbg into
/home/vdubhack/overo-oe/tmp/deploy/glibc/ipk/armv7a/libnet-whois-arin-perl-dbg_0.11-r1.6_armv7a.ipk
Packaged contents of libnet-whois-arin-perl into
/home/vdubhack/overo-oe/tmp/deploy/glibc/ipk/armv7a/libnet-whois-arin-perl_0.11-r1.6_armv7a.ipk
NOTE: Not creating empty archive for libnet-whois-arin-perl-doc-0.11-r1.6
Packaged contents of libnet-whois-arin-perl-dev into
/home/vdubhack/overo-oe/tmp/deploy/glibc/ipk/armv7a/libnet-whois-arin-perl-dev_0.11-r1.6_armv7a.ipk
NOTE: Not creating empty archive for libnet-whois-arin-perl-static-0.11-r1.6
NOTE: Not creating empty archive for libnet-whois-arin-perl-locale-0.11-r1.6
NOTE: Running task 915 of 922 (ID: 5,
/home/vdubhack/overo-oe/user.collection/recipes/perl/libnet-whois-arin-perl_0.11.bb,
do_package_write)
NOTE: Running task 916 of 922 (ID: 4,
/home/vdubhack/overo-oe/user.collection/recipes/perl/libnet-whois-arin-perl_0.11.bb,
do_qa_staging)
NOTE: Running task 917 of 922 (ID: 6,
/home/vdubhack/overo-oe/user.collection/recipes/perl/libnet-whois-arin-perl_0.11.bb,
do_package_stage)
NOTE: Running task 918 of 922 (ID: 16,
/home/vdubhack/overo-oe/user.collection/recipes/perl/libnet-whois-arin-perl_0.11.bb,
do_distribute_sources)
NOTE: Running task 919 of 922 (ID: 7,
/home/vdubhack/overo-oe/user.collection/recipes/perl/libnet-whois-arin-perl_0.11.bb,
do_package_stage_all)
NOTE: Running task 920 of 922 (ID: 10,
/home/vdubhack/overo-oe/user.collection/recipes/perl/libnet-whois-arin-perl_0.11.bb,
do_build)
NOTE: Running task 921 of 922 (ID: 17,
/home/vdubhack/overo-oe/user.collection/recipes/perl/libnet-whois-arin-perl_0.11.bb,
do_rm_work)
NOTE: Running task 922 of 922 (ID: 8,
/home/vdubhack/overo-oe/user.collection/recipes/perl/libnet-whois-arin-perl_0.11.bb,
do_rm_work_all)
NOTE: Tasks Summary: Attempted 922 tasks of which 903 didn't need to
be rerun and 0 failed.




More information about the Openembedded-devel mailing list