Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/2] libproxy: PACKAGECONFIGisation
@ 2016-02-08 20:34 Andre McCurdy
  2016-02-08 20:34 ` [PATCH 1/2] libproxy: replace PACKAGECONFIG equivalent with the real thing Andre McCurdy
  2016-02-08 20:34 ` [PATCH 2/2] libproxy: add PACKAGECONFIG control for gnome3 Andre McCurdy
  0 siblings, 2 replies; 7+ messages in thread
From: Andre McCurdy @ 2016-02-08 20:34 UTC (permalink / raw)
  To: openembedded-core

Andre McCurdy (2):
  libproxy: replace PACKAGECONFIG equivalent with the real thing
  libproxy: add PACKAGECONFIG control for gnome3

 meta/recipes-support/libproxy/libproxy_0.4.11.bb | 31 ++++++++++++++++--------
 1 file changed, 21 insertions(+), 10 deletions(-)

-- 
1.9.1



^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 1/2] libproxy: replace PACKAGECONFIG equivalent with the real thing
  2016-02-08 20:34 [PATCH 0/2] libproxy: PACKAGECONFIGisation Andre McCurdy
@ 2016-02-08 20:34 ` Andre McCurdy
  2016-02-08 22:56   ` Burton, Ross
  2016-02-08 20:34 ` [PATCH 2/2] libproxy: add PACKAGECONFIG control for gnome3 Andre McCurdy
  1 sibling, 1 reply; 7+ messages in thread
From: Andre McCurdy @ 2016-02-08 20:34 UTC (permalink / raw)
  To: openembedded-core

No change in functionality, just use PACKAGECONFIG instead of python.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
---
 meta/recipes-support/libproxy/libproxy_0.4.11.bb | 29 ++++++++++++++++--------
 1 file changed, 19 insertions(+), 10 deletions(-)

diff --git a/meta/recipes-support/libproxy/libproxy_0.4.11.bb b/meta/recipes-support/libproxy/libproxy_0.4.11.bb
index 9db5231..a523857 100644
--- a/meta/recipes-support/libproxy/libproxy_0.4.11.bb
+++ b/meta/recipes-support/libproxy/libproxy_0.4.11.bb
@@ -6,29 +6,38 @@ LICENSE = "LGPLv2.1+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \
                     file://utils/proxy.c;beginline=1;endline=18;md5=55152a1006d7dafbef32baf9c30a99c0"
 
-DEPENDS = "gconf glib-2.0"
+DEPENDS = "glib-2.0"
 
 SRC_URI = "${DEBIAN_MIRROR}/main/libp/${BPN}/${BPN}_${PV}.orig.tar.gz \
            file://0001-test-Include-sys-select.h-for-select.patch \
           "
+
 SRC_URI[md5sum] = "3cd1ae2a4abecf44b3f24d6639d2cd84"
 SRC_URI[sha256sum] = "dc3f33de54163718f82b3e7c496a7de97f8862578414b8ecaad3cbfe4821864b"
 
 inherit cmake pkgconfig
 
-EXTRA_OECMAKE = "-DWITH_WEBKIT=no -DWITH_GNOME=yes -DWITH_KDE4=no \
-	      -DWITH_PYTHON=no -DWITH_PERL=no -DWITH_MOZJS=no -DWITH_NM=no -DLIB_INSTALL_DIR=${libdir} -DLIBEXEC_INSTALL_DIR=${libexecdir}"
+PACKAGECONFIG ?= " \
+    ${@ '' if incompatible_license_contains('GPLv3', 'x', '', d) == 'x' or bb.utils.contains('DISTRO_FEATURES', 'x11', 'x', '', d) == '' else 'gnome' } \
+"
 
-FILES_${PN} += "${libdir}/${BPN}/${PV}/modules"
-FILES_${PN}-dev += "${datadir}/cmake"
+PACKAGECONFIG[gnome] = "-DWITH_GNOME=yes,-DWITH_GNOME=no,gconf"
+
+EXTRA_OECMAKE += " \
+    -DWITH_KDE4=no \
+    -DWITH_MOZJS=no \
+    -DWITH_NM=no \
+    -DWITH_PERL=no \
+    -DWITH_PYTHON=no \
+    -DWITH_WEBKIT=no \
+    -DLIB_INSTALL_DIR=${libdir} \
+    -DLIBEXEC_INSTALL_DIR=${libexecdir} \
+"
 
 do_configure_prepend() {
 	export HOST_SYS=${HOST_SYS}
 	export BUILD_SYS=${BUILD_SYS}
 }
 
-python() {
-    if incompatible_license_contains("GPLv3", "x", "", d) == "x" or bb.utils.contains("DISTRO_FEATURES", "x11", "x", "", d) == "":
-        d.setVar("EXTRA_OECMAKE", d.getVar("EXTRA_OECMAKE", False).replace("-DWITH_GNOME=yes", "-DWITH_GNOME=no"))
-        d.setVar("DEPENDS", " ".join(i for i in d.getVar("DEPENDS", False).split() if i != "gconf"))
-}
+FILES_${PN} += "${libdir}/${BPN}/${PV}/modules"
+FILES_${PN}-dev += "${datadir}/cmake"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 2/2] libproxy: add PACKAGECONFIG control for gnome3
  2016-02-08 20:34 [PATCH 0/2] libproxy: PACKAGECONFIGisation Andre McCurdy
  2016-02-08 20:34 ` [PATCH 1/2] libproxy: replace PACKAGECONFIG equivalent with the real thing Andre McCurdy
@ 2016-02-08 20:34 ` Andre McCurdy
  1 sibling, 0 replies; 7+ messages in thread
From: Andre McCurdy @ 2016-02-08 20:34 UTC (permalink / raw)
  To: openembedded-core

The gnome3 module was previously enabled by default, so enable the
gnome3 PACKAGECONFIG option by default too.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
---
 meta/recipes-support/libproxy/libproxy_0.4.11.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-support/libproxy/libproxy_0.4.11.bb b/meta/recipes-support/libproxy/libproxy_0.4.11.bb
index a523857..11a23b1 100644
--- a/meta/recipes-support/libproxy/libproxy_0.4.11.bb
+++ b/meta/recipes-support/libproxy/libproxy_0.4.11.bb
@@ -19,9 +19,11 @@ inherit cmake pkgconfig
 
 PACKAGECONFIG ?= " \
     ${@ '' if incompatible_license_contains('GPLv3', 'x', '', d) == 'x' or bb.utils.contains('DISTRO_FEATURES', 'x11', 'x', '', d) == '' else 'gnome' } \
+    gnome3 \
 "
 
 PACKAGECONFIG[gnome] = "-DWITH_GNOME=yes,-DWITH_GNOME=no,gconf"
+PACKAGECONFIG[gnome3] = "-DWITH_GNOME3=yes,-DWITH_GNOME3=no"
 
 EXTRA_OECMAKE += " \
     -DWITH_KDE4=no \
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] libproxy: replace PACKAGECONFIG equivalent with the real thing
  2016-02-08 20:34 ` [PATCH 1/2] libproxy: replace PACKAGECONFIG equivalent with the real thing Andre McCurdy
@ 2016-02-08 22:56   ` Burton, Ross
  2016-02-09  8:05     ` Andre McCurdy
  0 siblings, 1 reply; 7+ messages in thread
From: Burton, Ross @ 2016-02-08 22:56 UTC (permalink / raw)
  To: Andre McCurdy; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 384 bytes --]

On 8 February 2016 at 20:34, Andre McCurdy <armccurdy@gmail.com> wrote:

> '' if incompatible_license_contains('GPLv3', 'x', '', d) == 'x' or
> bb.utils.contains('DISTRO_FEATURES', 'x11', 'x', '', d) == '' else 'gnome'
> } \
>

Instead of returning 'x' or '' and then doing string comparisons, why not
just return True or False and let if/or/else do the right thing?

Ross

[-- Attachment #2: Type: text/html, Size: 884 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] libproxy: replace PACKAGECONFIG equivalent with the real thing
  2016-02-08 22:56   ` Burton, Ross
@ 2016-02-09  8:05     ` Andre McCurdy
  2016-02-09 17:29       ` Paul Eggleton
  0 siblings, 1 reply; 7+ messages in thread
From: Andre McCurdy @ 2016-02-09  8:05 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

On Mon, Feb 8, 2016 at 2:56 PM, Burton, Ross <ross.burton@intel.com> wrote:
>
> On 8 February 2016 at 20:34, Andre McCurdy <armccurdy@gmail.com> wrote:
>>
>> '' if incompatible_license_contains('GPLv3', 'x', '', d) == 'x' or
>> bb.utils.contains('DISTRO_FEATURES', 'x11', 'x', '', d) == '' else 'gnome' }
>> \
>
> Instead of returning 'x' or '' and then doing string comparisons, why not
> just return True or False and let if/or/else do the right thing?

Just trying to preserve the original logic to make it clearer that no
functionality is being changed.

The logic can be traced back to Paul Eggleton's original version here:

  http://git.openembedded.org/openembedded-core/commit/?id=973351cf2e338f07c11395d494193e9c62857f2d

> Ross


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] libproxy: replace PACKAGECONFIG equivalent with the real thing
  2016-02-09  8:05     ` Andre McCurdy
@ 2016-02-09 17:29       ` Paul Eggleton
  2016-02-09 17:31         ` Burton, Ross
  0 siblings, 1 reply; 7+ messages in thread
From: Paul Eggleton @ 2016-02-09 17:29 UTC (permalink / raw)
  To: openembedded-core, Andre McCurdy

On Tue, 09 Feb 2016 00:05:15 Andre McCurdy wrote:
> On Mon, Feb 8, 2016 at 2:56 PM, Burton, Ross <ross.burton@intel.com> wrote:
> > On 8 February 2016 at 20:34, Andre McCurdy <armccurdy@gmail.com> wrote:
> >> '' if incompatible_license_contains('GPLv3', 'x', '', d) == 'x' or
> >> bb.utils.contains('DISTRO_FEATURES', 'x11', 'x', '', d) == '' else
> >> 'gnome' } \
> > 
> > Instead of returning 'x' or '' and then doing string comparisons, why not
> > just return True or False and let if/or/else do the right thing?
> 
> Just trying to preserve the original logic to make it clearer that no
> functionality is being changed.
> 
> The logic can be traced back to Paul Eggleton's original version here:
>  
> http://git.openembedded.org/openembedded-core/commit/?id=973351cf2e338f07c1
> 1395d494193e9c62857f2d

Well, slap my wrist then ;)

Ross's suggestion does make it a bit tidier.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] libproxy: replace PACKAGECONFIG equivalent with the real thing
  2016-02-09 17:29       ` Paul Eggleton
@ 2016-02-09 17:31         ` Burton, Ross
  0 siblings, 0 replies; 7+ messages in thread
From: Burton, Ross @ 2016-02-09 17:31 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 313 bytes --]

On 9 February 2016 at 17:29, Paul Eggleton <paul.eggleton@linux.intel.com>
wrote:

> Well, slap my wrist then ;)
>
> Ross's suggestion does make it a bit tidier.
>

I've a follow-up locally that removes all the GPLv3 nonsense as I fixed the
need for that back in 2012. :)  I'll send it shortly.

Ross

[-- Attachment #2: Type: text/html, Size: 741 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-02-09 17:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-08 20:34 [PATCH 0/2] libproxy: PACKAGECONFIGisation Andre McCurdy
2016-02-08 20:34 ` [PATCH 1/2] libproxy: replace PACKAGECONFIG equivalent with the real thing Andre McCurdy
2016-02-08 22:56   ` Burton, Ross
2016-02-09  8:05     ` Andre McCurdy
2016-02-09 17:29       ` Paul Eggleton
2016-02-09 17:31         ` Burton, Ross
2016-02-08 20:34 ` [PATCH 2/2] libproxy: add PACKAGECONFIG control for gnome3 Andre McCurdy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox