nagios-core: fix do_install during cross builds

Upstream started stripping built binaries by default, using
HOSTTOOLS install to strip binaries that are different in
architecture from the host, raising errors:

strip: Unable to recognise the format of the input file
TOPDIR/tmp-glibc/hosttools/install: strip process terminated abnormally

Hence, build unstripped binaries and let oe build system
strip the binaries during do_package.

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
sakib.sajal@windriver.com 2020-11-17 17:33:36 -05:00 committed by Bruce Ashfield
parent 9fe997733d
commit 968e4116a8

View File

@ -80,7 +80,7 @@ do_compile() {
}
do_install() {
oe_runmake 'DESTDIR=${D}' install
oe_runmake 'DESTDIR=${D}' install-unstripped
oe_runmake 'DESTDIR=${D}' install-init
oe_runmake 'DESTDIR=${D}' install-config
oe_runmake 'DESTDIR=${D}' install-commandmode
@ -158,5 +158,3 @@ CVE_PRODUCT = "nagios_core"
ALTERNATIVE_PRIORITY_${PN} = '20'
ALTERNATIVE_${PN} = "nagios"
ALTERNATIVE_LINK_NAME[nagios] = "${localstatedir}/nagios"
INSANE_SKIP_${PN} = "already-stripped"