On Monday 01 September 2008 18:43:35 Dale wrote: > Nikos Chantziaras wrote: > > Matthew R. Lee wrote: > >> Yesterday I was having problems with a few packages, like openoffice, > >> because of java issues. The advice I found to correct the problem was > >> to run python-updater, which I did. It reemerged 33 packages one of > >> which was alsa-libs. It reemerged alsa-lib, it did not upgrade it. > > > > This should fix it: > > > > revdep-rebuild -X -i --ask > > > > the problem seems to be a link problem with the ALSA lib. When you > > hear "link problem", revdep-rebuild is the solution most of the time. > > It will rebuild packages that use the ALSA lib. > > I ran into this the other day. It doesn't like the -a or --ask option. > > [EMAIL PROTECTED] / # revdep-rebuild -i --ask > > Encountered unrecognized option --ask. > > revdep-rebuild no longer automatically passes unrecognized options to > portage. > Separate emerge-only options from revdep-rebuild options with the -- flag. > > For example, revdep-rebuild -v -- --ask ^^^^^^^^^^^^^^^^^^^^^^^^^^ You missed this bit. It's working as designed.
Command line parsers are written this way to avoid option conflicts. If revdep-rebuild and emerge both have -a options, which one should be used? Logic says it should be revdep-rebuild gets the -a option but what if you do want to pass it to emerge? That's why there's a "--" and why you have to use it -- alan dot mckinnon at gmail dot com