Skip to contentSkip to conversation

01/01: bitbake.conf: add tools required by testimage to HOSTTOOLS conditionally

oe-commits Martin Jansa 5 participants 9 messages Oct 12, 2017 – Oct 16, 2017 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 28 lines · On Mon, Oct 09, 2017 at 09:09:31AM +0000, [email protected] wrote:

This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 8ca61a5464743ff85b6d26886112750d6ddd13e0
Author: Chen Qi <[email protected]>
AuthorDate: Sat Sep 30 16:15:42 2017 +0800

bitbake.conf: add tools required by testimage to HOSTTOOLS conditionally

Add tools required by testimage to HOSTTOOLS only when testimage is inherited. These tools, as described in the comment, are only required by the testimage task. So this change should not have negtive effect. This would also solve build error on hosts which miss some tool such as scp.

---
 meta/conf/bitbake.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/bitbake.conf +0 -0
index 6f53b23..0eefb86 100644

meta/conf/bitbake.conf HOSTTOOLS += " \ · line 487

Quoted 5 lines
meta/conf/bitbake.conf +1 -1
@@ -484,7 +484,7 @@ HOSTTOOLS += " \
 "
 
 # Tools needed to run testimage runtime image testing
-HOSTTOOLS += "ip ping ps scp ssh stty"
+HOSTTOOLS += "${@['', 'ip ping ps scp ssh stty'][bb.data.inherits_class('testimage', d)]}"

Shouldn't we include at least ssh by default?

I have some builds where CONNECTIVITY_CHECK_URIS contains private git repo (to make sure that users configured their git + ssh correctly before starting the build) and since this change it fails, because of missing ssh:

ERROR: OE-core's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf). Following is the list of potential problems / advisories:

Fetcher failure: Fetch command export PATH="...snip.../hosttools"; export HOME="/home/jenkins"; git -c core.fsyncobjectfiles=0 ls-remote ssh://foo.com/bar/repo failed with exit code 128, output:
error: cannot run ssh: No such file or directory
fatal: unable to fork
.
Please ensure your host's network is configured correctly,
or set BB_NO_NETWORK = "1" to disable network access if
all required sources are on local disk.

I know I can add ssh locally, but do we really need to be so strict here? We already include git and git might need ssh.

Regards,

Quoted 11 lines
meta/conf/bitbake.conf +0 -0
 # Link to these if present
 HOSTTOOLS_NONFATAL += "aws ccache gcc-ar gpg ld.bfd ld.gold nc sftp socat sudo"
 
Signature · 7 lines
To stop receiving notification emails like this one, please contact
the administrator of this repository.
-- 
_______________________________________________
Openembedded-commits mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-commits
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#3 lore raw
Quoted 31 lines · Martin Jansa
Quoted 30 lines · On Mon, Oct 09, 2017 at 09:09:31AM +0000, [email protected] wrote:

This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 8ca61a5464743ff85b6d26886112750d6ddd13e0
Author: Chen Qi <[email protected]>
AuthorDate: Sat Sep 30 16:15:42 2017 +0800

bitbake.conf: add tools required by testimage to HOSTTOOLS conditionally

Add tools required by testimage to HOSTTOOLS only when testimage is inherited. These tools, as described in the comment, are only required by the testimage task. So this change should not have negtive effect. This would also solve build error on hosts which miss some tool such as scp.

---
 meta/conf/bitbake.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/bitbake.conf +0 -0
index 6f53b23..0eefb86 100644
@@ -484,7 +484,7 @@ HOSTTOOLS += " \
 "
 
Quoted 5 lines

meta/conf/bitbake.conf HOSTTOOLS += " \ · line 487

Quoted 3 lines
meta/conf/bitbake.conf +1 -1
 # Tools needed to run testimage runtime image testing
-HOSTTOOLS += "ip ping ps scp ssh stty"
+HOSTTOOLS += "${@['', 'ip ping ps scp ssh stty'][bb.data.inherits_class('testimage', d)]}"

Shouldn't we include at least ssh by default?

I would say no, since nothing in OE-Core depends on it. more we abstract from host system better it is.

Quoted 43 lines

I have some builds where CONNECTIVITY_CHECK_URIS contains private git repo (to make sure that users configured their git + ssh correctly before starting the build) and since this change it fails, because of missing ssh:

ERROR: OE-core's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf). Following is the list of potential problems / advisories:

Fetcher failure: Fetch command export PATH="...snip.../hosttools"; export HOME="/home/jenkins"; git -c core.fsyncobjectfiles=0 ls-remote ssh://foo.com/bar/repo failed with exit code 128, output:
error: cannot run ssh: No such file or directory
fatal: unable to fork
.
Please ensure your host's network is configured correctly,
or set BB_NO_NETWORK = "1" to disable network access if
all required sources are on local disk.

I know I can add ssh locally, but do we really need to be so strict here? We already include git and git might need ssh.

Regards,

Quoted 11 lines
meta/conf/bitbake.conf +0 -1
 # Link to these if present
 HOSTTOOLS_NONFATAL += "aws ccache gcc-ar gpg ld.bfd ld.gold nc sftp socat sudo"
 
--

To stop receiving notification emails like this one, please contact the administrator of this repository.
--
_______________________________________________
Openembedded-commits mailing list [email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-commits

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#4 lore raw
Quoted 7 lines · NZDT Khem Raj
Quoted 6 lines · Martin Jansa
Quoted 5 lines · On Mon, Oct 09, 2017 at 09:09:31AM +0000, [email protected] wrote:
meta/conf/bitbake.conf +0 -0
@@ -484,7 +484,7 @@ HOSTTOOLS += " \
 "
 
Quoted 8 lines
Quoted 5 lines

meta/conf/bitbake.conf HOSTTOOLS += " \ · line 487

Quoted 3 lines
meta/conf/bitbake.conf +1 -1
 # Tools needed to run testimage runtime image testing
-HOSTTOOLS += "ip ping ps scp ssh stty"
+HOSTTOOLS += "${@['', 'ip ping ps scp ssh stty'][bb.data.inherits_class('testimage', d)]}"

Shouldn't we include at least ssh by default?

I would say no, since nothing in OE-Core depends on it. more we abstract from host system better it is.

I'm with Martin on this one, let's not make it painful for people to use the SSH protocol in git URLs in their recipes. I don't see much potential for host contamination.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#5 lore raw
Quoted 14 lines · Paul Eggleton
Quoted 13 lines · NZDT Khem Raj
Quoted 11 lines · Martin Jansa

meta/conf/bitbake.conf HOSTTOOLS += " \ · line 487

Quoted 8 lines · On Mon, Oct 09, 2017 at 09:09:31AM +0000, [email protected] wrote:
meta/conf/bitbake.conf +1 -1
@@ -484,7 +484,7 @@ HOSTTOOLS += " \
 "
 
 # Tools needed to run testimage runtime image testing
-HOSTTOOLS += "ip ping ps scp ssh stty"
+HOSTTOOLS += "${@['', 'ip ping ps scp ssh stty'][bb.data.inherits_class('testimage', d)]}"

Shouldn't we include at least ssh by default?

Quoted 6 lines
Quoted 2 lines

I would say no, since nothing in OE-Core depends on it. more we abstract from host system better it is.

I'm with Martin on this one, let's not make it painful for people to use the SSH protocol in git URLs in their recipes. I don't see much potential for host contamination.

Standard distro do not install ssh, if we want to add it here, probably we should at the same time let user know that he should install ssh

We have had certificate and cypto algorithms issues with openssh based on host distros, where we have added customized sshd_config and ssh_config,

but, I dont have strong opinion either way

#6 lore raw
Quoted 22 lines · Khem Raj
Quoted 2 lines · Paul Eggleton
Quoted 1 line · NZDT Khem Raj

On Wed, Oct 11, 2017 at 6:56 PM, Martin Jansa <[email protected]>

Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line

On Mon, Oct 09, 2017 at 09:09:31AM +0000, [email protected]

Quoted 8 lines · wrote:
Quoted 8 lines
Quoted 8 lines

meta/conf/bitbake.conf HOSTTOOLS += " \ · line 487

Quoted 8 lines
meta/conf/bitbake.conf +1 -1
@@ -484,7 +484,7 @@ HOSTTOOLS += " \
 "
 
 # Tools needed to run testimage runtime image testing
-HOSTTOOLS += "ip ping ps scp ssh stty"
+HOSTTOOLS += "${@['', 'ip ping ps scp ssh

stty'][bb.data.inherits_class('testimage', d)]}"

Quoted 6 lines
Quoted 5 lines
Quoted 2 lines

Shouldn't we include at least ssh by default?

I would say no, since nothing in OE-Core depends on it. more we abstract from host system better it is.

Quoted 7 lines
Quoted 3 lines

I'm with Martin on this one, let's not make it painful for people to use the SSH protocol in git URLs in their recipes. I don't see much potential for host contamination.

Standard distro do not install ssh, if we want to add it here, probably we should at the same time let user know that he should install ssh

That's what HOSTTOOLS_NONFATAL is for. Who is going to claim the glory and post a patch?

Ross

#7 lore raw

I just got bunch of do_fetch errors from components using
git://....;protocol=ssh

So it isn't just the sanity check and CONNECTIVITY_CHECK_URIS, it's everywhere where git-native (by default in ASSUME_PROVIDED) is used with ssh.

Quoted 45 lines · Ross
Quoted 22 lines · Khem Raj
Quoted 2 lines · Paul Eggleton
Quoted 1 line · NZDT Khem Raj

On Wed, Oct 11, 2017 at 6:56 PM, Martin Jansa <[email protected]>

Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line

On Mon, Oct 09, 2017 at 09:09:31AM +0000, [email protected]

Quoted 8 lines · wrote:
Quoted 8 lines
Quoted 8 lines

meta/conf/bitbake.conf HOSTTOOLS += " \ · line 487

Quoted 8 lines
meta/conf/bitbake.conf +1 -1
@@ -484,7 +484,7 @@ HOSTTOOLS += " \
 "
 
 # Tools needed to run testimage runtime image testing
-HOSTTOOLS += "ip ping ps scp ssh stty"
+HOSTTOOLS += "${@['', 'ip ping ps scp ssh

stty'][bb.data.inherits_class('testimage', d)]}"

Quoted 6 lines
Quoted 5 lines
Quoted 2 lines

Shouldn't we include at least ssh by default?

I would say no, since nothing in OE-Core depends on it. more we abstract from host system better it is.

Quoted 8 lines
Quoted 2 lines

I'm with Martin on this one, let's not make it painful for people to use the SSH protocol in git URLs in their recipes. I don't see much

potential

Quoted 1 line

for host contamination.

Standard distro do not install ssh, if we want to add it here, probably we should at the same time let user know that he should install ssh

That's what HOSTTOOLS_NONFATAL is for. Who is going to claim the glory and post a patch?

Ross

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#8 lore raw
Quoted 6 lines · Martin Jansa

I just got bunch of do_fetch errors from components using
git://....;protocol=ssh

So it isn't just the sanity check and CONNECTIVITY_CHECK_URIS, it's everywhere where git-native (by default in ASSUME_PROVIDED) is used with ssh.

right, I realised that it wont make the situation worse, then it was in last release,

Quoted 50 lines · Ross
Quoted 47 lines · Khem Raj
Quoted 29 lines
Quoted 17 lines · Paul Eggleton
Quoted 16 lines · NZDT Khem Raj
Quoted 13 lines · Martin Jansa
Quoted 9 lines · On Mon, Oct 09, 2017 at 09:09:31AM +0000, [email protected] wrote:
meta/conf/bitbake.conf +1 -1
@@ -484,7 +484,7 @@ HOSTTOOLS += " \
 "
 
 # Tools needed to run testimage runtime image testing
-HOSTTOOLS += "ip ping ps scp ssh stty"
+HOSTTOOLS += "${@['', 'ip ping ps scp ssh

stty'][bb.data.inherits_class('testimage', d)]}"

Shouldn't we include at least ssh by default?

Quoted 8 lines
Quoted 2 lines

I would say no, since nothing in OE-Core depends on it. more we abstract from host system better it is.

I'm with Martin on this one, let's not make it painful for people to use
the SSH protocol in git URLs in their recipes. I don't see much potential
for host contamination.

Quoted 3 lines

Standard distro do not install ssh, if we want to add it here, probably we
should at the same time let user know that he should install ssh

That's what HOSTTOOLS_NONFATAL is for. Who is going to claim the glory and post a patch?

Ross

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#9 lore raw

I've created YOCTO#12227 (https://bugzilla.yoctoproject.org/show_bug.cgi?id=12227).
And I've sent out a patch, adding ssh to HOSTTOOLS_NONFATAL.
Another way to fix things up is to add ssh to HOSTTOOLS and change QuickStart accordingly. Either way is acceptable for me.
I'm using the first solution as I'm slightly leaning to it.

Best Regards,
Chen Qi

Quoted 51 lines · Khem Raj
Quoted 6 lines · Martin Jansa

I just got bunch of do_fetch errors from components using
git://....;protocol=ssh

So it isn't just the sanity check and CONNECTIVITY_CHECK_URIS, it's everywhere where git-native (by default in ASSUME_PROVIDED) is used with ssh.

right, I realised that it wont make the situation worse, then it was in last release,

Quoted 41 lines · Ross
Quoted 40 lines · Khem Raj
Quoted 19 lines
Quoted 17 lines · Paul Eggleton
Quoted 16 lines · NZDT Khem Raj
Quoted 7 lines · Martin Jansa
Quoted 5 lines · On Mon, Oct 09, 2017 at 09:09:31AM +0000, [email protected] wrote:
meta/conf/bitbake.conf +0 -0
@@ -484,7 +484,7 @@ HOSTTOOLS += " \
  "
 
Quoted 5 lines
Quoted 4 lines
meta/conf/bitbake.conf +1 -1
  # Tools needed to run testimage runtime image testing
-HOSTTOOLS += "ip ping ps scp ssh stty"
+HOSTTOOLS += "${@['', 'ip ping ps scp ssh

stty'][bb.data.inherits_class('testimage', d)]}"

Shouldn't we include at least ssh by default?

I would say no, since nothing in OE-Core depends on it. more we abstract from host system better it is.

Quoted 8 lines
Quoted 5 lines

I'm with Martin on this one, let's not make it painful for people to use
the SSH protocol in git URLs in their recipes. I don't see much potential
for host contamination.

Standard distro do not install ssh, if we want to add it here, probably we
should at the same time let user know that he should install ssh

That's what HOSTTOOLS_NONFATAL is for. Who is going to claim the glory and post a patch?

Ross

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#10 lore raw
In reply to Martin Jansa
Quoted 52 lines · Martin Jansa
Quoted 28 lines · On Mon, Oct 09, 2017 at 09:09:31AM +0000, [email protected] wrote:

This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 8ca61a5464743ff85b6d26886112750d6ddd13e0
Author: Chen Qi <[email protected]>
AuthorDate: Sat Sep 30 16:15:42 2017 +0800

bitbake.conf: add tools required by testimage to HOSTTOOLS conditionally

Add tools required by testimage to HOSTTOOLS only when testimage is inherited. These tools, as described in the comment, are only required by the testimage task. So this change should not have negtive effect. This would also solve build error on hosts which miss some tool such as scp.

---
  meta/conf/bitbake.conf | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/bitbake.conf +0 -0
index 6f53b23..0eefb86 100644

meta/conf/bitbake.conf HOSTTOOLS += " \ · line 487

Quoted 5 lines
meta/conf/bitbake.conf +1 -1
@@ -484,7 +484,7 @@ HOSTTOOLS += " \
  "
 
  # Tools needed to run testimage runtime image testing
-HOSTTOOLS += "ip ping ps scp ssh stty"
+HOSTTOOLS += "${@['', 'ip ping ps scp ssh stty'][bb.data.inherits_class('testimage', d)]}"

Shouldn't we include at least ssh by default?

I have some builds where CONNECTIVITY_CHECK_URIS contains private git repo (to make sure that users configured their git + ssh correctly before starting the build) and since this change it fails, because of missing ssh:

ERROR: OE-core's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf). Following is the list of potential problems / advisories:

Fetcher failure: Fetch command export PATH="...snip.../hosttools"; export HOME="/home/jenkins"; git -c core.fsyncobjectfiles=0 ls-remote ssh://foo.com/bar/repo failed with exit code 128, output:
error: cannot run ssh: No such file or directory
fatal: unable to fork
.
Please ensure your host's network is configured correctly,
or set BB_NO_NETWORK = "1" to disable network access if
all required sources are on local disk.

Quoted 4 lines

I know I can add ssh locally, but do we really need to be so strict here? We already include git and git might need ssh.

Regards,

Hi Martin,

The problem is mainly about documentation. We need to keep codes and docs in sync.

We have in our documentation (QuickStart) a list of software necessary to use basic yocto functionality.

e.g.

/Ubuntu and Debian/

     $ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
     build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \
     xz-utils debianutils iputils-ping libsdl1.2-dev xterm

I have hosts that only have the above packages installed. Thus I was meeting error when trying to build something, as ssh and scp are not available.

I'm OK with adding ssh into default HOSTTOOLS, but we need to keep documentation in sync with the codes. (e.g. adding openssh-client into the above list.)

Best Regards,
Chen Qi

Quoted 11 lines
Quoted 11 lines
meta/conf/bitbake.conf +0 -0
  # Link to these if present
  HOSTTOOLS_NONFATAL += "aws ccache gcc-ar gpg ld.bfd ld.gold nc sftp socat sudo"
 
Signature · 7 lines
To stop receiving notification emails like this one, please contact
the administrator of this repository.
-- 
_______________________________________________
Openembedded-commits mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-commits