Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93827 - kde-base/unsermake python module handling is non-existant
Summary: kde-base/unsermake python module handling is non-existant
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 95497 (view as bug list)
Depends on:
Blocks: 93682
  Show dependency tree
 
Reported: 2005-05-24 10:19 UTC by Jurek Bartuszek (RETIRED)
Modified: 2006-04-20 04:16 UTC (History)
3 users (show)

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


Attachments
Suggested patch to fix the problem (unsermake-patch,1.16 KB, patch)
2005-05-29 23:53 UTC, Patrick Kursawe (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jurek Bartuszek (RETIRED) gentoo-dev 2005-05-24 10:19:15 UTC
I'd like to report that there are problems when emerging the newest kradio version:

[...]
Good - your configure finished. Start make now

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
Traceback (most recent call last):
  File "/usr/kde/unsermake/unsermake", line 1554, in ?
    main()
  File "/usr/kde/unsermake/unsermake", line 1310, in main
    optlist, given_files = getopt.getopt(sys.argv[1:], 'vhr:', [
  File "/usr/lib/python2.3/getopt.py", line 91, in getopt
    opts, args = do_shorts(opts, args[0][1:], shortopts, args[1:])
  File "/usr/lib/python2.3/getopt.py", line 191, in do_shorts
    if short_has_arg(opt, shortopts):
  File "/usr/lib/python2.3/getopt.py", line 207, in short_has_arg
    raise GetoptError('option -%s not recognized' % opt, opt)
getopt.GetoptError: option -j not recognized

!!! ERROR: media-sound/kradio-1.0_beta1 failed.
!!! Function src_compile, Line 42, Exitcode 1
!!! unsermake failed
!!! If you need support, post the topmost build error, NOT this status message.

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-media-sound_-_kradio-1.0_beta1-8961.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
--------------------------------------------------------------------------------

It looks that ebuild tells emerge to operate on something out of its sandbox without proper permissions.
Comment 1 Jiri Tyr 2005-05-24 20:29:23 UTC
(In reply to comment #0)
> I'd like to report that there are problems when emerging the newest kradio
version:
> 
> [...]
> Good - your configure finished. Start make now
> 
> 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
> Traceback (most recent call last):
>   File "/usr/kde/unsermake/unsermake", line 1554, in ?
>     main()
>   File "/usr/kde/unsermake/unsermake", line 1310, in main
>     optlist, given_files = getopt.getopt(sys.argv[1:], 'vhr:', [
>   File "/usr/lib/python2.3/getopt.py", line 91, in getopt
>     opts, args = do_shorts(opts, args[0][1:], shortopts, args[1:])
>   File "/usr/lib/python2.3/getopt.py", line 191, in do_shorts
>     if short_has_arg(opt, shortopts):
>   File "/usr/lib/python2.3/getopt.py", line 207, in short_has_arg
>     raise GetoptError('option -%s not recognized' % opt, opt)
> getopt.GetoptError: option -j not recognized
> 
> !!! ERROR: media-sound/kradio-1.0_beta1 failed.
> !!! Function src_compile, Line 42, Exitcode 1
> !!! unsermake failed
> !!! If you need support, post the topmost build error, NOT this status message.
> 
> --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
> LOG FILE = "/tmp/sandbox-media-sound_-_kradio-1.0_beta1-8961.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
> --------------------------------------------------------------------------------
> 
> It looks that ebuild tells emerge to operate on something out of its sandbox
without proper permissions.


I have the same problem.
Comment 2 François-Xavier Payet 2005-05-25 00:13:31 UTC
Not exactly the same problem, but emerge fails due to sandbox to :

linking ./kradio3/plugins/timeshifter/libtimeshifter.la
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-media-sound_-_kradio-1.0_beta1-14749.log"

unlink:    /usr/kde/unsermake/utilities.pyc
open_wr:   /usr/kde/unsermake/utilities.pyc
unlink:    /usr/kde/unsermake/amfile.pyc
open_wr:   /usr/kde/unsermake/amfile.pyc
unlink:    /usr/kde/unsermake/handlerbase.pyc
open_wr:   /usr/kde/unsermake/handlerbase.pyc
unlink:    /usr/kde/unsermake/program.pyc
open_wr:   /usr/kde/unsermake/program.pyc
unlink:    /usr/kde/unsermake/target.pyc
open_wr:   /usr/kde/unsermake/target.pyc
--------------------------------------------------------------------------------
Comment 3 Jurek Bartuszek (RETIRED) gentoo-dev 2005-05-26 15:30:41 UTC
Now, after ebuild has been updated (has it?), I get such an error:

>>> Unpacking source...
>>> Unpacking kradio-1.0beta1.tar.bz2 to /var/tmp/portage/kradio-1.0_beta1/work
>>> Source unpacked.

!!! ERROR: media-sound/kradio-1.0_beta1 failed.
!!! Function econf, Line 488, Exitcode 1
!!! no configure script found
!!! If you need support, post the topmost build error, NOT this status message.

hell root #
Comment 4 Thomas Luft 2005-05-26 15:42:48 UTC
Confirmed, I get the same error message on my system
Comment 5 Patrick Kursawe (RETIRED) gentoo-dev 2005-05-27 06:22:06 UTC
The ebuild has not been updated, looks more like an unsermake problem. Which
"unsermake" version are you using?
Comment 6 Jurek Bartuszek (RETIRED) gentoo-dev 2005-05-27 06:39:28 UTC
That's what I have:

[ebuild   R   ] kde-base/unsermake-0.3.0.4254.0
Comment 7 Patrick Kursawe (RETIRED) gentoo-dev 2005-05-27 06:52:07 UTC
Please try again after upgrading to latest ~x86 unsermake. Works fine for me,
I'll update the kradio dependencies accordingly. Re-open this bug if this
doesn't solve the problem, sorry for any inconvenience and have a nice weekend.
Comment 8 Jurek Bartuszek (RETIRED) gentoo-dev 2005-05-27 07:09:31 UTC
Thanks for reply! I've upgraded unsermake to the ~x86 version. The compilation
proceedes, then. However, I still get some access violation errors:

[CUT]

config.pl: fast created 53 file(s).
config.status: creating config.h
config.status: executing depfiles commands

Good - your configure finished. Start make now

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
creating ./kradio3/src/libkradio-gui/standardscandialog-ui.h
creating ./kradio3/src/libkradio-gui/stationselector-ui.h
creating ./kradio3/src/libkradio/pluginmanager-configuration-ui.h

[CUT]

linking ./kradio3/plugins/radio/libradio.la
linking ./kradio3/plugins/oss-sound/liboss-sound.la
linking ./kradio3/plugins/timeshifter/libtimeshifter.la
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-media-sound_-_kradio-1.0_beta1-4756.log"

unlink:    /usr/kde/unsermake/utilities.pyc
open_wr:   /usr/kde/unsermake/utilities.pyc
unlink:    /usr/kde/unsermake/amfile.pyc
open_wr:   /usr/kde/unsermake/amfile.pyc
unlink:    /usr/kde/unsermake/handlerbase.pyc
open_wr:   /usr/kde/unsermake/handlerbase.pyc
unlink:    /usr/kde/unsermake/program.pyc
open_wr:   /usr/kde/unsermake/program.pyc
unlink:    /usr/kde/unsermake/target.pyc
open_wr:   /usr/kde/unsermake/target.pyc
--------------------------------------------------------------------------------

Thus, emerge still fails to install kradio :(
Comment 9 Gerald Fraser 2005-05-27 22:36:20 UTC
still the same after unsermake-0.3.1.4319.0 followed by kradio--1.0_beta1 attempt
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-media-sound_-_kradio-1.0_beta1-13831.log"

unlink:    /usr/kde/unsermake/utilities.pyc
open_wr:   /usr/kde/unsermake/utilities.pyc
unlink:    /usr/kde/unsermake/amfile.pyc
open_wr:   /usr/kde/unsermake/amfile.pyc
unlink:    /usr/kde/unsermake/handlerbase.pyc
open_wr:   /usr/kde/unsermake/handlerbase.pyc
unlink:    /usr/kde/unsermake/program.pyc
open_wr:   /usr/kde/unsermake/program.pyc
unlink:    /usr/kde/unsermake/target.pyc
open_wr:   /usr/kde/unsermake/target.pyc
--------------------------------------------------------------------------------
Comment 10 Jiri Tyr 2005-05-29 01:36:42 UTC
I have to agree. Still the same violation error:

...
linking ./kradio3/plugins/recording/librecording.la
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-media-sound_-_kradio-1.0_beta1-17951.log"

unlink:    /usr/kde/unsermake/utilities.pyc
open_wr:   /usr/kde/unsermake/utilities.pyc
unlink:    /usr/kde/unsermake/amfile.pyc
open_wr:   /usr/kde/unsermake/amfile.pyc
unlink:    /usr/kde/unsermake/handlerbase.pyc
open_wr:   /usr/kde/unsermake/handlerbase.pyc
unlink:    /usr/kde/unsermake/program.pyc
open_wr:   /usr/kde/unsermake/program.pyc
unlink:    /usr/kde/unsermake/target.pyc
open_wr:   /usr/kde/unsermake/target.pyc
--------------------------------------------------------------------------------
Comment 11 Jurek Bartuszek (RETIRED) gentoo-dev 2005-05-29 15:25:27 UTC
I don't know much of making ebuilds, but isn't there some `addwrite` directive
required to be placed into the kradio ebuild in order to make emerge -u kradio
work? I've just remembered that I'd recently had similar problems trying to
write a net-dialup/cutecom ebuild. After adding addwrite
"${QTDIR}/etc/settings/" to the src_compile section it worked like a charm. But
what could it possibly be? "${KDEDIR}/unsermake", I guess?
Comment 12 Patrick Kursawe (RETIRED) gentoo-dev 2005-05-29 23:52:07 UTC
Yes, this "addwrite" exists. But the problem in this case is (IMHO) that the
"unsermake" ebuild does not precompile the unsermake python scripts. It should
be fixed there.
If you just want a quick fix, simply run "/usr/kde/unsermake/unsermake" as root.

Comment 13 Patrick Kursawe (RETIRED) gentoo-dev 2005-05-29 23:53:46 UTC
Created attachment 60162 [details, diff]
Suggested patch to fix the problem

I am no python module expert, but the attached patch seems to work for me.
Comment 14 Jiri Tyr 2005-06-02 16:58:40 UTC
> I am no python module expert, but the attached patch seems to work for me.

It didn't work for me :o(
Comment 15 Patrick Kursawe (RETIRED) gentoo-dev 2005-06-03 05:23:19 UTC
(In reply to comment #14)
> It didn't work for me :o(

Can't do much about it if you don't tell what you tried and what happened.
"Doesn't work" isn't very helpful.
Comment 16 Jiri Tyr 2005-06-05 15:17:00 UTC
> Can't do much about it if you don't tell what you tried and what happened.
> "Doesn't work" isn't very helpful.

The patch didn't solved the problem with new ebuild of kradio. Still the same
ACCESS VIOLATION SUMMARY error message.
Comment 17 Thomas Luft 2005-06-05 15:33:49 UTC
After the last emerge everything compiles  ok
Comment 18 Patrick Kursawe (RETIRED) gentoo-dev 2005-06-05 22:21:30 UTC
(In reply to comment #16)

> The patch didn't solved the problem with new ebuild of kradio. Still the same
> ACCESS VIOLATION SUMMARY error message.

Would be nice if you could do some additional diagnostics.

A) after emerging the patched unsermake, are the *.pyc files there or not?
B) if not, are you sure you really emerged the patched version? Please clean
your /var/tmp/portage directory and attach the output of the emerge if you don't
get the *.pyc files.
Comment 19 Jiri Tyr 2005-06-06 13:00:26 UTC
> A) after emerging the patched unsermake, are the *.pyc files there or not?

ls -w 1 /usr/kde/unsermake/*.pyc
/usr/kde/unsermake/amfile.pyc
/usr/kde/unsermake/handlerbase.pyc
/usr/kde/unsermake/program.pyc
/usr/kde/unsermake/target.pyc
/usr/kde/unsermake/utilities.pyc

> B) if not, are you sure you really emerged the patched version? Please clean
> your /var/tmp/portage directory and attach the output of the emerge if you don't
> get the *.pyc files.

emerge kradio
Calculating dependencies ...done!
>>> emerge (1 of 1) media-sound/kradio-1.0_beta1 to /
....
fast creating kradio3/src/libkradio/Makefile
fast creating kradio3/src/libkradio-gui/Makefile
fast creating kradio3/src/radio-stations/Makefile
config.pl: fast created 53 file(s).
config.status: creating config.h
config.status: executing depfiles commands

Good - your configure finished. Start make now

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/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
creating ./kradio3/src/libkradio-gui/stationselector-ui.h
creating ./kradio3/src/libkradio/pluginmanager-configuration-ui.h
....
linking ./kradio3/plugins/v4lradio/libv4lradio.la
linking ./kradio3/plugins/recording/librecording.la
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-media-sound_-_kradio-1.0_beta1-3322.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/program.pyc
open_wr:   /usr/kde/unsermake/program.pyc
unlink:    /usr/kde/unsermake/target.pyc
open_wr:   /usr/kde/unsermake/target.pyc
--------------------------------------------------------------------------------

That is the problem. If you know what shut it be, please help me. Thank you very
much.
Comment 20 Patrick Kursawe (RETIRED) gentoo-dev 2005-06-06 22:23:46 UTC
I don't understand it... could you please try to run
"/usr/kde/unsermake/unsermake" as root once and then retry kradio?
Comment 21 Jiri Tyr 2005-06-07 11:21:17 UTC
> I don't understand it... could you please try to run
> "/usr/kde/unsermake/unsermake" as root once and then retry kradio?

After runing /usr/kde/unsermake/unsermake as root it print only this message:

no file Makefile present

Then I run emerge kradio and it's look that it works now. I don't know where was
the bug, but it woks now. Thank you very much for your help.
Comment 22 Patrick Kursawe (RETIRED) gentoo-dev 2005-06-08 01:08:42 UTC
(In reply to comment #21)
> > I don't understand it... could you please try to run
> > "/usr/kde/unsermake/unsermake" as root once and then retry kradio?
> 
> After runing /usr/kde/unsermake/unsermake as root it print only this message:
> 
> no file Makefile present
> 
> Then I run emerge kradio and it's look that it works now. I don't know where was
> the bug, but it woks now. Thank you very much for your help.

That it works now is no big surprise because if you run it, it gets compiled (if
necessary).
I just still wonder why the files compiled by the unsermake ebuild weren't good
enough.
Comment 23 Gregorio Guidi (RETIRED) gentoo-dev 2005-06-08 15:38:00 UTC
*** Bug 95497 has been marked as a duplicate of this bug. ***
Comment 24 Jurek Bartuszek (RETIRED) gentoo-dev 2006-04-20 04:16:30 UTC
Since this bug is pretty old, a new version of kradio is already out and the access violation does not occur anymore, I think I can close this bug