meta-starlingx/meta-stx-flock/stx-utilities/worker-utils.bb
Jackie Huang abbadaaff1 worker-utils: fix a perl experimental feature failure
In the cpumap_functions.sh, a one line perl script uses a perl
experimental feature which is added in perl 5.14 but removed
in perl 5.23 and later release, so fix to avoid using the
feature to fix failure with new perl releases.

Story: 2008204
Task: 40988

Change-Id: I90aa8bd3d7bd66d9d4d10c1987387dc6b32a2836
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
2020-10-28 21:31:39 +08:00

34 lines
1015 B
BlitzBasic

DESCRIPTION = "Initial worker node resource reservation and misc. utilities"
SUMMARY = "dynamic MOTD generation"
require utilities-common.inc
SUBPATH0 = "utilities/worker-utils/worker-utils"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI += " \
file://0001-worker-utils-account-for-distro-PATH-differeces.patch;striplevel=4 \
file://0001-cpumap_functions.sh-fix-perl-experimental-feature-is.patch;striplevel=4 \
"
RDEPENDS_${PN}_append = " perl systemd python bash"
DEPENDS += " python"
inherit python-dir systemd
DISTRO_FEATURES_BACKFILL_CONSIDERED_remove = "sysvinit"
SYSTEMD_PACKAGES += "${PN}"
SYSTEMD_SERVICE_${PN} = " affine-tasks.service affine-platform.sh.service"
do_configure[noexec] = "1"
do_install() {
oe_runmake install \
BINDIR=${D}/${bindir} \
INITDDIR=${D}/${sysconfdir}/init.d \
GOENABLEDDIR=${D}/${sysconfdir}/goenabled.d \
PLATFORMCONFDIR=${D}/${sysconfdir}/platform \
SYSTEMDDIR=${D}/${systemd_system_unitdir}
}