Willie Wong wrote:

>On Thu, Nov 24, 2005 at 11:01:43AM -0800, glen martin wrote:
>  
>
>>Seems a truism, but you're right. apache isn't in my world file. 
>>somehow. And adding it to my world file does work around the symptom I
>>describe.
>>
>>This begs the question of why it isn't there, considering it is
>>installed. I must wonder, what else that I've installed has somehow not
>>been added to the world file.  Perhaps I'm exposing my ignorance, but is
>>the world file not supposed to have everything that is installed and not
>>in the base system definition?  Under what circumstances (other than
>>failed/aborted emerge, which didn't happen) could something fail to go
>>into world?
>>    
>>
>
>simple. Maybe you installed apache with 'emerge --oneshot' which
>doesn't modify the world file. Maybe apache was installed as a
>dependency of something else, and that something else has since got
>removed. 
>
Ok, so ignorance. :)

I've tracked down what happened and offer it up as a lesson.

I installed apache as a dependency of metadot. Metadot itself is masked
by ~x86, so I did that install with
   ACCEPT_KEYWORDS="~x86" emerge metadot
a syntax I picked up from a HOWTO or FAQ or article someplace.

metadot was in the world file, but because it has no unmasked version,
without ~x86 it has no dependencies. So apache was not required by
"anything else in the system". Indeed, depclean offered to remove it,
despite the fact that it was in use, indeed was currently being used by
an active service.

On reflection, the right way to install metadot was not to use the
syntax above, but probably instead to use /etc/portage/package.keywords
to specify the ~x86 keyword for metadot permanently.  Certainly
post-install, setting this caused --newuse to correspond better to my
expectations.

Thanks again to those whose suggestions and comments helped in tracking
this down.

As an aside, I wonder whether it is a good feature idea that
  ACCEPT_KEYWORDS="<keyword>" emerge <foo>
without --oneshot should automatically add <foo> <keyword> to the
package.keywords file.

glen

-- 
gentoo-user@gentoo.org mailing list

Reply via email to