Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#28007 - [pacman] 'provides' is ignored?

Attached to Project: Pacman
Opened by Artem Sheremet (dot) - Thursday, 19 January 2012, 22:54 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 22 January 2012, 14:23 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

pacman seems to ignore what installed package provides and require the installation of original package in any case.

Additional info:

* package version(s)
pacman 4.0.1-4

* config and/or log files etc.

$ pacman -Qi linux-ck-headers | grep Provides
Provides : linux-ck-headers=3.2.1 linux-headers=3.2.1

$ sudo pacman -Rn linux-headers
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: dkms: requires linux-headers

$ pacman -Si dkms | grep Depends
Depends On : linux-headers

# we see that linux-ck-headers provides linux-headers, but when it comes to removing unrequired now linux-headers, it complains about dependencies
# The same happens when attempting to install 'dkms' with only linux-ck-headers: it claims to install linux-headers before to satisfy deps.
# Am I missing something?
This task depends upon

Closed by  Dave Reisner (falconindy)
Sunday, 22 January 2012, 14:23 GMT
Reason for closing:  Not a bug
Comment by Dave Reisner (falconindy) - Saturday, 21 January 2012, 00:45 GMT
Works for me. I faked the header provide in another package, installed dkms, and I can uninstall linux-headers:

# pacman -Qi linux | grep Provides
Provides : kernel26 linux-headers=3.2.1
# pacman -Q dkms
dkms 2.2.0.3-1
# pacman -R linux-headers
checking dependencies...

Targets (1): linux-headers-3.2.1-1

Total Removed Size: 44.78 MiB

Do you want to remove these packages? [Y/n]
(1/1) removing linux-headers [######################] 100%


Also, broken AUR package is broken. linux-ck-headers can't possibly provide linux-headers.
Comment by Artem Sheremet (dot) - Saturday, 21 January 2012, 01:21 GMT
That's because I've edited PKGBUILD before building linux-ck, so linux-ck provides linux for me, and linux-ck-headers provides linux-headers (actually I see no reason why maintainers won't do this). If it can wait I would try to investigate it deeper tomorrow and provide more information and probably some steps to reproduce. Thanks!
Comment by Artem Sheremet (dot) - Sunday, 22 January 2012, 09:46 GMT
Sorry, it was actually mine. Looks like that day when editing PKGBUILD I've set provides to ('linux-ck-headers linux-headers') instead of ('linux-ck-headers' 'linux-headers') and fooled myself and pacman at once. Anyway rebuilt with the correct syntax and it works now. Sorry again.

Loading...