]> code.ossystems Code Review - openembedded-core.git/commit
meson: improve SDK's wrapper to make Wraps work
authorLeif Middelschulte <leif.middelschulte@gmail.com>
Mon, 8 Nov 2021 14:04:29 +0000 (15:04 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 8 Nov 2021 22:01:53 +0000 (22:01 +0000)
commitafad2f09ebbfe395f8fafce8218e26056479fe39
tree5a1af320d2379baba38431c34f0fbaacb5c1fc34
parent4d75d6c39f1faeb38191b55f1fa9311b63fcfb29
meson: improve SDK's wrapper to make Wraps work

Meson, as provided by the SDK, would fail to fetch Wraps' sources on bare
systems (i.e. systems, that only provide little more than the SDK).

This change modifies the wrapper script so that it sets an environment
variable (unless it is already set) that is used to determine valid
certificates for secured connections.

It does not affect bitbake's interaction with meson.

The SDK's SSL directory was not searched, so meson would fail when it tried
to fetch sources via https, that were specified in wrap files.
Specifically `urllib` would fail:
```
<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)>
```

Caution: this patch depends on the underlying C library (i.e. openssl)
to consider this environment variable.

Signed-off-by: Leif Middelschulte <Leif.Middelschulte@klsmartin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/meson/meson/meson-wrapper