Patchwork [V3,1/1] gdbm: Package compat libs in gdbm-compat

login
register
mail settings
Submitter Andrei Gherzan
Date April 11, 2012, 2:57 p.m.
Message ID <1334156222-6701-1-git-send-email-andrei@gherzan.ro>
Download mbox | patch
Permalink /patch/25607/
State Accepted
Commit 703d7efdf7679040f19430458cd575cded5c600e
Headers show

Comments

Andrei Gherzan - April 11, 2012, 2:57 p.m.
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.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
---
 meta/recipes-support/gdbm/gdbm_1.10.bb |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
Koen Kooi - April 11, 2012, 2:58 p.m.
Op 11 apr. 2012, om 16:57 heeft Andrei Gherzan het volgende geschreven:

> 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.

You need to send a patch to bump PR on everything with gdbm in DEPENDS as well.

> 
> Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
> ---
> meta/recipes-support/gdbm/gdbm_1.10.bb |    7 ++++++-
> 1 files changed, 6 insertions(+), 1 deletions(-)
> 
> diff --git a/meta/recipes-support/gdbm/gdbm_1.10.bb b/meta/recipes-support/gdbm/gdbm_1.10.bb
> index 26b8009..6b68d27 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 = "r2"
> +PR = "r3"
> 
> SRC_URI = "${GNU_MIRROR}/gdbm/gdbm-${PV}.tar.gz"
> 
> @@ -25,3 +25,8 @@ do_install_append () {
>     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
> 
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Patch

diff --git a/meta/recipes-support/gdbm/gdbm_1.10.bb b/meta/recipes-support/gdbm/gdbm_1.10.bb
index 26b8009..6b68d27 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 = "r2"
+PR = "r3"
 
 SRC_URI = "${GNU_MIRROR}/gdbm/gdbm-${PV}.tar.gz"
 
@@ -25,3 +25,8 @@  do_install_append () {
     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} \
+                     "