meta-openembedded/meta-perl
Yoann Congal 09c7f76c19
libunix-statgrab: Put LD export in do_configure
Toolchains (gcc/clang) forcibly define LD (LD = ...), so, override it in
the do_configure task.

This fixes this build error (seen on AB[0]):
| Checking for pkg-config... .../tmp/work/x86-64-v3-poky-linux/libunix-statgrab/0.112/recipe-sysroot-native/usr/bin/pkg-config
| Checking for pkg-config package of libstatgrab... Unsupported compile language "C" at Makefile.PL line 39.
| -lstatgrab -lpthread
| Checking for library containing sg_get_process_stats_r... WARNING: .../run.do_configure.38403:154 exit 255 from 'perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 PERL=$(which perl)'
| WARNING: Backtrace (BB generated script):
| 	#1: cpan_do_configure, .../tmp/work/x86-64-v3-poky-linux/libunix-statgrab/0.112/temp/run.do_configure.38403, line 154
| 	#2: do_configure, .../tmp/work/x86-64-v3-poky-linux/libunix-statgrab/0.112/temp/run.do_configure.38403, line 147
| 	#3: main, .../tmp/work/x86-64-v3-poky-linux/libunix-statgrab/0.112/temp/run.do_configure.38403, line 189
NOTE: recipe libunix-statgrab-0.112-r0: task do_configure: Failed
ERROR: Task (meta-openembedded/meta-perl/recipes-perl/libstatgrab/libunix-statgrab_0.112.bb:do_configure) failed with exit code '1'

[0]: https://autobuilder.yoctoproject.org/valkyrie/#/builders/87/builds/77/steps/38/logs/stdio

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-11-23 00:12:01 -08:00
..
conf ptest-packagelists-meta-perl: remove libxml-libxml-perl 2025-10-31 11:38:34 -07:00
files Add static-passwd and static-group files 2023-10-10 08:51:47 -07:00
recipes-core libxml-libxml-perl: skip recipe 2025-10-25 14:20:38 -07:00
recipes-extended cpan-requirements-dynamic: add recipe 2025-10-25 08:45:03 -07:00
recipes-perl libunix-statgrab: Put LD export in do_configure 2025-11-23 00:12:01 -08:00
COPYING.MIT
README.md layers: Move READMEs to markdown format 2023-06-17 08:30:01 -07:00
SECURITY.md meta: Add SECURITY.md file to all layers 2024-11-23 09:00:14 -08:00

meta-perl

This layer provides commonly-used perl related recipes such as perl libraries in the Comprehensive Perl Archive Network.

Contents and Help

In this section the contents of the layer is listed, along with a short help for each package.

     -- libdbi-perl --
     The DBI is a database access module for the Perl programming language.
     It defines a set of methods, variables, and conventions that provide
     a consistent database interface, independent of the actual database
     being used.
                  |<- Scope of DBI ->|
                       .-.   .--------------.   .-------------.
       .-------.       | |---| XYZ Driver   |---| XYZ Engine  |
       | Perl  |       | |   `--------------'   `-------------'
       | script|  |A|  |D|   .--------------.   .-------------.
       | using |--|P|--|B|---|Oracle Driver |---|Oracle Engine|
       | DBI   |  |I|  |I|   `--------------'   `-------------'
       | API   |       | |...
       |methods|       | |... Other drivers
       `-------'       | |...
                       `-'

    -- libdbd-sqlite-perl --
    DBD::SQLite is a Perl DBI driver for SQLite, that includes the entire
    thing in the distribution. So in order to get a fast transaction capable
    RDBMS working for your perl project you simply have to install this
    module, and nothing else.

    usage: there is a test case to show you how it works

    1) vim local.conf:
    ...
    IMAGE_INSTALL:append = " libdbd-sqlite-perl"
    PERL_DBM_TEST = "1"
    ...
    2) build core-image-sato and boot the target

    3) run "sqlite-perl-test.pl" on target. This script includes five
       operations create/insert/update/delete/select to do with a table.

    More information can be found in the recipe's git log.

Dependencies

This layer depends on:

URI: git://git.openembedded.org/openembedded-core branch: master

Adding the meta-perl layer to your build

In order to use this layer, you need to make the build system aware of it.

Assuming the meta-perl layer exists at the top-level of your yocto build tree, you can add it to the build system by adding the location of the meta-perl layer to bblayers.conf, along with any other layers needed. e.g.:

BBLAYERS ?= "
/path/to/oe-core/meta
/path/to/layer/meta-perl \

Maintenance

Send patches / pull requests to openembedded-devel@lists.openembedded.org with '[meta-perl]' in the subject.

When sending single patches, please using something like: git send-email -M -1 --to openembedded-devel@lists.openembedded.org --subject-prefix='meta-perl][PATCH'

Layer maintainers: Hongxu Jia hongxu.jia@windriver.com Tim "moto-timo" Orling ticotimo@gmail.com

License

All metadata is MIT licensed unless otherwise stated. Source code included in tree for individual recipes is under the LICENSE stated in each recipe (.bb file) unless otherwise stated.