From 9fcc0c4460ac80a3c18a86549aa368bcecf5988c Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Tue, 6 Jul 2021 15:46:23 +0200 Subject: libre: uboot4extlinux-sunxi: fix missing python-setuptools When building uboot4extlinux-sunxi with libremakepkg we have the following error: | BINMAN all | Traceback (most recent call last): | File "/build/uboot4extlinux-sunxi/src/u-boot-2021.07/./tools/binman/binman", line 39, in | from binman import control | File "/build/uboot4extlinux-sunxi/src/u-boot-2021.07/tools/binman/../binman/control.py", line 11, in | import pkg_resources | ModuleNotFoundError: No module named 'pkg_resources' | make: *** [Makefile:1084: all] Error 1 | ==> ERROR: A failure occurred in build(). In u-boot 2021.07 in tools/binman/control.py, line 11 we have: import pkg_resources To find the package having pkg_resources we can use python to find the files implementing it: $ python Python 3.9.5 (default, May 27 2021, 07:33:37) [GCC 11.1.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import pkg_resources >>> help(pkg_resources) At the end of the help we see the following: FILE /usr/lib/python3.9/site-packages/pkg_resources/__init__.py And we can finally use pacman to find the package having that file: $ pacman -Q -o /usr/lib/python3.9/site-packages/pkg_resources/__init__.py /usr/lib/python3.9/site-packages/pkg_resources/__init__.py is owned by python-setuptools 1:52.0.0-1.0 Signed-off-by: Denis 'GNUtoo' Carikli --- libre/uboot4extlinux-sunxi/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libre/uboot4extlinux-sunxi/PKGBUILD') diff --git a/libre/uboot4extlinux-sunxi/PKGBUILD b/libre/uboot4extlinux-sunxi/PKGBUILD index eb25d282a..78c9ead9e 100644 --- a/libre/uboot4extlinux-sunxi/PKGBUILD +++ b/libre/uboot4extlinux-sunxi/PKGBUILD @@ -60,7 +60,7 @@ pkgrel=2 arch=('armv7h' 'i686' 'x86_64') url="http://git.denx.de/u-boot.git/" license=('GPL') -makedepends=('bc' 'dtc' 'python' 'python2' 'swig') +makedepends=('bc' 'dtc' 'python' 'python-setuptools' 'python2' 'swig') makedepends_i686+=('arm-none-eabi-gcc') makedepends_ppc64le+=('arm-none-eabi-gcc') makedepends_x86_64+=('arm-none-eabi-gcc') -- cgit v1.2.3