<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>56995</bug_id>
          
          <creation_ts>2004-07-14 01:31 0000</creation_ts>
          <short_desc>sandbox violation in planner-0.12</short_desc>
          <delta_ts>2004-07-14 05:38:33 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>andrew@operationaldynamics.com</reporter>
          <assigned_to>gnome@gentoo.org</assigned_to>
          <cc>python@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>andrew@operationaldynamics.com</who>
            <bug_when>2004-07-14 01:31:20 0000</bug_when>
            <thetext>Only occurs with (new, ~arch) planner-0.12 ebuild.

Does not occur when merging planner-0.11.

No differences between two ebuilds, :. conclude problem upstream.

Problem in make phase (not make install), probably due to call to /usr/bin/pygtk-codegen-2.0, whatever that is.


make[2]: Entering directory `/export/tmp/portage/planner-0.12/work/planner-0.12/python&apos;
if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include/python2.3 -I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -pthread -DORBIT2=1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/orbit-2.0      -Wno-missing-declarations -Wno-missing-prototypes -march=pentium3 -O2 -pipe -fomit-frame-pointer -MT planner_la-plannermodule.lo -MD -MP -MF &quot;.deps/planner_la-plannermodule.Tpo&quot; \
  -c -o planner_la-plannermodule.lo `test -f &apos;plannermodule.c&apos; || echo &apos;./&apos;`plannermodule.c; \
then mv -f &quot;.deps/planner_la-plannermodule.Tpo&quot; &quot;.deps/planner_la-plannermodule.Plo&quot;; \
else rm -f &quot;.deps/planner_la-plannermodule.Tpo&quot;; exit 1; \
fi
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include/python2.3 -I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -DORBIT2=1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/orbit-2.0 -Wno-missing-declarations -Wno-missing-prototypes -march=pentium3 -O2 -pipe -fomit-frame-pointer -MT planner_la-plannermodule.lo -MD -MP -MF .deps/planner_la-plannermodule.Tpo -c plannermodule.c  -fPIC -DPIC -o .libs/planner_la-plannermodule.o
(cd .\
 &amp;&amp; /usr/bin/pygtk-codegen-2.0 \
    --override planner.override \
            --load-types planner-arg-types.py \
    --prefix planner planner.defs) &gt; gen-planner.c \
&amp;&amp; cp gen-planner.c planner.c \
&amp;&amp; rm -f gen-planner.c
ACCESS DENIED  unlink:    /usr/share/pygtk/2.0/codegen/defsparser.pyc
ACCESS DENIED  open_wr:   /usr/share/pygtk/2.0/codegen/defsparser.pyc
ACCESS DENIED  unlink:    /usr/share/pygtk/2.0/codegen/scmexpr.pyc
ACCESS DENIED  open_wr:   /usr/share/pygtk/2.0/codegen/scmexpr.pyc
ACCESS DENIED  unlink:    /usr/share/pygtk/2.0/codegen/definitions.pyc
ACCESS DENIED  open_wr:   /usr/share/pygtk/2.0/codegen/definitions.pyc
ACCESS DENIED  unlink:    /usr/share/pygtk/2.0/codegen/argtypes.pyc
ACCESS DENIED  open_wr:   /usr/share/pygtk/2.0/codegen/argtypes.pyc
ACCESS DENIED  unlink:    /usr/share/pygtk/2.0/codegen/override.pyc
ACCESS DENIED  open_wr:   /usr/share/pygtk/2.0/codegen/override.pyc


gets a bit further then ebuild aborts with access violations.

This is the Makefile block in question, and although obviously $* is getting &quot;planner&quot; as a substitution, I couldn&apos;t pin down why (@#%^&amp;! autotools, grrr)

.defs.c:
        (cd $(srcdir)\
         &amp;&amp; $(PYGTK_CODEGEN) \
            --override $*.override \
            --load-types planner-arg-types.py \
            --prefix $* $*.defs) &gt; gen-$*.c \
        &amp;&amp; cp gen-$*.c $*.c \
        &amp;&amp; rm -f gen-$*.c


Maybe --prefix $* needs to be set to something else? Hard to say.

This one doesn&apos;t quite earn a Critical or Blocker IMHO - after all, supposedly these changes would be made to the file system at the install step. Still, it shouldn&apos;t be doing what it&apos;s doing.

AfC</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>spider@gentoo.org</who>
            <bug_when>2004-07-14 02:33:16 0000</bug_when>
            <thetext>hmmm , 
what version of pygtk do you have installed? I didn&apos;t catch the new python bindings with a USE flag (doing that now)  but they were built and didn&apos;t generate a sandbox violation here, so I&apos;m curious as to what could be the difference.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>andrew@operationaldynamics.com</who>
            <bug_when>2004-07-14 05:21:52 0000</bug_when>
            <thetext>My pygtk was at 2.0.0 

I just upgraded to current stable, 2.0.0-r1, and then tried planner again. Result was a successful merge.

Might want to make the dependency: pytk &gt;= 2.0.0-r1.

Actually, while you&apos;re at it, you might remove pygtk-2.0.0.ebuild :)

AfC</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>foser@gentoo.org</who>
            <bug_when>2004-07-14 05:38:33 0000</bug_when>
            <thetext>the difference is that 2.0.0-r1 of pygtk (and up) pre-generates the pyc/pyo files and then they don&apos;t get created on the fly when some other package uses the codegen stuff causing the sandbox violations.

So i fixed the pygtk dep to be at least 2.0.0-r1

Anyway.. the python team should probably remove the older versions (1.99 &amp; 2.0.0) at least &amp; also i noticed there&apos;s a new release of pygtk-0.6 you might also want to have a look at that.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>