diff options
| author | Yoann Congal <yoann.congal@smile.fr> | 2025-11-22 22:55:17 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-11-23 00:12:01 -0800 |
| commit | 09c7f76c196876a4366f220b360f4bdb93ab95c0 (patch) | |
| tree | 43bf69640d9bb8458fa6ea99584e895e7cf923d8 | |
| parent | 0c29947cea65477b8863da849add263cefd22f80 (diff) | |
| download | meta-openembedded-09c7f76c196876a4366f220b360f4bdb93ab95c0.tar.gz | |
libunix-statgrab: Put LD export in do_configureHEADwhinlattermaster
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>
| -rw-r--r-- | meta-perl/recipes-perl/libstatgrab/libunix-statgrab_0.112.bb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta-perl/recipes-perl/libstatgrab/libunix-statgrab_0.112.bb b/meta-perl/recipes-perl/libstatgrab/libunix-statgrab_0.112.bb index be52caacf2..7cf4875e14 100644 --- a/meta-perl/recipes-perl/libstatgrab/libunix-statgrab_0.112.bb +++ b/meta-perl/recipes-perl/libstatgrab/libunix-statgrab_0.112.bb | |||
| @@ -32,7 +32,9 @@ SRC_URI[sha256sum] = "16a29f7acaeec081bf0e7303ba5ee24fda1d21a1104669b837745f3ea6 | |||
| 32 | 32 | ||
| 33 | S = "${UNPACKDIR}/Unix-Statgrab-${PV}" | 33 | S = "${UNPACKDIR}/Unix-Statgrab-${PV}" |
| 34 | 34 | ||
| 35 | export LD = "${CCLD}" | ||
| 36 | |||
| 37 | inherit cpan pkgconfig ptest-perl | 35 | inherit cpan pkgconfig ptest-perl |
| 38 | 36 | ||
| 37 | do_configure:prepend() { | ||
| 38 | # Toolchains forcibly define LD, so override it in the task | ||
| 39 | export LD="${CCLD}" | ||
| 40 | } | ||
