[oe] [meta-networking][PATCH] net-snmp: Avoid running `make clean` as it may fail

2022-03-10 Thread Peter Kjellerstedt
Rebuilding net-snmp may cause autotools_preconfigure() to run `make
clean`, which in turn can cause `configure`to 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".

Signed-off-by: Peter Kjellerstedt 
---
 meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.1.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.1.bb 
b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.1.bb
index b0c5bbdac..5f887b886 100644
--- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.1.bb
+++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.1.bb
@@ -40,6 +40,7 @@ EXTRA_OEMAKE = "INSTALL_PREFIX=${D} OTHERLDFLAGS='${LDFLAGS}' 
HOST_CPPFLAGS='${B
 
 PARALLEL_MAKE = ""
 CCACHE = ""
+CLEANBROKEN = "1"
 
 TARGET_CC_ARCH += "${LDFLAGS}"
 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#95933): 
https://lists.openembedded.org/g/openembedded-devel/message/95933
Mute This Topic: https://lists.openembedded.org/mt/89688271/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [oe] [meta-networking][PATCH] net-snmp: Avoid running `make clean` as it may fail

2022-03-11 Thread Peter Kjellerstedt
> -Original Message-
> From: openembedded-devel@lists.openembedded.org 
>  On Behalf Of Peter Kjellerstedt
> Sent: den 10 mars 2022 16:19
> To: openembedded-devel@lists.openembedded.org
> Subject: [oe] [meta-networking][PATCH] 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 `configure`to 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".
> 
> Signed-off-by: Peter Kjellerstedt 
> ---
>  meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.1.bb | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.1.bb 
> b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.1.bb
> index b0c5bbdac..5f887b886 100644
> --- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.1.bb
> +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.1.bb
> @@ -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


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#95956): 
https://lists.openembedded.org/g/openembedded-devel/message/95956
Mute This Topic: https://lists.openembedded.org/mt/89688271/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-