Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74843 - webapp eclass does not respect ROOT= exported variable
Summary: webapp eclass does not respect ROOT= exported variable
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Stuart Herbert (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-18 09:40 UTC by Scott
Modified: 2005-11-20 09:40 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 Scott 2004-12-18 09:40:15 UTC
when using portage to populate a chrooted environment within an already functioning gentoo installation using:

ROOT=/path/to/chroot emerge program

the webapp eclass ignores the ROOT=/path/to/chroot option.  Specifically, if using a chrooted apache/php installation, one is unable to install any php web program (horde and squirrelmail are the two main ones I've worked with, but I know others fail as well) that uses the webapp eclass because rather than installing (most specifically, when performing the last line of webapp_src_install -- touch "${D}/${MY_APPDIR}/${INSTALL_CHECK_FILE}" -- and then checking for it further along) in the chroot, the webapp eclass installs as if ROOT=/ instead of ROOT=/path/to/chroot.

So going through an example:
ROOT=/path/to/chroot emerge horde
<ebuild output>
 *
 * This ebuild did not call webapp_src_install() at the end
 * of the src_install() function
 *
 * Please log a bug on http://bugs.gentoo.org
 *
 * You should use emerge -C to remove this package, as the
 * installation is incomplete
 *
!!! <install failed>
this happens specifically because webapp_src_install did a touch to /usr/share/webapps/horde/2.2.7/ instead of /path/to/chroot/usr/share/webapps/horde/2.2.7/ and because the ebuild correctly created /path/to/chroot/usr/share/webapps/horde/2.2.7/ and NOT /usr/share/webapps/horde/2.2.7/ touch is unable to create a file there and the webapp_src_install fails.

Reproducible: Always
Steps to Reproduce:
1. ROOT=/path/to/chroot emerge www-apps/*****
2.
3.

Actual Results:  
 *
 * This ebuild did not call webapp_src_install() at the end
 * of the src_install() function
 *
 * Please log a bug on http://bugs.gentoo.org
 *
 * You should use emerge -C to remove this package, as the
 * installation is incomplete
 *
!!! <install failed>

Expected Results:  
ebuild successfully merged

Portage 2.0.51-r8 (default-linux/x86/2004.0, gcc-3.3.2, glibc-2.3.2-r9,
2.4.20-gentoo-r1 i686)
=================================================================
System uname: 2.4.20-gentoo-r1 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.4.10
Python:              dev-lang/python-2.2.2,dev-lang/python-2.3.3-r1 [2.3.3 (#1,
May 21 2004, 22:06:36)]
ccache version 2.3 [enabled]
dev-lang/python:     2.2.2, 2.3.3-r1
sys-devel/autoconf:  2.59-r4
sys-devel/automake:  1.8.3
sys-devel/binutils:  2.14.90.0.8-r1
sys-devel/libtool:   1.4.3-r4
virtual/os-headers:  2.4.19, 2.4.21-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE=""
ARCH="x86"
AUTOCLEAN="yes"
BASH_ENV="/etc/spork/is/not/valid/profile.env"
CC="gcc"
CCACHE_SIZE="2G"
CFLAGS="-march=i686 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CLASSPATH="/opt/blackdown-jdk-1.4.1/jre/lib/rt.jar:."
CLEAN_DELAY="5"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/share/config /var/chroots/apache2-portage/etc /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CVS_RSH="ssh"
CXX="g++"
CXXFLAGS="-march=i686 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EDITOR="/usr/bin/nano"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
GDK_USE_XFT="1"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://gentoo.oregonstate.edu
http://ftp.snt.utwente.nl/pub/os/linux/gentoo/ http://www.ibiblio.org"
GLIBC_SSP_CHECKED="1"
GRP_STAGE23_USE="ipv6 pam tcpd readline nls ssl gpm perl python berkdb acl ncurses"
G_BROKEN_FILENAMES="1"
HOME="/root"
HOSTNAME="newrouter"
INFODIR="/usr/share/info:/usr/X11R6/info"
INFOPATH="/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info"
INPUTRC="/etc/inputrc"
JAVAC="/opt/blackdown-jdk-1.4.1/bin/javac"
JAVA_HOME="/opt/blackdown-jdk-1.4.1"
JDK_HOME="/opt/blackdown-jdk-1.4.1"
KDEDIR="/usr/kde/3.2"
KDEDIRS="/usr"
LESS="-R"
LESSOPEN="|lesspipe.sh %s"
LOGNAME="root"
MAIL="/var/mail/root"
MAKEOPTS="-j2"
MANPATH="/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man:/usr/X11R6/man:/opt/blackdown-jdk-1.4.1/man:/usr/qt/3/doc/man"
MOZILLA_FIVE_HOME="/usr/lib/mozilla"
NOCOLOR="false"
OLDPWD="/root"
PAGER="/usr/bin/less"
PATH="/bin:/sbin:/usr/bin:/usr/sbin:"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 ppc-macos ppc-od
s390 sh sparc x86 x86-fbsd x86-obsd x86-od"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_CALLER="emerge"
PORTAGE_GID="250"
PORTAGE_MASTER_PID="20510"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
PRELINK_PATH=""
PRELINK_PATH_MASK=""
PS1="\[\033[1;33m\]SSH \[\033[1;32m\]\t
\[\033[1;31m\]\u\[\033[00m\]@\[\033[1;32m\]\h \[\033[1;36m\]\W\[\033[00m\] \$
\[\033[1;33m\]SSH \[\033[00m\]"
PWD="/usr/portage/www-apps"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
RPMDIR="/usr/portage/rpm"
RSYNC_RETRIES="3"
RSYNC_TIMEOUT="180"
SHELL="/bin/bash"
SHLVL="1"
SSH_CLIENT="::ffff:192.168.0.2 34092 22"
SSH_CONNECTION="::ffff:192.168.0.2 34092 ::ffff:192.168.0.1 22"
SSH_TTY="/dev/pts/1"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
TERM="xterm"
USE="3dnow X aalib alsa apache2 apm arts avi berkdb bitmap-fonts crypt cups
directfb dvd encode esd f77 fam flac foomaticdb fortran gdbm gif gnome gpm
gstreamer gtk gtk2 guile imap imlib java jpeg kde ldap libg++ libwww mad
matroska mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam
pdflib perl png python qt quicktime readline samba sdl slang speex spell sse ssl
svga tcltk tcpd tiff truetype x86 xml xml2 xmms xv zlib"
USER="root"
USERLAND="GNU"
USE_EXPAND="VIDEO_CARDS INPUT_DEVICES LINGUAS"
WINDOW_MANAGER="/usr/bin/metacity"
XARGS="xargs -r"
XINITRC="/etc/X11/xinit/xinitrc"
_="/bin/nice"
Comment 1 Renat Lumpau (RETIRED) gentoo-dev 2005-06-29 09:00:16 UTC
reassigning
Comment 2 Stuart Herbert (RETIRED) gentoo-dev 2005-11-20 09:40:30 UTC
Updated eclass now in Portage.  Should fix this problem.

Best regards,
Stu