Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 203431 - www-servers/apache - postinstall violates $INSTALL_MASK
Summary: www-servers/apache - postinstall violates $INSTALL_MASK
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-27 09:45 UTC by Bob's Your Uncle
Modified: 2007-12-27 10:10 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 Bob's Your Uncle 2007-12-27 09:45:13 UTC
I have some high-availability clusters with Apache on Gentoo.  /var/www is a DRBD mount, but for the sake of argument, could just as easily be a SAN or NAS or NFS share.  Point is that it's only ever mounted on one server - the one that's currently the master (the slave will mount it upon demand when it takes over).

I also don't failed to jive with Gentoo's provided apache configuration, so I made my own (to be fair, I've never seen any distribution provide an apache configuration that was flexible enough nor as easy to understand as writing my own).

So, in make.conf, I have added both /var/www and /etc/apache2 to my INSTALL_MASK.

Now, when I rebuild apache on one of the slaves, it goes something like this:
...
>>> Merging www-servers/apache-2.0.58-r2 to /
 * Removing /etc/apache2
...
 * Removing /var/www
...
>>> Original instance of package unmerged safely.
/usr/portage/www-servers/apache/apache-2.0.58-r2.ebuild: line 320: cd: //etc/apache2/ssl: No such file or directory
 *
 * Generating self-signed test certificate in /etc/apache2/ssl...
 *
 * Installing default webroot to //var/www/localhost
mkdir: cannot create directory `//var/www': File exists
cp: target `//var/www/localhost' is not a directory
chown: cannot access `//var/www/localhost': No such file or directory
>>> www-servers/apache-2.0.58-r2 merged.


For the certificate, maybe there's some reason it can't be generated prior to installation (umm), but I'd say that belongs more in an ebuild config command.

As for installing files into /var/www, why this happens AFTER install time is beyond me.  It seems that everything should go into the sandbox, and then be merged.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-12-27 10:10:07 UTC
For the certificates, see Bug 174759. The rest is heavily commented in the ebuild, so read the ebuild for reasons. Nothing to be done here, sorry; If you dislike the ebuild, you'll have to maintain your own in your overlay.