Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49696 - emerge apache-manual-2.0.49-r1 files with acess violation error
Summary: emerge apache-manual-2.0.49-r1 files with acess violation error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-02 05:02 UTC by Stefan Sperling
Modified: 2004-05-05 06:55 UTC (History)
7 users (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 Stefan Sperling 2004-05-02 05:02:55 UTC
When I try to emerge apache-manual, I get the following error:
I cannot really make sense of this as file permissions seem to be fine...
Where's the hammer hanging?

dice root #  emerge apache-manual
Calculating dependencies ...done!
>>> emerge (1 of 1) app-doc/apache-manual-2.0.49-r1 to /
>>> md5 src_uri ;-) httpd-2.0.49.tar.gz
>>> Unpacking source...
>>> Unpacking httpd-2.0.49.tar.gz to /var/tmp/portage/apache-manual-2.0.49-r1/work
>>> Source unpacked.
 * Nothing to do.

>>> Install apache-manual-2.0.49-r1 into /var/tmp/portage/apache-manual-2.0.49-r1/image/ category app-doc
ACCESS DENIED  rename:    /usr/portage/app-doc/apache-manual/files/sed2sKCx7
man:
prepallstrip:
strip: 
>>> Completed installing into /var/tmp/portage/apache-manual-2.0.49-r1/image/

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-app-doc_-_apache-manual-2.0.49-r1-30563.log"

rename:    /usr/portage/app-doc/apache-manual/files/sed2sKCx7
--------------------------------------------------------------------------------
dice root #

Reproducible: Always
Steps to Reproduce:
1. emerge apache-manual-2.0.49-r1




Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25-gentoo-r2)
=================================================================
System uname: 2.4.25-gentoo-r2 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.4.9
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.fu-berlin.de/pub/unix/linux/mirrors/gentoo/
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
ftp://ftp.fhh.opensource-mirror.de/pub/gentoo.org/
rsync://rsync.fhh.opensource-mirror.de/gentoo
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
rsync://linux.rz.ruhr-uni-bochum.de/gentoo/ http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib alsa apm arts avi berkdb cdr crypt cscope cups dga doc dvd
encode esd fbcon foomaticdb gdbm gif gpm gtk gtk2 guile imap imlib jack java
joystick jpeg ladcca lcms libg++ libwww mad matrox mbox mikmod mmx motif mozilla
mpeg mysql nas ncurses nls nocd oggvorbis opengl oss pam pdflib perl plotutils
png python qt quicktime readline ruby sdl slang spell sse ssl svga tcltk tcpd
tetex truetype usb videos wxwindows x86 xml xml2 xmms xv zlib"
Comment 1 Antonio 2004-05-02 11:01:17 UTC
Fixed bug 49624 but create this bug.
Comment 2 Sven Wegener gentoo-dev 2004-05-02 21:38:56 UTC
The ebuild is doing an sed script on a file in ${FILESDIR}, this will
lead to the sandbox violation.

The ebuild contains some more errors:
- sed script: ${PVR} should be used instead of ${PV}
- SRC_URI should be empty, because we don't need any of them. Saves the
  time for src_unpack'ing them.
- Then, S should be set to ${WORKDIR} or the default ${WORKDIR}/${P} but
  the former is more consistent.
- 2.0.49 in 00_apache_manual.conf shoul be replaced with something like
  <APACHE_VERSION> so that no-one will assume the file in ${FILESDIR} is
  only for 2.0.49 and accidently delete it.

Any way, I don't think that having app-doc/apache-manual as a USE=doc
dependency in net-www/apache is the best solution. This way two packages
have to be maintained.

My suggestion is to remove app-doc/apache-manual completely and to modify
commonapache.conf to use IfDefine's so that the configuration can be done via
APACHE{,2}_OPTS in /etc/conf.d/apache{,2}. When doing this I would also like
to move some more things in commonapache.conf to IfDefine's. mod_proxy and
the /doc Alias, for example.

Comments?

Sven
Comment 3 Chuck Short (RETIRED) gentoo-dev 2004-05-03 06:01:03 UTC
This has already been resolved.
Comment 4 Sven Wegener gentoo-dev 2004-05-03 06:38:35 UTC
Chuck, just took a quick look at the webcvs. Doing sed on the non-existant
file in ${D} and then installing it is not the right solution. ;)

src_install() {
	sed -i -e "s:2.0.49:${PV}:" ${D}/etc/apache2/conf/modules.d//00_apache_manual.conf
	insinto /etc/apache2/conf/modules.d
	doins ${FILESDIR}/00_apache_manual.conf
}
Comment 5 Shawn Kovalchick 2004-05-03 07:52:54 UTC
I can confirm that this installed correctly on my system.
Comment 6 David Stanek 2004-05-03 08:12:24 UTC
I believe this is just a typo of the patch i sumitted for Bug #49673. The extra slash should not have an effect.
Comment 7 Sven Wegener gentoo-dev 2004-05-03 08:27:42 UTC
I'm not talking about the doube slash, I'm talking about the fact that
the sed script is executed on the file in ${D} before the file has beeen
installed in ${D}
Comment 8 David Stanek 2004-05-03 08:45:38 UTC
New patch posted see Bug #49673.
Comment 9 Antonio 2004-05-04 02:18:48 UTC
I have resolv this problem with patch on Bug #49673
Comment 10 Chuck Short (RETIRED) gentoo-dev 2004-05-05 06:55:25 UTC
Patch applied from 49673.