mirror of
https://git.yoctoproject.org/meta-security
synced 2026-07-27 07:27:14 +00:00
7eed4a60f5
OE-Core changed the cache handling which made the use of ${BPN} no fail.
| Parsing recipes...WARNING: .../samhain-standalone.bb: Exception during build_dependencies for do_configure
| WARNING: .../samhain-standalone.bb: Error during finalise of .../samhain-standalone.bb
| ERROR: ExpansionError during parsing .../samhain-standalone.bb
| Traceback (most recent call last):
| File "Var <MODE_NAME>", line 1, in <module>
| bb.data_smart.ExpansionError: Failure expanding variable MODE_NAME, expression was ${@d.getVar('BPN').split('-')[1]} which triggered exception IndexError: list index out of range
| The variable dependency chain for the failure is: MODE_NAME -> SAMHAIN_MODE -> do_configure
Simplify the setting of MODE_NAME and SAMHAIN_MODE by setting them
in the recipe files where we know their values.
bitbake:
ee89ade5 cache/codeparser: Switch to a new BB_CACHEDIR variable for cache location
oe-core:
7c15e03dd3 bitbake.conf: Add BB_HASH_CODEPARSER_VALS
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
36 lines
747 B
BlitzBasic
36 lines
747 B
BlitzBasic
require samhain.inc
|
|
|
|
SRC_URI += "file://samhain-not-run-ptest-on-host.patch \
|
|
file://0001-Don-t-expose-configure-args.patch \
|
|
file://run-ptest \
|
|
"
|
|
|
|
PROVIDES += "samhain"
|
|
|
|
MODE_NAME = "standalone"
|
|
SAMHAIN_MODE = "no"
|
|
|
|
SYSTEMD_SERVICE:${PN} = "samhain.service"
|
|
|
|
inherit ptest
|
|
|
|
do_compile() {
|
|
if [ "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'yes', 'no', d)}" = "yes" ]; then
|
|
oe_runmake cutest
|
|
rm -f ${S}*.o config_xor.h internal.h
|
|
fi
|
|
oe_runmake "$@"
|
|
}
|
|
|
|
do_install:append() {
|
|
ln -sf ${INITSCRIPT_NAME} ${D}${sysconfdir}/init.d/samhain
|
|
}
|
|
|
|
do_install_ptest() {
|
|
mkdir -p ${D}${PTEST_PATH}
|
|
install ${S}/cutest ${D}${PTEST_PATH}
|
|
}
|
|
|
|
RPROVIDES:${PN} += "samhain"
|
|
RCONFLICTS:${PN} = "samhain-client samhain-server"
|