Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 56412

Summary: mondo-rescue-2.02.ebuild version bump.
Product: Gentoo Linux Reporter: Greg Yasko <ryasko>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: enhancement CC: alor
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Troublesome little ebuild and digests -- mondo-rescue-2.02.ebuild mindi-1.02.ebuild

Description Greg Yasko 2004-07-07 22:35:12 UTC
An access violation occurs when testing a new but *extremely simple* ebuild for mondo-rescue. If before emerging mondo-rescue, I do "mkdir -p /usr/share/mondo/post-nuke.sample/usr/bin/post-nuke" then it installs well enough to be used, but doesn't emerge without errors. If those directories don't exist though the result is access violations:

ACCESS DENIED  mkdir:     /usr/share/mondo
cp: cannot create directory `/usr/share/mondo/': Permission denied

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------LOG FILE = "/tmp/sandbox-sys-apps_-_mondo-rescue-2.02-1404.log"
 
mkdir:     /usr/share/mondo
--------------------------------------------------------------------------------

I'm attaching my mondo-rescue related ebuilds and digests -- they give guaranteed access violations on x86. Just one look at the mondo-rescue-2.02.ebuild is enough to know that Portage shouldn't be misbehaving like this.

Thanks,

-G.Y.

Reproducible: Always
Steps to Reproduce:
1. Use PORTDIR_OVERLAY="/usr/local/portage"
2. cp -R /usr/portage/sys-apps /usr/local/portage
3. copy the attached digests and ebuilds to their respective direcories in /usr/local/portage
4. rm -rf /usr/share/mondo
5. emerge -Dv mondo-rescue
6. access violation should occur 

Actual Results:  
cp -R post-nuke.sample /usr/share/mondo/
ACCESS DENIED  mkdir:     /usr/share/mondo
cp: cannot create directory `/usr/share/mondo/': Permission denied
make[4]: *** [install-data-hook] Error 1
make[4]: Leaving directory
`/var/tmp/portage/mondo-rescue-2.02/work/mondo-2.02/mondo'
make[3]: *** [install-data-am] Error 2
make[3]: Leaving directory
`/var/tmp/portage/mondo-rescue-2.02/work/mondo-2.02/mondo'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory
`/var/tmp/portage/mondo-rescue-2.02/work/mondo-2.02/mondo'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/mondo-rescue-2.02/work/mondo-2.02/mondo'
make: *** [install-recursive] Error 1
man:
prepallstrip:
strip:
strip:
   usr/lib/libmondo-2.0x_cvs
   usr/lib/libmondo-newt-2.0x_cvs
   usr/sbin/mondorestore
   usr/sbin/mondoarchive
   usr/share/mondo/restore-scripts/usr/bin/nano
   usr/share/mondo/restore-scripts/usr/bin/petris
>>> Completed installing into /var/tmp/portage/mondo-rescue-2.02/image/
 


--------------------------- ACCESS VIOLATION SUMMARY
---------------------------LOG FILE =
"/tmp/sandbox-sys-apps_-_mondo-rescue-2.02-1404.log"
 
mkdir:     /usr/share/mondo
--------------------------------------------------------------------------------

Expected Results:  
It should have installed cleanly without errors

Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0,
2.4.26-gentoo-r3)
=================================================================
System uname: 2.4.26-gentoo-r3 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-tbird -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/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=athlon-tbird -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
http://csociety-ftp.ecn.purdue.edu/pub/gentoo/
ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/
ftp://mirror.iawnet.sandia.gov/pub/gentoo/
ftp://ftp.ussg.iu.edu/pub/linux/gentoo
ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.seren.com/gentoo
http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/
http://cudlug.cudenver.edu/gentoo/
ftp://cudlug.cudenver.edu/pub/mirrors/distributions/gentoo/
http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/
http://gentoo.ccccom.com ftp://gentoo.ccccom.com
http://ftp-mirror.internap.com/pub/gentoo/
ftp://ftp-mirror.internap.com/pub/gentoo/ http://mirrors.tds.net/gentoo
ftp://mirrors.tds.net/gentoo http://gentoo.netnitco.net
ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/
http://mirror.tucdemonic.org/gentoo/
http://mirror.clarkson.edu/pub/distributions/gentoo/ http://128.213.5.34/gentoo/
http://lug.mtu.edu/gentoo/ ftp://lug.mtu.edu/gentoo/source
ftp://ftp.ndlug.nd.edu/pub/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo
http://gentoo.llarian.net/ ftp://gentoo.llarian.net/pub/gentoo
http://gentoo.binarycompass.org 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="X alsa apm arts avi berkdb cdr crypt cups doc dvdr encode esd foomaticdb
gdbm gif gnome gpm gstreamer gtk gtk2 imlib java jikes joystick jpeg libg++
libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib
perl png python quicktime readline scanner sdl slang spell ssl svga tcltk tcpd
tetex truetype usb x86 xml2 xmms xv zlib"
Comment 1 Greg Yasko 2004-07-07 22:37:45 UTC
Created attachment 34984 [details]
Troublesome little ebuild and digests -- mondo-rescue-2.02.ebuild mindi-1.02.ebuild
Comment 2 Brian Harring (RETIRED) gentoo-dev 2004-07-07 22:39:54 UTC
Your ebuild is getting kicked by the sandbox since it's trying to install directly to the livefs (which it shouldn't be doing).

So... you likely need to hack up the makefile, or check into using ./configure --prefix (which isn't a good method imo).

Side note, for future reference, just attach the relevant ebuilds :)
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2004-07-07 23:45:00 UTC
I'm treating this like a version bump since this isn't really the place for
ebuild help but the motivation behind the bug report is basically a version bump.
Comment 4 Greg Yasko 2004-07-08 23:30:27 UTC

*** This bug has been marked as a duplicate of 54371 ***