aura icon indicating copy to clipboard operation
aura copied to clipboard

'checkdepends' is being ignored

Open Sematre opened this issue 4 years ago • 1 comments

Description

I tried to install mcstatus with sudo aura -Ax mcstatus but it failed to build. Log:

$ sudo aura -Ax mcstatus
aura >>= Determining dependencies...
aura >>= AUR Packages:
mcstatus
aura >>= Continue? [Y/n] y
aura >>= Building mcstatus...
==> Making package: mcstatus 5.1.4-1 (Mon 12 Apr 2021 12:02:41 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Missing dependencies:
  -> python-pytest
  -> python-pytest-asyncio
==> ERROR: Could not resolve all dependencies.
aura >>= There was a makepkg failure.
aura >>= Would you like to continue anyway? [Y/n] n
aura >>= Building failed.

I suppose this is being caused by the missing checkdepends on my system. Aura should have detected that.

PKGBUILD of mcstatus:

# Maintainer: Stephanie Wilde-Hobbs (RX14) <[email protected]>

pkgname=mcstatus
pkgver=5.1.4
pkgrel=1
pkgdesc="Provides an easy way to query Minecraft servers for any information they can expose."
arch=(any)
url="https://github.com/Dinnerbone/mcstatus"
license=('Apache')
depends=(python python-six python-click python-dnspython python-asyncio-dgram)
makedepends=(python-setuptools)
checkdepends=(python-mock python-pytest python-pytest-asyncio)
source=("https://github.com/Dinnerbone/mcstatus/archive/v${pkgver}.tar.gz")
sha256sums=('b090b5bdef6ff5e4d0eb03bb4ea939c8a93224fe8642a3d5fcc7b50e7fdcad85')

prepare() {
  cd "${srcdir}/mcstatus-${pkgver}"

  sed -i 's/dnspython3/dnspython/' requirements.txt
}


build() {
  cd "${srcdir}/mcstatus-${pkgver}"

  python setup.py build
}

check() {
  cd "${srcdir}/mcstatus-${pkgver}"

  python -m pytest
}

package() {
  cd "${srcdir}/mcstatus-${pkgver}"

  python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}

System

Version: Aura v3.2.4 - Pacman v5.2.2 - libalpm v12.0.2 OS: Manjaro Linux x86_64

Sematre avatar Apr 12 '21 10:04 Sematre

Thanks for reporting this, I've been noticing this too. For now you can pass --nocheck to make Aura's inner makepkg call avoid running the check() function (and thus those dependencies won't come into play).

fosskers avatar Apr 12 '21 20:04 fosskers