Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31541 - Afterstep 2.0beta2 fails to install, sites sandbox violation
Summary: Afterstep 2.0beta2 fails to install, sites sandbox violation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Nick Hadaway
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-19 13:56 UTC by Shahar Goldin
Modified: 2003-10-23 19:41 UTC (History)
2 users (show)

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


Attachments
Fixes the wm-properties sandbox violation (afterstep-2.0_beta2-gnomeshare.diff,1.49 KB, patch)
2003-10-19 17:45 UTC, Doug Weimer
Details | Diff
afterstep-2.0_beta2.ebuild.patch (afterstep-2.0_beta2.ebuild.patch,566 bytes, patch)
2003-10-20 10:34 UTC, Mike Gardiner (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Shahar Goldin 2003-10-19 13:56:38 UTC
>>> Install afterstep-2.0_beta2 into /var/tmp/portage/afterstep-2.0_beta2/image/
category x11-wm
/bin/cp AfterStep.desktop /usr/share/gnome/wm-properties/
ACCESS DENIED  open_wr:   /usr/share/gnome/wm-properties/AfterStep.desktop
/bin/cp: cannot create regular file
`/usr/share/gnome/wm-properties/AfterStep.desktop': Permission denied
make: *** [install.data] Error 1

!!! ERROR: x11-wm/afterstep-2.0_beta2 failed.
!!! Function src_install, Line 78, Exitcode 2
!!! make install failed

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-afterstep-2.0_beta2-28341.log"

open_wr:   /usr/share/gnome/wm-properties/AfterStep.desktop
--------------------------------------------------------------------------------


Reproducible: Always
Steps to Reproduce:
1. emerge afterstep
2.
3.

Actual Results:  
see above error

Expected Results:  
a new cool afterstep thingy?

# emerge info
Portage 2.0.49-r13-2 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r6, 2.4.22-ck2)
=================================================================
System uname: 2.4.22-ck2 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.3.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -funroll-loops -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -funroll-loops -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.noved.org/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ libwww mad
mikmod motif mpeg ncurses nls pdflib png quicktime spell truetype xml2 xv zlib
gdbm berkdb slang readline svga tcltk java sdl gpm tcpd pam ssl perl python esd
imlib oggvorbis opengl X gtk -xmms -gnome alsa -kde -qt -arts pcmcia"
Comment 1 Doug Weimer 2003-10-19 17:45:03 UTC
Created attachment 19500 [details, diff]
Fixes the wm-properties sandbox violation

This patch creates two new Makefile defines. GNOME_SHAREDIR and
GNOME_SHAREDESTDIR. If GNOME_SHAREDIR/wm-properties
(/usr/share/gnome/wm-properties) exists, then the desktop file is copied
to
GNOME_SHAREDESTDIR ($(DESTDIR)/usr/share/gnome/wm-properties). The use of
/usr/local/share/gnome/ is still respected if present.
Comment 2 Mike Gardiner (RETIRED) gentoo-dev 2003-10-20 10:32:53 UTC
that seems like a rather complicated way to solve the problem, raker can
you check the patch previously mentioned and the following one and decide
on a course of action ?

Thanks.
Comment 3 Mike Gardiner (RETIRED) gentoo-dev 2003-10-20 10:34:05 UTC
Created attachment 19541 [details, diff]
afterstep-2.0_beta2.ebuild.patch
Comment 4 Nick Hadaway 2003-10-21 02:02:52 UTC
The ebuild has been added to portage with a patch for the bad makefile and
with the dodir for the gnome windowmanager directory in the ebuild.  Please
test and let me know if you find any further problems.  Hopefully there will
be a final release of the 2.x series real soon now.

Doug's patch looked good to me so i took it as is.  It follows the coding
style of the upstream authors fairly well and accomplishes what we need for
Gentoo users.

This may be something we could suggest upstream to fix as this fix will make
life easier for packagers for all *nix distributions.  It would be nice to
include the creation of the directory within the makefile, so i'll modify
the patch and send it out.
Comment 5 Shahar Goldin 2003-10-23 19:41:19 UTC
it works!
danke
(closing)