Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62328 - kdebase-3.3.0 fails with unsermake
Summary: kdebase-3.3.0 fails with unsermake
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-30 19:34 UTC by Martin Rieder
Modified: 2005-07-14 09:59 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 Martin Rieder 2004-08-30 19:34:31 UTC
I've tried this with and without sandbox and userpriv in FEATURES. Compiling kdelibs worked just fine, but now kdebase just fails after unpacking the source, reporting access violations in /usr/kde/unsermake/.

Reproducible: Always
Steps to Reproduce:
1. export UNSERMAKE=/usr/kde/unsermake/unsermake
2. FEATURES="userpriv ccache distcc nostrip" USE="debug" sudo emerge kdebase kdegraphics kdeartwork kdeutils kdenetwork kdemultimedia kdeadmin kdesdk kde-i18n kdepim kdeaddons


Actual Results:  
>>> emerge (1 of 11) kde-base/kdebase-3.3.0 to / 
>>> md5 src_uri ;-) kdebase-3.3.0.tar.bz2 
>>> Unpacking source... 
>>> Unpacking kdebase-3.3.0.tar.bz2 to /var/tmp/portage/kdebase-3.3.0/work 
 * Applying startkde-3.3.0-gentoo.diff...                                [ ok ] 
 * Applying 3.3.0-kwinrules-Makefile.am.diff...                          [ ok ] 
ACCESS DENIED  unlink:    /usr/kde/unsermake/utilities.pyc 
ACCESS DENIED  open_wr:   /usr/kde/unsermake/utilities.pyc 
ACCESS DENIED  unlink:    /usr/kde/unsermake/handlerbase.pyc 
ACCESS DENIED  open_wr:   /usr/kde/unsermake/handlerbase.pyc 
ACCESS DENIED  unlink:    /usr/kde/unsermake/target.pyc 
ACCESS DENIED  open_wr:   /usr/kde/unsermake/target.pyc 
ACCESS DENIED  unlink:    /usr/kde/unsermake/program.pyc 
ACCESS DENIED  open_wr:   /usr/kde/unsermake/program.pyc 
*** YOU'RE USING UNSERMAKE. 
*** GOOD LUCK!! :) 
*** Creating acinclude.m4 
*** Creating list of subdirectories 
*** Creating Makefile.am 
*** Creating configure.files 
*** Creating configure.in 
*** Creating aclocal.m4 
*** Creating configure 
*** Creating config.h template 
*** Creating Makefile templates 
ACCESS DENIED  unlink:    /usr/kde/unsermake/utilities.pyc 
ACCESS DENIED  open_wr:   /usr/kde/unsermake/utilities.pyc 
ACCESS DENIED  unlink:    /usr/kde/unsermake/handlerbase.pyc 
ACCESS DENIED  open_wr:   /usr/kde/unsermake/handlerbase.pyc 
ACCESS DENIED  unlink:    /usr/kde/unsermake/target.pyc 
ACCESS DENIED  open_wr:   /usr/kde/unsermake/target.pyc 
ACCESS DENIED  unlink:    /usr/kde/unsermake/program.pyc 
ACCESS DENIED  open_wr:   /usr/kde/unsermake/program.pyc 
kicker/extensions/kasbar/Makefile.am: test_kasbar_LDADD contains a module. This is not portable! 
     You can only link against libraries. 
Makefile.am: GENERATE_FLAG is not defined but used 
Makefile.am: DOXYGEN_EXCLUDE is not defined but used 
Makefile.am: DOXYGEN_REFERENCES is not defined but used 
kate/Makefile.am: GENERATE_FLAG is not defined but used 
kate/Makefile.am: DOXYGEN_EXCLUDE is not defined but used 
kate/Makefile.am: DOXYGEN_REFERENCES is not defined but used 
khotkeys/update/Makefile.rules: kconfdir is not defined but used 
Makefile.rules: DEVICES_SUBDIR already defined 
kioslave/imap4/Makefile.am: SUBDIRS is not defined but used 
kioslave/imap4/Makefile.am: GENERATE_FLAG is not defined but used 
kioslave/imap4/Makefile.am: DOXYGEN_EXCLUDE is not defined but used 
kioslave/imap4/Makefile.am: DOXYGEN_REFERENCES is not defined but used 
kwin/Makefile.am: GENERATE_FLAG is not defined but used 
kwin/Makefile.am: DOXYGEN_EXCLUDE is not defined but used 
kwin/Makefile.am: DOXYGEN_REFERENCES is not defined but used 
kwin/lib/Makefile.am: SUBDIRS is not defined but used 
kwin/lib/Makefile.am: GENERATE_FLAG is not defined but used 
kwin/lib/Makefile.am: DOXYGEN_EXCLUDE is not defined but used 
kwin/lib/Makefile.am: DOXYGEN_REFERENCES is not defined but used 
libkonq/Makefile.am: GENERATE_FLAG is not defined but used 
libkonq/Makefile.am: DOXYGEN_EXCLUDE is not defined but used 
libkonq/Makefile.am: DOXYGEN_REFERENCES is not defined but used 
*** Creating date/time stamp 
*** Finished 
    Don't forget to run ./configure 
    If you haven't done so in a while, run ./configure --help 
>>> Source unpacked. 
--------------------------- ACCESS VIOLATION SUMMARY --------------------------- 
LOG FILE = "/tmp/sandbox-kde-base_-_kdebase-3.3.0-29248.log" 
 
unlink:    /usr/kde/unsermake/utilities.pyc 
open_wr:   /usr/kde/unsermake/utilities.pyc 
unlink:    /usr/kde/unsermake/handlerbase.pyc 
open_wr:   /usr/kde/unsermake/handlerbase.pyc 
unlink:    /usr/kde/unsermake/target.pyc 
open_wr:   /usr/kde/unsermake/target.pyc 
unlink:    /usr/kde/unsermake/program.pyc 
open_wr:   /usr/kde/unsermake/program.pyc 
unlink:    /usr/kde/unsermake/utilities.pyc 
open_wr:   /usr/kde/unsermake/utilities.pyc 
unlink:    /usr/kde/unsermake/handlerbase.pyc 
open_wr:   /usr/kde/unsermake/handlerbase.pyc 
unlink:    /usr/kde/unsermake/target.pyc 
open_wr:   /usr/kde/unsermake/target.pyc 
unlink:    /usr/kde/unsermake/program.pyc 
open_wr:   /usr/kde/unsermake/program.pyc 
-------------------------------------------------------------------------------- 

Expected Results:  
It should compile kdebase-3.3.0... 

Portage 2.0.50-r10 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.8-gentoo-r3) 
================================================================= 
System uname: 2.6.8-gentoo-r3 i686 Pentium III (Coppermine) 
Gentoo Base System version 1.4.16 
distcc[1519] (dcc_set_trace_from_env) ERROR: failed to open logfile /var/log/distcc.log: Permission 
denied [disabled] 
ccache version 2.3 [enabled] 
Autoconf: sys-devel/autoconf-2.59-r3 
Automake: sys-devel/automake-1.8.3 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=pentium3 -O3 -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="" 
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/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=pentium3 -O3 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="http://mirrors.tds.net/gentoo ftp://ftp.ndlug.nd.edu/pub/gentoo/ 
http://mirror.datapipe.net/gentoo http://gentoo.seren.com/gentoo" 
MAKEOPTS="-j3" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" 
USE="X aalib acpi adns alsa apache2 apm arts artswrappersuid avi bootsplash cdparanoia crypt 
cscope cups divx4linux dvd dvdread encode esd fbcon foomaticdb gd gif gnome gphoto2 gpm gtk 
gtk2 imlib imlib2 ipv6 jpeg kde libcaca libg++ libwww linguas_de lzo mad mikmod mmx motif mpeg 
mysql ncurses network nls nptl odbc oggvorbis opengl oss pam pdflib png pnp qt quicktime readline 
rtc samba sdl slang spell sse ssl svga tcpd tga tiff truetype trusted v4l v4l2 wifi x86 xinerama xml2 
xmms xv xvid zlib"
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2004-08-31 05:54:51 UTC
i don't think unsermake is the problem, i think sudo is.

the kde eclass sets read/write permissions on /usr/kde/unsermake directory during build time.  those aren't staying set across the sudo.
Comment 2 Martin Rieder 2004-08-31 09:42:12 UTC
I tried running it as root, but I'm still having this problem.

Here's /usr/kde/unsermake...

drwxr-xr-x  3 root root  4096 30. Aug 13:54 .
drwxr-xr-x  5 root root  4096 30. Aug 13:54 ..
-rw-r--r--  1 root root  1032 30. Aug 13:54 assembler.um
-rw-r--r--  1 root root  1103 30. Aug 13:54 autodirs.um
-rw-r--r--  1 root root  1191 30. Aug 13:54 checkrcs.um
-rw-r--r--  1 root root  2511 30. Aug 13:54 dcopidl.um
-rw-r--r--  1 root root  3025 30. Aug 13:54 designer.um
-rw-r--r--  1 root root   980 30. Aug 13:54 destdir.um
-rw-r--r--  1 root root  1533 30. Aug 13:54 dist.um
drwxr-xr-x  2 root root  4096 30. Aug 13:54 doc
-rw-r--r--  1 root root  5597 30. Aug 13:54 docs.um
-rw-r--r--  1 root root  1218 30. Aug 13:54 flex.um
-rw-r--r--  1 root root   401 30. Aug 13:54 handlerbase.py
-rw-r--r--  1 root root  4548 30. Aug 13:54 icons.um
-rw-r--r--  1 root root  1413 30. Aug 13:54 kcfg.um
-rw-r--r--  1 root root  3349 30. Aug 13:54 kdeinit.um
-rw-r--r--  1 root root  7809 30. Aug 13:54 mocs.um
-rw-r--r--  1 root root  4554 30. Aug 13:54 pofiles.um
-rw-r--r--  1 root root 16818 30. Aug 13:54 program.py
-rw-r--r--  1 root root  1155 30. Aug 13:54 README
-rw-r--r--  1 root root  2255 30. Aug 13:54 target.py
-rw-r--r--  1 root root  3130 30. Aug 13:54 TODO
-rwxr-xr-x  1 root root 54398 30. Aug 13:54 unsermake
-rw-r--r--  1 root root  3374 30. Aug 13:54 utilities.py
-rw-r--r--  1 root root  2031 30. Aug 13:54 yacc.um

It's weird that the files it's complaining about aren't there.

I tried chown'ing everything to portage:portage and still got the error.
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2004-08-31 09:55:24 UTC
It's attempting to create those files during the build, which is why it's complaining.  The permissions to write to that directory are set up in the ebuild, so I'm not sure where hte problem is coming from.  I just tried it and it works fine here.

Did you get rid of the "userpriv" in the use flags also?

Perhaps "touch"ing the ebuild will make portage recache things?  You can try to rm -rf /var/tmp/portage/kdebase-3.3.0* and see if that helps.
Comment 4 Martin Rieder 2004-08-31 10:18:25 UTC
I also tried that, but I'm still having problems. I even tried making /usr/kde/unsermake globally writable.

emerge info now reports: FEATURES="autoaddcvs ccache distcc nostrip sandbox"
Is there a way to get rid of the sandbox? I never set this in make.conf.
Comment 5 Martin Rieder 2004-08-31 11:30:38 UTC
Okay, after comparing the kdelibs-3.3.0 and kdebase-3.3.0 ebuilds, I added "set-kdedir 3.3" to the latter and that solved the problem.
Comment 6 Martin Rieder 2004-08-31 21:02:06 UTC
I just realized that after emerging kdebase, the unsermake directory has all the .pyc files in it, Portage has been complaining about.

In order to check, I deleted those files and started emerging kdepim, which doesn't seem to require either "set-kdedir 3.3" or those files.

This is weird, however, I request that "set-kdedir 3.3" be added to at least kdebase. I'm not sure what it does exactly, but it doesn't seem to hurt.
Comment 7 Sterling Christensen 2004-09-25 10:39:42 UTC
I'm getting the same ACCESS DENIED errors here, but with arts-1.3.0 instead.

unsermake-0.3.0.4254.0
Comment 8 Elan Ruusamäe 2004-10-23 04:56:31 UTC
me too (arts & unsermake).
i think unsermake tries to compile the .py sources at runtime, which should be done instead of package postinst stage?


>>> emerge (1 of 477) kde-base/arts-1.3.0 to /
>>> md5 src_uri ;-) arts-1.3.0.tar.bz2
>>> Unpacking source...
>>> Unpacking arts-1.3.0.tar.bz2 to /var/tmp/portage/arts-1.3.0/work
 * Applying 1.3.0-jack-configure.in.in.patch ...                                                                   [ ok ]
Running sed on Makefile.am
Running sed on Makefile.in
ACCESS DENIED  unlink:    /usr/kde/unsermake/utilities.pyc
ACCESS DENIED  open_wr:   /usr/kde/unsermake/utilities.pyc
ACCESS DENIED  unlink:    /usr/kde/unsermake/amfile.pyc
ACCESS DENIED  open_wr:   /usr/kde/unsermake/amfile.pyc
ACCESS DENIED  unlink:    /usr/kde/unsermake/handlerbase.pyc
ACCESS DENIED  open_wr:   /usr/kde/unsermake/handlerbase.pyc
ACCESS DENIED  unlink:    /usr/kde/unsermake/program.pyc
ACCESS DENIED  open_wr:   /usr/kde/unsermake/program.pyc
ACCESS DENIED  unlink:    /usr/kde/unsermake/target.pyc
ACCESS DENIED  open_wr:   /usr/kde/unsermake/target.pyc
*** YOU'RE USING UNSERMAKE.
*** GOOD LUCK!! :)
*** Creating acinclude.m4
*** Creating list of subdirectories
*** Creating Makefile.am
*** Creating configure.files
*** Creating configure.in
*** Creating aclocal.m4
*** Creating configure


# cat /tmp/sandbox-kde-base_-_arts-1.3.0-301.log|nf|sort -u|xargs ls -l
ls: /usr/kde/unsermake/amfile.pyc: No such file or directory
-rw-r--r--  1 root root  2442 Oct 13 09:04 /usr/kde/unsermake/handlerbase.pyc
-rw-r--r--  1 root root 19300 Oct 13 09:04 /usr/kde/unsermake/program.pyc
-rw-r--r--  1 root root  4850 Oct 13 09:04 /usr/kde/unsermake/target.pyc
-rw-r--r--  1 root root  5305 Oct 13 09:04 /usr/kde/unsermake/utilities.pyc


gehenna(haarber) linux # emerge info
Portage 2.0.51-r2 (default-linux/x86/2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r2, 2.4.22-1.2115.nptlsmp i686)
=================================================================
System uname: 2.4.22-1.2115.nptlsmp i686 Intel(R) Xeon(TM) CPU 2.80GHz
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.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/share/config /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=pentium3 -march=pentium3 -mfpmath=sse -msse -mmmx -Os -pipe -fomit-frame-pointer -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distcc distlocks noinfo sandbox sfperms userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.linux.ee/pub/gentoo/distfiles http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.linux.no/ ftp://gentoo.linux.no/pub/gentoo/ http://ftp.easynet.nl/mirror/gentoo/"
MAKEOPTS="-j22"
PKGDIR="/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/gentoo/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X alsa apache2 apm arts artswrappersuid avi bitmap-fonts chroot crypt cups dga directfb divx4linux dvd encode fam flac foomaticdb ggi gif gphoto2 gpm gstreamer gtk2 imagemagick imlib jpeg kde libg++ libwww lirc mad maildir memlimit mmx mng motif mozilla mpeg ncurses oggvorbis opengl oss pam perl png pthreads qt quicktime samba sdl slang speex spell sse ssl svg tiff truetype wmf x86 xinerama xml xml2 xprint xv xvid zlib video_cards_rage128 linguas_et"


Comment 9 Elan Ruusamäe 2004-10-23 04:58:50 UTC
i ran emerge of that arts once with FEATURES=-sandbox
and now the error has dissapeared.
Comment 10 Elan Ruusamäe 2004-10-23 05:02:24 UTC
sorry, mine unsermake version is: 0.3.1.4280.0
Comment 11 Caleb Tennis (RETIRED) gentoo-dev 2005-07-14 09:59:38 UTC
assuming fixed