Files
buildroot/package/depot-tools/depot-tools.mk
Adam Duskett d1380f5863 package/depot-tools: fix running gclient.py
As of Buildroot commit [1] which updated
the python-httplib2 package from 0.22.0 to 0.31.0, gclient.py has
been broken due to the internal socks.py file being removed from
the httplib directory (in upstream commit [2]).

As the depot-tools package doesn't have a build step, and is only
used when generating a flutter-engine tarball, no autobuild failures
have occured.

Add a simple patch that changes `import httplib2.socks` to
`import socks` and depend on the host-python-pysocks package.

[1] 55a80f89d7
[2] 1a6ff78179

Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/12188741354

Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
[Julien:
 - change commit id to urls
 - add "Fixes:" link
]
Signed-off-by: Julien Olivain <ju.o@free.fr>
2025-11-24 20:42:13 +01:00

26 lines
731 B
Makefile

################################################################################
#
# depot-tools
#
################################################################################
DEPOT_TOOLS_VERSION = 097e20723774957f21ac6d1808fcd0a91e8c7630
DEPOT_TOOLS_SITE = https://chromium.googlesource.com/chromium/tools/depot_tools
DEPOT_TOOLS_SITE_METHOD = git
DEPOT_TOOLS_LICENSE = BSD-3-Clause
DEPOT_TOOLS_LICENSE_FILES = LICENSE
HOST_DEPOT_TOOLS_DEPENDENCIES = \
host-python3 \
host-python-httplib2 \
host-python-pyparsing \
host-python-pysocks \
host-python-six
define HOST_DEPOT_TOOLS_INSTALL_CMDS
mkdir -p $(HOST_DIR)/share/depot_tools
cp -dprf $(@D)/* $(HOST_DIR)/share/depot_tools/
endef
$(eval $(host-generic-package))