All of lore.kernel.org
 help / color / mirror / Atom feed
* ushare_hg (the leading ushare recipe) does not fetch
@ 2010-09-05  8:41 Frans Meulenbroeks
  2010-09-05  9:02 ` Eric Bénard
  0 siblings, 1 reply; 6+ messages in thread
From: Frans Meulenbroeks @ 2010-09-05  8:41 UTC (permalink / raw)
  To: openembedded-devel

I tried to build ushare, but it fails to fetch the source.
This source is at http://hg.geexbox.org/ushare/summary

II'm not a mercurial wiz, still tried a few things, but can't seem to
be able to resolve it.
Can someone with more hg knowledge peek into this?

Meanwhile, I suggest adding a DP of  -1 to the hg version. The 1.1a
version still builds properly.

Frasn



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

* Re: ushare_hg (the leading ushare recipe) does not fetch
  2010-09-05  8:41 ushare_hg (the leading ushare recipe) does not fetch Frans Meulenbroeks
@ 2010-09-05  9:02 ` Eric Bénard
  2010-09-05  9:21   ` Frans Meulenbroeks
  0 siblings, 1 reply; 6+ messages in thread
From: Eric Bénard @ 2010-09-05  9:02 UTC (permalink / raw)
  To: openembedded-devel

Hi Frans,

Le 05/09/2010 10:41, Frans Meulenbroeks a écrit :
> I tried to build ushare, but it fails to fetch the source.
> This source is at http://hg.geexbox.org/ushare/summary
>
> II'm not a mercurial wiz, still tried a few things, but can't seem to
> be able to resolve it.
> Can someone with more hg knowledge peek into this?
>
> Meanwhile, I suggest adding a DP of  -1 to the hg version. The 1.1a
> version still builds properly.
>
does the attached patch to bitbake fix this for you ?
(you need to delete the directory in downloads :hg/hg.geexbox.org/ushare 
before).

Eric

diff --git a/lib/bb/fetch/hg.py b/lib/bb/fetch/hg.py
index d075638..bb156ed 100644
--- a/lib/bb/fetch/hg.py
+++ b/lib/bb/fetch/hg.py
@@ -138,6 +138,7 @@ class Hg(Fetch):
         # Even when we clone (fetch), we still need to update as hg's clone
         # won't checkout the specified revision if its on a branch
          updatecmd = self._buildhgcommand(ud, d, "update")
+        os.chdir(ud.moddir)
          bb.msg.debug(1, bb.msg.domain.Fetcher, "Running %s" % updatecmd)
          runfetchcmd(updatecmd, d)




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

* Re: ushare_hg (the leading ushare recipe) does not fetch
  2010-09-05  9:02 ` Eric Bénard
@ 2010-09-05  9:21   ` Frans Meulenbroeks
  2010-09-05  9:31     ` Eric Bénard
  0 siblings, 1 reply; 6+ messages in thread
From: Frans Meulenbroeks @ 2010-09-05  9:21 UTC (permalink / raw)
  To: openembedded-devel

2010/9/5 Eric Bénard <eric@eukrea.com>:
> Hi Frans,
>
> Le 05/09/2010 10:41, Frans Meulenbroeks a écrit :
>>
>> I tried to build ushare, but it fails to fetch the source.
>> This source is at http://hg.geexbox.org/ushare/summary
>>
>> II'm not a mercurial wiz, still tried a few things, but can't seem to
>> be able to resolve it.
>> Can someone with more hg knowledge peek into this?
>>
>> Meanwhile, I suggest adding a DP of  -1 to the hg version. The 1.1a
>> version still builds properly.
>>
> does the attached patch to bitbake fix this for you ?
> (you need to delete the directory in downloads :hg/hg.geexbox.org/ushare
> before).
>
> Eric
>
> diff --git a/lib/bb/fetch/hg.py b/lib/bb/fetch/hg.py
> index d075638..bb156ed 100644
> --- a/lib/bb/fetch/hg.py
> +++ b/lib/bb/fetch/hg.py
> @@ -138,6 +138,7 @@ class Hg(Fetch):
>        # Even when we clone (fetch), we still need to update as hg's clone
>        # won't checkout the specified revision if its on a branch
>         updatecmd = self._buildhgcommand(ud, d, "update")
> +        os.chdir(ud.moddir)
>         bb.msg.debug(1, bb.msg.domain.Fetcher, "Running %s" % updatecmd)
>         runfetchcmd(updatecmd, d)
>

Alas, this did not help.

NOTE: Running task 520 of 759 (ID: 5,
/home/frans/oe/openembedded/recipes/ushare/ushare_hg.bb, do_fetch)
NOTE: package ushare-1.1a-r1+hg2e40e513a4a0: task do_fetch: Started
NOTE: Fetch hg://hg.geexbox.org;proto=http;module=ushare;rev=2e40e513a4a0
NOTE: Task failed: Unknown fetch Error: [Errno 2] No such file or
directory: '/home/frans/oe/downloads/ushare__hg.geexbox.org_2e40e513a4a0.tar.gz'
ERROR: TaskFailed event exception, aborting

This is after removing the downloads/hg dir and all downloads/ushare* files

I have also tried without the proto=http; part (as that did not appear
in other recipes using hg://) but that did not make a difference
either.
I have checked and the rev exists.

Frans



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

* Re: ushare_hg (the leading ushare recipe) does not fetch
  2010-09-05  9:21   ` Frans Meulenbroeks
@ 2010-09-05  9:31     ` Eric Bénard
  2010-09-06  6:25       ` Frans Meulenbroeks
  0 siblings, 1 reply; 6+ messages in thread
From: Eric Bénard @ 2010-09-05  9:31 UTC (permalink / raw)
  To: openembedded-devel

Le 05/09/2010 11:21, Frans Meulenbroeks a écrit :
> Alas, this did not help.
>
> NOTE: Running task 520 of 759 (ID: 5,
> /home/frans/oe/openembedded/recipes/ushare/ushare_hg.bb, do_fetch)
> NOTE: package ushare-1.1a-r1+hg2e40e513a4a0: task do_fetch: Started
> NOTE: Fetch hg://hg.geexbox.org;proto=http;module=ushare;rev=2e40e513a4a0
> NOTE: Task failed: Unknown fetch Error: [Errno 2] No such file or
> directory: '/home/frans/oe/downloads/ushare__hg.geexbox.org_2e40e513a4a0.tar.gz'
> ERROR: TaskFailed event exception, aborting
>
> This is after removing the downloads/hg dir and all downloads/ushare* files
>
> I have also tried without the proto=http; part (as that did not appear
> in other recipes using hg://) but that did not make a difference
> either.
> I have checked and the rev exists.
>
strange, here (x86 host, ubuntu 9.10, bitbake 1.10, hg 1.43 installed on 
the host) this solves the problem :

* before :
NOTE: Running task 219 of 220 (ID: 0, 
/home/ebenard/cpuimx25/openembedded/recipes/ushare/ushare_hg.bb, do_fetch)
NOTE: package ushare-1.1a-r1+hg2e40e513a4a0: task do_fetch: Started
NOTE: Fetch hg://hg.geexbox.org;proto=http;module=ushare;rev=2e40e513a4a0
requesting all changes
adding changesets
adding manifests
adding file changes
added 433 changesets with 1023 changes to 102 files
updating to branch default
74 files updated, 0 files merged, 0 files removed, 0 files unresolved
abandon : There is no Mercurial repository here (.hg not found) !
NOTE: Task failed: Unknown fetch Error: [Errno 2] No such file or 
directory: 
'/home/ebenard/oe_downloads/ushare__hg.geexbox.org_2e40e513a4a0.tar.gz'
ERROR: TaskFailed event exception, aborting
ERROR: Build of 
/home/ebenard/cpuimx25/openembedded/recipes/ushare/ushare_hg.bb do_fetch 
failed
ERROR: Task 0 
(/home/ebenard/cpuimx25/openembedded/recipes/ushare/ushare_hg.bb, 
do_fetch) failed with 256
ERROR: '/home/ebenard/cpuimx25/openembedded/recipes/ushare/ushare_hg.bb' 
failed
NOTE: package ushare-1.1a-r1+hg2e40e513a4a0: task do_fetch: Failed

* after :
NOTE: package ushare-1.1a-r1+hg2e40e513a4a0: task do_fetch: Started
NOTE: Fetch hg://hg.geexbox.org;proto=http;module=ushare;rev=2e40e513a4a0
requesting all changes
adding changesets
adding manifests
adding file changes
added 433 changesets with 1023 changes to 102 files
updating to branch default
74 files updated, 0 files merged, 0 files removed, 0 files unresolved
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
NOTE: package ushare-1.1a-r1+hg2e40e513a4a0: task do_fetch: Succeeded
NOTE: Running task 220 of 220 (ID: 1, 
/home/ebenard/cpuimx25/openembedded/recipes/ushare/ushare_hg.bb, 
do_fetchall)
NOTE: package ushare-1.1a-r1+hg2e40e513a4a0: task do_fetchall: Started
NOTE: package ushare-1.1a-r1+hg2e40e513a4a0: task do_fetchall: Succeeded

Can you run bitbake with -vvv to get more log of what is failing ?

Eric



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

* Re: ushare_hg (the leading ushare recipe) does not fetch
  2010-09-05  9:31     ` Eric Bénard
@ 2010-09-06  6:25       ` Frans Meulenbroeks
  2010-09-06 16:59         ` Frans Meulenbroeks
  0 siblings, 1 reply; 6+ messages in thread
From: Frans Meulenbroeks @ 2010-09-06  6:25 UTC (permalink / raw)
  To: openembedded-devel

Eric,

I think the problem is resolved. Somewhere something went wrong with
installing 1.10.
Although my bitbake dir was a symlink to the 1.10 dir it still
reported as 1.8.18, so guess either I misplaced things or maybe this
is a pre 1.10 version.

berlios is currently not responding so cannot re-download 1.10. I'll
try later and let you know the result.

Thanks alot for your help!

Frans



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

* Re: ushare_hg (the leading ushare recipe) does not fetch
  2010-09-06  6:25       ` Frans Meulenbroeks
@ 2010-09-06 16:59         ` Frans Meulenbroeks
  0 siblings, 0 replies; 6+ messages in thread
From: Frans Meulenbroeks @ 2010-09-06 16:59 UTC (permalink / raw)
  To: openembedded-devel

2010/9/6 Frans Meulenbroeks <fransmeulenbroeks@gmail.com>:
> Eric,
>
> I think the problem is resolved. Somewhere something went wrong with
> installing 1.10.
> Although my bitbake dir was a symlink to the 1.10 dir it still
> reported as 1.8.18, so guess either I misplaced things or maybe this
> is a pre 1.10 version.
>
> berlios is currently not responding so cannot re-download 1.10. I'll
> try later and let you know the result.
>
> Thanks alot for your help!
>
> Frans
>

Retested with 1.10 and help of Eric.
The patch works for me.
Maybe I had to install mercurial to get thngs going (after applying the patch).
mercurial is not in the sanity checker. alternately maybe hg.py should
warn or we should have a mercurial_native recipe.

Frans



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

end of thread, other threads:[~2010-09-06 16:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-05  8:41 ushare_hg (the leading ushare recipe) does not fetch Frans Meulenbroeks
2010-09-05  9:02 ` Eric Bénard
2010-09-05  9:21   ` Frans Meulenbroeks
2010-09-05  9:31     ` Eric Bénard
2010-09-06  6:25       ` Frans Meulenbroeks
2010-09-06 16:59         ` Frans Meulenbroeks

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.