Closed nicoulaj closed 5 years ago
Hey, this isn't really an aurto issue as the behaviour still happens if you manually call the aurutils command aur sync --no-view --no-confirm --chroot --database=aurto --makepkg-conf=/etc/aurto/makepkg-chroot.conf python-usbtmc
In most cases this won't be an aurutils issue either, more likely a PKGBUILD issue.
In this case the problem is building using a clean chroot, this environment does not already have python installed.
The PKGBUILD has
package_python-usbtmc() {
depends=('python' 'python-pyusb')
cd "$srcdir/python-usbtmc-$pkgver"
python setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1
install -m 0644 -D usbtmc.rules $pkgdir/etc/udev/rules.d/40-usbtmc.rules
}
This is not going to work in chroot, because in the same function that it's declared that python is a dependency, python is actually executed.
I don't really see why it would be different for a chroot build compared to a "classic" AUR helper, I believe it should collect dependencies from the SRCINFO
, which looks correct to me ? That's what yay
does.
Anyway, I agree the issue seems to be more on aurutils side, I will file an issue there.
Got some explanation on IRC:
│coderobe │ nicoulaj: neither, the pkgbuild is broken
│ ⤷ │ Missing python as build dep
│ ⤷ │ Depends added in package are not considered build deps
│ ⤷ │ That's makepkg's call to make and definitely not a bug of any wrapper
│ ⤷ │ Helpers building this in a clean chroot without failure would be broken behavior
│ ⤷ │ makedepends should be python and python2
Sorry for the inconvenience and thanks!
The
python-usbtmc
package fails to build:It seems the
python
dependency does not get installed in the chroot:The PKGBUILD looks correct to me though ?
My guess is that dependencies declared in
package()
are not installed at all, can't see any trace ofpython-pyusb
in the chroot either: