| Summary: | net-www/apache-2.0.52-r1 symlinks /usr/lib/apache2/logs -> /var/log/apache2, but doesn't create /var/log/apache2 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Mike Nerone <mike> |
| Component: | New packages | Assignee: | Apache Team - Bugzilla Reports <apache-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | dberkholz |
| Priority: | High | ||
| Version: | 2004.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Mike Nerone
2004-04-16 12:26:49 UTC
Fixed in cvs. thanks for the bug report. Doesn't appear to be fixed in CVS, actually. I just emerged apache-2.0.52-r1 and had to manually create /var/log/apache2. This ebuild also fails to create /etc/apache2/conf/ssl (and the test cert) and /var/cache/apache2 directories. It is easy to overlook that because when upgrading an existing installation the mentioned above directories already exists and everything seems to be OK I can second this, as I have just experienced both on a fresh install. I can third this. Did it on a fresh install and had to create the symlink manually. err correction. Fresh install, symlink was there, however it was broken as /var/log did NOT have a dir inside it for /var/log/apache2 Third this.../var/log does not have apache2 directory created in it. I just rebuilt my system and did a fresh install of the latest apache2 stable package (2.0.52-r1). Same goes for /etc/apache2/conf/ssl and /var/cache/apache. The problem is in the pkg_postinst() function, with the way the empty dirs are created. Old ebuilds (like 2.0.50) used /bin/install to create the directories and copy files to them. New ebuilds use something called keepdir, which I can't figure out what it is; it is not a program included in the base system install though. Because of the change, not /var/log/apache2, /etc/apache2/conf/ssl, and /var/cache/apache are not created. Briefly looking through 2.0.52-r2 (latest unstable), the bug does not appear to be fixed. This bug is fixed in apache-2.0.52-r2. 'keepdir' is a Portage utility (you'll find it in /usr/lib/portage/bin). It's only for use in the src_install() portion of an ebuild. apache-2.0.52-r1 uses it in pkg_postinst(), where it'll never work. Best regards Stu |