how to check versions which are based on date with pacman?
nona - over 2 years ago -
Hi!
I have this package (pacman -Qi)
Name : python-tifffile-git
Version : 2021.11.2.r0.g0eadc15-1
...
I need it for another package whose PKGBUILD has:
depends=(... 'python-tifffile>=2019.7.26')
(in both cases ... means removed contents).
When I try to build with makepkg, it tells me that
==> Missing dependencies:
-> python-tifffile>=2019.7.26
We know that 2021.11.2.r0.g0eadc15-1 >= 2019.7.26 . How does pacman check that? (it does not work with 2021.11.2 either). I know that I can change the PKGBUILD or avoid checks of the second package, but this keeps coming back for other packages, and I would like to know how to make it work. Thanks.
Replies (7)
RE: how to check versions which are based on date with pacman? - theova - over 2 years ago -
Hi!
I don't think that the version is the problem.
The second package needs python-tifffile, however, the first (python-tifffile -git ) does not seem to provide it.
You need to either install python-tifffile, or add a [[https://wiki.parabola.nu/PKGBUILD#provides]] line.
Hope this helps! Otherwise please attach the full output of pacman -Qi and the PKGBUILD to dig further into it.
RE: how to check versions which are based on date with pacman? - nona - over 2 years ago -
theova wrote:
...
The second package needs python-tifffile, however, the first (python-tifffile -git ) does not seem to provide it.
...
Otherwise please attach the full output of pacman -Qi and the PKGBUILD to dig further into it.
Thanks! I checked the `provides' line, indeed. Here is the data:
$ pacman -Qi python-scikit-image Name : python-scikit-image Version : 0.18.3-1 Description : Image processing routines for SciPy Architecture : x86_64 URL : http://scikit-image.org Licenses : BSD Groups : None Provides : None Depends On : python-numpy>1.18.0 python-scipy>=1.0.1 python-matplotlib>3.0.0 python-networkx>=2.0 python-pillow>7.1.1 python-pywavelets>=1.1.1 python-imageio>=2.3.0 python-tifffile>=2019.7.26 Optional Deps : python-pyqt5: for imshow[x, fancy=True] and skivi python-qtpy freeimage: for reading various types of image file formats python-pyamg: fast cg_mg mode of random walker segmentation python-astropy: Provides FITS I/O capability python-imread: Optional I/O plugin providing most standard formats python-simpleitk: Optional I/O plugin providing a wide variety of formats. including specialized formats using in medical imaging python-dask: used to speed up certain functions python-cloudpickle: necessary to provide the processes scheduler for dask Required By : None Optional For : None Conflicts With : None Replaces : None Installed Size : 29.41 MiB Packager : Unknown Packager Build Date : Install Date : Install Reason : Installed as a dependency for another package Install Script : No Validated By : None $ pacman -Qi python-tifffile-git Name : python-tifffile-git Version : 2021.11.2.r0.g0eadc15-1 Description : Read and write image data from and to TIFF files Architecture : any URL : https://github.com/cgohlke/tifffile Licenses : BSD Groups : None Provides : python-tifffile-git python-tifffile Depends On : python-numpy>=1.21 Optional Deps : python-matplotlib>=3.4.3: required only for plotting python-imagecodecs>=2021.8.26: required only for encoding or decoding LZW, JPEG, etc python-lxml>=4.6.3: required only for validating and printing XML python-zarr>=2.6.1: required only for opening zarr storage Required By : None Optional For : None Conflicts With : python-tifffile Replaces : None Installed Size : 1754.43 KiB Packager : Unknown Packager Build Date : Install Date : Install Reason : Explicitly installed Install Script : No Validated By : None
RE: how to check versions which are based on date with pacman? - theova - over 2 years ago -
Looking at the fact that you are able to provide pacman -Qi
outputs, it seems that you successfully built and installed the packets.
Is that correct?
RE: how to check versions which are based on date with pacman? - nona - over 2 years ago -
That is correct.
$ sudo pacman -U *.pkg.tar.xz loading packages... warning: python-scikit-image-0.18.3-1 is up to date -- reinstalling resolving dependencies... warning: cannot resolve "python-tifffile>=2019.7.26", a dependency of "python-scikit-image" :: The following package cannot be upgraded due to unresolvable dependencies: python-scikit-image :: Do you want to skip the above package for this upgrade? [y/N] N error: failed to prepare transaction (could not satisfy dependencies) :: unable to satisfy dependency 'python-tifffile>=2019.7.26' required by python-scikit-image $ sudo pacman -Ud *.pkg.tar.xz loading packages... warning: python-scikit-image-0.18.3-1 is up to date -- reinstalling resolving dependencies... looking for conflicting packages... Packages (1) python-scikit-image-0.18.3-1 Total Installed Size: 29.41 MiB Net Upgrade Size: 0.00 MiB :: Proceed with installation? [Y/n] Y
RE: how to check versions which are based on date with pacman? - nona - over 2 years ago -
Hi. I am kindly "bumping" this to bring attention to it. Thanks :) .
RE: how to check versions which are based on date with pacman? - bill-auger - over 2 years ago -
try specifying the version of 'python-tifffile' which 'python-tifffile-git' provides
provides=(python-tifffile=${pkgver})
'python-tifffile-git' can be removed from provides - it plays no role
RE: how to check versions which are based on date with pacman? - nona - over 2 years ago -
Thank you very much, bill. That did it: add the pkgver to the provides line :) .