[oe] ushare_hg (the leading ushare recipe) does not fetch

Frans Meulenbroeks fransmeulenbroeks at gmail.com
Sun Sep 5 09:21:04 UTC 2010


2010/9/5 Eric Bénard <eric at 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




More information about the Openembedded-devel mailing list