Skip to contentSkip to conversation

waf-samba.bbclass: Append PACKAGECONFIG_CONFARGS to EXTRA_OECONF

PATCH In review [email protected] 4 participants 7 messages Sep 8, 2016 – Sep 9, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 waf-samba.bbclass: Append PACKAGECONFIG_CONFARGS to EXTRA_OECONF

From: Jackie Huang <[email protected]>

Append PACKAGECONFIG_CONFARGS to EXTRA_OECONF for waf-samba.bbclass because the PACKAGECONFIG will not be handled for all recipes after the following commit in oe-core:

commit c98fb5f5129e71829ffab4449b3d28082bc95ab4

Author: Martin Jansa <[email protected]>
Date:   Tue Aug 30 16:19:58 2016 +0200

base, autotools: Append PACKAGECONFIG_CONFARGS to EXTRA_OECONF only in autotools.bbclass

* recipes which don't inherit autotools or cmake bbclass and want to use the configure options from PACKAGECONFIG need to handle PACKAGECONFIG_CONFARGS themselves.

---
 meta-networking/classes/waf-samba.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta-networking/classes/waf-samba.bbclass +2 -0
index 772bc75..a58ca2c 100644
@@ -20,6 +20,8 @@ CONFIGUREOPTS = " --prefix=${prefix} \
                   --mandir=${mandir} \
                 "
 
+EXTRA_OECONF_append = " ${PACKAGECONFIG_CONFARGS}"
+
 # Three methods for waf cross compile:
 # 1. answers:
 #    Only --cross-answers - try the cross-answers file, and if
Signature · 1 line
2.7.4
#1 lore raw
Quoted 29 lines · On Thu, Sep 08, 2016 at 01:10:48PM +0800, [email protected] wrote:

From: Jackie Huang <[email protected]>

Append PACKAGECONFIG_CONFARGS to EXTRA_OECONF for waf-samba.bbclass because the PACKAGECONFIG will not be handled for all recipes after the following commit in oe-core:

commit c98fb5f5129e71829ffab4449b3d28082bc95ab4

Author: Martin Jansa <[email protected]>
Date:   Tue Aug 30 16:19:58 2016 +0200

base, autotools: Append PACKAGECONFIG_CONFARGS to EXTRA_OECONF only in autotools.bbclass

* recipes which don't inherit autotools or cmake bbclass and want to use the configure options from PACKAGECONFIG need to handle PACKAGECONFIG_CONFARGS themselves.

---
 meta-networking/classes/waf-samba.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta-networking/classes/waf-samba.bbclass +0 -0
index 772bc75..a58ca2c 100644

meta-networking/classes/waf-samba.bbclass CONFIGUREOPTS = " --prefix=${prefix} \ · line 23

Quoted 4 lines
meta-networking/classes/waf-samba.bbclass +1 -0
@@ -20,6 +20,8 @@ CONFIGUREOPTS = " --prefix=${prefix} \
                   --mandir=${mandir} \
                 "
 
+EXTRA_OECONF_append = " ${PACKAGECONFIG_CONFARGS}"

Cannot we append it to CONFIGUREOPTS and remove EXTRA_OECONF from this bbclass completely?

Quoted 12 lines
meta-networking/classes/waf-samba.bbclass +1 -0
+
 # Three methods for waf cross compile:
 # 1. answers:
 #    Only --cross-answers - try the cross-answers file, and if
Signature · 7 lines
2.7.4

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#2 lore raw
Quoted 45 lines

-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] On Behalf Of Martin Jansa
Sent: Thursday, September 08, 2016 4:40 PM
To: [email protected]
Subject: Re: [oe] [meta-networking][PATCH] waf-samba.bbclass: Append PACKAGECONFIG_CONFARGS to EXTRA_OECONF

Quoted 11 lines · On Thu, Sep 08, 2016 at 01:10:48PM +0800, [email protected] wrote:

From: Jackie Huang <[email protected]>

Append PACKAGECONFIG_CONFARGS to EXTRA_OECONF for waf-samba.bbclass because the PACKAGECONFIG will not be handled for all recipes after the following commit in oe-core:

commit c98fb5f5129e71829ffab4449b3d28082bc95ab4

Author: Martin Jansa <[email protected]>
Date:   Tue Aug 30 16:19:58 2016 +0200

base, autotools: Append PACKAGECONFIG_CONFARGS to EXTRA_OECONF only in

autotools.bbclass

meta-networking/classes/waf-

Quoted 14 lines

* recipes which don't inherit autotools or cmake bbclass and want to use the configure options from PACKAGECONFIG need to handle PACKAGECONFIG_CONFARGS themselves.

---
 meta-networking/classes/waf-samba.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta-networking/classes/waf- renamed from meta-networking/classes/waf-samba.bbclass +0 -0

samba.bbclass

Quoted 7 lines

index 772bc75..a58ca2c 100644

meta-networking/classes/waf-samba.bbclass +0 -0
@@ -20,6 +20,8 @@ CONFIGUREOPTS = " --prefix=${prefix} \
                   --mandir=${mandir} \
                 "
 
Quoted 4 lines

meta-networking/classes/waf-samba.bbclass CONFIGUREOPTS = " --prefix=${prefix} \ · line 23

Quoted 1 line
meta-networking/classes/waf-samba.bbclass +1 -0
+EXTRA_OECONF_append = " ${PACKAGECONFIG_CONFARGS}"

Cannot we append it to CONFIGUREOPTS and remove EXTRA_OECONF from this bbclass completely?

Yes, we can, but why do we need to remove EXTRA_OECONF from this bbclass completely? Is it going to be deprecated?

And I see that EXTRA_OECONF is used in several recipes that inherit waf-samba, If it's remove from the bbclass, it's should also be removed from those recipes, right?

Thanks,
Jackie

Quoted 16 lines
Quoted 8 lines
meta-networking/classes/waf-samba.bbclass +1 -1
+
 # Three methods for waf cross compile:
 # 1. answers:
 #    Only --cross-answers - try the cross-answers file, and if
--

2.7.4

Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
Martin 'JaMa' Jansa jabber: [email protected]

#3 lore raw
Quoted 50 lines · Jie (Jackie)
Quoted 45 lines

-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] On Behalf Of Martin Jansa
Sent: Thursday, September 08, 2016 4:40 PM
To: [email protected]
Subject: Re: [oe] [meta-networking][PATCH] waf-samba.bbclass: Append PACKAGECONFIG_CONFARGS to EXTRA_OECONF

Quoted 11 lines · On Thu, Sep 08, 2016 at 01:10:48PM +0800, [email protected] wrote:

From: Jackie Huang <[email protected]>

Append PACKAGECONFIG_CONFARGS to EXTRA_OECONF for waf-samba.bbclass because the PACKAGECONFIG will not be handled for all recipes after the following commit in oe-core:

commit c98fb5f5129e71829ffab4449b3d28082bc95ab4

Author: Martin Jansa <[email protected]>
Date:   Tue Aug 30 16:19:58 2016 +0200

base, autotools: Append PACKAGECONFIG_CONFARGS to EXTRA_OECONF only in

autotools.bbclass

meta-networking/classes/waf-

Quoted 14 lines

* recipes which don't inherit autotools or cmake bbclass and want to use the configure options from PACKAGECONFIG need to handle PACKAGECONFIG_CONFARGS themselves.

---
 meta-networking/classes/waf-samba.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta-networking/classes/waf- renamed from meta-networking/classes/waf-samba.bbclass +0 -0

samba.bbclass

Quoted 7 lines

index 772bc75..a58ca2c 100644

meta-networking/classes/waf-samba.bbclass +0 -0
@@ -20,6 +20,8 @@ CONFIGUREOPTS = " --prefix=${prefix} \
                   --mandir=${mandir} \
                 "
 
Quoted 4 lines

meta-networking/classes/waf-samba.bbclass CONFIGUREOPTS = " --prefix=${prefix} \ · line 23

Quoted 1 line
meta-networking/classes/waf-samba.bbclass +1 -0
+EXTRA_OECONF_append = " ${PACKAGECONFIG_CONFARGS}"

Cannot we append it to CONFIGUREOPTS and remove EXTRA_OECONF from this bbclass completely?

Quoted 6 lines

Yes, we can, but why do we need to remove EXTRA_OECONF from this bbclass completely? Is it going to be deprecated?

And I see that EXTRA_OECONF is used in several recipes that inherit waf-samba, If it's remove from the bbclass, it's should also be removed from those recipes, right?

EXTRA_OECONF is usually kept for recipe namespace.

Quoted 24 lines

Thanks,
Jackie

Quoted 8 lines
Quoted 8 lines
meta-networking/classes/waf-samba.bbclass +1 -1
+
 # Three methods for waf cross compile:
 # 1. answers:
 #    Only --cross-answers - try the cross-answers file, and if
--

2.7.4

Quoted 8 lines
Quoted 5 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#4 lore raw
Quoted 62 lines

-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] On Behalf Of Khem Raj
Sent: Friday, September 09, 2016 9:25 AM
To: openembeded-devel
Subject: Re: [oe] [meta-networking][PATCH] waf-samba.bbclass: Append PACKAGECONFIG_CONFARGS to EXTRA_OECONF

Quoted 50 lines · Jie (Jackie)
Quoted 49 lines

-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] On Behalf Of Martin Jansa
Sent: Thursday, September 08, 2016 4:40 PM
To: [email protected]
Subject: Re: [oe] [meta-networking][PATCH] waf-samba.bbclass: Append PACKAGECONFIG_CONFARGS to EXTRA_OECONF

Quoted 11 lines · On Thu, Sep 08, 2016 at 01:10:48PM +0800, [email protected] wrote:

From: Jackie Huang <[email protected]>

Append PACKAGECONFIG_CONFARGS to EXTRA_OECONF for waf-samba.bbclass because the PACKAGECONFIG will not be handled for all recipes after the following commit in oe-core:

commit c98fb5f5129e71829ffab4449b3d28082bc95ab4

Author: Martin Jansa <[email protected]>
Date:   Tue Aug 30 16:19:58 2016 +0200

base, autotools: Append PACKAGECONFIG_CONFARGS to EXTRA_OECONF only in

autotools.bbclass

meta-networking/classes/waf-

Quoted 14 lines

* recipes which don't inherit autotools or cmake bbclass and want to use the configure options from PACKAGECONFIG need to handle PACKAGECONFIG_CONFARGS themselves.

---
 meta-networking/classes/waf-samba.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta-networking/classes/waf- renamed from meta-networking/classes/waf-samba.bbclass +0 -0

samba.bbclass

meta-networking/classes/waf-samba.bbclass CONFIGUREOPTS = " --prefix=${prefix} \ · line 23

Quoted 8 lines

index 772bc75..a58ca2c 100644

meta-networking/classes/waf-samba.bbclass +1 -0
@@ -20,6 +20,8 @@ CONFIGUREOPTS = " --prefix=${prefix} \
                   --mandir=${mandir} \
                 "
 
+EXTRA_OECONF_append = " ${PACKAGECONFIG_CONFARGS}"

Cannot we append it to CONFIGUREOPTS and remove EXTRA_OECONF from this bbclass completely?

Quoted 8 lines
Quoted 6 lines

Yes, we can, but why do we need to remove EXTRA_OECONF from this bbclass completely? Is it going to be deprecated?

And I see that EXTRA_OECONF is used in several recipes that inherit waf-samba, If it's remove from the bbclass, it's should also be removed from those recipes, right?

EXTRA_OECONF is usually kept for recipe namespace.

Ok, so I will change to use CONFIGUREOPTS in the bbclass.

Thanks,
Jackie

Quoted 30 lines
Quoted 18 lines

Thanks,
Jackie

Quoted 14 lines
Quoted 13 lines
meta-networking/classes/waf-samba.bbclass +1 -1
+
 # Three methods for waf cross compile:
 # 1. answers:
 #    Only --cross-answers - try the cross-answers file, and if
--

2.7.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Quoted 7 lines
Quoted 2 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#5 lore raw
In reply to Khem Raj

Agreed. I was looking at this today as well and if we go the EXTRA_OECONF route it should be done in the package recipe. Additionally Jackie I was going to restrict the blacklist to ARM based on the build failure report
(http://errors.yoctoproject.org/Errors/Details/81004/).

Could you include a patch for this, something like:

-PNBLACKLIST[samba] ?= "BROKEN: fails to build with new binutils-2.27" +BLACKLIST_REASON ?= ""
+BLACKLIST_REASON_arm = "BROKEN: fails to build with new binutils-2.27" +PNBLACKLIST[samba] ?= "${BLACKLIST_REASON}"

Or if you want I will send something out in the morning.

Mark

Quoted 90 lines · Khem Raj
Quoted 50 lines · Jie (Jackie)
Quoted 45 lines

-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] On Behalf Of Martin Jansa
Sent: Thursday, September 08, 2016 4:40 PM
To: [email protected]
Subject: Re: [oe] [meta-networking][PATCH] waf-samba.bbclass: Append PACKAGECONFIG_CONFARGS to EXTRA_OECONF

Quoted 11 lines · On Thu, Sep 08, 2016 at 01:10:48PM +0800, [email protected] wrote:

From: Jackie Huang <[email protected]>

Append PACKAGECONFIG_CONFARGS to EXTRA_OECONF for waf-samba.bbclass because the PACKAGECONFIG will not be handled for all recipes after the following commit in oe-core:

commit c98fb5f5129e71829ffab4449b3d28082bc95ab4

Author: Martin Jansa <[email protected]>
Date:   Tue Aug 30 16:19:58 2016 +0200

base, autotools: Append PACKAGECONFIG_CONFARGS to EXTRA_OECONF only in

autotools.bbclass

meta-networking/classes/waf-

Quoted 14 lines

* recipes which don't inherit autotools or cmake bbclass and want to use the configure options from PACKAGECONFIG need to handle PACKAGECONFIG_CONFARGS themselves.

---
 meta-networking/classes/waf-samba.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta-networking/classes/waf- renamed from meta-networking/classes/waf-samba.bbclass +0 -0

samba.bbclass

Quoted 7 lines

index 772bc75..a58ca2c 100644

meta-networking/classes/waf-samba.bbclass +0 -0
@@ -20,6 +20,8 @@ CONFIGUREOPTS = " --prefix=${prefix} \
                   --mandir=${mandir} \
                 "
 
Quoted 4 lines

meta-networking/classes/waf-samba.bbclass CONFIGUREOPTS = " --prefix=${prefix} \ · line 23

Quoted 1 line
meta-networking/classes/waf-samba.bbclass +1 -0
+EXTRA_OECONF_append = " ${PACKAGECONFIG_CONFARGS}"

Cannot we append it to CONFIGUREOPTS and remove EXTRA_OECONF from this bbclass completely?

Quoted 6 lines

Yes, we can, but why do we need to remove EXTRA_OECONF from this bbclass completely? Is it going to be deprecated?

And I see that EXTRA_OECONF is used in several recipes that inherit waf-samba, If it's remove from the bbclass, it's should also be removed from those recipes, right?

EXTRA_OECONF is usually kept for recipe namespace.

Quoted 17 lines

Thanks,
Jackie

Quoted 14 lines
Quoted 13 lines
meta-networking/classes/waf-samba.bbclass +1 -1
+
 # Three methods for waf cross compile:
 # 1. answers:
 #    Only --cross-answers - try the cross-answers file, and if
--

2.7.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Quoted 7 lines
Quoted 2 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#6 lore raw
Quoted 9 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Mark Asselstine
Sent: Friday, September 09, 2016 9:45 AM
To: [email protected]; Huang, Jie (Jackie)
Subject: Re: [oe] [meta-networking][PATCH] waf-samba.bbclass: Append PACKAGECONFIG_CONFARGS to EXTRA_OECONF

Quoted 7 lines

Agreed. I was looking at this today as well and if we go the EXTRA_OECONF route it should be done in the package recipe. Additionally Jackie I was going to restrict the blacklist to ARM based on the build failure report
(http://errors.yoctoproject.org/Errors/Details/81004/).

Could you include a patch for this, something like:

It's Included in v2 which is just sent.

Thanks,
Jackie

Quoted 101 lines
(quoted diff) +3 -1
-PNBLACKLIST[samba] ?= "BROKEN: fails to build with new binutils-2.27"
+BLACKLIST_REASON ?= ""
+BLACKLIST_REASON_arm = "BROKEN: fails to build with new binutils-2.27"
+PNBLACKLIST[samba] ?= "${BLACKLIST_REASON}"

Or if you want I will send something out in the morning.

Mark

Quoted 90 lines · Khem Raj
Quoted 50 lines · Jie (Jackie)
Quoted 45 lines

-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] On Behalf Of Martin Jansa
Sent: Thursday, September 08, 2016 4:40 PM
To: [email protected]
Subject: Re: [oe] [meta-networking][PATCH] waf-samba.bbclass: Append PACKAGECONFIG_CONFARGS to EXTRA_OECONF

Quoted 11 lines · On Thu, Sep 08, 2016 at 01:10:48PM +0800, [email protected] wrote:

From: Jackie Huang <[email protected]>

Append PACKAGECONFIG_CONFARGS to EXTRA_OECONF for waf-samba.bbclass because the PACKAGECONFIG will not be handled for all recipes after the following commit in oe-core:

commit c98fb5f5129e71829ffab4449b3d28082bc95ab4

Author: Martin Jansa <[email protected]>
Date:   Tue Aug 30 16:19:58 2016 +0200

base, autotools: Append PACKAGECONFIG_CONFARGS to EXTRA_OECONF only in

autotools.bbclass

meta-networking/classes/waf-

Quoted 14 lines

* recipes which don't inherit autotools or cmake bbclass and want to use the configure options from PACKAGECONFIG need to handle PACKAGECONFIG_CONFARGS themselves.

---
 meta-networking/classes/waf-samba.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta-networking/classes/waf- renamed from meta-networking/classes/waf-samba.bbclass +0 -0

samba.bbclass

Quoted 7 lines

index 772bc75..a58ca2c 100644

meta-networking/classes/waf-samba.bbclass +0 -0
@@ -20,6 +20,8 @@ CONFIGUREOPTS = " --prefix=${prefix} \
                   --mandir=${mandir} \
                 "
 
Quoted 4 lines

meta-networking/classes/waf-samba.bbclass CONFIGUREOPTS = " --prefix=${prefix} \ · line 23

Quoted 1 line
meta-networking/classes/waf-samba.bbclass +1 -0
+EXTRA_OECONF_append = " ${PACKAGECONFIG_CONFARGS}"

Cannot we append it to CONFIGUREOPTS and remove EXTRA_OECONF from this bbclass completely?

Quoted 6 lines

Yes, we can, but why do we need to remove EXTRA_OECONF from this bbclass completely? Is it going to be deprecated?

And I see that EXTRA_OECONF is used in several recipes that inherit waf-samba, If it's remove from the bbclass, it's should also be removed from those recipes, right?

EXTRA_OECONF is usually kept for recipe namespace.

Quoted 17 lines

Thanks,
Jackie

Quoted 14 lines
Quoted 13 lines
meta-networking/classes/waf-samba.bbclass +1 -1
+
 # Three methods for waf cross compile:
 # 1. answers:
 #    Only --cross-answers - try the cross-answers file, and if
--

2.7.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Quoted 7 lines
Quoted 2 lines

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel