net-snmp: Avoid running `make clean` as it may fail
Quoted 26 lines
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Peter Kjellerstedt
Sent: den 10 mars 2022 16:19
To: [email protected]
Subject: [oe] [meta-networking][PATCH] net-snmp: Avoid runningmake cleanas it may failRebuilding net-snmp may cause
autotools_preconfigure()to runmake clean, which in turn can causeconfigureto be run. However, sinceCACHED_CONFIGUREVARSis not set under those circumstances,configurewill run with an incorrect configuration and the build will fail with:checking for
/etc/printcap... configure: error: cannot check for file existence when cross compilingAvoid the problem by setting CLEANBROKEN = "1".
Signed-off-by Peter Kjellerstedt <[email protected]>--- meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.1.bb | 1 + 1 file changed, 1 insertion(+)meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.1.bb +0
-0
meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.1.bb EXTRA_OEMAKE = "INSTALL_PREFIX=${D} OTHERLDFLAGS='${LDFLAGS}' HOST_CPPFLAGS='${B · line 46
Quoted 7 lines
meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.1.bb +1
-0@@ -40,6 +40,7 @@ EXTRA_OEMAKE = "INSTALL_PREFIX=${D} OTHERLDFLAGS='${LDFLAGS}' HOST_CPPFLAGS='${B PARALLEL_MAKE = "" CCACHE = "" +CLEANBROKEN = "1" TARGET_CC_ARCH += "${LDFLAGS}"
Please cherry-pick this to Honister.
//Peter