Skip to contentSkip to conversation

libxslt: Add PACKAGECONFIG support

PATCH Superseded Vedang Patel 5 participants 15 messages Mar 21, 2017 – Mar 29, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libxslt: Add PACKAGECONFIG support

Some options like python bindings, debug support, crypto are hardcoded inside the recipe. Change that to make those option configurable using PACKAGECONFIG.

---
 meta/recipes-support/libxslt/libxslt_1.1.29.bb | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
meta/recipes-support/libxslt/libxslt_1.1.29.bb +7 -2
index be747e608d9d..d362118aa307 100644
@@ -22,7 +22,7 @@ S = "${WORKDIR}/libxslt-${PV}"
 
 BINCONFIG = "${bindir}/xslt-config"
 
-inherit autotools pkgconfig binconfig-disabled lib_package
+inherit autotools pkgconfig binconfig-disabled lib_package distutils-common-base
 
 # We don't DEPEND on binutils for ansidecl.h so ensure we don't use the header
 do_configure_prepend () {
@@ -33,7 +33,12 @@ do_configure_prepend () {
 	touch ${S}/doc/xsltproc.1
 }
 
-EXTRA_OECONF = "--without-python --without-debug --without-mem-debug --without-crypto"
+PACKAGECONFIG ??= "python libxslt-debug libxslt-mem-debug libxslt-crypto"
+PACKAGECONFIG[libxslt-python] = "--with-python=${PYTHON_BASE_VERSION}, --without-python"
+PACKAGECONFIG[libxslt-debug] = "--with-debug, --without-debug"
+PACKAGECONFIG[libxslt-mem-debug] = "--with-mem-debug, --without-mem-debug"
+PACKAGECONFIG[libxslt-crypto] = "--with-crypto, --without-crypto"
+
 # older versions of this recipe had ${PN}-utils
 RPROVIDES_${PN}-bin += "${PN}-utils"
 RCONFLICTS_${PN}-bin += "${PN}-utils"
Signature · 1 line
2.7.3
#1 lore raw
Quoted 26 lines · Vedang Patel

Some options like python bindings, debug support, crypto are hardcoded inside the recipe. Change that to make those option configurable using PACKAGECONFIG.

---
 meta/recipes-support/libxslt/libxslt_1.1.29.bb | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
meta/recipes-support/libxslt/libxslt_1.1.29.bb +1 -1
index be747e608d9d..d362118aa307 100644
@@ -22,7 +22,7 @@ S = "${WORKDIR}/libxslt-${PV}"
 
 BINCONFIG = "${bindir}/xslt-config"
 
-inherit autotools pkgconfig binconfig-disabled lib_package
+inherit autotools pkgconfig binconfig-disabled lib_package

distutils-common-base

# We don't DEPEND on binutils for ansidecl.h so ensure we don't use the
header
do_configure_prepend () {

meta/recipes-support/libxslt/libxslt_1.1.29.bb do_configure_prepend () { · line 37

Quoted 7 lines
meta/recipes-support/libxslt/libxslt_1.1.29.bb +1 -2
@@ -33,7 +33,12 @@ do_configure_prepend () {
        touch ${S}/doc/xsltproc.1
 }
 
-EXTRA_OECONF = "--without-python --without-debug --without-mem-debug
--without-crypto"
+PACKAGECONFIG ??= "python libxslt-debug libxslt-mem-debug libxslt-crypto"
 

You change all the defaults, is this on purpose? It should be noted in the commit message in any case.

Quoted 19 lines
meta/recipes-support/libxslt/libxslt_1.1.29.bb +5 -3
+PACKAGECONFIG[libxslt-python] = "--with-python=${PYTHON_BASE_VERSION},
--without-python"
+PACKAGECONFIG[libxslt-debug] = "--with-debug, --without-debug"
+PACKAGECONFIG[libxslt-mem-debug] = "--with-mem-debug,
--without-mem-debug"
+PACKAGECONFIG[libxslt-crypto] = "--with-crypto, --without-crypto"
+
 # older versions of this recipe had ${PN}-utils
 RPROVIDES_${PN}-bin += "${PN}-utils"
 RCONFLICTS_${PN}-bin += "${PN}-utils"
--

2.7.3

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

#2 lore raw

Hi Jussi,

On Tue, 2017-03-21 at 08:36 +0000, Kukkonen, Jussi wrote:
On 21 March 2017 at 02:31, Vedang Patel <[email protected]<mailto:[email protected]>> wrote:
Some options like python bindings, debug support, crypto are hardcoded
inside the recipe. Change that to make those option configurable using
PACKAGECONFIG.

---
 meta/recipes-support/libxslt/libxslt_1.1.29.bb<http://libxslt_1.1.29.bb> | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
meta/recipes-support/libxslt/libxslt_1.1.29.bb<http://libxslt_1.1.29.bb> +2 -2
index be747e608d9d..d362118aa307 100644
@@ -22,7 +22,7 @@ S = "${WORKDIR}/libxslt-${PV}"
 
 BINCONFIG = "${bindir}/xslt-config"
 
-inherit autotools pkgconfig binconfig-disabled lib_package
+inherit autotools pkgconfig binconfig-disabled lib_package distutils-common-base
 
 # We don't DEPEND on binutils for ansidecl.h so ensure we don't use the header
 do_configure_prepend () {
@@ -33,7 +33,12 @@ do_configure_prepend () {
        touch ${S}/doc/xsltproc.1
 }
 
-EXTRA_OECONF = "--without-python --without-debug --without-mem-debug --without-crypto"
+PACKAGECONFIG ??= "python libxslt-debug libxslt-mem-debug libxslt-crypto"
 
 

You change all the defaults, is this on purpose? It should be noted in the commit message in any case.

Can you elabore on your concern? I am not exactly following it.

the configs won't be enabled unless the corresponding features are explicitly enabled in the image. I am using libxslt- prefix to make sure someone does not inadvertently enables the features by using the generic flags (python, debug, ... ).

I do see a bug here, In the first line, python should be replaced with libxslt-python. I will fix it in the next version of this patch.

Thanks,
Vedang Patel
Software Engineer
Intel Corporation

+PACKAGECONFIG[libxslt-python] = "--with-python=${PYTHON_BASE_VERSION}, --without-python" +PACKAGECONFIG[libxslt-debug] = "--with-debug, --without-debug" +PACKAGECONFIG[libxslt-mem-debug] = "--with-mem-debug, --without-mem-debug" +PACKAGECONFIG[libxslt-crypto] = "--with-crypto, --without-crypto"
+

 # older versions of this recipe had ${PN}-utils
 RPROVIDES_${PN}-bin += "${PN}-utils"
 RCONFLICTS_${PN}-bin += "${PN}-utils"
--
2.7.3

--
_______________________________________________
Openembedded-core mailing list [email protected]<mailto:[email protected]>
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#3 lore raw
Quoted 7 lines · Vedang

Can you elabore on your concern? I am not exactly following it.

the configs won't be enabled unless the corresponding features are explicitly enabled in the image. I am using libxslt- prefix to make sure someone does not inadvertently enables the features by using the generic flags (python, debug, ... ).

No, you're changing the default to enable all the things that were previously disabled.

Also you don't need to prefix the names as they're recipe-specific already.

I suggest that you re-read the PACKAGECONFIG section in the manual and resubmit the patch.

Ross

#4 lore raw

Hi Ross,

Quoted 10 lines · Ross
Quoted 7 lines · Vedang

Can you elabore on your concern? I am not exactly following it.

the configs won't be enabled unless the corresponding features are explicitly enabled in the image. I am using libxslt- prefix to make sure someone does not inadvertently enables the features by using the generic flags (python, debug, ... ).

Quoted 8 lines

No, you're changing the default to enable all the things that were previously disabled.

Also you don't need to prefix the names as they're recipe-specific already.

I suggest that you re-read the PACKAGECONFIG section in the manual and resubmit the patch.

I got my mistake. Setting PACKAGECONFIG enabled all the features by default. Also, should I be including python as runtime dependency when --with-python is used?

Thanks,
Vedang Patel
Software Engineer
Intel Corporation

Quoted 2 lines

Ross

#5 lore raw
Quoted 4 lines · Vedang

I got my mistake. Setting PACKAGECONFIG enabled all the features by default. Also, should I be including python as runtime dependency when --with-python is used?

No, the rdepends will happen magically. You might want to package the python module separately though.

Ross

#6 lore raw
Quoted 10 lines · Ross
Quoted 5 lines · Vedang

I got my mistake. Setting PACKAGECONFIG enabled all the features by default. Also, should I be including python as runtime dependency when
--with-python is used?

No, the rdepends will happen magically.  You might want to package the python module separately though.

Thanks Ross for the inputs. I will submit a new patch soon.

Also, I am planning to drop the other 3 features (debug, mem-debug and crypto) as I have not really tested them.

Thanks,
Vedang

Quoted 2 lines

Ross

#7 lore raw

PATCH v2 1/1 libxslt: Add PACKAGECONFIG support for python

Add support to enable python bindings for libxslt using PACKAGECONFIG. This will include --with-python argument while compiling the package. The support is disabled by default.

---
 meta/recipes-support/libxslt/libxslt_1.1.29.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta/recipes-support/libxslt/libxslt_1.1.29.bb +4 -2
index be747e608d9d..1e00306207c5 100644
@@ -22,7 +22,7 @@ S = "${WORKDIR}/libxslt-${PV}"
 
 BINCONFIG = "${bindir}/xslt-config"
 
-inherit autotools pkgconfig binconfig-disabled lib_package
+inherit autotools pkgconfig binconfig-disabled lib_package distutils-common-base
 
 # We don't DEPEND on binutils for ansidecl.h so ensure we don't use the header
 do_configure_prepend () {
@@ -33,7 +33,9 @@ do_configure_prepend () {
 	touch ${S}/doc/xsltproc.1
 }
 
-EXTRA_OECONF = "--without-python --without-debug --without-mem-debug --without-crypto"
+EXTRA_OECONF = "--without-debug --without-mem-debug --without-crypto"
+PACKAGECONFIG[libxslt-python] = "--with-python=${PYTHON_BASE_VERSION}, --without-python"
+
 # older versions of this recipe had ${PN}-utils
 RPROVIDES_${PN}-bin += "${PN}-utils"
 RCONFLICTS_${PN}-bin += "${PN}-utils"
Signature · 1 line
2.7.3
#13 lore raw
In reply to Patel, Vedang
Quoted 3 lines · Vedang

Hi Jussi,

Hi Vedang,

If you can make your email client use ">" for quoting that would be great (so it's possible to see who's talking even in plain text).

PACKAGECONFIG comments below.

Quoted 2 lines · Jussi

On 21 March 2017 at 02:31, Vedang Patel <[email protected]<mailto:

Quoted 5 lines · [email protected]>> wrote:

Some options like python bindings, debug support, crypto are hardcoded inside the recipe. Change that to make those option configurable using PACKAGECONFIG.

[email protected]>>

Quoted 2 lines

---
meta/recipes-support/libxslt/libxslt_1.1.29.bb<http://libxslt_1.1.29.bb>

| 9 +++++++--

Review

Quoted 3 lines
 1 file changed, 7 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

http://libxslt_1.1.29.bb> b/meta/recipes-support/libxslt/libxslt_1.1.29.bb<
http://libxslt_1.1.29.bb>

Quoted 2 lines

index be747e608d9d..d362118aa307 100644
--- a/meta/recipes-support/libxslt/libxslt_1.1.29.bb<

http://libxslt_1.1.29.bb>

Quoted 1 line

+++ b/meta/recipes-support/libxslt/libxslt_1.1.29.bb<

http://libxslt_1.1.29.bb>

meta/recipes-support/libxslt/libxslt_1.1.29.bb<http://libxslt_1.1.29.bb> S = "${WORKDIR}/libxslt-${PV}" · line 25

Quoted 6 lines
meta/recipes-support/libxslt/libxslt_1.1.29.bb<http://libxslt_1.1.29.bb> +1 -1
@@ -22,7 +22,7 @@ S = "${WORKDIR}/libxslt-${PV}"
 
 BINCONFIG = "${bindir}/xslt-config"
 
-inherit autotools pkgconfig binconfig-disabled lib_package
+inherit autotools pkgconfig binconfig-disabled lib_package

distutils-common-base

Review S = "${WORKDIR}/libxslt-${PV}" · line 26

Quoted 2 lines
(quoted diff) +0 -0
 # We don't DEPEND on binutils for ansidecl.h so ensure we don't use the

header

meta/recipes-support/libxslt/libxslt_1.1.29.bb<http://libxslt_1.1.29.bb> do_configure_prepend () { · line 36

Quoted 6 lines
meta/recipes-support/libxslt/libxslt_1.1.29.bb<http://libxslt_1.1.29.bb> +0 -1
 do_configure_prepend () {
@@ -33,7 +33,12 @@ do_configure_prepend () {
        touch ${S}/doc/xsltproc.1
 }
 
-EXTRA_OECONF = "--without-python --without-debug --without-mem-debug

--without-crypto"

Quoted 4 lines
meta/recipes-support/libxslt/libxslt_1.1.29.bb<http://libxslt_1.1.29.bb> +1 -0
+PACKAGECONFIG ??= "python libxslt-debug libxslt-mem-debug libxslt-crypto"
 
 

You change all the defaults, is this on purpose? It should be noted in

the commit message in any case.

Quoted 4 lines

Can you elabore on your concern? I am not exactly following it.

the configs won't be enabled unless the corresponding features are

explicitly enabled in the image. I am using libxslt- prefix to make sure someone does not inadvertently enables the features by using the generic flags (python, debug, ... ).

Quoted 1 line

There seems to be some confusion here.

I think there's some confusion here about PACKAGECONFIG and image features:
PACKAGECONFIG is completely recipe specific -- it only controls this recipe. There's no need to use a naming prefix as these variables are only visible inside the recipe. Changing them from outside (like local.conf) is possible but requires a syntax like
PACKAGECONFIG_pn-libxslt = "python crypto"
so there's no need to fear namespace mixups.

Second, this line:
PACKAGECONFIG ??= "python libxslt-debug libxslt-mem-debug
libxslt-crypto"
sets he default value of libxslt PACKAGECONFIG. Meaning that these options will be given to configure:

    "--with-python=<ver> --with-debug --with-mem-debug --with-crypto"

Currently the EXTRA_OECONF line explicitly disables all these so this looks like a change in defaults.

If in doubt (or I didn't make sense) you should run "bitbake -cconfigure libxslt" with both versions and check what ends up in the configure options in $WORKDIR/temp/log.do_configure.

Cheers,
Jussi

Quoted 1 line

I do see a bug here, In the first line, python should be replaced with

libxslt-python. I will fix it in the next version of this patch.

Quoted 7 lines

Thanks,
Vedang Patel
Software Engineer
Intel Corporation

+PACKAGECONFIG[libxslt-python] = "--with-python=${PYTHON_BASE_VERSION},

--without-python"

Review

Quoted 2 lines
(quoted diff) +2 -0
+PACKAGECONFIG[libxslt-debug] = "--with-debug, --without-debug"
+PACKAGECONFIG[libxslt-mem-debug] = "--with-mem-debug,

--without-mem-debug"

Quoted 8 lines
(quoted diff) +2 -1
+PACKAGECONFIG[libxslt-crypto] = "--with-crypto, --without-crypto"
+
 # older versions of this recipe had ${PN}-utils
 RPROVIDES_${PN}-bin += "${PN}-utils"
 RCONFLICTS_${PN}-bin += "${PN}-utils"
--

2.7.3

Quoted 4 lines

--
_______________________________________________
Openembedded-core mailing list
[email protected]<mailto:

[email protected]>

Quoted 3 lines

http://lists.openembedded.org/mailman/listinfo/openembedded-core

#14 lore raw
Quoted 8 lines · Jussi Kukkonen
Quoted 3 lines · Vedang

Hi Jussi,

Hi Vedang,

... and somehow I only received the rest of the discussion (where all my points were already handled) now: carry on, sorry for spam.

Jussi

#8 lore raw

Re: [PATCH v2] libxslt: Add PACKAGECONFIG support for python

In reply to Vedang Patel

Hi Patel,

Quoted 23 lines · Vedang Patel

Add support to enable python bindings for libxslt using PACKAGECONFIG. This will include --with-python argument while compiling the package. The support is disabled by default.

---
 meta/recipes-support/libxslt/libxslt_1.1.29.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta/recipes-support/libxslt/libxslt_1.1.29.bb +1 -1
index be747e608d9d..1e00306207c5 100644
@@ -22,7 +22,7 @@ S = "${WORKDIR}/libxslt-${PV}"
 
 BINCONFIG = "${bindir}/xslt-config"
 
-inherit autotools pkgconfig binconfig-disabled lib_package
+inherit autotools pkgconfig binconfig-disabled lib_package distutils-common-base
 
 # We don't DEPEND on binutils for ansidecl.h so ensure we don't use the header
 do_configure_prepend () {

meta/recipes-support/libxslt/libxslt_1.1.29.bb do_configure_prepend () { · line 38

Quoted 7 lines
meta/recipes-support/libxslt/libxslt_1.1.29.bb +3 -1
@@ -33,7 +33,9 @@ do_configure_prepend () {
 	touch ${S}/doc/xsltproc.1
 }
 
-EXTRA_OECONF = "--without-python --without-debug --without-mem-debug --without-crypto"
+EXTRA_OECONF = "--without-debug --without-mem-debug --without-crypto"
+PACKAGECONFIG[libxslt-python] = "--with-python=${PYTHON_BASE_VERSION}, --without-python"
+

You kept "libxslt-python", and I think you meant to change it to "python".

Quoted 4 lines
meta/recipes-support/libxslt/libxslt_1.1.29.bb +0 -0
 # older versions of this recipe had ${PN}-utils
 RPROVIDES_${PN}-bin += "${PN}-utils"
 RCONFLICTS_${PN}-bin += "${PN}-utils"
#9 lore raw

Re: [PATCH v2] libxslt: Add PACKAGECONFIG support for python

Quoted 35 lines · Randy Witt

Hi Patel,

Quoted 32 lines · Vedang Patel

Add support to enable python bindings for libxslt using PACKAGECONFIG.
This will include --with-python argument while compiling the package.
The support is disabled by default.

---
 meta/recipes-support/libxslt/libxslt_1.1.29.bb | 6 ++++--

 1 file changed, 4 insertions(+), 2 deletions(-)
meta/recipes-support/libxslt/libxslt_1.1.29.bb +0 -0
index be747e608d9d..1e00306207c5 100644
@@ -22,7 +22,7 @@ S = "${WORKDIR}/libxslt-${PV}"
 

 BINCONFIG = "${bindir}/xslt-config"

meta/recipes-support/libxslt/libxslt_1.1.29.bb +1 -1
-inherit autotools pkgconfig binconfig-disabled lib_package
+inherit autotools pkgconfig binconfig-disabled lib_package

distutils-common-base

 # We don't DEPEND on binutils for ansidecl.h so ensure we don't use the header
 do_configure_prepend () {

meta/recipes-support/libxslt/libxslt_1.1.29.bb +0 -0
@@ -33,7 +33,9 @@ do_configure_prepend () {

  touch ${S}/doc/xsltproc.1
 }

Quoted 10 lines
Quoted 7 lines

-EXTRA_OECONF = "--without-python --without-debug --without-mem- debug --without-crypto"
+EXTRA_OECONF = "--without-debug --without-mem-debug --without- crypto"
+PACKAGECONFIG[libxslt-python] = "--with- python=${PYTHON_BASE_VERSION}, --without-python"
+

You kept "libxslt-python", and I think you meant to change it to "python".

Yeah I totally missed that... Will fix it in the next version.

-Vedang

Quoted 5 lines
Quoted 5 lines
 # older versions of this recipe had ${PN}-utils
 RPROVIDES_${PN}-bin += "${PN}-utils"
 RCONFLICTS_${PN}-bin += "${PN}-utils"
#10 lore raw

PATCH 1/1 libxslt: Add PACKAGECONFIG support for python

Add support to enable python bindings for libxslt using PACKAGECONFIG. This will include --with-python argument while compiling the package. The support is disabled by default.

---
 meta/recipes-support/libxslt/libxslt_1.1.29.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta/recipes-support/libxslt/libxslt_1.1.29.bb +4 -2
index be747e608d9d..707f2f97b7fc 100644
@@ -22,7 +22,7 @@ S = "${WORKDIR}/libxslt-${PV}"
 
 BINCONFIG = "${bindir}/xslt-config"
 
-inherit autotools pkgconfig binconfig-disabled lib_package
+inherit autotools pkgconfig binconfig-disabled lib_package distutils-common-base
 
 # We don't DEPEND on binutils for ansidecl.h so ensure we don't use the header
 do_configure_prepend () {
@@ -33,7 +33,9 @@ do_configure_prepend () {
 	touch ${S}/doc/xsltproc.1
 }
 
-EXTRA_OECONF = "--without-python --without-debug --without-mem-debug --without-crypto"
+EXTRA_OECONF = "--without-debug --without-mem-debug --without-crypto"
+PACKAGECONFIG[python] = "--with-python=${PYTHON_BASE_VERSION}, --without-python"
+
 # older versions of this recipe had ${PN}-utils
 RPROVIDES_${PN}-bin += "${PN}-utils"
 RCONFLICTS_${PN}-bin += "${PN}-utils"
Signature · 1 line
2.7.3
#11 lore raw

Re: [PATCH] libxslt: Add PACKAGECONFIG support for python

Quoted 23 lines · Vedang Patel

Add support to enable python bindings for libxslt using PACKAGECONFIG. This will include --with-python argument while compiling the package. The support is disabled by default.

---
 meta/recipes-support/libxslt/libxslt_1.1.29.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta/recipes-support/libxslt/libxslt_1.1.29.bb +1 -1
index be747e608d9d..707f2f97b7fc 100644
@@ -22,7 +22,7 @@ S = "${WORKDIR}/libxslt-${PV}"
 
 BINCONFIG = "${bindir}/xslt-config"
 
-inherit autotools pkgconfig binconfig-disabled lib_package
+inherit autotools pkgconfig binconfig-disabled lib_package distutils-common-base
 
 # We don't DEPEND on binutils for ansidecl.h so ensure we don't use the header
 do_configure_prepend () {

meta/recipes-support/libxslt/libxslt_1.1.29.bb do_configure_prepend () { · line 37

Quoted 6 lines
meta/recipes-support/libxslt/libxslt_1.1.29.bb +2 -1
@@ -33,7 +33,9 @@ do_configure_prepend () {
        touch ${S}/doc/xsltproc.1
 }
 
-EXTRA_OECONF = "--without-python --without-debug --without-mem-debug --without-crypto"
+EXTRA_OECONF = "--without-debug --without-mem-debug --without-crypto"
+PACKAGECONFIG[python] = "--with-python=${PYTHON_BASE_VERSION}, --without-python"

The more conventional way to order these lines would be:

PACKAGECONFIG ?= ""
PACKAGECONFIG[python] = "--with-python=${PYTHON_BASE_VERSION},
--without-python"

  EXTRA_OECONF = "--without-debug --without-mem-debug --without-crypto"

The python PACKAGECONFIG option probably needs to include a dependency on python.

Quoted 11 lines
meta/recipes-support/libxslt/libxslt_1.1.29.bb +0 -1
 # older versions of this recipe had ${PN}-utils
 RPROVIDES_${PN}-bin += "${PN}-utils"
 RCONFLICTS_${PN}-bin += "${PN}-utils"
--

2.7.3

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

#12 lore raw

Re: [PATCH] libxslt: Add PACKAGECONFIG support for python

Hi Andre, Ross,

Quoted 46 lines · Andre McCurdy
Quoted 32 lines · Vedang Patel

Add support to enable python bindings for libxslt using PACKAGECONFIG.
This will include --with-python argument while compiling the package.
The support is disabled by default.

---
 meta/recipes-support/libxslt/libxslt_1.1.29.bb | 6 ++++--

 1 file changed, 4 insertions(+), 2 deletions(-)
meta/recipes-support/libxslt/libxslt_1.1.29.bb +0 -0
index be747e608d9d..707f2f97b7fc 100644
@@ -22,7 +22,7 @@ S = "${WORKDIR}/libxslt-${PV}"
 

 BINCONFIG = "${bindir}/xslt-config"

meta/recipes-support/libxslt/libxslt_1.1.29.bb +1 -1
-inherit autotools pkgconfig binconfig-disabled lib_package
+inherit autotools pkgconfig binconfig-disabled lib_package

distutils-common-base

 # We don't DEPEND on binutils for ansidecl.h so ensure we don't use the header
 do_configure_prepend () {

meta/recipes-support/libxslt/libxslt_1.1.29.bb +0 -0
@@ -33,7 +33,9 @@ do_configure_prepend () {

        touch ${S}/doc/xsltproc.1
 }

Quoted 6 lines

-EXTRA_OECONF = "--without-python --without-debug --without-mem- debug --without-crypto"
+EXTRA_OECONF = "--without-debug --without-mem-debug --without- crypto"
+PACKAGECONFIG[python] = "--with-python=${PYTHON_BASE_VERSION}, -- without-python"

The more conventional way to order these lines would be:

  PACKAGECONFIG ?= ""
  PACKAGECONFIG[python] = "--with-python=${PYTHON_BASE_VERSION}, --without-python"

Quoted 7 lines

  EXTRA_OECONF = "--without-debug --without-mem-debug --without- crypto"

The python PACKAGECONFIG option probably needs to include a dependency
on python.

I will make the proposed changes in the arrangement of the statements.

Regarding the python dependency, the feedback from Andre is the opposite of what Ross gave me in one of the previous emails where he told not to include the python dependency in PACKAGECONFIG. He asked to make sure that the python module is packaged seperately. (Just FYI:
 Here, libxslt has a hard dependency on python-2.7.)

Also, the --with-python argument will only adding python bindings to libxslt. Is it a good idea  to move that to a subpackage? If so, can you point me to a good example for that

Thanks,
Vedang Patel
Software Engineer
Intel Corporation

Quoted 12 lines
Quoted 12 lines
 # older versions of this recipe had ${PN}-utils
 RPROVIDES_${PN}-bin += "${PN}-utils"
 RCONFLICTS_${PN}-bin += "${PN}-utils"
--
2.7.3

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