[oe] [PATCH 1/2] gpsd: Prepare recipe and inc for version bump

Michael Lippautz michael.lippautz at gmail.com
Sat Jan 23 10:31:21 UTC 2010


Signed-off-by: Michael Lippautz <michael.lippautz at gmail.com>
---
 recipes/gpsd/gpsd.inc     |    9 ++++++---
 recipes/gpsd/gpsd_2.38.bb |    4 +++-
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/recipes/gpsd/gpsd.inc b/recipes/gpsd/gpsd.inc
index a917fbe..c3e07ec 100644
--- a/recipes/gpsd/gpsd.inc
+++ b/recipes/gpsd/gpsd.inc
@@ -5,12 +5,14 @@ LICENSE = "GPL"
 DEPENDS = "dbus-glib ncurses python"
 PROVIDES = "virtual/gpsd"
 
+INC_PR = "r2"
+
 EXTRA_OECONF = "--x-includes=${STAGING_INCDIR}/X11 \
                 --x-libraries=${STAGING_LIBDIR} \
                 --enable-dbus \
-                --enable-python"
+"
 
-SRC_URI = "http://download.berlios.de/gpsd/gpsd-${PV}.tar.gz \
+SRC_URI = "http://download.berlios.de/gpsd/gpsd-${PV}.tar.gz;name=gpsd
\
            file://gpsd-default \
            file://gps-hardware \
            file://gpsd"
@@ -28,6 +30,8 @@ LDFLAGS += "-L${STAGING_LIBDIR} -lm"
 export STAGING_INCDIR
 export STAGING_LIBDIR
 
+TARGET_CC_ARCH += "${LDFLAGS}"
+
 do_compile_prepend() {
     export BUILD_SYS="${BUILD_SYS}"
     export HOST_SYS="${HOST_SYS}"
@@ -41,7 +45,6 @@ do_install_prepend() {
 
 do_install_append() {
         install -d ${D}/${sysconfdir}/init.d
-        install -d ${D}/dev
         install -m 0755 ${WORKDIR}/gpsd ${D}/${sysconfdir}/init.d/
         install -m 0755 ${WORKDIR}/gps-hardware
${D}/${sysconfdir}/init.d/gps-hardware.default
         install -d ${D}/${sysconfdir}/default
diff --git a/recipes/gpsd/gpsd_2.38.bb b/recipes/gpsd/gpsd_2.38.bb
index 06a5fe7..7c7a477 100644
--- a/recipes/gpsd/gpsd_2.38.bb
+++ b/recipes/gpsd/gpsd_2.38.bb
@@ -1,5 +1,7 @@
 require gpsd.inc
 
-PR = "r2"
+PR = "${INC_PR}.1"
 # make attempts to link gpspacket.so without waiting for all compiler
tasks:
 PARALLEL_MAKE = ""
+
+EXTRA_OECONF += " --enable-python "
-- 
1.6.4.4

Am Freitag, den 22.01.2010, 14:21 -0800 schrieb Khem Raj:
> On (22/01/10 22:58), Michael Lippautz wrote:
> > 
> > Signed-off-by: Michael Lippautz <michael.lippautz at gmail.com>
> > ---
> >  recipes/gpsd/gpsd.inc     |    9 ++++++---
> >  recipes/gpsd/gpsd_2.38.bb |    4 +++-
> >  2 files changed, 9 insertions(+), 4 deletions(-)
> > 
> > diff --git a/recipes/gpsd/gpsd.inc b/recipes/gpsd/gpsd.inc
> > index a917fbe..5efbe2a 100644
> > --- a/recipes/gpsd/gpsd.inc
> > +++ b/recipes/gpsd/gpsd.inc
> > @@ -5,12 +5,14 @@ LICENSE = "GPL"
> >  DEPENDS = "dbus-glib ncurses python"
> >  PROVIDES = "virtual/gpsd"
> >  
> > +INC_PR = "r0"
> > +
> 
> this should be set to r2 or more because that was already revision where
> the recipe was at. 
> 
> Otherwise ok.
> 
> >  EXTRA_OECONF = "--x-includes=${STAGING_INCDIR}/X11 \
> >                  --x-libraries=${STAGING_LIBDIR} \
> >                  --enable-dbus \
> > -                --enable-python"
> > +"
> >  
> > -SRC_URI = "http://download.berlios.de/gpsd/gpsd-${PV}.tar.gz \
> > +SRC_URI = "http://download.berlios.de/gpsd/gpsd-${PV}.tar.gz;name=gpsd \
> >             file://gpsd-default \
> >             file://gps-hardware \
> >             file://gpsd"
> > @@ -28,6 +30,8 @@ LDFLAGS += "-L${STAGING_LIBDIR} -lm"
> >  export STAGING_INCDIR
> >  export STAGING_LIBDIR
> >  
> > +TARGET_CC_ARCH += "${LDFLAGS}"
> > +
> >  do_compile_prepend() {
> >      export BUILD_SYS="${BUILD_SYS}"
> >      export HOST_SYS="${HOST_SYS}"
> > @@ -41,7 +45,6 @@ do_install_prepend() {
> >  
> >  do_install_append() {
> >          install -d ${D}/${sysconfdir}/init.d
> > -        install -d ${D}/dev
> >          install -m 0755 ${WORKDIR}/gpsd ${D}/${sysconfdir}/init.d/
> >          install -m 0755 ${WORKDIR}/gps-hardware ${D}/${sysconfdir}/init.d/gps-hardware.default
> >          install -d ${D}/${sysconfdir}/default
> > diff --git a/recipes/gpsd/gpsd_2.38.bb b/recipes/gpsd/gpsd_2.38.bb
> > index 06a5fe7..7c7a477 100644
> > --- a/recipes/gpsd/gpsd_2.38.bb
> > +++ b/recipes/gpsd/gpsd_2.38.bb
> > @@ -1,5 +1,7 @@
> >  require gpsd.inc
> >  
> > -PR = "r2"
> > +PR = "${INC_PR}.1"
> >  # make attempts to link gpspacket.so without waiting for all compiler tasks:
> >  PARALLEL_MAKE = ""
> > +
> > +EXTRA_OECONF += " --enable-python "
> > -- 
> > 1.6.4.4
> > 
> > 
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel at lists.openembedded.org
> > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel






More information about the Openembedded-devel mailing list