* [PATCH V2 0/1] libxml2: fix python path and add libxml2-python @ 2014-10-31 1:56 Chong Lu 2014-10-31 1:56 ` [PATCH V2 1/1] " Chong Lu 2015-01-07 1:26 ` [PATCH V2 0/1] " Robert Yang 0 siblings, 2 replies; 4+ messages in thread From: Chong Lu @ 2014-10-31 1:56 UTC (permalink / raw) To: openembedded-core Change since v1: add python to PACKAGECONFIG. The following changes since commit 4faca22b8fe63a86d820990207aaf84b3fa83e01: ref-manual: Updates to the migrating to YP 1.7 section. (2014-10-28 22:31:18 +0000) are available in the git repository at: git://git.pokylinux.org/poky-contrib chonglu/libxml2 http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=chonglu/libxml2 Robert Yang (1): libxml2: fix python path and add libxml2-python meta/recipes-core/libxml/libxml2.inc | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) -- 1.9.1 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH V2 1/1] libxml2: fix python path and add libxml2-python 2014-10-31 1:56 [PATCH V2 0/1] libxml2: fix python path and add libxml2-python Chong Lu @ 2014-10-31 1:56 ` Chong Lu 2014-11-11 2:15 ` Chong Lu 2015-01-07 1:26 ` [PATCH V2 0/1] " Robert Yang 1 sibling, 1 reply; 4+ messages in thread From: Chong Lu @ 2014-10-31 1:56 UTC (permalink / raw) To: openembedded-core From: Robert Yang <liezhi.yang@windriver.com> We have libxml2-python for native and nativesdk, but don't have it for target, and can't find the reason from the git log, libxml2-python is widely used, after looked into it's configure.in, we can add it by PACKAGECONFIG. The previous --with-python=${STAGING_BINDIR}/python is incorrect, it acted as work becase it's conigure can check automatically, python is in ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}, as known as ${PYTHON}. Add python to PACKAGECONFIG, since createrepo rdepends on libxml2-python. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> --- meta/recipes-core/libxml/libxml2.inc | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/meta/recipes-core/libxml/libxml2.inc b/meta/recipes-core/libxml/libxml2.inc index c729c19..2bdfed0 100644 --- a/meta/recipes-core/libxml/libxml2.inc +++ b/meta/recipes-core/libxml/libxml2.inc @@ -9,8 +9,6 @@ LIC_FILES_CHKSUM = "file://Copyright;md5=2044417e2e5006b65a8b9067b683fcf1 \ file://list.c;beginline=4;endline=13;md5=cdbfa3dee51c099edb04e39f762ee907 \ file://trio.c;beginline=5;endline=14;md5=6c025753c86d958722ec76e94cae932e" -DEPENDS_class-nativesdk = "nativesdk-python" -DEPENDS_class-native = "python-native" DEPENDS =+ "zlib" SRC_URI = "ftp://xmlsoft.org/libxml2/libxml2-${PV}.tar.gz;name=libtar \ @@ -37,16 +35,17 @@ do_configure_prepend () { sed -i -e '/.*ansidecl.h.*/d' ${S}/configure.in } -do_configure_prepend_class-nativesdk () { - # Ensure we get the correct site-packages path - export PYTHON_SITE_PACKAGES="${PYTHON_SITEPACKAGES_DIR}" -} +export PYTHON_SITE_PACKAGES="${PYTHON_SITEPACKAGES_DIR}" + +PACKAGECONFIG ??= "python" +PACKAGECONFIG_linuxstdbase ??= "" +PACKAGECONFIG[python] = "--with-python=${PYTHON},--without-python,python,python-core" # WARNING: zlib is require for RPM use -EXTRA_OECONF = "--without-python --without-debug --without-legacy --with-catalog --without-docbook --with-c14n --without-lzma --with-fexceptions" -EXTRA_OECONF_class-native = "--with-python=${STAGING_BINDIR}/python --without-legacy --without-docbook --with-c14n --without-lzma --with-zlib" -EXTRA_OECONF_class-nativesdk = "--with-python=${STAGING_BINDIR}/python --without-legacy --without-docbook --with-c14n --without-lzma --with-zlib" -EXTRA_OECONF_linuxstdbase = "--without-python --with-debug --with-legacy --with-docbook --with-c14n --without-lzma --with-zlib" +EXTRA_OECONF = "--without-debug --without-legacy --with-catalog --without-docbook --with-c14n --without-lzma --with-fexceptions" +EXTRA_OECONF_class-native = "--without-legacy --without-docbook --with-c14n --without-lzma --with-zlib" +EXTRA_OECONF_class-nativesdk = "--without-legacy --without-docbook --with-c14n --without-lzma --with-zlib" +EXTRA_OECONF_linuxstdbase = "--with-debug --with-legacy --with-docbook --with-c14n --without-lzma --with-zlib" # required for pythong binding export HOST_SYS -- 1.9.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH V2 1/1] libxml2: fix python path and add libxml2-python 2014-10-31 1:56 ` [PATCH V2 1/1] " Chong Lu @ 2014-11-11 2:15 ` Chong Lu 0 siblings, 0 replies; 4+ messages in thread From: Chong Lu @ 2014-11-11 2:15 UTC (permalink / raw) To: openembedded-core ping //Chong On 10/31/2014 09:56 AM, Chong Lu wrote: > From: Robert Yang <liezhi.yang@windriver.com> > > We have libxml2-python for native and nativesdk, but don't have it for > target, and can't find the reason from the git log, libxml2-python is > widely used, after looked into it's configure.in, we can add it > by PACKAGECONFIG. > > The previous --with-python=${STAGING_BINDIR}/python is incorrect, it > acted as work becase it's conigure can check automatically, python is in > ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}, as known as > ${PYTHON}. > > Add python to PACKAGECONFIG, since createrepo rdepends on libxml2-python. > > Signed-off-by: Robert Yang <liezhi.yang@windriver.com> > --- > meta/recipes-core/libxml/libxml2.inc | 19 +++++++++---------- > 1 file changed, 9 insertions(+), 10 deletions(-) > > diff --git a/meta/recipes-core/libxml/libxml2.inc b/meta/recipes-core/libxml/libxml2.inc > index c729c19..2bdfed0 100644 > --- a/meta/recipes-core/libxml/libxml2.inc > +++ b/meta/recipes-core/libxml/libxml2.inc > @@ -9,8 +9,6 @@ LIC_FILES_CHKSUM = "file://Copyright;md5=2044417e2e5006b65a8b9067b683fcf1 \ > file://list.c;beginline=4;endline=13;md5=cdbfa3dee51c099edb04e39f762ee907 \ > file://trio.c;beginline=5;endline=14;md5=6c025753c86d958722ec76e94cae932e" > > -DEPENDS_class-nativesdk = "nativesdk-python" > -DEPENDS_class-native = "python-native" > DEPENDS =+ "zlib" > > SRC_URI = "ftp://xmlsoft.org/libxml2/libxml2-${PV}.tar.gz;name=libtar \ > @@ -37,16 +35,17 @@ do_configure_prepend () { > sed -i -e '/.*ansidecl.h.*/d' ${S}/configure.in > } > > -do_configure_prepend_class-nativesdk () { > - # Ensure we get the correct site-packages path > - export PYTHON_SITE_PACKAGES="${PYTHON_SITEPACKAGES_DIR}" > -} > +export PYTHON_SITE_PACKAGES="${PYTHON_SITEPACKAGES_DIR}" > + > +PACKAGECONFIG ??= "python" > +PACKAGECONFIG_linuxstdbase ??= "" > > +PACKAGECONFIG[python] = "--with-python=${PYTHON},--without-python,python,python-core" > # WARNING: zlib is require for RPM use > -EXTRA_OECONF = "--without-python --without-debug --without-legacy --with-catalog --without-docbook --with-c14n --without-lzma --with-fexceptions" > -EXTRA_OECONF_class-native = "--with-python=${STAGING_BINDIR}/python --without-legacy --without-docbook --with-c14n --without-lzma --with-zlib" > -EXTRA_OECONF_class-nativesdk = "--with-python=${STAGING_BINDIR}/python --without-legacy --without-docbook --with-c14n --without-lzma --with-zlib" > -EXTRA_OECONF_linuxstdbase = "--without-python --with-debug --with-legacy --with-docbook --with-c14n --without-lzma --with-zlib" > +EXTRA_OECONF = "--without-debug --without-legacy --with-catalog --without-docbook --with-c14n --without-lzma --with-fexceptions" > +EXTRA_OECONF_class-native = "--without-legacy --without-docbook --with-c14n --without-lzma --with-zlib" > +EXTRA_OECONF_class-nativesdk = "--without-legacy --without-docbook --with-c14n --without-lzma --with-zlib" > +EXTRA_OECONF_linuxstdbase = "--with-debug --with-legacy --with-docbook --with-c14n --without-lzma --with-zlib" > > # required for pythong binding > export HOST_SYS ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH V2 0/1] libxml2: fix python path and add libxml2-python 2014-10-31 1:56 [PATCH V2 0/1] libxml2: fix python path and add libxml2-python Chong Lu 2014-10-31 1:56 ` [PATCH V2 1/1] " Chong Lu @ 2015-01-07 1:26 ` Robert Yang 1 sibling, 0 replies; 4+ messages in thread From: Robert Yang @ 2015-01-07 1:26 UTC (permalink / raw) To: Chong Lu, openembedded-core Ping, the target createrepo can't work without this patch. // Robert On 10/31/2014 09:56 AM, Chong Lu wrote: > Change since v1: > add python to PACKAGECONFIG. > > The following changes since commit 4faca22b8fe63a86d820990207aaf84b3fa83e01: > > ref-manual: Updates to the migrating to YP 1.7 section. (2014-10-28 22:31:18 +0000) > > are available in the git repository at: > > git://git.pokylinux.org/poky-contrib chonglu/libxml2 > http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=chonglu/libxml2 > > Robert Yang (1): > libxml2: fix python path and add libxml2-python > > meta/recipes-core/libxml/libxml2.inc | 19 +++++++++---------- > 1 file changed, 9 insertions(+), 10 deletions(-) > ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-01-07 1:26 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-10-31 1:56 [PATCH V2 0/1] libxml2: fix python path and add libxml2-python Chong Lu 2014-10-31 1:56 ` [PATCH V2 1/1] " Chong Lu 2014-11-11 2:15 ` Chong Lu 2015-01-07 1:26 ` [PATCH V2 0/1] " Robert Yang
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox