All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] mercurial-native: add recipe
@ 2010-09-06 21:41 Eric Bénard
  2010-09-06 21:41 ` [PATCH 2/2] base.bbclass: depend on mercurial-native if SRC_URI contains hg:// Eric Bénard
  2010-09-07  6:27 ` [PATCH 1/2] mercurial-native: add recipe Frans Meulenbroeks
  0 siblings, 2 replies; 6+ messages in thread
From: Eric Bénard @ 2010-09-06 21:41 UTC (permalink / raw)
  To: openembedded-devel

* mercurial is a distributed SCM
* having the native recipe inside OpenEmbedded gives the
possibility to fetch code from mercurial's repositories
without the need to have mercurial installed on the host

Signed-off-by: Eric Bénard <eric@eukrea.com>
---
 recipes/mercurial/mercurial-native_1.6.3.bb |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)
 create mode 100644 recipes/mercurial/mercurial-native_1.6.3.bb

diff --git a/recipes/mercurial/mercurial-native_1.6.3.bb b/recipes/mercurial/mercurial-native_1.6.3.bb
new file mode 100644
index 0000000..58fcaf1
--- /dev/null
+++ b/recipes/mercurial/mercurial-native_1.6.3.bb
@@ -0,0 +1,23 @@
+DESCRIPTION = "The Mercurial distributed SCM"
+SECTION = "console/utils"
+LICENSE = "GPLv2"
+
+SRC_URI = "http://mercurial.selenic.com/release/mercurial-${PV}.tar.gz;name=src"
+
+DEPENDS = "python-native"
+PR = "r0"
+
+S = "${WORKDIR}/mercurial-${PV}"
+EXTRA_OEMAKE = "STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \
+	BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} PREFIX=${STAGING_DIR_NATIVE}/usr"
+
+do_install () {
+        install -d ${STAGING_DIR_NATIVE}/usr
+        oe_runmake install
+}
+
+inherit native
+
+SRC_URI[src.md5sum] = "fcd61edc488d1b9aa831dde6f14d9a13"
+SRC_URI[src.sha256sum] = "57e5d26d35fbec71206378e3af111193e6eee7bb1dfb6447bbc4b9e03ce937bd"
+
-- 
1.6.3.3




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

* [PATCH 2/2] base.bbclass: depend on mercurial-native if SRC_URI contains hg://
  2010-09-06 21:41 [PATCH 1/2] mercurial-native: add recipe Eric Bénard
@ 2010-09-06 21:41 ` Eric Bénard
  2010-09-07  6:27 ` [PATCH 1/2] mercurial-native: add recipe Frans Meulenbroeks
  1 sibling, 0 replies; 6+ messages in thread
From: Eric Bénard @ 2010-09-06 21:41 UTC (permalink / raw)
  To: openembedded-devel

Signed-off-by: Eric Bénard <eric@eukrea.com>
---
 classes/base.bbclass |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/classes/base.bbclass b/classes/base.bbclass
index 299e875..2e6fb84 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -367,6 +367,11 @@ python () {
         depends = depends + " git-native:do_populate_sysroot"
         bb.data.setVarFlag('do_fetch', 'depends', depends, d)
 
+    if "hg://" in srcuri:
+        depends = bb.data.getVarFlag('do_fetch', 'depends', d) or ""
+        depends = depends + " mercurial-native:do_populate_sysroot"
+        bb.data.setVarFlag('do_fetch', 'depends', depends, d)
+
     # unzip-native should already be staged before unpacking ZIP recipes
     need_unzip = bb.data.getVar('NEED_UNZIP_FOR_UNPACK', d, 1)
     src_uri = bb.data.getVar('SRC_URI', d, 1)
-- 
1.6.3.3




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

* Re: [PATCH 1/2] mercurial-native: add recipe
  2010-09-06 21:41 [PATCH 1/2] mercurial-native: add recipe Eric Bénard
  2010-09-06 21:41 ` [PATCH 2/2] base.bbclass: depend on mercurial-native if SRC_URI contains hg:// Eric Bénard
@ 2010-09-07  6:27 ` Frans Meulenbroeks
  2010-09-07  6:29   ` Graeme Gregory
                     ` (2 more replies)
  1 sibling, 3 replies; 6+ messages in thread
From: Frans Meulenbroeks @ 2010-09-07  6:27 UTC (permalink / raw)
  To: openembedded-devel

2010/9/6 Eric Bénard <eric@eukrea.com>:
> * mercurial is a distributed SCM
> * having the native recipe inside OpenEmbedded gives the
> possibility to fetch code from mercurial's repositories
> without the need to have mercurial installed on the host
>
> Signed-off-by: Eric Bénard <eric@eukrea.com>
> ---
>  recipes/mercurial/mercurial-native_1.6.3.bb |   23 +++++++++++++++++++++++
>  1 files changed, 23 insertions(+), 0 deletions(-)
>  create mode 100644 recipes/mercurial/mercurial-native_1.6.3.bb
>
> diff --git a/recipes/mercurial/mercurial-native_1.6.3.bb b/recipes/mercurial/mercurial-native_1.6.3.bb
> new file mode 100644
> index 0000000..58fcaf1
> --- /dev/null
> +++ b/recipes/mercurial/mercurial-native_1.6.3.bb
> @@ -0,0 +1,23 @@
> +DESCRIPTION = "The Mercurial distributed SCM"
> +SECTION = "console/utils"
> +LICENSE = "GPLv2"
> +
> +SRC_URI = "http://mercurial.selenic.com/release/mercurial-${PV}.tar.gz;name=src"
> +
> +DEPENDS = "python-native"
> +PR = "r0"
> +
> +S = "${WORKDIR}/mercurial-${PV}"
> +EXTRA_OEMAKE = "STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \
> +       BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} PREFIX=${STAGING_DIR_NATIVE}/usr"
> +
> +do_install () {
> +        install -d ${STAGING_DIR_NATIVE}/usr

I'm a little bit surprised that you need this. I had expected install
to take care of that.
Otherwise, the recipe looks fine to me (but haven't test-build it yet)

Frans
> +        oe_runmake install
> +}
> +
> +inherit native
> +
> +SRC_URI[src.md5sum] = "fcd61edc488d1b9aa831dde6f14d9a13"
> +SRC_URI[src.sha256sum] = "57e5d26d35fbec71206378e3af111193e6eee7bb1dfb6447bbc4b9e03ce937bd"
> +
> --
> 1.6.3.3
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>



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

* Re: [PATCH 1/2] mercurial-native: add recipe
  2010-09-07  6:27 ` [PATCH 1/2] mercurial-native: add recipe Frans Meulenbroeks
@ 2010-09-07  6:29   ` Graeme Gregory
  2010-09-07  8:07   ` Eric Bénard
  2010-09-07  9:32   ` [PATCH v2] " Eric Bénard
  2 siblings, 0 replies; 6+ messages in thread
From: Graeme Gregory @ 2010-09-07  6:29 UTC (permalink / raw)
  To: openembedded-devel

 On 07/09/10 07:27, Frans Meulenbroeks wrote:
> 2010/9/6 Eric Bénard <eric@eukrea.com>:
>> * mercurial is a distributed SCM
>> * having the native recipe inside OpenEmbedded gives the
>> possibility to fetch code from mercurial's repositories
>> without the need to have mercurial installed on the host
>>
>> Signed-off-by: Eric Bénard <eric@eukrea.com>
>> ---
>>  recipes/mercurial/mercurial-native_1.6.3.bb |   23 +++++++++++++++++++++++
>>  1 files changed, 23 insertions(+), 0 deletions(-)
>>  create mode 100644 recipes/mercurial/mercurial-native_1.6.3.bb
>>
>> diff --git a/recipes/mercurial/mercurial-native_1.6.3.bb b/recipes/mercurial/mercurial-native_1.6.3.bb
>> new file mode 100644
>> index 0000000..58fcaf1
>> --- /dev/null
>> +++ b/recipes/mercurial/mercurial-native_1.6.3.bb
>> @@ -0,0 +1,23 @@
>> +DESCRIPTION = "The Mercurial distributed SCM"
>> +SECTION = "console/utils"
>> +LICENSE = "GPLv2"
>> +
>> +SRC_URI = "http://mercurial.selenic.com/release/mercurial-${PV}.tar.gz;name=src"
>> +
>> +DEPENDS = "python-native"
>> +PR = "r0"
>> +
>> +S = "${WORKDIR}/mercurial-${PV}"
>> +EXTRA_OEMAKE = "STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \
>> +       BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} PREFIX=${STAGING_DIR_NATIVE}/usr"
>> +
>> +do_install () {
>> +        install -d ${STAGING_DIR_NATIVE}/usr
> I'm a little bit surprised that you need this. I had expected install
> to take care of that.
> Otherwise, the recipe looks fine to me (but haven't test-build it yet)
>
Missed the original mail, but the install -d line should be in
do_install_prepend()

This makes it clearer that its a hack. You then also wont need to
specify the oe_runmake install bit.

Graeme




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

* Re: [PATCH 1/2] mercurial-native: add recipe
  2010-09-07  6:27 ` [PATCH 1/2] mercurial-native: add recipe Frans Meulenbroeks
  2010-09-07  6:29   ` Graeme Gregory
@ 2010-09-07  8:07   ` Eric Bénard
  2010-09-07  9:32   ` [PATCH v2] " Eric Bénard
  2 siblings, 0 replies; 6+ messages in thread
From: Eric Bénard @ 2010-09-07  8:07 UTC (permalink / raw)
  To: openembedded-devel

Hi Frans,

Le 07/09/2010 08:27, Frans Meulenbroeks a écrit :
> 2010/9/6 Eric Bénard<eric@eukrea.com>:
>> +
>> +do_install () {
>> +        install -d ${STAGING_DIR_NATIVE}/usr
>
> I'm a little bit surprised that you need this. I had expected install
> to take care of that.
> Otherwise, the recipe looks fine to me (but haven't test-build it yet)
>
I will remove it and retest, it may not be needed as I added that when I
was trying to get the beast installed.

Eric




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

* [PATCH v2] mercurial-native: add recipe
  2010-09-07  6:27 ` [PATCH 1/2] mercurial-native: add recipe Frans Meulenbroeks
  2010-09-07  6:29   ` Graeme Gregory
  2010-09-07  8:07   ` Eric Bénard
@ 2010-09-07  9:32   ` Eric Bénard
  2 siblings, 0 replies; 6+ messages in thread
From: Eric Bénard @ 2010-09-07  9:32 UTC (permalink / raw)
  To: openembedded-devel

* mercurial is a distributed SCM
* having the native recipe inside OpenEmbedded gives the
possibility to fetch code from mercurial's repositories
without the need to have mercurial installed on the host

Signed-off-by: Eric Bénard <eric@eukrea.com>
---
v2: improve recipe + ostylize it

 recipes/mercurial/mercurial-native_1.6.3.bb |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)
 create mode 100644 recipes/mercurial/mercurial-native_1.6.3.bb

diff --git a/recipes/mercurial/mercurial-native_1.6.3.bb b/recipes/mercurial/mercurial-native_1.6.3.bb
new file mode 100644
index 0000000..717f8f6
--- /dev/null
+++ b/recipes/mercurial/mercurial-native_1.6.3.bb
@@ -0,0 +1,21 @@
+DESCRIPTION = "The Mercurial distributed SCM"
+HOMEPAGE = "http://mercurial.selenic.com/"
+SECTION = "console/utils"
+LICENSE = "GPLv2"
+DEPENDS = "python-native"
+PR = "r0"
+
+SRC_URI = "http://mercurial.selenic.com/release/mercurial-${PV}.tar.gz;name=src"
+SRC_URI[src.md5sum] = "fcd61edc488d1b9aa831dde6f14d9a13"
+SRC_URI[src.sha256sum] = "57e5d26d35fbec71206378e3af111193e6eee7bb1dfb6447bbc4b9e03ce937bd"
+
+S = "${WORKDIR}/mercurial-${PV}"
+
+inherit native
+
+EXTRA_OEMAKE = "STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \
+        BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} PREFIX=${prefix}"
+
+do_install () {
+        oe_runmake -e install DESTDIR=${D} PREFIX=${prefix}
+}
-- 
1.6.3.3




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

end of thread, other threads:[~2010-09-07  9:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-06 21:41 [PATCH 1/2] mercurial-native: add recipe Eric Bénard
2010-09-06 21:41 ` [PATCH 2/2] base.bbclass: depend on mercurial-native if SRC_URI contains hg:// Eric Bénard
2010-09-07  6:27 ` [PATCH 1/2] mercurial-native: add recipe Frans Meulenbroeks
2010-09-07  6:29   ` Graeme Gregory
2010-09-07  8:07   ` Eric Bénard
2010-09-07  9:32   ` [PATCH v2] " Eric Bénard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.