yocto - yocto 使用主机 perl 安装打开嵌入式配方
问题描述
我正在使用 yocto(版本 morty),我发现我正在尝试为 heimdal(https://github.com/heimdal/heimdal)创建的食谱存在问题。在配置期间,它最终使用主机安装的 perl 而不是 perl 构建依赖项。所以它可以在任何安装了 perl 和模块的机器上工作,但我认为这不是 yocto 应该如何工作的(如果我错了,请纠正我)。
我猜这是 Heimdal 的 configure.ac 文件中的错误,或者是 autotools 的错误。我对自动工具不是超级精通,想知道是否有人可以证实这一点?这是他们的 configure.ac 的直接链接
https://github.com/heimdal/heimdal/blob/master/configure.ac
当然,这也可能是我的食谱中的一个错误:
SUMMARY = "A Kerberos 6 Implementation"
SRC_URI = "\
git://github.com/heimdal/heimdal.git;protocol=https;branch=master \
"
SRCREV = "e21866f7a29ab9d0fcf69efddaec6f758faf7494"
LICENSE = "BSD-3-Clause"
S = "${WORKDIR}/git"
LIC_FILES_CHKSUM = "file://LICENSE;md5=2580e0b4d85feafcd5c339f5be3c8229"
DEPENDS = "perl json-perl"
inherit autotools
PACKAGECONFIG = "pk-init mmap"
# Features
PACKAGECONFIG[afs-support] = "--enable-afs-support,--disable-afs-support"
PACKAGECONFIG[kcm] = "--enable-kcm,--disable-kcm"
PACKAGECONFIG[otp] = "--enable-otp,--disable-otp"
PACKAGECONFIG[pk-init] = "--enable-pk-init,--disable-pk-init"
PACKAGECONFIG[heimdal-documentation] = "--enable-heimdal-documentation,--disable-heimdal-documentation"
PACKAGECONFIG[mmap] = "--enable-mmap,--disable-mmap"
PACKAGECONFIG[sqlist-cache] = "--enable-sqlist-cache,--disable-sqlist-cache"
PACKAGECONFIG[ndmb-db] = "--enable-ndmb-db,--disable-ndmb-db"
PACKAGECONFIG[mdb-db] = "--enable-mdb-db,--disable-mdb-db"
PACKAGECONFIG[osfc2] = "--enable-osfc2,--disable-osfc2"
# Packages
PACKAGECONFIG[berkley-db] = "--with-berkley-db,--without-berkley-db"
PACKAGECONFIG[ipv6] = "--with-ipv6,--without-ipv6"
此外,我正在使用开放嵌入的(版本 morty)默认 perl 配方和这个 json-perl 配方:
DESCRIPTION = "This module is a thin wrapper for JSON::XS-compatible modules with a few \
additional features. All the backend modules convert a Perl data structure \
to a JSON text as of RFC4627 (which we know is obsolete but we still stick \
to; see below for an option to support part of RFC7159) and vice versa. \
This module uses JSON::XS by default, and when JSON::XS is not available, \
this module falls back on JSON::PP, which is in the Perl core since 5.14. \
If JSON::PP is not available either, this module then falls back on \
JSON::backportPP (which is actually JSON::PP in a different .pm file) \
bundled in the same distribution as this module. You can also explicitly \
specify to use Cpanel::JSON::XS, a fork of JSON::XS by Reini Urban."
SECTION = "libs"
LICENSE = "Artisticv1 | GPLv1+"
PR = "r0"
MAINTAINER= "Poky <poky@yoctoproject.org>"
HOMEPAGE= "https://metacpan.org/release/JSON"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Artistic-1.0;md5=cda03bbdc3c1951996392b872397b798 \
file://${COMMON_LICENSE_DIR}/GPL-1.0;md5=e9e36a9de734199567a4d769498f743d"
SRC_URI = "https://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/JSON-2.97001.tar.gz"
SRC_URI[md5sum] = "693d6ff167496362f8ec6c3c5b8ba5ee"
SRC_URI[sha256sum] = "e277d9385633574923f48c297e1b8acad3170c69fa590e31fa466040fc6f8f5a"
S = "${WORKDIR}/JSON-${PV}"
inherit cpan allarch
BBCLASSEXTEND = "native"
解决方案
推荐阅读
- firebase - Firebase 安全中是否需要“匹配/{document=**}”
- sql-server - 在sql中求和运行总数
- git - 如何将两个 git 合二为一
- python - 用python从CSV文件制作直方图
- python - 使用 Tensorly 的非负张量分解示例
- php - 我正在尝试将多个复选框传递给 $_POST 页面并将数据保存到数据库
- python - 为什么追加到一个对象的列表属性,会修改同一类下所有对象的属性?
- r - 我可以通过列和行专门计算方差吗
- laravel - 从共享主机上的 storage_path 读取图像,例如 Godaddy,返回错误 404
- xcode - 在物理 ios 设备上启动 Flutter App 时出现错误代码