Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1][V2] gdbm: Package compat libs in ${PN}-compat
@ 2012-04-11 14:17 Andrei Gherzan
  2012-04-11 14:18 ` [PATCH 1/1] gdbm: Activate -enable-libgdbm-compat and add symlinks to headers in include/gdbm Andrei Gherzan
  0 siblings, 1 reply; 4+ messages in thread
From: Andrei Gherzan @ 2012-04-11 14:17 UTC (permalink / raw)
  To: openembedded-core

Thanks to: Martin Jansa

The following changes since commit f720b01586bf19bf6f00d705d0d4a2d2a3786780:

  python: Add patch to avoid warning about sunaudiodev module (2012-04-11 16:53:57 +0300)

are available in the git repository at:
  git://git.yoctoproject.org/poky-contrib ag/pythonbug2
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ag/pythonbug2

Andrei Gherzan (1):
  gdbm: Activate -enable-libgdbm-compat and add symlinks to headers in
    include/gdbm

 meta/recipes-support/gdbm/gdbm_1.10.bb |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

-- 
1.7.5.4




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

* [PATCH 1/1] gdbm: Activate -enable-libgdbm-compat and add symlinks to headers in include/gdbm
  2012-04-11 14:17 [PATCH 0/1][V2] gdbm: Package compat libs in ${PN}-compat Andrei Gherzan
@ 2012-04-11 14:18 ` Andrei Gherzan
  2012-04-11 14:25   ` Martin Jansa
  0 siblings, 1 reply; 4+ messages in thread
From: Andrei Gherzan @ 2012-04-11 14:18 UTC (permalink / raw)
  To: openembedded-core

ndbm.h is needed by python for dbm module. This is why -enable-libgdbm-compat was added
to configure.
The second change is because python is looking for the gdbm headers in include/gdbm.
The easiest way to solve this issue is to add symlinks in include/gdbm.

In order to avoid breaking packages which depend on old package name libgdbm4 (>= 1.10),
compat libs are packaged into a separate package named gdbm-compat.

[YOCTO #1937]

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
---
 meta/recipes-support/gdbm/gdbm_1.10.bb |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-support/gdbm/gdbm_1.10.bb b/meta/recipes-support/gdbm/gdbm_1.10.bb
index 9b2fde4..40bdd86 100644
--- a/meta/recipes-support/gdbm/gdbm_1.10.bb
+++ b/meta/recipes-support/gdbm/gdbm_1.10.bb
@@ -4,7 +4,7 @@ SECTION = "libs"
 LICENSE = "GPLv3"
 LIC_FILES_CHKSUM = "file://COPYING;md5=241da1b9fe42e642cbb2c24d5e0c4d24"
 
-PR = "r1" 
+PR = "r2"
 
 SRC_URI = "${GNU_MIRROR}/gdbm/gdbm-${PV}.tar.gz"
 
@@ -13,4 +13,20 @@ SRC_URI[sha256sum] = "23f8134c5b94bbfb06d756a6b78f074fba6e6028cf2fe01341d40b26db
 
 inherit autotools gettext lib_package
 
+# Needed for dbm python module
+EXTRA_OECONF = "-enable-libgdbm-compat"
+
 BBCLASSEXTEND = "native nativesdk"
+
+do_install_append () {
+    # Create a symlink to ndbm.h and gdbm.h in include/gdbm to let other packages to find
+    # these headers
+    install -d ${D}${includedir}/gdbm
+    ln -sf ../ndbm.h ${D}/${includedir}/gdbm/ndbm.h
+    ln -sf ../gdbm.h ${D}/${includedir}/gdbm/gdbm.h
+}
+
+PACKAGES =+ "${PN}-compat \
+            "
+FILES_${PN}-compat = "${libdir}/libgdbm_compat${SOLIBS} \
+                     "
-- 
1.7.5.4




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

* Re: [PATCH 1/1] gdbm: Activate -enable-libgdbm-compat and add symlinks to headers in include/gdbm
  2012-04-11 14:18 ` [PATCH 1/1] gdbm: Activate -enable-libgdbm-compat and add symlinks to headers in include/gdbm Andrei Gherzan
@ 2012-04-11 14:25   ` Martin Jansa
  2012-04-11 14:54     ` Andrei Gherzan
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Jansa @ 2012-04-11 14:25 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Wed, Apr 11, 2012 at 4:18 PM, Andrei Gherzan <andrei@gherzan.ro> wrote:
> ndbm.h is needed by python for dbm module. This is why -enable-libgdbm-compat was added
> to configure.
> The second change is because python is looking for the gdbm headers in include/gdbm.
> The easiest way to solve this issue is to add symlinks in include/gdbm.
>
> In order to avoid breaking packages which depend on old package name libgdbm4 (>= 1.10),
> compat libs are packaged into a separate package named gdbm-compat.
>
> [YOCTO #1937]
>
> Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
> ---
>  meta/recipes-support/gdbm/gdbm_1.10.bb |   18 +++++++++++++++++-
>  1 files changed, 17 insertions(+), 1 deletions(-)
>
> diff --git a/meta/recipes-support/gdbm/gdbm_1.10.bb b/meta/recipes-support/gdbm/gdbm_1.10.bb
> index 9b2fde4..40bdd86 100644
> --- a/meta/recipes-support/gdbm/gdbm_1.10.bb
> +++ b/meta/recipes-support/gdbm/gdbm_1.10.bb
> @@ -4,7 +4,7 @@ SECTION = "libs"
>  LICENSE = "GPLv3"
>  LIC_FILES_CHKSUM = "file://COPYING;md5=241da1b9fe42e642cbb2c24d5e0c4d24"
>
> -PR = "r1"
> +PR = "r2"
>
>  SRC_URI = "${GNU_MIRROR}/gdbm/gdbm-${PV}.tar.gz"
>
> @@ -13,4 +13,20 @@ SRC_URI[sha256sum] = "23f8134c5b94bbfb06d756a6b78f074fba6e6028cf2fe01341d40b26db
>
>  inherit autotools gettext lib_package
>
> +# Needed for dbm python module
> +EXTRA_OECONF = "-enable-libgdbm-compat"
> +
>  BBCLASSEXTEND = "native nativesdk"
> +
> +do_install_append () {
> +    # Create a symlink to ndbm.h and gdbm.h in include/gdbm to let other packages to find
> +    # these headers
> +    install -d ${D}${includedir}/gdbm
> +    ln -sf ../ndbm.h ${D}/${includedir}/gdbm/ndbm.h
> +    ln -sf ../gdbm.h ${D}/${includedir}/gdbm/gdbm.h
> +}
> +

^^ whole part above was already applied in
http://git.openembedded.org/openembedded-core/commit/?id=e4d2ee00419f675ba8b7fb5d75256762253d8b32

So you should rebase this patch on top of master and add another PR
bump to it (and depending recipes).

> +PACKAGES =+ "${PN}-compat \
> +            "
> +FILES_${PN}-compat = "${libdir}/libgdbm_compat${SOLIBS} \
> +                     "
> --
> 1.7.5.4
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core



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

* Re: [PATCH 1/1] gdbm: Activate -enable-libgdbm-compat and add symlinks to headers in include/gdbm
  2012-04-11 14:25   ` Martin Jansa
@ 2012-04-11 14:54     ` Andrei Gherzan
  0 siblings, 0 replies; 4+ messages in thread
From: Andrei Gherzan @ 2012-04-11 14:54 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

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

On Wed, Apr 11, 2012 at 17:25, Martin Jansa <martin.jansa@gmail.com> wrote:

> On Wed, Apr 11, 2012 at 4:18 PM, Andrei Gherzan <andrei@gherzan.ro> wrote:
> > ndbm.h is needed by python for dbm module. This is why
> -enable-libgdbm-compat was added
> > to configure.
> > The second change is because python is looking for the gdbm headers in
> include/gdbm.
> > The easiest way to solve this issue is to add symlinks in include/gdbm.
> >
> > In order to avoid breaking packages which depend on old package name
> libgdbm4 (>= 1.10),
> > compat libs are packaged into a separate package named gdbm-compat.
> >
> > [YOCTO #1937]
> >
> > Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
> > ---
> >  meta/recipes-support/gdbm/gdbm_1.10.bb |   18 +++++++++++++++++-
> >  1 files changed, 17 insertions(+), 1 deletions(-)
> >
> > diff --git a/meta/recipes-support/gdbm/gdbm_1.10.bbb/meta/recipes-support/gdbm/
> gdbm_1.10.bb
> > index 9b2fde4..40bdd86 100644
> > --- a/meta/recipes-support/gdbm/gdbm_1.10.bb
> > +++ b/meta/recipes-support/gdbm/gdbm_1.10.bb
> > @@ -4,7 +4,7 @@ SECTION = "libs"
> >  LICENSE = "GPLv3"
> >  LIC_FILES_CHKSUM = "file://COPYING;md5=241da1b9fe42e642cbb2c24d5e0c4d24"
> >
> > -PR = "r1"
> > +PR = "r2"
> >
> >  SRC_URI = "${GNU_MIRROR}/gdbm/gdbm-${PV}.tar.gz"
> >
> > @@ -13,4 +13,20 @@ SRC_URI[sha256sum] =
> "23f8134c5b94bbfb06d756a6b78f074fba6e6028cf2fe01341d40b26db
> >
> >  inherit autotools gettext lib_package
> >
> > +# Needed for dbm python module
> > +EXTRA_OECONF = "-enable-libgdbm-compat"
> > +
> >  BBCLASSEXTEND = "native nativesdk"
> > +
> > +do_install_append () {
> > +    # Create a symlink to ndbm.h and gdbm.h in include/gdbm to let
> other packages to find
> > +    # these headers
> > +    install -d ${D}${includedir}/gdbm
> > +    ln -sf ../ndbm.h ${D}/${includedir}/gdbm/ndbm.h
> > +    ln -sf ../gdbm.h ${D}/${includedir}/gdbm/gdbm.h
> > +}
> > +
>
> ^^ whole part above was already applied in
>
> http://git.openembedded.org/openembedded-core/commit/?id=e4d2ee00419f675ba8b7fb5d75256762253d8b32
>
>
>
Thanks. Didn't see that. Rebased.
@g

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

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

end of thread, other threads:[~2012-04-11 15:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-11 14:17 [PATCH 0/1][V2] gdbm: Package compat libs in ${PN}-compat Andrei Gherzan
2012-04-11 14:18 ` [PATCH 1/1] gdbm: Activate -enable-libgdbm-compat and add symlinks to headers in include/gdbm Andrei Gherzan
2012-04-11 14:25   ` Martin Jansa
2012-04-11 14:54     ` Andrei Gherzan

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