archlinuxfr / yaourt

[unmaintained] A Pacman frontend with more features and AUR support
598 stars 98 forks source link

Split packages dependencies not detected #85

Open ikuraj opened 9 years ago

ikuraj commented 9 years ago

I had a lot of issues with installing some python split packages, e.g. python-novaclient. I could not make yaourt recognize the dependencies for either of the contained packages. I tried yaourt python-novaclient and yaourt --pkg python-novaclient -S python-novaclient without success. I get a warning:

==> WARNING: This PKGBUILD describes a splitted package.
==> Specific package options are unknown

Package builds without errors, but during install I get:

warning: cannot resolve "python-oslo-utils>=1.0.0", a dependency of "python-novaclient"
warning: cannot resolve "python-keystoneclient>=0.10.0", a dependency of "python-novaclient"
:: The following package cannot be upgraded due to unresolvable dependencies:
python-novaclient

:: Do you want to skip the above package for this upgrade? [y/N] 

The solution I had to employ was to build every split package in the dependency tree (not just direct children) manually, before installing split packages themselves (and finally the python-novaclient package).

Is there a problem in the PKGBUILD of these packages or yaourt cannot currently handle such dependencies correctly?

andybotting commented 9 years ago

I've also been suffering with this, especially installing the OpenStack client packages.

Anarky commented 9 years ago

I have the same problem with python2-neovim; I believe it is tied with this bug report of makepkg: https://bugs.archlinux.org/task/42191

larchunix commented 8 years ago

I have opened a PR which should fix this issue. Could you test #227 please ?

larchunix commented 8 years ago

On second thought, it wasn't the right way to fix this so I discarded the PR.

carlwgeorge commented 7 years ago

The PKGBUILD specification states that the depends array can be inside the package function. Yaourt does not work when that is the case, and thus is not following the specification. That is a serious flaw that needs to be addressed. Many users experience this issue and comment on the AUR stating that PKGBUILDs are broken, when in fact it is yaourt that is broken.