Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 252774 - lxde-base/lxpanel-0.3.8.1 ebuild aborts with access denied message.
Summary: lxde-base/lxpanel-0.3.8.1 ebuild aborts with access denied message.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: LXDE team (DEFUNCT)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-28 04:24 UTC by Guy
Modified: 2009-01-05 18:00 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 Guy 2008-12-28 04:24:47 UTC
I was interested in trying out LXDE as mentioned in the November newsletter.

Issued emerge command: emerge lxde-meta

Emerge halted on lxpanel with an access denied message.

I'm guessing here since I'm not a programmer. But, it looks like the build is trying to remove files which don't exist. Since this is the first time I've ever built LXDE, this is a non-existent directory. 

.oOo.

make[5]: Entering directory `/var/tmp/portage/lxde-base/lxpanel-0.3.8.1/work/lxpanel-0.3.8.1/src/plugins/netstatus'
rm -f "/usr/lib64/lxpanel/plugins\*.la" *.a
ACCESS DENIED  unlinkat:  /usr/lib64/lxpanel/plugins\*.la
rm: cannot remove `/usr/lib64/lxpanel/plugins\\*.la': Permission denied
make[5]: *** [install-exec-hook] Error 1
make[5]: Leaving directory `/var/tmp/portage/lxde-base/lxpanel-0.3.8.1/work/lxpanel-0.3.8.1/src/plugins/netstatus'
make[4]: *** [install-exec-am] Error 2
make[4]: Leaving directory `/var/tmp/portage/lxde-base/lxpanel-0.3.8.1/work/lxpanel-0.3.8.1/src/plugins/netstatus'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/var/tmp/portage/lxde-base/lxpanel-0.3.8.1/work/lxpanel-0.3.8.1/src/plugins/netstatus'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/lxde-base/lxpanel-0.3.8.1/work/lxpanel-0.3.8.1/src/plugins'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/lxde-base/lxpanel-0.3.8.1/work/lxpanel-0.3.8.1/src'
make: *** [install-recursive] Error 1
 *
 * ERROR: lxde-base/lxpanel-0.3.8.1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_install
 *             environment, line  188:  Called die
 * The specific snippet of code:
 *       emake DESTDIR="${D}" install || die "emake install failed";
 *  The die message:
 *   emake install failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/lxde-base/lxpanel-0.3.8.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/lxde-base/lxpanel-0.3.8.1/temp/environment'.
 *
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-12823.log"

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: unlinkat
S: deny
P: /usr/lib64/lxpanel/plugins\*.la
A: /usr/lib64/lxpanel/plugins\*.la
R: /usr/lib64/lxpanel/plugins\*.la
C: rm -f /usr/lib64/lxpanel/plugins\*.la *.a
--------------------------------------------------------------------------------

.oOo.

I created the directory:

/usr/lib64/lxpanel/plugins

I created a file in this directory:

# cd /usr/lib64/lxpanel/plugins
# echo " " > test.la

I re-ran the ebuild directly:

# emerge lxpanel

The ebuild passed the above step but failed the next step.

.oOo.

make  install-exec-hook
make[5]: Entering directory `/var/tmp/portage/lxde-base/lxpanel-0.3.8.1/work/lxpanel-0.3.8.1/src/plugins/netstatus'
rm -f "/usr/lib64/lxpanel/plugins\*.la" *.a
test -z "/usr/lib64/lxpanel/plugins" || /bin/mkdir -p "/var/tmp/portage/lxde-base/lxpanel-0.3.8.1/image//usr/lib64/lxpanel/plugins"
ACCESS DENIED  unlinkat:  /usr/lib64/lxpanel/plugins\*.la
rm: cannot remove `/usr/lib64/lxpanel/plugins\\*.la': Permission denied

.oOo.

Sorry - at this point I'm definitely over my head. Hope this helps someone.

Reproducible: Always

Steps to Reproduce:
This is the results of my "emerge -pDv lxde-meta":

slizard src # emerge -pDv lxde-meta

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] lxde-base/lxsession-lite-0.3.6  225 kB
[ebuild  N    ] lxde-base/lxtask-0.1  231 kB
[ebuild  N    ] lxde-base/lxappearance-0.2  142 kB
[ebuild  N    ] lxde-base/lxpanel-0.3.8.1  USE="X alsa -wifi" 696 kB
[ebuild  N    ] media-gfx/gpicview-0.1.10  420 kB
[ebuild  N    ] lxde-base/lxde-common-0.3.2.1  5,274 kB
[ebuild  N    ] lxde-base/lxrandr-0.1  110 kB
[ebuild  N    ] x11-misc/pcmanfm-0.5  USE="hal" 843 kB
[ebuild  N    ] x11-wm/openbox-3.4.8_rc1  USE="nls startup-notification xinerama" 780 kB
[ebuild  N    ] lxde-base/lxlauncher-0.2  123 kB
[ebuild  N    ] lxde-base/lxterminal-0.1.3  230 kB
[ebuild  N    ] lxde-base/lxde-meta-0.3.2.1  0 kB

Total: 12 packages (12 new), Size of downloads: 9,068 kB


.oOo.





slizard ~ # emerge --info
Portage 2.2_rc19 (default/linux/amd64/2008.0/desktop, gcc-4.2.4, glibc-2.9_p20081201-r1, 2.6.25.20 x86_64)
=================================================================
System uname: Linux-2.6.25.20-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5200+-with-glibc2.2.5
Timestamp of tree: Sat, 27 Dec 2008 20:30:02 +0000
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.1
sys-apps/sandbox:    1.3.2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=opteron -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=opteron -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X a52 aac aalib accessibility acl acpi aften aiglx aim aimextras aio akode allegro alsa amarok amazon amd amd64 amr ao aotuv apache2 asterisk async atlas audacious audiofile automount avahi bash-completion bdf berkdb bigpatch binary-drivers bittorrent blender-game bluetooth bonjour bonobo boost branding bsf bzip2 cairo ccache cdaudio cdda cddb cdio cdparanoia cdr cdrom cgi chm chroot cli commercial config-log corba cracklib crypt css cups curl curlwrappers dbase dbm dbus dbx depth32 devhelp dga dia directfb djvu dpms dri dts dv dvb dvd dvdr dvdread dynamic eds effects emboss emovix emul-linux-x86 enblend encode enscript esd evo exif expat extrafilters fam fame fastcgi fat fbcon fbdev ffmpeg fftw filter firefox flac flash font-server fontconfig foomaticdb fortran fping fpx ftp fuse gatos gcj gd gdbm geoip ggi gif gimp gimpprint glib glibc-omitfp glitz glut gmail gmailtimestamps gmp gnutls gocr gpac gphoto2 gpm grammar graphicsmagick graphviz gs gstreamer gstreamer010 gtk gtkhtml guile gzip hal hddtemp hdri html htmlhandbook httpd iconv icq icu id3 idea imagemagick imap imlib inkjar insecure-savers ipfilter ipsec ipv6 irc isdnlog jabber jack java javascript jbig jikes jpeg jpeg2k junit kde kdexdeltas kerberos kipi lame lash latex lcms ldap lesstiff libcaca libg++ libnotify libsamplerate libvisual libwww linuxthreads-tls live lm_sensors logrotate lyx lzo lzw mad maildir mailwrapper matroska midi mikmod milter mime ming mjpeg mmap mmx mmxext mng mod modplug mono mozdevelop moznoirc moznomail mozsha1 mp2 mp3 mp4 mp4live mpeg mpeg2 mpi mplayer msn msql mudflap multilib multiuser musepack mysql mysqli nas ncurses network nfs nls nntp nodrm nptl nptlonly nsplugin ntfs nxclient ocrad odbc odk offensive ogg ole on-the-fly-crypt openal opendoc openexr opengl openmp openssl opensslcrypt osc oscar oss ots pam pam_chroot pam_timestamp pango passwordsave paste64 pcre pda pdf perl php player plib plotutils plugins png portaudio posix postrgres postscript povray ppds pppd print ps pulseaudio python q32 qt3 qt3support qt4 quicktime rar rc5 rdesktop readline recode reflection regex reiser4 reiserfs restrict-javascript rle rss rtc rtsp ruby samba sasl scanner screen sdk sdl sdl-image seamonkey sensord session sftp sftplogging sharedmem shorten shout sift simplexml skins slang sndfile snmp soap sockets sox speedo speex spell spf spl sql sqlite srs sse sse2 ssl startup-notification stream streamripper submenu subp subtitles subversion svg svgz swat sysfs syslog szip t1lib taglib tagwriter tcl tcltk tcpd tcpwrapper tesseract tetex tga theora thesaurus threads tidy tiff timidity tk tokenizer toolbar tools totem transcode truetype tta type1 udev unicode unzip usb utempter utils uudeview v4l v4l2 vcd vdr vfat vhosts visualization vlm vorbis vorbis-psy wav wavpack winbind winf wma wmf wordperfect wv wxwindows x264 xanim xcomposite xeo xface xforms xfs xft xine xinerama xml xmlrpc xorg xosd xpm xprint xscreensaver xulrunner xv xvid xvmc yaepg yahoo zeroconf zip zlib zoran" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon minolta konica" ELIBC="glibc" INPUT_DEVICES="wacom keyboard mouse evdev" KERNEL="linux" USERLAND="GNU" VIDEO_CARDS="vesa ati radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-12-29 00:42:28 UTC
This is not good. Looks like the build system is trying to access files on the root fs. Assigning to maintainers.
Comment 2 Ben de Groot (RETIRED) gentoo-dev 2009-01-01 22:00:09 UTC
Could you attach the complete build log please?
Comment 3 Ben de Groot (RETIRED) gentoo-dev 2009-01-02 00:37:41 UTC
Scratch that. I figured it out. Fix committed to CVS. Thanks for reporting!
Comment 4 Guy 2009-01-05 18:00:53 UTC
(In reply to comment #3)
> Scratch that. I figured it out. Fix committed to CVS. Thanks for reporting!
> 

You're welcome and thank you Ben. I wasn't available this weekend to check it out. Will do so ASAP.