Patchwork bitbake.conf: FETCHCMD_svn add --non-interactive --trust-server-cert

login
register
mail settings
Submitter Martin Jansa
Date Sept. 4, 2012, 9:09 a.m.
Message ID <1346749751-25699-1-git-send-email-Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/35789/
State Accepted
Commit 8f1cedaaafd1248e77db84ac238fa88a318df2e9
Headers show

Comments

Martin Jansa - Sept. 4, 2012, 9:09 a.m.
* now with subversion-native we know those 2 options are supported
* with https protocol used for SVN checkouts we cannot confirm certificate and do_fetch fails
  Error validating server certificate for 'https://foo:443':
  - The certificate is not issued by a trusted authority. Use the
    fingerprint to validate the certificate manually!
    Certificate information:
    ...
    (R)eject, accept (t)emporarily or accept (p)ermanently? svn: E175002: Unable to connect to a repository at URL 'https://foo/trunk'
    svn: E175002: OPTIONS of 'https://foo/trunk': Server certificate verification failed: issuer is not trusted (https://foo)
    ERROR: Function failed: Fetcher failure for URL: 'svn://foo;protocol=https;module=trunk'. Unable to fetch URL from any source.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/conf/bitbake.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Richard Purdie - Sept. 4, 2012, 12:38 p.m.
On Tue, 2012-09-04 at 11:09 +0200, Martin Jansa wrote:
> * now with subversion-native we know those 2 options are supported
> * with https protocol used for SVN checkouts we cannot confirm certificate and do_fetch fails
>   Error validating server certificate for 'https://foo:443':
>   - The certificate is not issued by a trusted authority. Use the
>     fingerprint to validate the certificate manually!
>     Certificate information:
>     ...
>     (R)eject, accept (t)emporarily or accept (p)ermanently? svn: E175002: Unable to connect to a repository at URL 'https://foo/trunk'
>     svn: E175002: OPTIONS of 'https://foo/trunk': Server certificate verification failed: issuer is not trusted (https://foo)
>     ERROR: Function failed: Fetcher failure for URL: 'svn://foo;protocol=https;module=trunk'. Unable to fetch URL from any source.
> 
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> ---
>  meta/conf/bitbake.conf | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Merged to master, thanks.

Richard

Patch

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 1d56813..161cdaf 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -578,7 +578,7 @@  XORG_MIRROR = "http://xorg.freedesktop.org/releases"
 #  export DEBIAN_MIRROR = "ftp://ftp.de.debian.org/debian/pool"
 #     into your local.conf
 
-FETCHCMD_svn = "/usr/bin/env svn"
+FETCHCMD_svn = "/usr/bin/env svn --non-interactive --trust-server-cert"
 FETCHCMD_cvs = "/usr/bin/env cvs"
 FETCHCMD_wget = "/usr/bin/env wget -t 2 -T 30 -nv --passive-ftp --no-check-certificate"
 FETCHCMD_bzr = "/usr/bin/env bzr"