Skip to contentSkip to conversation

net-snmp: Avoid running `make clean` as it may fail

PATCH New Peter Kjellerstedt 1 participant 1 message Apr 6, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net-snmp: Avoid running `make clean` as it may fail

Rebuilding net-snmp may cause autotools_preconfigure() to run make clean, which in turn can cause configureto be run. However, since CACHED_CONFIGUREVARS is not set under those circumstances, configure will run with an incorrect configuration and the build will fail with:

checking for /etc/printcap... configure: error: cannot check for file existence when cross compiling

Avoid the problem by setting CLEANBROKEN = "1".

---
 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 +1 -0
index e5a28de40..eb60750e2 100644
@@ -40,6 +40,7 @@ EXTRA_OEMAKE = "INSTALL_PREFIX=${D} OTHERLDFLAGS='${LDFLAGS}' HOST_CPPFLAGS='${B
 
 PARALLEL_MAKE = ""
 CCACHE = ""
+CLEANBROKEN = "1"
 
 TARGET_CC_ARCH += "${LDFLAGS}"