FS#63146 - [pacman] restricting versions of dependencies does not work as expected

Attached to Project: Arch Linux
Opened by Stephan S (buzo) - Wednesday, 10 July 2019, 16:02 GMT
Last edited by Dave Reisner (falconindy) - Wednesday, 10 July 2019, 16:05 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
https://wiki.archlinux.org/index.php/PKGBUILD#depends states that you can have two version restrictions in depends: e.g. depends=('foobar>=1.8.0' 'foobar<2.0.0').

This does not work for me: I tried depends=(… 'java-environment>=8' 'java-environment<12' …) and makedepends=(… 'java-environment>=8' 'java-environment<12'), but I ended with having two versions installed in the build chroot:

==> Making package: tuxguitar 1.5.2_r1800-2 (Wed 10 Jul 2019 01:00:30 PM CEST)
==> Checking runtime dependencies...
==> Installing missing dependencies...
:: There are 4 providers available for java-runtime>=8:
:: Repository extra
1) jre-openjdk 2) jre10-openjdk 3) jre11-openjdk 4) jre8-openjdk

Enter a number (default=1):
:: There are 4 providers available for java-runtime<12:
:: Repository extra
1) jre10-openjdk 2) jre11-openjdk 3) jre7-openjdk 4) jre8-openjdk

Enter a number (default=1):
resolving dependencies...

From there on it seams undefined which version will be used.

Steps to reproduce:

See https://aur.archlinux.org/pkgbase/tuxguitar/
Check out the version from 2019-04-29, add the mentioned dependencies and build in a clean chroot.
This task depends upon

Closed by  Dave Reisner (falconindy)
Wednesday, 10 July 2019, 16:05 GMT
Reason for closing:  Duplicate
Additional comments about closing:  FS#63086

Loading...