Skip to contentSkip to conversation

nagios-core: fix do_install during cross builds

PATCH In review [email protected] 2 participants 2 messages Nov 17, 2020 – Nov 19, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 recipes-extended/nagios/nagios-core_4.4.6.bb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
recipes-extended/nagios/nagios-core_4.4.6.bb +1 -3
index aaa722c..4cbec2b 100644
@@ -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"
Signature · 1 line
2.29.2
#1 lore raw

merged.

Bruce

In message: [meta-virtualization][PATCH] nagios-core: fix do_install during cross builds

Quoted 41 lines · on 17/11/2020 [email protected] wrote:

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.

---
 recipes-extended/nagios/nagios-core_4.4.6.bb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
recipes-extended/nagios/nagios-core_4.4.6.bb +1 -3
index aaa722c..4cbec2b 100644
@@ -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"
Signature · 1 line
2.29.2