* BB_NO_NETWORK and own-mirrors not working with meta-systemd
@ 2012-09-19 16:34 Evade Flow
2012-09-19 16:50 ` Gary Thomas
0 siblings, 1 reply; 18+ messages in thread
From: Evade Flow @ 2012-09-19 16:34 UTC (permalink / raw)
To: yocto
Trying to build the meta-ivi discovery-image behind a firewall is
proving to be quite a challenge. I tried modifying my conf/local.conf
file as follows:
CONNECTIVITY_CHECK_URIS=""
BB_GENERATE_MIRROR_TARBALLS = "1"
SOURCE_MIRROR_URL ?= "file:///home/evadeflow/projects/poky-mirror/"
INHERIT += "own-mirrors"
and then ran:
% bitbake discovery-image
in a VM on my home laptop over the weekend. (I'm trying to build using
the meta-ivi layer, per the instructions in its README.) After grinding
and churning for some 60+ hours, it finally succeeded, leaving 11 GB of
'stuff' in my poky-mirror folder.
Then, I copied the poky-mirror folder to a firewalled machine at work
and added:
BB_NO_NETWORK="1"
to local.conf. When I tried to bitbake discovery-image on this machine,
I got the following error:
NOTE: Running task 697 of 3568 (ID: 1374,
/home/evadeflow/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
do_fetch)
NOTE: package kmod-7-r0: task do_fetch: Started
ERROR: Function failed: Network access disabled through BB_NO_NETWORK
but access rquested with command git ls-remote
git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git v7 (for url
None)
ERROR: Logfile of failure stored in:
/home/evadeflow/projects/poky-git/build/tmp-eglibc-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/kmod-7-r0/temp/log.do_fetch.29423
Log data follows:
| ERROR: Function failed: Network access disabled through
BB_NO_NETWORK but access rquested with command git ls-remote
git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git v7 (for url
None)
NOTE: package kmod-7-r0: task do_fetch: Failed
ERROR: Task 1374
(/home/evadeflow/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
do_fetch) failed with exit code '1'
Waiting for 1 running tasks to finish:
0: libusb1-1.0.8-r4 do_compile (pid 29232)
NOTE: package libusb1-1.0.8-r4: task do_compile: Succeeded
NOTE: Tasks Summary: Attempted 697 tasks of which 105 didn't need to
be rerun and 1 failed.
Summary: 1 task failed:
/home/evadeflow/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
do_fetch
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
bitbake discovery-image 5338.15s user 995.52s system 187% cpu 56:12.92 total
[NOTE: I'm on poky denzil@65ffa73, meta-ivi denzil@e068388, and
meta-systemd denzil@6a358e9. Also, that typo in the output
isn't mine, i.e., 'rquested' should be 'requested'.]
Can anyone explain what's going on here? If I look in the poky-mirror
folder for kmod-related stuff, I see:
% ls /home/evadeflow/projects/poky-mirror/*kmod*
/home/evadeflow/projects/poky-mirror/git2_git.kernel.org.pub.scm.utils.kernel.kmod.kmod.git.tar.gz
/home/evadeflow/projects/poky-mirror/git2_git.profusion.mobi.kmod.git.tar.gz
I *think* this is what needs to be downloaded for this recipe(?) Why is
`git ls-remote` being run at all? I'm not sure whether this is the fault
of poky/oe-core, or of the meta-systemd layer. I'd just really wish it
worked. `:-} Any advice?
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BB_NO_NETWORK and own-mirrors not working with meta-systemd
2012-09-19 16:34 BB_NO_NETWORK and own-mirrors not working with meta-systemd Evade Flow
@ 2012-09-19 16:50 ` Gary Thomas
2012-09-19 17:15 ` Evade Flow
0 siblings, 1 reply; 18+ messages in thread
From: Gary Thomas @ 2012-09-19 16:50 UTC (permalink / raw)
To: yocto
On 2012-09-19 10:34, Evade Flow wrote:
> Trying to build the meta-ivi discovery-image behind a firewall is
> proving to be quite a challenge. I tried modifying my conf/local.conf
> file as follows:
>
> CONNECTIVITY_CHECK_URIS=""
> BB_GENERATE_MIRROR_TARBALLS = "1"
> SOURCE_MIRROR_URL ?= "file:///home/evadeflow/projects/poky-mirror/"
> INHERIT += "own-mirrors"
>
> and then ran:
>
> % bitbake discovery-image
>
> in a VM on my home laptop over the weekend. (I'm trying to build using
> the meta-ivi layer, per the instructions in its README.) After grinding
> and churning for some 60+ hours, it finally succeeded, leaving 11 GB of
> 'stuff' in my poky-mirror folder.
>
> Then, I copied the poky-mirror folder to a firewalled machine at work
> and added:
>
> BB_NO_NETWORK="1"
>
> to local.conf. When I tried to bitbake discovery-image on this machine,
> I got the following error:
>
>
> NOTE: Running task 697 of 3568 (ID: 1374,
> /home/evadeflow/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
> do_fetch)
> NOTE: package kmod-7-r0: task do_fetch: Started
> ERROR: Function failed: Network access disabled through BB_NO_NETWORK
> but access rquested with command git ls-remote
> git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git v7 (for url
> None)
> ERROR: Logfile of failure stored in:
> /home/evadeflow/projects/poky-git/build/tmp-eglibc-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/kmod-7-r0/temp/log.do_fetch.29423
> Log data follows:
> | ERROR: Function failed: Network access disabled through
> BB_NO_NETWORK but access rquested with command git ls-remote
> git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git v7 (for url
> None)
> NOTE: package kmod-7-r0: task do_fetch: Failed
> ERROR: Task 1374
> (/home/evadeflow/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
> do_fetch) failed with exit code '1'
> Waiting for 1 running tasks to finish:
> 0: libusb1-1.0.8-r4 do_compile (pid 29232)
> NOTE: package libusb1-1.0.8-r4: task do_compile: Succeeded
> NOTE: Tasks Summary: Attempted 697 tasks of which 105 didn't need to
> be rerun and 1 failed.
>
> Summary: 1 task failed:
> /home/evadeflow/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
> do_fetch
> Summary: There was 1 ERROR message shown, returning a non-zero exit code.
> bitbake discovery-image 5338.15s user 995.52s system 187% cpu 56:12.92 total
>
> [NOTE: I'm on poky denzil@65ffa73, meta-ivi denzil@e068388, and
> meta-systemd denzil@6a358e9. Also, that typo in the output
> isn't mine, i.e., 'rquested' should be 'requested'.]
>
> Can anyone explain what's going on here? If I look in the poky-mirror
> folder for kmod-related stuff, I see:
>
> % ls /home/evadeflow/projects/poky-mirror/*kmod*
> /home/evadeflow/projects/poky-mirror/git2_git.kernel.org.pub.scm.utils.kernel.kmod.kmod.git.tar.gz
> /home/evadeflow/projects/poky-mirror/git2_git.profusion.mobi.kmod.git.tar.gz
>
> I *think* this is what needs to be downloaded for this recipe(?) Why is
> `git ls-remote` being run at all? I'm not sure whether this is the fault
> of poky/oe-core, or of the meta-systemd layer. I'd just really wish it
> worked. `:-} Any advice?
Where did you get that meta-systemd layer? I can't find your
recipe nor that revision (denzil@6a358e9) in the published version
which is at git://git.openembedded.org/meta-openembedded according
to http://www.openembedded.org/wiki/LayerIndex
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BB_NO_NETWORK and own-mirrors not working with meta-systemd
2012-09-19 16:50 ` Gary Thomas
@ 2012-09-19 17:15 ` Evade Flow
2012-09-19 17:23 ` Gary Thomas
0 siblings, 1 reply; 18+ messages in thread
From: Evade Flow @ 2012-09-19 17:15 UTC (permalink / raw)
To: Gary Thomas; +Cc: yocto
> Where did you get that meta-systemd layer?
From here:
- http://git.yoctoproject.org/cgit/cgit.cgi/meta-systemd/
On Wed, Sep 19, 2012 at 12:50 PM, Gary Thomas <gary@mlbassoc.com> wrote:
> On 2012-09-19 10:34, Evade Flow wrote:
>>
>> Trying to build the meta-ivi discovery-image behind a firewall is
>> proving to be quite a challenge. I tried modifying my conf/local.conf
>> file as follows:
>>
>> CONNECTIVITY_CHECK_URIS=""
>> BB_GENERATE_MIRROR_TARBALLS = "1"
>> SOURCE_MIRROR_URL ?= "file:///home/evadeflow/projects/poky-mirror/"
>> INHERIT += "own-mirrors"
>>
>> and then ran:
>>
>> % bitbake discovery-image
>>
>> in a VM on my home laptop over the weekend. (I'm trying to build using
>> the meta-ivi layer, per the instructions in its README.) After grinding
>> and churning for some 60+ hours, it finally succeeded, leaving 11 GB of
>> 'stuff' in my poky-mirror folder.
>>
>> Then, I copied the poky-mirror folder to a firewalled machine at work
>> and added:
>>
>> BB_NO_NETWORK="1"
>>
>> to local.conf. When I tried to bitbake discovery-image on this machine,
>> I got the following error:
>>
>>
>> NOTE: Running task 697 of 3568 (ID: 1374,
>>
>> /home/evadeflow/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
>> do_fetch)
>> NOTE: package kmod-7-r0: task do_fetch: Started
>> ERROR: Function failed: Network access disabled through BB_NO_NETWORK
>> but access rquested with command git ls-remote
>> git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git v7 (for url
>> None)
>> ERROR: Logfile of failure stored in:
>>
>> /home/evadeflow/projects/poky-git/build/tmp-eglibc-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/kmod-7-r0/temp/log.do_fetch.29423
>> Log data follows:
>> | ERROR: Function failed: Network access disabled through
>> BB_NO_NETWORK but access rquested with command git ls-remote
>> git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git v7 (for url
>> None)
>> NOTE: package kmod-7-r0: task do_fetch: Failed
>> ERROR: Task 1374
>>
>> (/home/evadeflow/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
>> do_fetch) failed with exit code '1'
>> Waiting for 1 running tasks to finish:
>> 0: libusb1-1.0.8-r4 do_compile (pid 29232)
>> NOTE: package libusb1-1.0.8-r4: task do_compile: Succeeded
>> NOTE: Tasks Summary: Attempted 697 tasks of which 105 didn't need to
>> be rerun and 1 failed.
>>
>> Summary: 1 task failed:
>>
>> /home/evadeflow/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
>> do_fetch
>> Summary: There was 1 ERROR message shown, returning a non-zero exit code.
>> bitbake discovery-image 5338.15s user 995.52s system 187% cpu 56:12.92
>> total
>>
>> [NOTE: I'm on poky denzil@65ffa73, meta-ivi denzil@e068388, and
>> meta-systemd denzil@6a358e9. Also, that typo in the output
>> isn't mine, i.e., 'rquested' should be 'requested'.]
>>
>> Can anyone explain what's going on here? If I look in the poky-mirror
>> folder for kmod-related stuff, I see:
>>
>> % ls /home/evadeflow/projects/poky-mirror/*kmod*
>>
>> /home/evadeflow/projects/poky-mirror/git2_git.kernel.org.pub.scm.utils.kernel.kmod.kmod.git.tar.gz
>>
>> /home/evadeflow/projects/poky-mirror/git2_git.profusion.mobi.kmod.git.tar.gz
>>
>> I *think* this is what needs to be downloaded for this recipe(?) Why is
>> `git ls-remote` being run at all? I'm not sure whether this is the fault
>> of poky/oe-core, or of the meta-systemd layer. I'd just really wish it
>> worked. `:-} Any advice?
>
>
> Where did you get that meta-systemd layer? I can't find your
> recipe nor that revision (denzil@6a358e9) in the published version
> which is at git://git.openembedded.org/meta-openembedded according
> to http://www.openembedded.org/wiki/LayerIndex
>
> --
> ------------------------------------------------------------
> Gary Thomas | Consulting for the
> MLB Associates | Embedded world
> ------------------------------------------------------------
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BB_NO_NETWORK and own-mirrors not working with meta-systemd
2012-09-19 17:15 ` Evade Flow
@ 2012-09-19 17:23 ` Gary Thomas
2012-09-19 17:33 ` Evade Flow
0 siblings, 1 reply; 18+ messages in thread
From: Gary Thomas @ 2012-09-19 17:23 UTC (permalink / raw)
To: Evade Flow; +Cc: yocto
On 2012-09-19 11:15, Evade Flow wrote:
>> Where did you get that meta-systemd layer?
>
>>From here:
>
> - http://git.yoctoproject.org/cgit/cgit.cgi/meta-systemd/
Why are there conflicting meta-systemd layers (and pointers thereto)??
This layer in git.yoctoproject.org doesn't seem even "legal" - where is
the README that is expected with every layer? Without it, I don't have
enough info to be able to report problems like yours...
The reason your build fails with BB_NO_NETWORK is that the kmod_7.bb
recipe refers to a git tag, not a specific revision, which cannot be
resolved without using the network.
>
>
> On Wed, Sep 19, 2012 at 12:50 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>> On 2012-09-19 10:34, Evade Flow wrote:
>>>
>>> Trying to build the meta-ivi discovery-image behind a firewall is
>>> proving to be quite a challenge. I tried modifying my conf/local.conf
>>> file as follows:
>>>
>>> CONNECTIVITY_CHECK_URIS=""
>>> BB_GENERATE_MIRROR_TARBALLS = "1"
>>> SOURCE_MIRROR_URL ?= "file:///home/evadeflow/projects/poky-mirror/"
>>> INHERIT += "own-mirrors"
>>>
>>> and then ran:
>>>
>>> % bitbake discovery-image
>>>
>>> in a VM on my home laptop over the weekend. (I'm trying to build using
>>> the meta-ivi layer, per the instructions in its README.) After grinding
>>> and churning for some 60+ hours, it finally succeeded, leaving 11 GB of
>>> 'stuff' in my poky-mirror folder.
>>>
>>> Then, I copied the poky-mirror folder to a firewalled machine at work
>>> and added:
>>>
>>> BB_NO_NETWORK="1"
>>>
>>> to local.conf. When I tried to bitbake discovery-image on this machine,
>>> I got the following error:
>>>
>>>
>>> NOTE: Running task 697 of 3568 (ID: 1374,
>>>
>>> /home/evadeflow/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
>>> do_fetch)
>>> NOTE: package kmod-7-r0: task do_fetch: Started
>>> ERROR: Function failed: Network access disabled through BB_NO_NETWORK
>>> but access rquested with command git ls-remote
>>> git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git v7 (for url
>>> None)
>>> ERROR: Logfile of failure stored in:
>>>
>>> /home/evadeflow/projects/poky-git/build/tmp-eglibc-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/kmod-7-r0/temp/log.do_fetch.29423
>>> Log data follows:
>>> | ERROR: Function failed: Network access disabled through
>>> BB_NO_NETWORK but access rquested with command git ls-remote
>>> git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git v7 (for url
>>> None)
>>> NOTE: package kmod-7-r0: task do_fetch: Failed
>>> ERROR: Task 1374
>>>
>>> (/home/evadeflow/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
>>> do_fetch) failed with exit code '1'
>>> Waiting for 1 running tasks to finish:
>>> 0: libusb1-1.0.8-r4 do_compile (pid 29232)
>>> NOTE: package libusb1-1.0.8-r4: task do_compile: Succeeded
>>> NOTE: Tasks Summary: Attempted 697 tasks of which 105 didn't need to
>>> be rerun and 1 failed.
>>>
>>> Summary: 1 task failed:
>>>
>>> /home/evadeflow/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
>>> do_fetch
>>> Summary: There was 1 ERROR message shown, returning a non-zero exit code.
>>> bitbake discovery-image 5338.15s user 995.52s system 187% cpu 56:12.92
>>> total
>>>
>>> [NOTE: I'm on poky denzil@65ffa73, meta-ivi denzil@e068388, and
>>> meta-systemd denzil@6a358e9. Also, that typo in the output
>>> isn't mine, i.e., 'rquested' should be 'requested'.]
>>>
>>> Can anyone explain what's going on here? If I look in the poky-mirror
>>> folder for kmod-related stuff, I see:
>>>
>>> % ls /home/evadeflow/projects/poky-mirror/*kmod*
>>>
>>> /home/evadeflow/projects/poky-mirror/git2_git.kernel.org.pub.scm.utils.kernel.kmod.kmod.git.tar.gz
>>>
>>> /home/evadeflow/projects/poky-mirror/git2_git.profusion.mobi.kmod.git.tar.gz
>>>
>>> I *think* this is what needs to be downloaded for this recipe(?) Why is
>>> `git ls-remote` being run at all? I'm not sure whether this is the fault
>>> of poky/oe-core, or of the meta-systemd layer. I'd just really wish it
>>> worked. `:-} Any advice?
>>
>>
>> Where did you get that meta-systemd layer? I can't find your
>> recipe nor that revision (denzil@6a358e9) in the published version
>> which is at git://git.openembedded.org/meta-openembedded according
>> to http://www.openembedded.org/wiki/LayerIndex
>>
>> --
>> ------------------------------------------------------------
>> Gary Thomas | Consulting for the
>> MLB Associates | Embedded world
>> ------------------------------------------------------------
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BB_NO_NETWORK and own-mirrors not working with meta-systemd
2012-09-19 17:23 ` Gary Thomas
@ 2012-09-19 17:33 ` Evade Flow
2012-09-19 22:30 ` Evade Flow
0 siblings, 1 reply; 18+ messages in thread
From: Evade Flow @ 2012-09-19 17:33 UTC (permalink / raw)
To: Gary Thomas; +Cc: yocto
I'm not sure how to answer your questions, unfortunately, this is all
quite new to me. I'm not the maintainer of said layer, and don't know
anything at all yet about 'layer etiquette'. There does seem to be a
README.md file in meta-systemd, though:
- http://git.yoctoproject.org/cgit/cgit.cgi/meta-systemd/tree/README.md
I'm just trying to build the thing. :-) I'll try converting the tag
name into a commit hash and see if that helps, thanks a lot...
On Wed, Sep 19, 2012 at 1:23 PM, Gary Thomas <gary@mlbassoc.com> wrote:
> On 2012-09-19 11:15, Evade Flow wrote:
>>>
>>> Where did you get that meta-systemd layer?
>>
>>
>>> From here:
>>
>>
>> - http://git.yoctoproject.org/cgit/cgit.cgi/meta-systemd/
>
>
> Why are there conflicting meta-systemd layers (and pointers thereto)??
> This layer in git.yoctoproject.org doesn't seem even "legal" - where is
> the README that is expected with every layer? Without it, I don't have
> enough info to be able to report problems like yours...
>
> The reason your build fails with BB_NO_NETWORK is that the kmod_7.bb
> recipe refers to a git tag, not a specific revision, which cannot be
> resolved without using the network.
>
>
>>
>>
>> On Wed, Sep 19, 2012 at 12:50 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>>>
>>> On 2012-09-19 10:34, Evade Flow wrote:
>>>>
>>>>
>>>> Trying to build the meta-ivi discovery-image behind a firewall is
>>>> proving to be quite a challenge. I tried modifying my conf/local.conf
>>>> file as follows:
>>>>
>>>> CONNECTIVITY_CHECK_URIS=""
>>>> BB_GENERATE_MIRROR_TARBALLS = "1"
>>>> SOURCE_MIRROR_URL ?= "file:///home/evadeflow/projects/poky-mirror/"
>>>> INHERIT += "own-mirrors"
>>>>
>>>> and then ran:
>>>>
>>>> % bitbake discovery-image
>>>>
>>>> in a VM on my home laptop over the weekend. (I'm trying to build using
>>>> the meta-ivi layer, per the instructions in its README.) After grinding
>>>> and churning for some 60+ hours, it finally succeeded, leaving 11 GB of
>>>> 'stuff' in my poky-mirror folder.
>>>>
>>>> Then, I copied the poky-mirror folder to a firewalled machine at work
>>>> and added:
>>>>
>>>> BB_NO_NETWORK="1"
>>>>
>>>> to local.conf. When I tried to bitbake discovery-image on this machine,
>>>> I got the following error:
>>>>
>>>>
>>>> NOTE: Running task 697 of 3568 (ID: 1374,
>>>>
>>>>
>>>> /home/evadeflow/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
>>>> do_fetch)
>>>> NOTE: package kmod-7-r0: task do_fetch: Started
>>>> ERROR: Function failed: Network access disabled through BB_NO_NETWORK
>>>> but access rquested with command git ls-remote
>>>> git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git v7 (for url
>>>> None)
>>>> ERROR: Logfile of failure stored in:
>>>>
>>>>
>>>> /home/evadeflow/projects/poky-git/build/tmp-eglibc-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/kmod-7-r0/temp/log.do_fetch.29423
>>>> Log data follows:
>>>> | ERROR: Function failed: Network access disabled through
>>>> BB_NO_NETWORK but access rquested with command git ls-remote
>>>> git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git v7 (for url
>>>> None)
>>>> NOTE: package kmod-7-r0: task do_fetch: Failed
>>>> ERROR: Task 1374
>>>>
>>>>
>>>> (/home/evadeflow/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
>>>> do_fetch) failed with exit code '1'
>>>> Waiting for 1 running tasks to finish:
>>>> 0: libusb1-1.0.8-r4 do_compile (pid 29232)
>>>> NOTE: package libusb1-1.0.8-r4: task do_compile: Succeeded
>>>> NOTE: Tasks Summary: Attempted 697 tasks of which 105 didn't need to
>>>> be rerun and 1 failed.
>>>>
>>>> Summary: 1 task failed:
>>>>
>>>>
>>>> /home/evadeflow/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
>>>> do_fetch
>>>> Summary: There was 1 ERROR message shown, returning a non-zero exit
>>>> code.
>>>> bitbake discovery-image 5338.15s user 995.52s system 187% cpu 56:12.92
>>>> total
>>>>
>>>> [NOTE: I'm on poky denzil@65ffa73, meta-ivi denzil@e068388, and
>>>> meta-systemd denzil@6a358e9. Also, that typo in the output
>>>> isn't mine, i.e., 'rquested' should be 'requested'.]
>>>>
>>>> Can anyone explain what's going on here? If I look in the poky-mirror
>>>> folder for kmod-related stuff, I see:
>>>>
>>>> % ls /home/evadeflow/projects/poky-mirror/*kmod*
>>>>
>>>>
>>>> /home/evadeflow/projects/poky-mirror/git2_git.kernel.org.pub.scm.utils.kernel.kmod.kmod.git.tar.gz
>>>>
>>>>
>>>> /home/evadeflow/projects/poky-mirror/git2_git.profusion.mobi.kmod.git.tar.gz
>>>>
>>>> I *think* this is what needs to be downloaded for this recipe(?) Why is
>>>> `git ls-remote` being run at all? I'm not sure whether this is the fault
>>>> of poky/oe-core, or of the meta-systemd layer. I'd just really wish it
>>>> worked. `:-} Any advice?
>>>
>>>
>>>
>>> Where did you get that meta-systemd layer? I can't find your
>>> recipe nor that revision (denzil@6a358e9) in the published version
>>> which is at git://git.openembedded.org/meta-openembedded according
>>> to http://www.openembedded.org/wiki/LayerIndex
>>>
>>> --
>>> ------------------------------------------------------------
>>> Gary Thomas | Consulting for the
>>> MLB Associates | Embedded world
>>> ------------------------------------------------------------
>>> _______________________________________________
>>> yocto mailing list
>>> yocto@yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/yocto
>
>
> --
> ------------------------------------------------------------
> Gary Thomas | Consulting for the
> MLB Associates | Embedded world
> ------------------------------------------------------------
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BB_NO_NETWORK and own-mirrors not working with meta-systemd
2012-09-19 17:33 ` Evade Flow
@ 2012-09-19 22:30 ` Evade Flow
2012-09-20 0:13 ` Gary Thomas
0 siblings, 1 reply; 18+ messages in thread
From: Evade Flow @ 2012-09-19 22:30 UTC (permalink / raw)
To: Gary Thomas; +Cc: yocto
> I'm just trying to build the thing. :-) I'll try converting the tag
> name into a commit hash and see if that helps, thanks a lot...
::SIGH:: I changed the SRC_URI var in kmod.inc from this:
SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git;protocol=git;tag=v${PV}"
to this:
SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git;protocol=git"
SRCREV="8885ced062131214448fae056ef453f094303805"
This is *still* trying to access the network:
NOTE: package kmod-7-r0: task do_fetch: Started
ERROR: Function failed: Network access disabled through BB_NO_NETWORK
but access rquested with command git ls-remote
git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
8885ced062131214448 (for url None)
ERROR: Logfile of failure stored in:
/home/dwolfe/projects/poky-git/build/tmp-eglibc-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/kmod-7-r0/temp/log.do_fetch.11168
Log data follows:
| ERROR: Function failed: Network access disabled through
BB_NO_NETWORK but access rquested with command git ls-remote
git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
8885ced062131214448 (for url None)
NOTE: package kmod-7-r0: task do_fetch: Failed
NOTE: package acl-2.2.51-r3: task do_fetch: Started
NOTE: package acl-2.2.51-r3: task do_fetch: Succeeded
ERROR: Task 1374
(/home/dwolfe/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 699 tasks of which 697 didn't need to
be rerun and 1 failed.
Summary: 1 task failed:
/home/dwolfe/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
do_fetch
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
bitbake discovery-image 16.51s user 2.65s system 112% cpu 17.031 total
Why is poky/bitbake/whatever running 'git ls-remote'? This seems like a
bug....
On Wed, Sep 19, 2012 at 1:33 PM, Evade Flow <evadeflow@gmail.com> wrote:
> I'm not sure how to answer your questions, unfortunately, this is all
> quite new to me. I'm not the maintainer of said layer, and don't know
> anything at all yet about 'layer etiquette'. There does seem to be a
> README.md file in meta-systemd, though:
>
> - http://git.yoctoproject.org/cgit/cgit.cgi/meta-systemd/tree/README.md
>
> I'm just trying to build the thing. :-) I'll try converting the tag
> name into a commit hash and see if that helps, thanks a lot...
>
>
> On Wed, Sep 19, 2012 at 1:23 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>> On 2012-09-19 11:15, Evade Flow wrote:
>>>>
>>>> Where did you get that meta-systemd layer?
>>>
>>>
>>>> From here:
>>>
>>>
>>> - http://git.yoctoproject.org/cgit/cgit.cgi/meta-systemd/
>>
>>
>> Why are there conflicting meta-systemd layers (and pointers thereto)??
>> This layer in git.yoctoproject.org doesn't seem even "legal" - where is
>> the README that is expected with every layer? Without it, I don't have
>> enough info to be able to report problems like yours...
>>
>> The reason your build fails with BB_NO_NETWORK is that the kmod_7.bb
>> recipe refers to a git tag, not a specific revision, which cannot be
>> resolved without using the network.
>>
>>
>>>
>>>
>>> On Wed, Sep 19, 2012 at 12:50 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>>>>
>>>> On 2012-09-19 10:34, Evade Flow wrote:
>>>>>
>>>>>
>>>>> Trying to build the meta-ivi discovery-image behind a firewall is
>>>>> proving to be quite a challenge. I tried modifying my conf/local.conf
>>>>> file as follows:
>>>>>
>>>>> CONNECTIVITY_CHECK_URIS=""
>>>>> BB_GENERATE_MIRROR_TARBALLS = "1"
>>>>> SOURCE_MIRROR_URL ?= "file:///home/evadeflow/projects/poky-mirror/"
>>>>> INHERIT += "own-mirrors"
>>>>>
>>>>> and then ran:
>>>>>
>>>>> % bitbake discovery-image
>>>>>
>>>>> in a VM on my home laptop over the weekend. (I'm trying to build using
>>>>> the meta-ivi layer, per the instructions in its README.) After grinding
>>>>> and churning for some 60+ hours, it finally succeeded, leaving 11 GB of
>>>>> 'stuff' in my poky-mirror folder.
>>>>>
>>>>> Then, I copied the poky-mirror folder to a firewalled machine at work
>>>>> and added:
>>>>>
>>>>> BB_NO_NETWORK="1"
>>>>>
>>>>> to local.conf. When I tried to bitbake discovery-image on this machine,
>>>>> I got the following error:
>>>>>
>>>>>
>>>>> NOTE: Running task 697 of 3568 (ID: 1374,
>>>>>
>>>>>
>>>>> /home/evadeflow/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
>>>>> do_fetch)
>>>>> NOTE: package kmod-7-r0: task do_fetch: Started
>>>>> ERROR: Function failed: Network access disabled through BB_NO_NETWORK
>>>>> but access rquested with command git ls-remote
>>>>> git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git v7 (for url
>>>>> None)
>>>>> ERROR: Logfile of failure stored in:
>>>>>
>>>>>
>>>>> /home/evadeflow/projects/poky-git/build/tmp-eglibc-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/kmod-7-r0/temp/log.do_fetch.29423
>>>>> Log data follows:
>>>>> | ERROR: Function failed: Network access disabled through
>>>>> BB_NO_NETWORK but access rquested with command git ls-remote
>>>>> git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git v7 (for url
>>>>> None)
>>>>> NOTE: package kmod-7-r0: task do_fetch: Failed
>>>>> ERROR: Task 1374
>>>>>
>>>>>
>>>>> (/home/evadeflow/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
>>>>> do_fetch) failed with exit code '1'
>>>>> Waiting for 1 running tasks to finish:
>>>>> 0: libusb1-1.0.8-r4 do_compile (pid 29232)
>>>>> NOTE: package libusb1-1.0.8-r4: task do_compile: Succeeded
>>>>> NOTE: Tasks Summary: Attempted 697 tasks of which 105 didn't need to
>>>>> be rerun and 1 failed.
>>>>>
>>>>> Summary: 1 task failed:
>>>>>
>>>>>
>>>>> /home/evadeflow/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
>>>>> do_fetch
>>>>> Summary: There was 1 ERROR message shown, returning a non-zero exit
>>>>> code.
>>>>> bitbake discovery-image 5338.15s user 995.52s system 187% cpu 56:12.92
>>>>> total
>>>>>
>>>>> [NOTE: I'm on poky denzil@65ffa73, meta-ivi denzil@e068388, and
>>>>> meta-systemd denzil@6a358e9. Also, that typo in the output
>>>>> isn't mine, i.e., 'rquested' should be 'requested'.]
>>>>>
>>>>> Can anyone explain what's going on here? If I look in the poky-mirror
>>>>> folder for kmod-related stuff, I see:
>>>>>
>>>>> % ls /home/evadeflow/projects/poky-mirror/*kmod*
>>>>>
>>>>>
>>>>> /home/evadeflow/projects/poky-mirror/git2_git.kernel.org.pub.scm.utils.kernel.kmod.kmod.git.tar.gz
>>>>>
>>>>>
>>>>> /home/evadeflow/projects/poky-mirror/git2_git.profusion.mobi.kmod.git.tar.gz
>>>>>
>>>>> I *think* this is what needs to be downloaded for this recipe(?) Why is
>>>>> `git ls-remote` being run at all? I'm not sure whether this is the fault
>>>>> of poky/oe-core, or of the meta-systemd layer. I'd just really wish it
>>>>> worked. `:-} Any advice?
>>>>
>>>>
>>>>
>>>> Where did you get that meta-systemd layer? I can't find your
>>>> recipe nor that revision (denzil@6a358e9) in the published version
>>>> which is at git://git.openembedded.org/meta-openembedded according
>>>> to http://www.openembedded.org/wiki/LayerIndex
>>>>
>>>> --
>>>> ------------------------------------------------------------
>>>> Gary Thomas | Consulting for the
>>>> MLB Associates | Embedded world
>>>> ------------------------------------------------------------
>>>> _______________________________________________
>>>> yocto mailing list
>>>> yocto@yoctoproject.org
>>>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>
>> --
>> ------------------------------------------------------------
>> Gary Thomas | Consulting for the
>> MLB Associates | Embedded world
>> ------------------------------------------------------------
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BB_NO_NETWORK and own-mirrors not working with meta-systemd
2012-09-19 22:30 ` Evade Flow
@ 2012-09-20 0:13 ` Gary Thomas
2012-09-20 0:43 ` Khem Raj
2012-09-20 13:30 ` Evade Flow
0 siblings, 2 replies; 18+ messages in thread
From: Gary Thomas @ 2012-09-20 0:13 UTC (permalink / raw)
To: Evade Flow; +Cc: yocto
On 2012-09-19 16:30, Evade Flow wrote:
>> I'm just trying to build the thing. :-) I'll try converting the tag
>> name into a commit hash and see if that helps, thanks a lot...
>
> ::SIGH:: I changed the SRC_URI var in kmod.inc from this:
>
> SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git;protocol=git;tag=v${PV}"
>
> to this:
>
> SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git;protocol=git"
> SRCREV="8885ced062131214448fae056ef453f094303805"
>
> This is *still* trying to access the network:
Try doing 'bitbake kmod -c cleansstate;bitbake kmod' - does that still fail?
> NOTE: package kmod-7-r0: task do_fetch: Started
> ERROR: Function failed: Network access disabled through BB_NO_NETWORK
> but access rquested with command git ls-remote
> git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
> 8885ced062131214448 (for url None)
> ERROR: Logfile of failure stored in:
> /home/dwolfe/projects/poky-git/build/tmp-eglibc-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/kmod-7-r0/temp/log.do_fetch.11168
> Log data follows:
> | ERROR: Function failed: Network access disabled through
> BB_NO_NETWORK but access rquested with command git ls-remote
> git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
> 8885ced062131214448 (for url None)
> NOTE: package kmod-7-r0: task do_fetch: Failed
> NOTE: package acl-2.2.51-r3: task do_fetch: Started
> NOTE: package acl-2.2.51-r3: task do_fetch: Succeeded
> ERROR: Task 1374
> (/home/dwolfe/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
> do_fetch) failed with exit code '1'
> NOTE: Tasks Summary: Attempted 699 tasks of which 697 didn't need to
> be rerun and 1 failed.
>
> Summary: 1 task failed:
> /home/dwolfe/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
> do_fetch
> Summary: There was 1 ERROR message shown, returning a non-zero exit code.
> bitbake discovery-image 16.51s user 2.65s system 112% cpu 17.031 total
>
>
> Why is poky/bitbake/whatever running 'git ls-remote'? This seems like a
> bug....
>
>
> On Wed, Sep 19, 2012 at 1:33 PM, Evade Flow <evadeflow@gmail.com> wrote:
>> I'm not sure how to answer your questions, unfortunately, this is all
>> quite new to me. I'm not the maintainer of said layer, and don't know
>> anything at all yet about 'layer etiquette'. There does seem to be a
>> README.md file in meta-systemd, though:
>>
>> - http://git.yoctoproject.org/cgit/cgit.cgi/meta-systemd/tree/README.md
>>
>> I'm just trying to build the thing. :-) I'll try converting the tag
>> name into a commit hash and see if that helps, thanks a lot...
>>
>>
>> On Wed, Sep 19, 2012 at 1:23 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>>> On 2012-09-19 11:15, Evade Flow wrote:
>>>>>
>>>>> Where did you get that meta-systemd layer?
>>>>
>>>>
>>>>> From here:
>>>>
>>>>
>>>> - http://git.yoctoproject.org/cgit/cgit.cgi/meta-systemd/
>>>
>>>
>>> Why are there conflicting meta-systemd layers (and pointers thereto)??
>>> This layer in git.yoctoproject.org doesn't seem even "legal" - where is
>>> the README that is expected with every layer? Without it, I don't have
>>> enough info to be able to report problems like yours...
>>>
>>> The reason your build fails with BB_NO_NETWORK is that the kmod_7.bb
>>> recipe refers to a git tag, not a specific revision, which cannot be
>>> resolved without using the network.
>>>
>>>
>>>>
>>>>
>>>> On Wed, Sep 19, 2012 at 12:50 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>>>>>
>>>>> On 2012-09-19 10:34, Evade Flow wrote:
>>>>>>
>>>>>>
>>>>>> Trying to build the meta-ivi discovery-image behind a firewall is
>>>>>> proving to be quite a challenge. I tried modifying my conf/local.conf
>>>>>> file as follows:
>>>>>>
>>>>>> CONNECTIVITY_CHECK_URIS=""
>>>>>> BB_GENERATE_MIRROR_TARBALLS = "1"
>>>>>> SOURCE_MIRROR_URL ?= "file:///home/evadeflow/projects/poky-mirror/"
>>>>>> INHERIT += "own-mirrors"
>>>>>>
>>>>>> and then ran:
>>>>>>
>>>>>> % bitbake discovery-image
>>>>>>
>>>>>> in a VM on my home laptop over the weekend. (I'm trying to build using
>>>>>> the meta-ivi layer, per the instructions in its README.) After grinding
>>>>>> and churning for some 60+ hours, it finally succeeded, leaving 11 GB of
>>>>>> 'stuff' in my poky-mirror folder.
>>>>>>
>>>>>> Then, I copied the poky-mirror folder to a firewalled machine at work
>>>>>> and added:
>>>>>>
>>>>>> BB_NO_NETWORK="1"
>>>>>>
>>>>>> to local.conf. When I tried to bitbake discovery-image on this machine,
>>>>>> I got the following error:
>>>>>>
>>>>>>
>>>>>> NOTE: Running task 697 of 3568 (ID: 1374,
>>>>>>
>>>>>>
>>>>>> /home/evadeflow/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
>>>>>> do_fetch)
>>>>>> NOTE: package kmod-7-r0: task do_fetch: Started
>>>>>> ERROR: Function failed: Network access disabled through BB_NO_NETWORK
>>>>>> but access rquested with command git ls-remote
>>>>>> git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git v7 (for url
>>>>>> None)
>>>>>> ERROR: Logfile of failure stored in:
>>>>>>
>>>>>>
>>>>>> /home/evadeflow/projects/poky-git/build/tmp-eglibc-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/kmod-7-r0/temp/log.do_fetch.29423
>>>>>> Log data follows:
>>>>>> | ERROR: Function failed: Network access disabled through
>>>>>> BB_NO_NETWORK but access rquested with command git ls-remote
>>>>>> git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git v7 (for url
>>>>>> None)
>>>>>> NOTE: package kmod-7-r0: task do_fetch: Failed
>>>>>> ERROR: Task 1374
>>>>>>
>>>>>>
>>>>>> (/home/evadeflow/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
>>>>>> do_fetch) failed with exit code '1'
>>>>>> Waiting for 1 running tasks to finish:
>>>>>> 0: libusb1-1.0.8-r4 do_compile (pid 29232)
>>>>>> NOTE: package libusb1-1.0.8-r4: task do_compile: Succeeded
>>>>>> NOTE: Tasks Summary: Attempted 697 tasks of which 105 didn't need to
>>>>>> be rerun and 1 failed.
>>>>>>
>>>>>> Summary: 1 task failed:
>>>>>>
>>>>>>
>>>>>> /home/evadeflow/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
>>>>>> do_fetch
>>>>>> Summary: There was 1 ERROR message shown, returning a non-zero exit
>>>>>> code.
>>>>>> bitbake discovery-image 5338.15s user 995.52s system 187% cpu 56:12.92
>>>>>> total
>>>>>>
>>>>>> [NOTE: I'm on poky denzil@65ffa73, meta-ivi denzil@e068388, and
>>>>>> meta-systemd denzil@6a358e9. Also, that typo in the output
>>>>>> isn't mine, i.e., 'rquested' should be 'requested'.]
>>>>>>
>>>>>> Can anyone explain what's going on here? If I look in the poky-mirror
>>>>>> folder for kmod-related stuff, I see:
>>>>>>
>>>>>> % ls /home/evadeflow/projects/poky-mirror/*kmod*
>>>>>>
>>>>>>
>>>>>> /home/evadeflow/projects/poky-mirror/git2_git.kernel.org.pub.scm.utils.kernel.kmod.kmod.git.tar.gz
>>>>>>
>>>>>>
>>>>>> /home/evadeflow/projects/poky-mirror/git2_git.profusion.mobi.kmod.git.tar.gz
>>>>>>
>>>>>> I *think* this is what needs to be downloaded for this recipe(?) Why is
>>>>>> `git ls-remote` being run at all? I'm not sure whether this is the fault
>>>>>> of poky/oe-core, or of the meta-systemd layer. I'd just really wish it
>>>>>> worked. `:-} Any advice?
>>>>>
>>>>>
>>>>>
>>>>> Where did you get that meta-systemd layer? I can't find your
>>>>> recipe nor that revision (denzil@6a358e9) in the published version
>>>>> which is at git://git.openembedded.org/meta-openembedded according
>>>>> to http://www.openembedded.org/wiki/LayerIndex
>>>>>
>>>>> --
>>>>> ------------------------------------------------------------
>>>>> Gary Thomas | Consulting for the
>>>>> MLB Associates | Embedded world
>>>>> ------------------------------------------------------------
>>>>> _______________________________________________
>>>>> yocto mailing list
>>>>> yocto@yoctoproject.org
>>>>> https://lists.yoctoproject.org/listinfo/yocto
>>>
>>>
>>> --
>>> ------------------------------------------------------------
>>> Gary Thomas | Consulting for the
>>> MLB Associates | Embedded world
>>> ------------------------------------------------------------
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BB_NO_NETWORK and own-mirrors not working with meta-systemd
2012-09-20 0:13 ` Gary Thomas
@ 2012-09-20 0:43 ` Khem Raj
2012-09-20 13:30 ` Evade Flow
1 sibling, 0 replies; 18+ messages in thread
From: Khem Raj @ 2012-09-20 0:43 UTC (permalink / raw)
To: Gary Thomas; +Cc: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 4088 bytes --]
On Wednesday, September 19, 2012, Gary Thomas <gary@mlbassoc.com> wrote:
> On 2012-09-19 16:30, Evade Flow wrote:
>>>
>>> I'm just trying to build the thing. :-) I'll try converting the tag
>>> name into a commit hash and see if that helps, thanks a lot...
>>
>> ::SIGH:: I changed the SRC_URI var in kmod.inc from this:
>>
>> SRC_URI = "git://
git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git;protocol=git;tag=v${PV}"
>>
>> to this:
>>
>> SRC_URI = "git://
git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git;protocol=git"
>> SRCREV="8885ced062131214448fae056ef453f094303805"
>>
>> This is *still* trying to access the network:
This is right change and it should work provided your repo tar ball is up
to date so try to open up the port and get the latest source And retry
> Try doing 'bitbake kmod -c cleansstate;bitbake kmod' - does that still
fail?
>
> NOTE: package kmod-7-r0: task do_fetch: Started
> ERROR: Function failed: Network access disabled through BB_NO_NETWORK
> but access rquested with command git ls-remote
> git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
> 8885ced062131214448 (for url None)
> ERROR: Logfile of failure stored in:
>
/home/dwolfe/projects/poky-git/build/tmp-eglibc-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/kmod-7-r0/temp/log.do_fetch.11168
> Log data follows:
> | ERROR: Function failed: Network access disabled through
> BB_NO_NETWORK but access rquested with command git ls-remote
> git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
> 8885ced062131214448 (for url None)
> NOTE: package kmod-7-r0: task do_fetch: Failed
> NOTE: package acl-2.2.51-r3: task do_fetch: Started
> NOTE: package acl-2.2.51-r3: task do_fetch: Succeeded
> ERROR: Task 1374
> (/home/dwolfe/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb
,
> do_fetch) failed with exit code '1'
> NOTE: Tasks Summary: Attempted 699 tasks of which 697 didn't need to
> be rerun and 1 failed.
>
> Summary: 1 task failed:
> /home/dwolfe/projects/poky-git/meta-systemd/recipes-kernel/kmod/
kmod_7.bb,
> do_fetch
> Summary: There was 1 ERROR message shown, returning a non-zero exit code.
> bitbake discovery-image 16.51s user 2.65s system 112% cpu 17.031 total
>
>
> Why is poky/bitbake/whatever running 'git ls-remote'? This seems like a
> bug....
>
>
> On Wed, Sep 19, 2012 at 1:33 PM, Evade Flow <evadeflow@gmail.com> wrote:
>
> I'm not sure how to answer your questions, unfortunately, this is all
> quite new to me. I'm not the maintainer of said layer, and don't know
> anything at all yet about 'layer etiquette'. There does seem to be a
> README.md file in meta-systemd, though:
>
> - http://git.yoctoproject.org/cgit/cgit.cgi/meta-systemd/tree/README.md
>
> I'm just trying to build the thing. :-) I'll try converting the tag
> name into a commit hash and see if that helps, thanks a lot...
>
>
> On Wed, Sep 19, 2012 at 1:23 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>
> On 2012-09-19 11:15, Evade Flow wrote:
>
> Where did you get that meta-systemd layer?
>
>
> From here:
>
>
> - http://git.yoctoproject.org/cgit/cgit.cgi/meta-systemd/
>
>
> Why are there conflicting meta-systemd layers (and pointers thereto)??
> This layer in git.yoctoproject.org doesn't seem even "legal" - where is
> the README that is expected with every layer? Without it, I don't have
> enough info to be able to report problems like yours...
>
> The reason your build fails with BB_NO_NETWORK is that the kmod_7.bb
> recipe refers to a git tag, not a specific revision, which cannot be
> resolved without using the network.
>
>
>
>
> On Wed, Sep 19, 2012 at 12:50 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>
> On 2012-09-19 10:34, Evade Flow wrote:
>
>
> Trying to build the meta-ivi discovery-image behind a firewall is
> proving to be quite a challenge. I tried modifying my conf/local.conf
> file as follows:
>
> CONNECTIVITY_CHECK_URIS=""
> BB_GENERATE_MIRROR_TARBALLS = "1"
> SOURCE_MIRROR_URL ?= "file:///home/evadeflow/projects/pok
[-- Attachment #2: Type: text/html, Size: 5624 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BB_NO_NETWORK and own-mirrors not working with meta-systemd
2012-09-20 0:13 ` Gary Thomas
2012-09-20 0:43 ` Khem Raj
@ 2012-09-20 13:30 ` Evade Flow
2012-09-20 13:38 ` Gary Thomas
2012-09-20 13:42 ` Paul Eggleton
1 sibling, 2 replies; 18+ messages in thread
From: Evade Flow @ 2012-09-20 13:30 UTC (permalink / raw)
To: Gary Thomas; +Cc: yocto
> Try doing 'bitbake kmod -c cleansstate;bitbake kmod' - does that still fail?
Thanks for the suggestion. I get this when I try to run 'bitbake kmod -c
cleanslate':
ERROR: Task do_cleanslate does not exist for target kmod
Because I don't know any better, I tried this instead:
% bitbake kmod clean
% bitbake kmod
but it yielded the same result:
NOTE: package kmod-7-r0: task do_fetch: Started
ERROR: Function failed: Network access disabled through BB_NO_NETWORK
but access rquested with command git ls-remote
git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
8885ced062131214448 (for url None)
I guess I'll try the BFI approach of restarting the build from scratch next.
`:-o. Incidentally, searching the OpenEmbedded manual for 'cleanslate' turns
up no hits. Is this some kind of 'secret' command? Where can I learn about
other such commands?
On Wed, Sep 19, 2012 at 8:13 PM, Gary Thomas <gary@mlbassoc.com> wrote:
> On 2012-09-19 16:30, Evade Flow wrote:
>>>
>>> I'm just trying to build the thing. :-) I'll try converting the tag
>>> name into a commit hash and see if that helps, thanks a lot...
>>
>>
>> ::SIGH:: I changed the SRC_URI var in kmod.inc from this:
>>
>> SRC_URI =
>> "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git;protocol=git;tag=v${PV}"
>>
>> to this:
>>
>> SRC_URI =
>> "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git;protocol=git"
>> SRCREV="8885ced062131214448fae056ef453f094303805"
>>
>> This is *still* trying to access the network:
>
>
> Try doing 'bitbake kmod -c cleansstate;bitbake kmod' - does that still fail?
>
>
>> NOTE: package kmod-7-r0: task do_fetch: Started
>> ERROR: Function failed: Network access disabled through BB_NO_NETWORK
>> but access rquested with command git ls-remote
>> git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
>> 8885ced062131214448 (for url None)
>> ERROR: Logfile of failure stored in:
>>
>> /home/dwolfe/projects/poky-git/build/tmp-eglibc-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/kmod-7-r0/temp/log.do_fetch.11168
>> Log data follows:
>> | ERROR: Function failed: Network access disabled through
>> BB_NO_NETWORK but access rquested with command git ls-remote
>> git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
>> 8885ced062131214448 (for url None)
>> NOTE: package kmod-7-r0: task do_fetch: Failed
>> NOTE: package acl-2.2.51-r3: task do_fetch: Started
>> NOTE: package acl-2.2.51-r3: task do_fetch: Succeeded
>> ERROR: Task 1374
>>
>> (/home/dwolfe/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
>> do_fetch) failed with exit code '1'
>> NOTE: Tasks Summary: Attempted 699 tasks of which 697 didn't need to
>> be rerun and 1 failed.
>>
>> Summary: 1 task failed:
>>
>> /home/dwolfe/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
>> do_fetch
>> Summary: There was 1 ERROR message shown, returning a non-zero exit code.
>> bitbake discovery-image 16.51s user 2.65s system 112% cpu 17.031 total
>>
>>
>> Why is poky/bitbake/whatever running 'git ls-remote'? This seems like a
>> bug....
>>
>>
>> On Wed, Sep 19, 2012 at 1:33 PM, Evade Flow <evadeflow@gmail.com> wrote:
>>>
>>> I'm not sure how to answer your questions, unfortunately, this is all
>>> quite new to me. I'm not the maintainer of said layer, and don't know
>>> anything at all yet about 'layer etiquette'. There does seem to be a
>>> README.md file in meta-systemd, though:
>>>
>>> -
>>> http://git.yoctoproject.org/cgit/cgit.cgi/meta-systemd/tree/README.md
>>>
>>> I'm just trying to build the thing. :-) I'll try converting the tag
>>> name into a commit hash and see if that helps, thanks a lot...
>>>
>>>
>>> On Wed, Sep 19, 2012 at 1:23 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>>>>
>>>> On 2012-09-19 11:15, Evade Flow wrote:
>>>>>>
>>>>>>
>>>>>> Where did you get that meta-systemd layer?
>>>>>
>>>>>
>>>>>
>>>>>> From here:
>>>>>
>>>>>
>>>>>
>>>>> - http://git.yoctoproject.org/cgit/cgit.cgi/meta-systemd/
>>>>
>>>>
>>>>
>>>> Why are there conflicting meta-systemd layers (and pointers thereto)??
>>>> This layer in git.yoctoproject.org doesn't seem even "legal" - where is
>>>> the README that is expected with every layer? Without it, I don't have
>>>> enough info to be able to report problems like yours...
>>>>
>>>> The reason your build fails with BB_NO_NETWORK is that the kmod_7.bb
>>>> recipe refers to a git tag, not a specific revision, which cannot be
>>>> resolved without using the network.
>>>>
>>>>
>>>>>
>>>>>
>>>>> On Wed, Sep 19, 2012 at 12:50 PM, Gary Thomas <gary@mlbassoc.com>
>>>>> wrote:
>>>>>>
>>>>>>
>>>>>> On 2012-09-19 10:34, Evade Flow wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Trying to build the meta-ivi discovery-image behind a firewall is
>>>>>>> proving to be quite a challenge. I tried modifying my conf/local.conf
>>>>>>> file as follows:
>>>>>>>
>>>>>>> CONNECTIVITY_CHECK_URIS=""
>>>>>>> BB_GENERATE_MIRROR_TARBALLS = "1"
>>>>>>> SOURCE_MIRROR_URL ?= "file:///home/evadeflow/projects/poky-mirror/"
>>>>>>> INHERIT += "own-mirrors"
>>>>>>>
>>>>>>> and then ran:
>>>>>>>
>>>>>>> % bitbake discovery-image
>>>>>>>
>>>>>>> in a VM on my home laptop over the weekend. (I'm trying to build
>>>>>>> using
>>>>>>> the meta-ivi layer, per the instructions in its README.) After
>>>>>>> grinding
>>>>>>> and churning for some 60+ hours, it finally succeeded, leaving 11 GB
>>>>>>> of
>>>>>>> 'stuff' in my poky-mirror folder.
>>>>>>>
>>>>>>> Then, I copied the poky-mirror folder to a firewalled machine at work
>>>>>>> and added:
>>>>>>>
>>>>>>> BB_NO_NETWORK="1"
>>>>>>>
>>>>>>> to local.conf. When I tried to bitbake discovery-image on this
>>>>>>> machine,
>>>>>>> I got the following error:
>>>>>>>
>>>>>>>
>>>>>>> NOTE: Running task 697 of 3568 (ID: 1374,
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> /home/evadeflow/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
>>>>>>> do_fetch)
>>>>>>> NOTE: package kmod-7-r0: task do_fetch: Started
>>>>>>> ERROR: Function failed: Network access disabled through BB_NO_NETWORK
>>>>>>> but access rquested with command git ls-remote
>>>>>>> git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git v7 (for url
>>>>>>> None)
>>>>>>> ERROR: Logfile of failure stored in:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> /home/evadeflow/projects/poky-git/build/tmp-eglibc-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/kmod-7-r0/temp/log.do_fetch.29423
>>>>>>> Log data follows:
>>>>>>> | ERROR: Function failed: Network access disabled through
>>>>>>> BB_NO_NETWORK but access rquested with command git ls-remote
>>>>>>> git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git v7 (for url
>>>>>>> None)
>>>>>>> NOTE: package kmod-7-r0: task do_fetch: Failed
>>>>>>> ERROR: Task 1374
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> (/home/evadeflow/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
>>>>>>> do_fetch) failed with exit code '1'
>>>>>>> Waiting for 1 running tasks to finish:
>>>>>>> 0: libusb1-1.0.8-r4 do_compile (pid 29232)
>>>>>>> NOTE: package libusb1-1.0.8-r4: task do_compile: Succeeded
>>>>>>> NOTE: Tasks Summary: Attempted 697 tasks of which 105 didn't need to
>>>>>>> be rerun and 1 failed.
>>>>>>>
>>>>>>> Summary: 1 task failed:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> /home/evadeflow/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
>>>>>>> do_fetch
>>>>>>> Summary: There was 1 ERROR message shown, returning a non-zero exit
>>>>>>> code.
>>>>>>> bitbake discovery-image 5338.15s user 995.52s system 187% cpu
>>>>>>> 56:12.92
>>>>>>> total
>>>>>>>
>>>>>>> [NOTE: I'm on poky denzil@65ffa73, meta-ivi denzil@e068388, and
>>>>>>> meta-systemd denzil@6a358e9. Also, that typo in the output
>>>>>>> isn't mine, i.e., 'rquested' should be 'requested'.]
>>>>>>>
>>>>>>> Can anyone explain what's going on here? If I look in the poky-mirror
>>>>>>> folder for kmod-related stuff, I see:
>>>>>>>
>>>>>>> % ls /home/evadeflow/projects/poky-mirror/*kmod*
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> /home/evadeflow/projects/poky-mirror/git2_git.kernel.org.pub.scm.utils.kernel.kmod.kmod.git.tar.gz
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> /home/evadeflow/projects/poky-mirror/git2_git.profusion.mobi.kmod.git.tar.gz
>>>>>>>
>>>>>>> I *think* this is what needs to be downloaded for this recipe(?) Why
>>>>>>> is
>>>>>>> `git ls-remote` being run at all? I'm not sure whether this is the
>>>>>>> fault
>>>>>>> of poky/oe-core, or of the meta-systemd layer. I'd just really wish
>>>>>>> it
>>>>>>> worked. `:-} Any advice?
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Where did you get that meta-systemd layer? I can't find your
>>>>>> recipe nor that revision (denzil@6a358e9) in the published version
>>>>>> which is at git://git.openembedded.org/meta-openembedded according
>>>>>> to http://www.openembedded.org/wiki/LayerIndex
>>>>>>
>>>>>> --
>>>>>> ------------------------------------------------------------
>>>>>> Gary Thomas | Consulting for the
>>>>>> MLB Associates | Embedded world
>>>>>> ------------------------------------------------------------
>>>>>> _______________________________________________
>>>>>> yocto mailing list
>>>>>> yocto@yoctoproject.org
>>>>>> https://lists.yoctoproject.org/listinfo/yocto
>>>>
>>>>
>>>>
>>>> --
>>>> ------------------------------------------------------------
>>>> Gary Thomas | Consulting for the
>>>> MLB Associates | Embedded world
>>>> ------------------------------------------------------------
>
>
> --
> ------------------------------------------------------------
> Gary Thomas | Consulting for the
> MLB Associates | Embedded world
> ------------------------------------------------------------
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BB_NO_NETWORK and own-mirrors not working with meta-systemd
2012-09-20 13:30 ` Evade Flow
@ 2012-09-20 13:38 ` Gary Thomas
2012-09-20 13:42 ` Paul Eggleton
1 sibling, 0 replies; 18+ messages in thread
From: Gary Thomas @ 2012-09-20 13:38 UTC (permalink / raw)
To: Evade Flow; +Cc: yocto
On 2012-09-20 07:30, Evade Flow wrote:
>> Try doing 'bitbake kmod -c cleansstate;bitbake kmod' - does that still fail?
>
>
> Thanks for the suggestion. I get this when I try to run 'bitbake kmod -c
> cleanslate':
>
> ERROR: Task do_cleanslate does not exist for target kmod
typo: it needs to be 'cleansstate'
>
>
> Because I don't know any better, I tried this instead:
>
> % bitbake kmod clean
> % bitbake kmod
>
> but it yielded the same result:
>
>
> NOTE: package kmod-7-r0: task do_fetch: Started
> ERROR: Function failed: Network access disabled through BB_NO_NETWORK
> but access rquested with command git ls-remote
> git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
> 8885ced062131214448 (for url None)
>
>
> I guess I'll try the BFI approach of restarting the build from scratch next.
> `:-o. Incidentally, searching the OpenEmbedded manual for 'cleanslate' turns
> up no hits. Is this some kind of 'secret' command? Where can I learn about
> other such commands?
>
>
> On Wed, Sep 19, 2012 at 8:13 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>> On 2012-09-19 16:30, Evade Flow wrote:
>>>>
>>>> I'm just trying to build the thing. :-) I'll try converting the tag
>>>> name into a commit hash and see if that helps, thanks a lot...
>>>
>>>
>>> ::SIGH:: I changed the SRC_URI var in kmod.inc from this:
>>>
>>> SRC_URI =
>>> "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git;protocol=git;tag=v${PV}"
>>>
>>> to this:
>>>
>>> SRC_URI =
>>> "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git;protocol=git"
>>> SRCREV="8885ced062131214448fae056ef453f094303805"
>>>
>>> This is *still* trying to access the network:
>>
>>
>> Try doing 'bitbake kmod -c cleansstate;bitbake kmod' - does that still fail?
>>
>>
>>> NOTE: package kmod-7-r0: task do_fetch: Started
>>> ERROR: Function failed: Network access disabled through BB_NO_NETWORK
>>> but access rquested with command git ls-remote
>>> git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
>>> 8885ced062131214448 (for url None)
>>> ERROR: Logfile of failure stored in:
>>>
>>> /home/dwolfe/projects/poky-git/build/tmp-eglibc-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/kmod-7-r0/temp/log.do_fetch.11168
>>> Log data follows:
>>> | ERROR: Function failed: Network access disabled through
>>> BB_NO_NETWORK but access rquested with command git ls-remote
>>> git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
>>> 8885ced062131214448 (for url None)
>>> NOTE: package kmod-7-r0: task do_fetch: Failed
>>> NOTE: package acl-2.2.51-r3: task do_fetch: Started
>>> NOTE: package acl-2.2.51-r3: task do_fetch: Succeeded
>>> ERROR: Task 1374
>>>
>>> (/home/dwolfe/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
>>> do_fetch) failed with exit code '1'
>>> NOTE: Tasks Summary: Attempted 699 tasks of which 697 didn't need to
>>> be rerun and 1 failed.
>>>
>>> Summary: 1 task failed:
>>>
>>> /home/dwolfe/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
>>> do_fetch
>>> Summary: There was 1 ERROR message shown, returning a non-zero exit code.
>>> bitbake discovery-image 16.51s user 2.65s system 112% cpu 17.031 total
>>>
>>>
>>> Why is poky/bitbake/whatever running 'git ls-remote'? This seems like a
>>> bug....
>>>
>>>
>>> On Wed, Sep 19, 2012 at 1:33 PM, Evade Flow <evadeflow@gmail.com> wrote:
>>>>
>>>> I'm not sure how to answer your questions, unfortunately, this is all
>>>> quite new to me. I'm not the maintainer of said layer, and don't know
>>>> anything at all yet about 'layer etiquette'. There does seem to be a
>>>> README.md file in meta-systemd, though:
>>>>
>>>> -
>>>> http://git.yoctoproject.org/cgit/cgit.cgi/meta-systemd/tree/README.md
>>>>
>>>> I'm just trying to build the thing. :-) I'll try converting the tag
>>>> name into a commit hash and see if that helps, thanks a lot...
>>>>
>>>>
>>>> On Wed, Sep 19, 2012 at 1:23 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>>>>>
>>>>> On 2012-09-19 11:15, Evade Flow wrote:
>>>>>>>
>>>>>>>
>>>>>>> Where did you get that meta-systemd layer?
>>>>>>
>>>>>>
>>>>>>
>>>>>>> From here:
>>>>>>
>>>>>>
>>>>>>
>>>>>> - http://git.yoctoproject.org/cgit/cgit.cgi/meta-systemd/
>>>>>
>>>>>
>>>>>
>>>>> Why are there conflicting meta-systemd layers (and pointers thereto)??
>>>>> This layer in git.yoctoproject.org doesn't seem even "legal" - where is
>>>>> the README that is expected with every layer? Without it, I don't have
>>>>> enough info to be able to report problems like yours...
>>>>>
>>>>> The reason your build fails with BB_NO_NETWORK is that the kmod_7.bb
>>>>> recipe refers to a git tag, not a specific revision, which cannot be
>>>>> resolved without using the network.
>>>>>
>>>>>
>>>>>>
>>>>>>
>>>>>> On Wed, Sep 19, 2012 at 12:50 PM, Gary Thomas <gary@mlbassoc.com>
>>>>>> wrote:
>>>>>>>
>>>>>>>
>>>>>>> On 2012-09-19 10:34, Evade Flow wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Trying to build the meta-ivi discovery-image behind a firewall is
>>>>>>>> proving to be quite a challenge. I tried modifying my conf/local.conf
>>>>>>>> file as follows:
>>>>>>>>
>>>>>>>> CONNECTIVITY_CHECK_URIS=""
>>>>>>>> BB_GENERATE_MIRROR_TARBALLS = "1"
>>>>>>>> SOURCE_MIRROR_URL ?= "file:///home/evadeflow/projects/poky-mirror/"
>>>>>>>> INHERIT += "own-mirrors"
>>>>>>>>
>>>>>>>> and then ran:
>>>>>>>>
>>>>>>>> % bitbake discovery-image
>>>>>>>>
>>>>>>>> in a VM on my home laptop over the weekend. (I'm trying to build
>>>>>>>> using
>>>>>>>> the meta-ivi layer, per the instructions in its README.) After
>>>>>>>> grinding
>>>>>>>> and churning for some 60+ hours, it finally succeeded, leaving 11 GB
>>>>>>>> of
>>>>>>>> 'stuff' in my poky-mirror folder.
>>>>>>>>
>>>>>>>> Then, I copied the poky-mirror folder to a firewalled machine at work
>>>>>>>> and added:
>>>>>>>>
>>>>>>>> BB_NO_NETWORK="1"
>>>>>>>>
>>>>>>>> to local.conf. When I tried to bitbake discovery-image on this
>>>>>>>> machine,
>>>>>>>> I got the following error:
>>>>>>>>
>>>>>>>>
>>>>>>>> NOTE: Running task 697 of 3568 (ID: 1374,
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> /home/evadeflow/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
>>>>>>>> do_fetch)
>>>>>>>> NOTE: package kmod-7-r0: task do_fetch: Started
>>>>>>>> ERROR: Function failed: Network access disabled through BB_NO_NETWORK
>>>>>>>> but access rquested with command git ls-remote
>>>>>>>> git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git v7 (for url
>>>>>>>> None)
>>>>>>>> ERROR: Logfile of failure stored in:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> /home/evadeflow/projects/poky-git/build/tmp-eglibc-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/kmod-7-r0/temp/log.do_fetch.29423
>>>>>>>> Log data follows:
>>>>>>>> | ERROR: Function failed: Network access disabled through
>>>>>>>> BB_NO_NETWORK but access rquested with command git ls-remote
>>>>>>>> git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git v7 (for url
>>>>>>>> None)
>>>>>>>> NOTE: package kmod-7-r0: task do_fetch: Failed
>>>>>>>> ERROR: Task 1374
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> (/home/evadeflow/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
>>>>>>>> do_fetch) failed with exit code '1'
>>>>>>>> Waiting for 1 running tasks to finish:
>>>>>>>> 0: libusb1-1.0.8-r4 do_compile (pid 29232)
>>>>>>>> NOTE: package libusb1-1.0.8-r4: task do_compile: Succeeded
>>>>>>>> NOTE: Tasks Summary: Attempted 697 tasks of which 105 didn't need to
>>>>>>>> be rerun and 1 failed.
>>>>>>>>
>>>>>>>> Summary: 1 task failed:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> /home/evadeflow/projects/poky-git/meta-systemd/recipes-kernel/kmod/kmod_7.bb,
>>>>>>>> do_fetch
>>>>>>>> Summary: There was 1 ERROR message shown, returning a non-zero exit
>>>>>>>> code.
>>>>>>>> bitbake discovery-image 5338.15s user 995.52s system 187% cpu
>>>>>>>> 56:12.92
>>>>>>>> total
>>>>>>>>
>>>>>>>> [NOTE: I'm on poky denzil@65ffa73, meta-ivi denzil@e068388, and
>>>>>>>> meta-systemd denzil@6a358e9. Also, that typo in the output
>>>>>>>> isn't mine, i.e., 'rquested' should be 'requested'.]
>>>>>>>>
>>>>>>>> Can anyone explain what's going on here? If I look in the poky-mirror
>>>>>>>> folder for kmod-related stuff, I see:
>>>>>>>>
>>>>>>>> % ls /home/evadeflow/projects/poky-mirror/*kmod*
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> /home/evadeflow/projects/poky-mirror/git2_git.kernel.org.pub.scm.utils.kernel.kmod.kmod.git.tar.gz
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> /home/evadeflow/projects/poky-mirror/git2_git.profusion.mobi.kmod.git.tar.gz
>>>>>>>>
>>>>>>>> I *think* this is what needs to be downloaded for this recipe(?) Why
>>>>>>>> is
>>>>>>>> `git ls-remote` being run at all? I'm not sure whether this is the
>>>>>>>> fault
>>>>>>>> of poky/oe-core, or of the meta-systemd layer. I'd just really wish
>>>>>>>> it
>>>>>>>> worked. `:-} Any advice?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Where did you get that meta-systemd layer? I can't find your
>>>>>>> recipe nor that revision (denzil@6a358e9) in the published version
>>>>>>> which is at git://git.openembedded.org/meta-openembedded according
>>>>>>> to http://www.openembedded.org/wiki/LayerIndex
>>>>>>>
>>>>>>> --
>>>>>>> ------------------------------------------------------------
>>>>>>> Gary Thomas | Consulting for the
>>>>>>> MLB Associates | Embedded world
>>>>>>> ------------------------------------------------------------
>>>>>>> _______________________________________________
>>>>>>> yocto mailing list
>>>>>>> yocto@yoctoproject.org
>>>>>>> https://lists.yoctoproject.org/listinfo/yocto
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> ------------------------------------------------------------
>>>>> Gary Thomas | Consulting for the
>>>>> MLB Associates | Embedded world
>>>>> ------------------------------------------------------------
>>
>>
>> --
>> ------------------------------------------------------------
>> Gary Thomas | Consulting for the
>> MLB Associates | Embedded world
>> ------------------------------------------------------------
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BB_NO_NETWORK and own-mirrors not working with meta-systemd
2012-09-20 13:30 ` Evade Flow
2012-09-20 13:38 ` Gary Thomas
@ 2012-09-20 13:42 ` Paul Eggleton
2012-09-20 14:12 ` Evade Flow
1 sibling, 1 reply; 18+ messages in thread
From: Paul Eggleton @ 2012-09-20 13:42 UTC (permalink / raw)
To: yocto
On Thursday 20 September 2012 09:30:19 Evade Flow wrote:
> I guess I'll try the BFI approach of restarting the build from scratch next.
> `:-o.
We'd really rather people didn't do this as it does not help us to diagnose
and fix problems.
> Incidentally, searching the OpenEmbedded manual for 'cleanslate'
> turns up no hits. Is this some kind of 'secret' command? Where can I learn
> about other such commands?
As Gary pointed out the command is "cleansstate". The OpenEmbedded manual has
not been kept up-to-date I'm afraid - but the good news is there is an up-to-
date and comprehensive set of documentation set provided by the Yocto Project
here:
http://www.yoctoproject.org/documentation
FYI you can do "bitbake -c listtasks <targetname>" which will list all of the
valid tasks, you can remove do_ from the start of these to get commands you
can use with -c.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BB_NO_NETWORK and own-mirrors not working with meta-systemd
2012-09-20 13:42 ` Paul Eggleton
@ 2012-09-20 14:12 ` Evade Flow
2012-09-20 20:08 ` Evade Flow
0 siblings, 1 reply; 18+ messages in thread
From: Evade Flow @ 2012-09-20 14:12 UTC (permalink / raw)
To: Paul Eggleton; +Cc: yocto
Fortunately, you caught me before I pulled out a bigger hammer. :-} I was
going to report that this still didn't work after typing:
% bitbake -c cleanstate
But re-reading your post, I saw that there were supposed to be two 'esses'[!]
The following:
% bitbake kmod -c cleansstate
% bitbake kmod
does, in fact, seem to have worked for me. Thanks, guys, for your help!
On Thu, Sep 20, 2012 at 9:42 AM, Paul Eggleton
<paul.eggleton@linux.intel.com> wrote:
> On Thursday 20 September 2012 09:30:19 Evade Flow wrote:
>> I guess I'll try the BFI approach of restarting the build from scratch next.
>> `:-o.
>
> We'd really rather people didn't do this as it does not help us to diagnose
> and fix problems.
>
>> Incidentally, searching the OpenEmbedded manual for 'cleanslate'
>> turns up no hits. Is this some kind of 'secret' command? Where can I learn
>> about other such commands?
>
> As Gary pointed out the command is "cleansstate". The OpenEmbedded manual has
> not been kept up-to-date I'm afraid - but the good news is there is an up-to-
> date and comprehensive set of documentation set provided by the Yocto Project
> here:
>
> http://www.yoctoproject.org/documentation
>
> FYI you can do "bitbake -c listtasks <targetname>" which will list all of the
> valid tasks, you can remove do_ from the start of these to get commands you
> can use with -c.
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BB_NO_NETWORK and own-mirrors not working with meta-systemd
2012-09-20 14:12 ` Evade Flow
@ 2012-09-20 20:08 ` Evade Flow
2012-09-20 20:32 ` William Mills
2012-09-20 21:41 ` Paul Eggleton
0 siblings, 2 replies; 18+ messages in thread
From: Evade Flow @ 2012-09-20 20:08 UTC (permalink / raw)
To: yocto
To bring this full circle... if you want to build behind a restrictive
firewall using pre-mirrored sources and BB_NO_NETWORK, be aware that
recipes which:
1. Specify a git repo as the source, and,
2. Specify the revision to be built using a tag name
will cause your build to abort when bitbake tries to run 'git ls-remote'
to resolve the tag name. So don't specify SRC_URI like this:
SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git;protocol=git;tag=v${PV}"
Instead, use:
SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git;protocol=git;tag=8885ced062131214448fae056ef453f094303805;branch=master"
I added a note about this to the Wiki:
- http://wiki.yoctoproject.org/wiki/How_do_I#Non-networked_Builds_and_Cached_Git_Respositories
I'm still new to Yocto, so someone please chime in if any of this
information is incorrect...
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BB_NO_NETWORK and own-mirrors not working with meta-systemd
2012-09-20 20:08 ` Evade Flow
@ 2012-09-20 20:32 ` William Mills
2012-09-20 22:30 ` Brian Lloyd
2012-09-20 21:41 ` Paul Eggleton
1 sibling, 1 reply; 18+ messages in thread
From: William Mills @ 2012-09-20 20:32 UTC (permalink / raw)
To: Evade Flow; +Cc: yocto
On 09/20/2012 04:08 PM, Evade Flow wrote:
> To bring this full circle... if you want to build behind a restrictive
> firewall using pre-mirrored sources and BB_NO_NETWORK, be aware that
> recipes which:
>
> 1. Specify a git repo as the source, and,
>
> 2. Specify the revision to be built using a tag name
>
>
> will cause your build to abort when bitbake tries to run 'git ls-remote'
> to resolve the tag name. So don't specify SRC_URI like this:
>
>
> SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git;protocol=git;tag=v${PV}"
>
> Instead, use:
>
> SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git;protocol=git;tag=8885ced062131214448fae056ef453f094303805;branch=master"
>
>
> I added a note about this to the Wiki:
>
> - http://wiki.yoctoproject.org/wiki/How_do_I#Non-networked_Builds_and_Cached_Git_Respositories
>
> I'm still new to Yocto, so someone please chime in if any of this
> information is incorrect...
>
If true, this seems very unfortunate. This seems to push people in the
wrong direction. Is there a reason the fetchers don't pull down the
tags when they mirror in the first place?
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BB_NO_NETWORK and own-mirrors not working with meta-systemd
2012-09-20 20:08 ` Evade Flow
2012-09-20 20:32 ` William Mills
@ 2012-09-20 21:41 ` Paul Eggleton
2012-09-20 22:12 ` Evade Flow
1 sibling, 1 reply; 18+ messages in thread
From: Paul Eggleton @ 2012-09-20 21:41 UTC (permalink / raw)
To: Evade Flow; +Cc: yocto
On Thursday 20 September 2012 16:08:41 Evade Flow wrote:
> To bring this full circle... if you want to build behind a restrictive
> firewall using pre-mirrored sources and BB_NO_NETWORK, be aware that
> recipes which:
>
> 1. Specify a git repo as the source, and,
>
> 2. Specify the revision to be built using a tag name
>
>
> will cause your build to abort when bitbake tries to run 'git ls-remote'
> to resolve the tag name. So don't specify SRC_URI like this:
>
>
> SRC_URI =
> "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git;protocol=git;tag=v
> ${PV}"
>
> Instead, use:
>
> SRC_URI =
> "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git;protocol=git;tag=8
> 885ced062131214448fae056ef453f094303805;branch=master"
>
>
> I added a note about this to the Wiki:
>
> -
> http://wiki.yoctoproject.org/wiki/How_do_I#Non-networked_Builds_and_Cached_
> Git_Respositories
>
> I'm still new to Yocto, so someone please chime in if any of this
> information is incorrect...
You should not need to be specifying the revision within SRC_URI as you are
doing, however, it is correct that you must specify the revision in SRCREV and
that revision must be the full SHA1 hash and not just a tag or branch name.
The reason for this is that tags are not fixed and could change, therefore if
one is used we must query the server and resolve it to the current SHA1 hash
every time the recipe is parsed.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BB_NO_NETWORK and own-mirrors not working with meta-systemd
2012-09-20 21:41 ` Paul Eggleton
@ 2012-09-20 22:12 ` Evade Flow
2012-09-20 22:20 ` Khem Raj
0 siblings, 1 reply; 18+ messages in thread
From: Evade Flow @ 2012-09-20 22:12 UTC (permalink / raw)
To: Paul Eggleton; +Cc: yocto
> You should not need to be specifying the revision within SRC_URI as you are
> doing, however, it is correct that you must specify the revision in
> SRCREV...
This doesn't appear to be done in a couple of the Yocto recipes:
- meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb
- meta/recipes-devtools/mtd/mtd-utils_1.4.9.bb
SRCREV is not set in either of these, but 'tag=' is supplied as part of
SRC_URI, i.e.:
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git;protocol=git;tag=fdb6c0402337d9607c7a39155088eaf033742752;branch=master"
I'm not sure what to make of that, but... I'll modify my Wiki entry to say
that SRCREV should be set (instead of a SRC_URI with 'tag=').
On Thu, Sep 20, 2012 at 5:41 PM, Paul Eggleton
<paul.eggleton@linux.intel.com> wrote:
> On Thursday 20 September 2012 16:08:41 Evade Flow wrote:
>> To bring this full circle... if you want to build behind a restrictive
>> firewall using pre-mirrored sources and BB_NO_NETWORK, be aware that
>> recipes which:
>>
>> 1. Specify a git repo as the source, and,
>>
>> 2. Specify the revision to be built using a tag name
>>
>>
>> will cause your build to abort when bitbake tries to run 'git ls-remote'
>> to resolve the tag name. So don't specify SRC_URI like this:
>>
>>
>> SRC_URI =
>> "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git;protocol=git;tag=v
>> ${PV}"
>>
>> Instead, use:
>>
>> SRC_URI =
>> "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git;protocol=git;tag=8
>> 885ced062131214448fae056ef453f094303805;branch=master"
>>
>>
>> I added a note about this to the Wiki:
>>
>> -
>> http://wiki.yoctoproject.org/wiki/How_do_I#Non-networked_Builds_and_Cached_
>> Git_Respositories
>>
>> I'm still new to Yocto, so someone please chime in if any of this
>> information is incorrect...
>
> You should not need to be specifying the revision within SRC_URI as you are
> doing, however, it is correct that you must specify the revision in SRCREV and
> that revision must be the full SHA1 hash and not just a tag or branch name.
> The reason for this is that tags are not fixed and could change, therefore if
> one is used we must query the server and resolve it to the current SHA1 hash
> every time the recipe is parsed.
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BB_NO_NETWORK and own-mirrors not working with meta-systemd
2012-09-20 22:12 ` Evade Flow
@ 2012-09-20 22:20 ` Khem Raj
0 siblings, 0 replies; 18+ messages in thread
From: Khem Raj @ 2012-09-20 22:20 UTC (permalink / raw)
To: Evade Flow; +Cc: Paul Eggleton, yocto
On Thu, Sep 20, 2012 at 3:12 PM, Evade Flow <evadeflow@gmail.com> wrote:
> This doesn't appear to be done in a couple of the Yocto recipes:
>
> - meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb
> - meta/recipes-devtools/mtd/mtd-utils_1.4.9.bb
>
good. Send patches we will accept.
> SRCREV is not set in either of these, but 'tag=' is supplied as part of
> SRC_URI, i.e.:
>
>
> SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git;protocol=git;tag=fdb6c0402337d9607c7a39155088eaf033742752;branch=master"
>
>
> I'm not sure what to make of that, but... I'll modify my Wiki entry to say
> that SRCREV should be set (instead of a SRC_URI with 'tag=').
change this one too
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: BB_NO_NETWORK and own-mirrors not working with meta-systemd
2012-09-20 20:32 ` William Mills
@ 2012-09-20 22:30 ` Brian Lloyd
0 siblings, 0 replies; 18+ messages in thread
From: Brian Lloyd @ 2012-09-20 22:30 UTC (permalink / raw)
To: William Mills; +Cc: yocto
Simple: tags aren't guaranteed to not change what it references, the
hash is guaranteed to always point to the same thing. Thus, git is
double checking that the meaning of the tag hasn't changed.
On Thu, 2012-09-20 at 16:32 -0400, William Mills wrote:
> On 09/20/2012 04:08 PM, Evade Flow wrote:
> > To bring this full circle... if you want to build behind a restrictive
> > firewall using pre-mirrored sources and BB_NO_NETWORK, be aware that
> > recipes which:
> >
> > 1. Specify a git repo as the source, and,
> >
> > 2. Specify the revision to be built using a tag name
> >
> >
> > will cause your build to abort when bitbake tries to run 'git ls-remote'
> > to resolve the tag name. So don't specify SRC_URI like this:
> >
> >
> > SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git;protocol=git;tag=v${PV}"
> >
> > Instead, use:
> >
> > SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git;protocol=git;tag=8885ced062131214448fae056ef453f094303805;branch=master"
> >
> >
> > I added a note about this to the Wiki:
> >
> > - http://wiki.yoctoproject.org/wiki/How_do_I#Non-networked_Builds_and_Cached_Git_Respositories
> >
> > I'm still new to Yocto, so someone please chime in if any of this
> > information is incorrect...
> >
>
> If true, this seems very unfortunate. This seems to push people in the
> wrong direction. Is there a reason the fetchers don't pull down the
> tags when they mirror in the first place?
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2012-09-20 22:30 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-19 16:34 BB_NO_NETWORK and own-mirrors not working with meta-systemd Evade Flow
2012-09-19 16:50 ` Gary Thomas
2012-09-19 17:15 ` Evade Flow
2012-09-19 17:23 ` Gary Thomas
2012-09-19 17:33 ` Evade Flow
2012-09-19 22:30 ` Evade Flow
2012-09-20 0:13 ` Gary Thomas
2012-09-20 0:43 ` Khem Raj
2012-09-20 13:30 ` Evade Flow
2012-09-20 13:38 ` Gary Thomas
2012-09-20 13:42 ` Paul Eggleton
2012-09-20 14:12 ` Evade Flow
2012-09-20 20:08 ` Evade Flow
2012-09-20 20:32 ` William Mills
2012-09-20 22:30 ` Brian Lloyd
2012-09-20 21:41 ` Paul Eggleton
2012-09-20 22:12 ` Evade Flow
2012-09-20 22:20 ` Khem Raj
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.