Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 194415

Summary: web-servers/apache-2.2.6 pkg_config() / "webroot install" fails
Product: Gentoo Linux Reporter: Josh Sled <jsled>
Component: New packagesAssignee: Apache Team - Bugzilla Reports <apache-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Josh Sled 2007-10-01 17:23:41 UTC
From elog:

> LOG: postinst
> The default webroot has not been installed into
> //var/www/localhost because the directory already exists
> and we do not want to overwrite any files you have put there.
> 
> If you would like to install the latest webroot, please run
> emerge --config =apache-2.2.6

Me:

> phoenix www # emerge --config =apache-2.2.6
> 
> 
> Configuring pkg...
> 
>  * Installing default webroot to //var/www/localhost
> cp: target `//var/www/localhost' is not a directory

Sure enough, from /usr/portage/www-servers/apache/apache-2.2.6.ebuild pkg_config():

> pkg_config() {
>        einfo "Installing default webroot to ${ROOT}/var/www/localhost"
>        cp -R "${ROOT}"/usr/share/doc/${PF}/webroot/* "${ROOT}"/var/www/localhost
> }

I guess it should be "${ROOT}"usr/share/doc/${PF}/webroot/* and "${ROOT}"var/www/localhost

It looks like the problem is present throughout the file.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-10-01 17:47:54 UTC
The extra / completely doesn't matter, you can try this manually.
Comment 2 Benedikt Böhm (RETIRED) gentoo-dev 2007-10-06 15:28:16 UTC
maybe /var/www/localhost is not a directory?
Comment 3 Josh Sled 2007-10-08 14:18:11 UTC
(In reply to comment #2)
> maybe /var/www/localhost is not a directory?

This was correct.  Might be nice for the ebuild to test/create the dir if need be.

I'd moved my existing /var/www/localhost to localhost.old, then run the requested command.  I recall I resolved the error manually.  Sorry for not being as clear during filing.

Comment 4 Benedikt Böhm (RETIRED) gentoo-dev 2007-10-20 17:16:44 UTC
fixed in 2.2.6-r2