public inbox for bitbake-devel@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH 0/4] fetch2: add alternative fetch method based on curl
@ 2026-03-05 15:32 Pascal Eberhard via B4 Relay
  2026-03-05 15:32 ` [PATCH 1/4] fetch2: add curl method to fetch web content Pascal Eberhard via B4 Relay
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Pascal Eberhard via B4 Relay @ 2026-03-05 15:32 UTC (permalink / raw)
  To: bitbake-devel; +Cc: Pascal Eberhard

wget fetch method is used for web downloads with http, https, ftp, ftps
protocols. wget cmdline tool is missing some features such as hostname
resolution by the proxy when using SOCKS5 proxy. SSH tunnel provides
this feature for example.

This curl fetch method is based on curl cmdline tool and provides the
same protocols as wget and supports SOCKS5 hostname resolution.
This class inherits wget method in order to avoid code duplication as
much as possible.

wget remains the default download method. curl fetch method can be
enabled by setting a new bitbake variable:
  BB_FETCH_METHOD_HTTP = "curl"

The hostname resolution by SOCKS5 proxy is activated by setting
environment variable:
  all_proxy="socks5h://...""

a patch on ce-core will be sent if this proposal is accepted to
conditionnaly add curl to HOSTTOOLS variable in meta/conf/bitbake.conf:
HOSTTOOLS += "${@bb.utils.contains('BB_FETCH_METHOD_HTTP', 'curl', 'curl','', d)}"

Signed-off-by: Pascal Eberhard <pascal.eberhard@se.com>
---
Pascal Eberhard (4):
      fetch2: add curl method to fetch web content
      fetch2: make curl method activable with BB_FETCH_METHOD_HTTP
      lib/tests/fetch2: add tests for curl method
      doc: bitbake-user-manual-ref-variables: describe BB_FETCH_METHOD_HTTP variable

 .../bitbake-user-manual-ref-variables.rst          |   5 +
 lib/bb/fetch2/__init__.py                          |   2 +
 lib/bb/fetch2/curl.py                              | 162 +++++++++++++++++++++
 lib/bb/fetch2/wget.py                              |  10 ++
 lib/bb/tests/fetch.py                              |  68 +++++++++
 5 files changed, 247 insertions(+)
---
base-commit: 48efc36b4e03f736e7521d269ced3417522784e9
change-id: 20260305-add_alt_fetch_method_curl-7a0bf96ad223

Best regards,
-- 
Pascal Eberhard <pascal.eberhard@se.com>




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-03-09  7:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-05 15:32 [PATCH 0/4] fetch2: add alternative fetch method based on curl Pascal Eberhard via B4 Relay
2026-03-05 15:32 ` [PATCH 1/4] fetch2: add curl method to fetch web content Pascal Eberhard via B4 Relay
2026-03-09  7:40   ` [bitbake-devel] " Mathieu Dubois-Briand
2026-03-05 15:32 ` [PATCH 2/4] fetch2: make curl method activable with BB_FETCH_METHOD_HTTP Pascal Eberhard via B4 Relay
2026-03-05 15:32 ` [PATCH 3/4] lib/tests/fetch2: add tests for curl method Pascal Eberhard via B4 Relay
2026-03-05 15:32 ` [PATCH 4/4] doc: bitbake-user-manual-ref-variables: describe BB_FETCH_METHOD_HTTP variable Pascal Eberhard via B4 Relay
2026-03-05 18:09 ` [bitbake-devel] [PATCH 0/4] fetch2: add alternative fetch method based on curl Paul Barker
2026-03-06  8:40   ` Pascal EBERHARD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox