Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#30036 - [pacman] needs -d -R -d to skip dependency check

Attached to Project: Arch Linux
Opened by Clemens Buchacher (drizzd) - Sunday, 27 May 2012, 13:54 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 27 May 2012, 13:57 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I tried to remove blas 3.4.0, which depends on lapack 3.4.0, without uninstalling lapack (please see https://bugs.archlinux.org/task/30022 in case you wonder about my reasons for doing that). But it seems pacman will do so only if -d is passed twice, once on each side of -R. I would have expected for it to work with only one -d argument on either side.

Additional info:

pacman 4.0.3-1
lapack 3.4.0-1
blas 3.4.0-1

Steps to reproduce:

$ pacman -R -d blas
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: lapack: requires blas
:: suitesparse: requires blas

or

$ pacman -d -R blas
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: lapack: requires blas
:: suitesparse: requires blas

Expected result:

$ pacman -R -d blas

Targets (1): blas-3.4.0-1

Total Removed Size: 0.37 MiB

Do you want to remove these packages? [Y/n]

Oddly enough, pacman -d -R -d blas works.
This task depends upon

Closed by  Dave Reisner (falconindy)
Sunday, 27 May 2012, 13:57 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Working as intended
Comment by Dave Reisner (falconindy) - Sunday, 27 May 2012, 13:56 GMT
Or -ddR or -Rdd ... as per the manual. Working as intended.

TRANSACTION OPTIONS (APPLY TO -S, -R AND -U)
-d, --nodeps
Skips dependency version checks. Package names are still checked. Normally, pacman will always check a package’s dependency fields to ensure that all dependencies are installed and
there are no package conflicts in the system. Specify this option twice to skip all dependency checks.

Loading...