Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84909 - dev-libs/log4cpp-0.3.4b fails to install with a sandbox violation
Summary: dev-libs/log4cpp-0.3.4b fails to install with a sandbox violation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords:
: 144675 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-11 14:46 UTC by Karl-Johan Karlsson
Modified: 2006-10-18 09:58 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Log of install phase of emerge (emerge.log,11.24 KB, text/plain)
2005-03-11 14:48 UTC, Karl-Johan Karlsson
Details
Patch adding DESTDIR to the command line for "make install" (log4cpp-DESTDIR.patch,496 bytes, patch)
2005-03-11 14:49 UTC, Karl-Johan Karlsson
Details | Diff
Fix sandbox access violation (log4cpp-0.3.4b.ebuild-install.patch,381 bytes, patch)
2006-05-24 10:23 UTC, Juha Heljoranta
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Karl-Johan Karlsson 2005-03-11 14:46:42 UTC
dev-libs/log4cpp-0.3.4b tries to install some things in $(DESTDIR)$(libdir), but DESTDIR is unset. Setting it (in addition to prefix, datadir, mandir, docdir, sysconfdir) on the command line for "make install" makes it work.

There is a line (commented out) in the ebuild that says "make DESTDIR=${D} install || die". Trying that only gives even more sandbox violations, so it seems all variables have to be set. I don't know enough about Automake to figure out why.

Reproducible: Always
Steps to Reproduce:




Portage 2.0.51-r15 (default-linux/amd64/2004.3, gcc-3.4.2, glibc-2.3.4.20050125-
r0, 2.6.7-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.7-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 18 2005, 12:57:44)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -O2 -pipe -fstack-protector -fweb -frename-registers -
fomit-frame-pointer -momit-leaf-frame-pointer -funit-at-a-time -ftracer"
CHOST="x86_64-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/share/config /usr/lib/X11/xkb /
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="-march=athlon64 -O2 -pipe -fstack-protector -fweb -frename-registers -
fomit-frame-pointer -momit-leaf-frame-pointer -funit-at-a-time -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks sandbox 
strict userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.du.se/pub/os/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.se/gentoo-portage"
USE="amd64 X Xaw3d a52 aalib acpi adns alsa arts bash-completion berkdb bitmap-
fonts cdinstall cdparanoia cdr cjk crypt cscope curldoc dvd emacs emacs-w3 fam 
flac font-server fortran freetype gcl gd gdbm gif gmp gtk gtk2 imagemagick imap 
imlib jp2 jpeg kde libwww lzw lzw-tiff mad maildir matroska mbox mikmod mp3 
ncurses nls nocd nptl nptlonly nvidia offensive oggvorbis openal opengl 
operanom2 pam perl pie png python qt readline ruby samba sdl sendfile slang 
sqlite ssl stencil-buffer tcpd tetex tiff truetype truetype-fonts type1-fonts 
unicode usb userlocales utf8 xface xine xml2 xmms xpm xrandr xv xvid xvmc zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Karl-Johan Karlsson 2005-03-11 14:48:02 UTC
Created attachment 53220 [details]
Log of install phase of emerge
Comment 2 Karl-Johan Karlsson 2005-03-11 14:49:32 UTC
Created attachment 53221 [details, diff]
Patch adding DESTDIR to the command line for "make install"
Comment 3 Gustavo Ribeiro Alves 2006-05-05 22:24:34 UTC
patch didn't work for me on amd64:

strip: x86_64-pc-linux-gnu-strip --strip-unneeded
   /usr/lib64/liblog4cpp.so.3.1.3
   usr/lib64/liblog4cpp.a
removing executable bit: /usr/lib64/liblog4cpp.la
QA Notice: // installed in ${D}/${D}
QA Notice: //usr installed in ${D}/${D}
QA Notice: //usr/bin installed in ${D}/${D}
QA Notice: //usr/bin/log4cpp-config installed in ${D}/${D}
QA Notice: //usr/share installed in ${D}/${D}
QA Notice: //usr/share/aclocal installed in ${D}/${D}
QA Notice: //usr/share/aclocal/log4cpp.m4 installed in ${D}/${D}
QA Notice: //usr/include installed in ${D}/${D}
QA Notice: //usr/include/log4cpp installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/PropertyConfigurator.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/BasicConfigurator.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/NDC.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/StringQueueAppender.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/AppenderSkeleton.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/RollingFileAppender.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/SimpleConfigurator.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/CategoryStream.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/Configurator.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/TimeStamp.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/Layout.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/FixedContextCategory.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/threading installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/threading/Threading.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/threading/PThreads.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/threading/BoostThreads.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/threading/MSThreads.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/threading/OmniThreads.hh installed in ${D}/${D}QA Notice: //usr/include/log4cpp/threading/DummyThreads.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/Win32DebugAppender.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/Portability.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/config-win32.h installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/PatternLayout.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/config.h installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/LoggingEvent.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/Priority.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/Appender.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/RemoteSyslogAppender.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/Category.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/HierarchyMaintainer.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/LayoutAppender.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/IdsaAppender.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/FileAppender.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/SimpleLayout.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/SyslogAppender.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/Filter.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/BasicLayout.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/Export.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/NTEventLogAppender.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/OstreamAppender.hh installed in ${D}/${D}
QA Notice: //usr/include/log4cpp/config-openvms.h installed in ${D}/${D}

!!! ERROR: dev-libs/log4cpp-0.3.4b failed.
Call stack:
  misc-functions.sh, line 413:   Called install_qa_check
  misc-functions.sh, line 184:   Called die

!!! Aborting due to QA concerns: 50 files installed in /var/tmp/portage/log4cpp-0.3.4b/image///var/tmp/portage/log4cpp-0.3.4b/image/
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! install_qa_check failed; exiting.
Comment 4 Juha Heljoranta 2006-05-24 10:23:27 UTC
Created attachment 87418 [details, diff]
Fix sandbox access violation

Tested on amd64
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-08-21 12:13:54 UTC
*** Bug 144675 has been marked as a duplicate of this bug. ***
Comment 6 Evil Compile Person 2006-10-18 03:27:52 UTC
Still broken :-(
Comment 7 Tiziano Müller (RETIRED) gentoo-dev 2006-10-18 09:58:27 UTC
Fixed in CVS. Please give it some time to hit the rsync-mirrors, re-sync and try to emerge it.
Please reopen this bug if not solved or mail me directly to reopen it. Thanks.