Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48063 - net-www/apache-2.0.52-r1 symlinks /usr/lib/apache2/logs -> /var/log/apache2, but doesn't create /var/log/apache2
Summary: net-www/apache-2.0.52-r1 symlinks /usr/lib/apache2/logs -> /var/log/apache2, ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-16 12:26 UTC by Mike Nerone
Modified: 2004-12-19 07:24 UTC (History)
1 user (show)

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 Mike Nerone 2004-04-16 12:26:49 UTC
Summary says it all.
Comment 1 Chuck Short (RETIRED) gentoo-dev 2004-04-17 09:13:02 UTC
Fixed in cvs. thanks for the bug report.
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2004-12-11 14:25:13 UTC
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.
Comment 3 Miroslaw Poray-Zbrozek 2004-12-13 00:40:28 UTC
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
Comment 4 Jason Ahrens 2004-12-15 20:11:31 UTC
I can second this, as I have just experienced both on a fresh install.
Comment 5 Paul Collins 2004-12-16 10:44:15 UTC
I can third this. Did it on a fresh install and had to create the symlink manually.
Comment 6 Paul Collins 2004-12-16 10:45:56 UTC
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
Comment 7 John Lyon 2004-12-18 15:58:04 UTC
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.
Comment 8 Stuart Herbert (RETIRED) gentoo-dev 2004-12-19 07:24:47 UTC
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