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#15969 - [pacman] Additional warnings
Attached to Project:
Pacman
Opened by Kyle Keen (keenerd) - Monday, 17 August 2009, 20:56 GMT
Last edited by Xavier (shining) - Monday, 07 September 2009, 14:26 GMT
Opened by Kyle Keen (keenerd) - Monday, 17 August 2009, 20:56 GMT
Last edited by Xavier (shining) - Monday, 07 September 2009, 14:26 GMT
|
DetailsDescription:
There is a gap in all of Arch's documentation regarding an undefined behavior in pacman. This behavior is mostly undocumented. The Beginner's Guide does not even tell you it is bad, but rather uses the undefined behavior in examples and implies that all packages should be installed by these means. The man page also makes no mention of it. Needless to say, it is not common knowledge, but somehow implied by Arch's nature. It would almost be an amusing right of passage, if it were not so easy to brick your system using this command. While all the documentation could be corrected, it would be more effective to add a warning to pacman whenever someone attempts the horrible action. For example: $ pacman -Sy python Warning: You are synchronizing without updating. Recommend running "pacman -Syu python". Additional info: * package version(s) * config and/or log files etc. Steps to reproduce: |
This task depends upon
Closed by Xavier (shining)
Monday, 07 September 2009, 14:26 GMT
Reason for closing: Won't implement
Additional comments about closing: see last comment
Monday, 07 September 2009, 14:26 GMT
Reason for closing: Won't implement
Additional comments about closing: see last comment
s/right/rite/g
Silly spell check.
Though there was a request for it :
FS#15581, but there is no indication that this will be implementedAnyway, this request looks as strange to me as the other one.
pacman -Sy python is exactly the same as pacman -Sy; pacman -S python
How can you prevent the latter?
Didn't we run into similar problems in the past? I doubt the last readline/libjpeg rebuilds were the first ones.
I also doubt all dependencies were very precise before, and aren't anymore.
Xavier, I was an Arch user for three years before I even heard of this problem. Even after the libjpeg/libreadline incident, there has not been any effort to inform users. (Or even mention the it in the documentation!) Unless users follow the lists/boards, this will just happen again every year or so.
Communicating to users seems to be a big issue all around. After using Arch for two years, I heard that "you should check archlinux.org every time before updating". This is preposterous. Pacman does not make me find dependencies, why does it make me find news?
I get the feeling that this current request will sit for a while, with a few valid (but unconfirmed) reasons against it, until it is closed due to indecision. My next request will be one that design-by-committee will love, and hopefully it will get through. Basically, every "pacman -Sy" or "pacman -Su" should ping out to "archlinux.org/recent_news.txt". New news? Echo it out, automatically. The devs can then inform the entire Arch userbase in a fell swoop, even if the person does not follow Arch development. Other distros would point it to their own news.
By the way, this can almost be emulated using the current system. Just make an archlinux-news package, completely empty and only containing a post-install message. Give it the same special privilege of pacman, so that it forces itself to update first. Opting out would be easy, just remove the package. I will put something basic on the AUR, along the lines of "alunn", but for pacman/console.
And the wiki is maintained by the community, i.e. the users. It's up to you to fix it :)
Regarding automatic news:
Packaging and SyncFirst-ing the news won't work, then there will just be a constant nag cycle of "News has updated, would you like to update this first?". And then people will just opt out. Working on a patch for pacman...
It is indeed very likely after reading the wiki, which is NOT maintained by the developers, but by the community, which means YOU.
Don't bother transforming pacman into a news notifier, this will never be accepted. But things like alunn are fine. For the console, there should be rss feedreader for the console. Feel free to use one.
Otherwise, there is an ongoing discussion about how to make the dependency system more robust :
http://www.archlinux.org/pipermail/pacman-dev/2009-August/009158.html
* arch wiki has to be fixed by the community (for instance I checked and rephrased this section : http://wiki.archlinux.org/index.php/Enhancing_Arch_Linux_Stability#Avoid_Certain_Pacman_Commands)
* if someone really needs automatic warnings, your own wrapper takes care of that now : http://kmkeen.com/pacmatic/
So I consider this task closed :)
Pacmatic is a prototype of what some of the proposed fixes could look like / integrate into pacman. Think of it as attached code for the feature request, and it is only on the AUR to speed up finding bugs. Also, there are a slew of "bugs" (gaps and inconsistencies, really) in pacman that make wrapping certain operations impossible. Things would be much smoother as a first class component of pacman.
The problem is with the packages.
Ironically, the usage of only forward versioned dependencies seem to do more harm than good.
But the usage of strict/accurate dependencies could be automated, as seen in :
http://www.linux-archive.org/archlinux-pacman-development/352524-add-support-so-dependencies.html
You might want to open a feature request for this "so deps" stuff, after reading the whole discussion, if you understand and support the idea.
More generally, here are the different ways I see to deal with this issue :
- fix the packages (either manually or with features like sodepends)
- change your way of using arch, by doing systematic system upgrade (-Syu)
- change distribution