mirror of
https://git.yoctoproject.org/meta-security
synced 2026-07-16 15:57:21 +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>
33 lines
937 B
BlitzBasic
33 lines
937 B
BlitzBasic
INITSCRIPT_PARAMS = "defaults 14 86"
|
|
|
|
require samhain.inc
|
|
|
|
DEPENDS = "gmp"
|
|
|
|
SRC_URI += "file://samhain-server-volatiles \
|
|
file://samhain-server-volatiles.conf \
|
|
"
|
|
|
|
MODE_NAME = "server"
|
|
SAMHAIN_MODE = "server"
|
|
|
|
TARGET_CC_ARCH += "${LDFLAGS}"
|
|
|
|
do_install:append() {
|
|
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
|
|
install -d ${D}${sysconfdir}/tmpfiles.d
|
|
install -m 0644 ${WORKDIR}/samhain-server-volatiles.conf \
|
|
${D}${sysconfdir}/tmpfiles.d/samhain-server.conf
|
|
else
|
|
install -d ${D}${sysconfdir}/default/volatiles
|
|
install -m 0644 ${WORKDIR}/samhain-server-volatiles \
|
|
${D}${sysconfdir}/default/volatiles/samhain-server
|
|
fi
|
|
|
|
install -m 700 samhain-install.sh init/samhain.startLinux \
|
|
init/samhain.startLSB ${D}/var/lib/samhain
|
|
}
|
|
|
|
RDEPENDS:${PN} += "gmp bash perl"
|
|
RCONFLICTS:${PN} = "samhain-standalone"
|