oasislinux / oasis

a small statically-linked linux system
Other
2.75k stars 84 forks source link

`ninja commit` fails fetching `pkg/openbsd` #71

Closed TheGag96 closed 6 months ago

TheGag96 commented 7 months ago

After running ninja build after doing all the setup in the wiki, I get:

[0/3318]        FETCH   pkg/zlib
Submodule 'pkg/zlib/src' (https://github.com/madler/zlib) registered for path 'src'
Cloning into '<build path>/src/oasis/pkg/zlib/src'...
Submodule path 'src': checked out '09155eaa2f9270dc4ed1fa13e2b4b2613e6e4851'
[6/3318]        FETCH   pkg/openbsd
src.tar.gz: FAILED open or read
sys.tar.gz: FAILED open or read
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (60) SSL: no alternative certificate subject name matches target host name 'fastly.cdn.openbsd.org'
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (60) SSL: no alternative certificate subject name matches target host name 'fastly.cdn.openbsd.org'
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
Warning: Got more output options than URLs
[26/3318]       CC      out/pkg/curl/lib/curl_memrchr.c.o
FAILED: pkg/openbsd/fetch 
cd . && sh $OLDPWD/./pkg/openbsd/fetch.sh pkg/openbsd && touch $OLDPWD/pkg/openbsd/fetch
[44/3318]       CC      out/pkg/zlib/deflate.c.o
ninja: build stopped: subcommand failed.

The host's certs are bad?

rnpnr commented 7 months ago

Yep, it would probably be wise to switch the urls to https://cdn.openbsd.org/pub/OpenBSD/ instead. On the other hand you can just manually download those files (src.tar.gz and sys.tar.gz) into pkg/openbsd. The hash is stored in the repo so there isn't much of an integrity issue.