Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115672 - Apache version 2.0.54-r31 emerge hangs if different partition used for PORTAGE_TMPDIR
Summary: Apache version 2.0.54-r31 emerge hangs if different partition used for PORTAG...
Status: RESOLVED DUPLICATE of bug 78814
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 115673 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-12-15 09:29 UTC by Jason Frank
Modified: 2005-12-15 09:41 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 Jason Frank 2005-12-15 09:29:57 UTC
libtool used for apache hangs when PORTAGE_TMPDIR is on a different FS than the
rest of the system.  In my case, I had PORTAGE_TMPDIR assigned to /mnt while I
did an emerge -e world.  The only build failures I had were with apache and
apr-util in this configuration.

My mount points look as follows:

$ df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda2              9614148   8149392    976380  90% /
none                    257152         0    257152   0% /dev/shm
/dev/hda1             15322684    202920  14341420   2% /mnt

The only things in /mnt are:
$ ls /mnt
lost+found  portage

The first file it compiles past the configure run exhibits the problem.

If this isn't possible to fix inside of libtool, can we add something to the
ebuild to explain the issue, and not bother to compile?

Reproducible: Always
Steps to Reproduce:
1.  Mount some temporary disk space on mnt.
2.  Set PORTAGE_TMPDIR to /mnt
3.  emerge apache

Actual Results:  
You get the following:

/usr/share/apr-0/build/libtool --silent --mode=compile i686-pc-linux-gnu-gcc 
-pthread  -O2 -mcpu=i686 -fomit-frame-pointer  -DLINUX=2 -D_REENTRANT
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE
-DAP_HAVE_DESIGNATED_INITIALIZER   -I/usr/include/apr-0 -I/usr/include/db4.2 -I.
-I/mnt/portage/apache-2.0.54-r31/work/httpd-2.0.54/os/unix
-I/mnt/portage/apache-2.0.54-r31/work/httpd-2.0.54/server/mpm/prefork
-I/mnt/portage/apache-2.0.54-r31/work/httpd-2.0.54/modules/http
-I/mnt/portage/apache-2.0.54-r31/work/httpd-2.0.54/modules/filters
-I/mnt/portage/apache-2.0.54-r31/work/httpd-2.0.54/modules/proxy
-I/mnt/portage/apache-2.0.54-r31/work/httpd-2.0.54/include
-I/mnt/portage/apache-2.0.54-r31/work/httpd-2.0.54/modules/generators
-I/usr/include/openssl
-I/mnt/portage/apache-2.0.54-r31/work/httpd-2.0.54/modules/dav/main
-prefer-non-pic -static -c maketables.c && touch maketables.lo


The compile never completes.  If you turn off the --silent, you get this:
/usr/share/apr-0/build/libtool --mode=compile i686-pc-linux-gnu-gcc  -pthread 
-O2 -mcpu=i686 -fomit-frame-pointer  -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER  
-I/usr/include/apr-0 -I/usr/include/db4.2 -I.
-I/mnt/portage/apache-2.0.54-r31/work/httpd-2.0.54/os/unix
-I/mnt/portage/apache-2.0.54-r31/work/httpd-2.0.54/server/mpm/prefork
-I/mnt/portage/apache-2.0.54-r31/work/httpd-2.0.54/modules/http
-I/mnt/portage/apache-2.0.54-r31/work/httpd-2.0.54/modules/filters
-I/mnt/portage/apache-2.0.54-r31/work/httpd-2.0.54/modules/proxy
-I/mnt/portage/apache-2.0.54-r31/work/httpd-2.0.54/include
-I/mnt/portage/apache-2.0.54-r31/work/httpd-2.0.54/modules/generators
-I/usr/include/openssl
-I/mnt/portage/apache-2.0.54-r31/work/httpd-2.0.54/modules/dav/main
-prefer-non-pic -static -c maketables.c && touch maketables.lo
Waiting for maketables.o.lock to be removed
Waiting for maketables.o.lock to be removed
Waiting for maketables.o.lock to be removed
Waiting for maketables.o.lock to be removed
Waiting for maketables.o.lock to be removed

This continues for as long as you can stand looking at it.


Expected Results:  
Compiled the source code file.

Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r2,
2.6.11-gentoo-r6 i686)
=================================================================
System uname: 2.6.11-gentoo-r6 i686 Intel(R) Pentium(R) III Mobile CPU      1133MHz
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirrors.tds.net/gentoo http://gentoo.mirrors.pair.com/
http://mirror.datapipe.net/gentoo"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/mnt"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib acl alsa apache2 apm arts audiofile avi berkdb bitmap-fonts
bonobo bzip2 cdr cdrcups crypt cscope cups curl dvd eds emacs emboss encode esd
evo exif expat fam ffmpeg flac foomaticdb fortran freetds gd gdbm gif glut gnome
gpm gstreamer gtk gtk2 idn imagemagick imap imlib innodb ipv6 java jpeg kde kpeg
lcms ldap libg++ libwww lirc lua mad mhash mikmod mmx mng motif mozilla mp3 mpeg
mssql mysql ncurses net nls oci8 ogg oggvorbis opengl oss pam pcre pdflib perl
png python qt quicktime readline samba sdl slang snmp spell sse ssl svga svgalib
tcltk tcpd tiff transcode truetype truetype-fonts type1-fonts usb vorbis x x86
xine xinerama xml2 xmms xv xvid zlib video_cards_radeon userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-12-15 09:34:54 UTC
Not apache or libtool... It's stupid fam causing this.

*** This bug has been marked as a duplicate of 78814 ***
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-12-15 09:41:50 UTC
*** Bug 115673 has been marked as a duplicate of this bug. ***