Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: <gentoo-dev@g.o>
From: "Todd Wright" <wylie@...>
Subject: Ebuild - problem with virtuals / undocumented features
Date: Sat, 13 Apr 2002 21:34:01 +1000
Sorry if this is the wrong place, I couldnt see a description other than "Gentoo Linux developer list", and im hoping its related to developing ebuilds. I waited a while for some examples, but it seems to be a low volume list, so I thought I'd jump in - if theres a better list, please let me know.

I looked through the new portage manual, and the ebuild developer how to, but couldnt see the answers I am looking for.

Heres the story... Im trying to fix the mis-match between the uw-imap ebuild and the php one. Yes, they're broken (see bug 1254).  So far I think I have fixed the compile/install part of uw-imap, but I cannot see how the dependancy "imap? ( virtual/imapUW )" is resolved or what creates "/var/db/pkg/virtual/imapUW/VIRTUAL" which is required by the imap configuration in "src_compile() of the php ebuild"

As an aside, I also see other virtual dependancies - virtual/glibc, virtual/java and a $PROVIDE variable (set twice in the uw-imap ebuild) and have no idea what they do. I can see where the value in $PROVIDE ends up in the PROVIDE file in tha package database, but thats about it.

If I emerge php (using php-4.1.2-r6) after having unmerged uw-imap, then uw-imap is not included as a dependancy, even though it is uninstalled, and has the DEPEND statement "imap? ( virtual/imapUW )" in the php ebuild file. I could simply change this to something like ">=net-mail/uw-imap-2001" but the "/var/db/pkg/virtual/imapUW/VIRTUAL" file is still required later.

I have looked in "/var/db/pkg/virtual/", and although I have a fairly well built up 1.0/1.1a system, nothing has ever written anything in there. I manually created .../imapUW/VIRTUAL eith an "echo" in order to get php to properly compile with uw-imap and ssl.

As you can tell by my rantings, the virtual/<package> thing has me totally confused.

The "/var/db/pkg/virtual/imapUW/VIRTUAL" file that the php ebuild looks for is used as a pointer to find the USE variables that uw-imap was compiled with (to see if it was compiled with ssl or not). Since nothing at all seems to ever write to "/var/db/pkg/virtual/" Im considering just changing this to a "if ['use ssl']" and just assuming that if "ssl" is a valid use variable at the time php is compiled, then uw-imap must have been compiled with it too.

Thoughts, suggestions, education appreciated.

Thanks.

-- _--_|\ --------- Todd Wright -- wylie@... --------
  /      \                  
  \_.--._* <---    http://www.dreams.darker.net/~wylie/
        v       Mobile: +61-403-796-001    Ph: +61-2-9521-8677
----------------------------------------------------------------


Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
goodbye
Next by thread:
List Reflections/Considerations
Previous by date:
Re: goodbye
Next by date:
List Reflections/Considerations


Updated Jun 17, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.