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.
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.
FS#6636 - pacman -Sd should be permanent
Attached to Project:
Pacman
Opened by Scott H (stonecrest) - Monday, 19 March 2007, 05:39 GMT
Last edited by Dan McGee (toofishes) - Sunday, 17 February 2008, 19:53 GMT
Opened by Scott H (stonecrest) - Monday, 19 March 2007, 05:39 GMT
Last edited by Dan McGee (toofishes) - Sunday, 17 February 2008, 19:53 GMT
|
DetailsWhen a user installs a package with the -d flag, it seems that this should be a permanent action. Meaning that when the package updates in the future, the -d flag should continue to hold rather than having all its deps pulled in. Presumably if you didn't use dep-checking once, you wouldn't want it again.
|
This task depends upon
Closed by Dan McGee (toofishes)
Sunday, 17 February 2008, 19:53 GMT
Reason for closing: Won't implement
Additional comments about closing: Too complex for pacman and could lead to problems for users.
Sunday, 17 February 2008, 19:53 GMT
Reason for closing: Won't implement
Additional comments about closing: Too complex for pacman and could lead to problems for users.
1) I use pacman -Rd with gnome-python-extras because the systemtray support works perfectly without having to install a huge number of gnome deps.
Sure it could eventually cause breakage, but using pacman -Sd can cause breakage the very first time you use it too. If someone uses -Sd, they should know what they are doing (assuming, again, that they aren't doing pacman workarounds). And if you're not working around a pacman bug, what's the point of using -Sd when, on your next -Syu, it's going to retrieve all of a package's dependencies?
2) Also same result as permanent -Sd could be reached with improved IgnorePkg (http://bugs.archlinux.org/task/6430).
3)Nevertheless _automatic_ permanent -Sd can be implemented by putting '!' before dependency in /var/lib/pacman/local/<pkgname>/depends, i.e.:
%DEPENDS%
foo
!bar
In this way pacman won't lose track of dependencies while not installing them again and again on -Syu.
But will it be worthy to implement this for few very specific uses when there will be 1st & 2nd (which are useful on their own)?
Frankly, the easiest thing right now is to pacman -Sd gnome-python-extras each time that I see it updated.
Anyway, this looks like a wrong solution.
The idea of optional dependencies seems to be perfectly adapted to this use case.
But if in this specific case, the optional dependencies are not really optional, then the sanest thing to do here is making a second package imo.
Or maybe a smarter optional deps system could handle this also. For example, some optional deps could be installed by default at the first installation
of the package. And there could also be a way to specify exactly which optional deps to install.