Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96785 - webapp.eclass needs an RDEPEND on webapp-config
Summary: webapp.eclass needs an RDEPEND on webapp-config
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Stuart Herbert (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-22 07:58 UTC by Paul Smith
Modified: 2005-11-20 09:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Smith 2005-06-22 07:58:14 UTC
I'm working with Catalyst and trying to add packages that rely on webapp.eclass
into my livecd.  Catalyst builds the initial stages from scratch, then creates
binary packages so that if you have to recreate the stages again, it doesn't
have to recompile but just reinstalls the binary packages.  However, as I
understand it binary packages don't have their DEPEND packages installed first,
just the RDEPEND packages.  But, binary packages DO have some of the ebuild
functions invoked, in particular (for this situation) the pkg_setup() function.
 The webapp.eclass creates a webapp_pkg_setup() function that relies on the
existence of files in the webapp-config package, such as
/etc/vhost/webapp-config.  But, that file does not exist when I try to install
the binary package because webapp-config is not installed.

Since it's the webapp.eclass that adds webapp-config to the DEPEND line, and
it's the webapp.eclass that creates the pkg_setup() function that uses the
webapp-config file, it seems like webapp.eclass should also add webapp-config to
the RDEPEND line to be sure it's installed correctly.

Reproducible: Always
Steps to Reproduce:
1. Find a package that inherits webapp (but doesn't override pkg_setup())
2. Build the package and create a binary package from it
3. Remove webapp-config from your system
4. Try to install the binary package.


Actual Results:  
The webapp_pkg_setup() will fail with an error trying to locate the
/etc/vhost/webapp-config file.

Expected Results:  
Successfully install the package (which might mean reinstalling webapp-config).
Comment 1 Stuart Herbert (RETIRED) gentoo-dev 2005-06-22 13:26:59 UTC
To be honest, on first reading this sounds like a Portage bug.  I'll have a 
chat with the portage team, and get their advice.

Best regards,
Stu
Comment 2 Renat Lumpau (RETIRED) gentoo-dev 2005-06-29 09:08:19 UTC
reassigning
Comment 3 Stuart Herbert (RETIRED) gentoo-dev 2005-11-20 09:51:48 UTC
Fixed in Portage tree by adding the RDEPEND line.

Best regards,
Stu