<?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>177256</bug_id>
          
          <creation_ts>2007-05-05 22:27 0000</creation_ts>
          <short_desc>net-analyzer/rrdtool-1.2.23 sandbox violation</short_desc>
          <delta_ts>2007-05-12 13:34:23 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>AMD64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>aikawarazuni@gmail.com</reporter>
          <assigned_to>pva@gentoo.org</assigned_to>
          <cc>andrei.ivanov@gmail.com</cc>
    
    <cc>corporate_gadfly@hotmail.com</cc>
    
    <cc>david.morgan@gmail.com</cc>
    
    <cc>howard_b_golden@yahoo.com</cc>
    
    <cc>infowolfe@gmail.com</cc>
    
    <cc>jslootbeek@gmail.com</cc>
    
    <cc>m.dreadlock@gmail.com</cc>
    
    <cc>nelchael@gentoo.org</cc>
    
    <cc>netmon@gentoo.org</cc>
    
    <cc>petrus69@gmx.de</cc>
    
    <cc>rose@rz.uni-potsdam.de</cc>
    
    <cc>voyageur@gentoo.org</cc>
    
    <cc>zeekec@mad.scientist.com</cc>

      

      
          <long_desc isprivate="0">
            <who>aikawarazuni@gmail.com</who>
            <bug_when>2007-05-05 22:27:16 0000</bug_when>
            <thetext>Broke the sandbox, attempted to access illegally:

open_wr: /usr/lib/ruby/1.8/x86_64-linux/RRD.so (symlink to /usr/lib64/ruby/1.8/x86_64-linux/RRD.so)

Reproducible: Always</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aikawarazuni@gmail.com</who>
            <bug_when>2007-05-05 22:28:02 0000</bug_when>
            <thetext>Created an attachment (id=118298)
ACCESS VIOLATION SUMMARY

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rose@rz.uni-potsdam.de</who>
            <bug_when>2007-05-06 06:34:37 0000</bug_when>
            <thetext>On i386 systems emerge rrdtool-1.2.23 fails with:

make[4]: Entering directory `/var/tmp/portage/net-analyzer/rrdtool-1.2.23/work/rrdtool-1.2.23/bindings/ruby&apos;
Makefile:144: Commands were specified for file `RRD.so&apos; at Makefile:114,
Makefile:144: but `RRD.so&apos; is now considered the same file as `/usr/lib/ruby/1.8/i686-linux/RRD.so&apos;.
Makefile:144: Commands for `/usr/lib/ruby/1.8/i686-linux/RRD.so&apos; will be ignored in favor of those for `RRD.so&apos;.
make[4]: Circular /usr/lib/ruby/1.8/i686-linux/RRD.so &lt;- /usr/lib/ruby/1.8/i686-linux/RRD.so dependency dropped.
i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -I../../src  -fPIC -O2 -march=athlon-xp -fno-str
ict-aliasing  -fPIC  -c main.c
/bin/install -c -m 0755 RRD.so /usr/lib/ruby/1.8/i686-linux
/bin/install: cannot stat `RRD.so&apos;: No such file or directory
make[4]: *** [/usr/lib/ruby/1.8/i686-linux/RRD.so] Error 1
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aikawarazuni@gmail.com</who>
            <bug_when>2007-05-06 06:51:21 0000</bug_when>
            <thetext>(In reply to comment #2)

Isn&apos;t this a different bug?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nelchael@gentoo.org</who>
            <bug_when>2007-05-06 09:34:13 0000</bug_when>
            <thetext>It&apos;s related - difference is only in enabling ruby use flag:

make[4]: Entering directory `/var/tmp/portage/net-analyzer/rrdtool-1.2.23/work/rrdtool-1.2.23/bindings/ruby&apos;
Makefile:144: Commands were specified for file `RRD.so&apos; at Makefile:114,
Makefile:144: but `RRD.so&apos; is now considered the same file as `/usr/lib/ruby/1.8/i686-linux/RRD.so&apos;.
Makefile:144: Commands for `/usr/lib/ruby/1.8/i686-linux/RRD.so&apos; will be ignored in favor of those for `RRD.so&apos;.
make[4]: Circular /usr/lib/ruby/1.8/i686-linux/RRD.so &lt;- /usr/lib/ruby/1.8/i686-linux/RRD.so dependency dropped.
i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -I../../src  -fPIC -march=pentium-m -O2 -pipe -fno-strict-aliasing  -fPIC  -c main.c
/usr/bin/install -c -m 0755 RRD.so /usr/lib/ruby/1.8/i686-linux
/usr/bin/install: cannot stat `RRD.so&apos;: No such file or directory
make[4]: *** [/usr/lib/ruby/1.8/i686-linux/RRD.so] Error 1
make[4]: Leaving directory `/var/tmp/portage/net-analyzer/rrdtool-1.2.23/work/rrdtool-1.2.23/bindings/ruby&apos;
make[3]: *** [ruby] Error 2
make[3]: *** Waiting for unfinished jobs....
creating build/lib.linux-i686-2.5
i686-pc-linux-gnu-gcc -pthread -shared -march=pentium-m -O2 -pipe -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W -fPIC -DPIC -I/usr/include/libart-2.0 -I/usr/include/freetype2 build/temp.linux-i686-2.5/rrdtoolmodule.o -L../../src/.libs -L/usr/lib -R../../src/.libs -lrrd -lpython2.5 -o build/lib.linux-i686-2.5/rrdtoolmodule.so
i686-pc-linux-gnu-gcc: unrecognized option &apos;-R../../src/.libs&apos;
make[3]: Leaving directory `/var/tmp/portage/net-analyzer/rrdtool-1.2.23/work/rrdtool-1.2.23/bindings&apos;
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-analyzer/rrdtool-1.2.23/work/rrdtool-1.2.23/bindings&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-analyzer/rrdtool-1.2.23/work/rrdtool-1.2.23&apos;
make: *** [all] Error 2

!!! ERROR: net-analyzer/rrdtool-1.2.23 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call &apos;src_compile&apos;
  ebuild.sh, line 44:   Called src_compile
  rrdtool-1.2.23.ebuild, line 64:   Called die

!!! make failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at &apos;/var/tmp/portage/net-analyzer/rrdtool-1.2.23/temp/build.log&apos;.

(this is with -ruby)

It looks like automagic dependency.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>andrei.ivanov@gmail.com</who>
            <bug_when>2007-05-06 19:18:04 0000</bug_when>
            <thetext>comment #4 happens to me too...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>willard.dawson@sungard.com</who>
            <bug_when>2007-05-07 02:03:55 0000</bug_when>
            <thetext>Is this error related, do you think?

Checking if your kit is complete...
Looks good
Writing Makefile for RRDs
cd perl-shared &amp;&amp; make
make[4]: Entering directory `/var/tmp/portage/net-analyzer/rrdtool-1.2.23/work/rrdtool-1.2.23/bindings/perl-shared&apos;
cp RRDs.pm blib/lib/RRDs.pm
cp ntmake.pl blib/lib/ntmake.pl
/usr/bin/perl5.8.8 /usr/lib/perl5/5.8.8/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap  RRDs.xs &gt; RRDs.xsc &amp;&amp; mv RRDs.xsc RRDs.c
i686-pc-linux-gnu-gcc -c  -I../../src -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=i686 -O2 -pipe   -DVERSION=\&quot;1.2023\&quot; -DXS_VERSION=\&quot;1.2023\&quot; -fPIC &quot;-I/usr/lib/perl5/5.8.8/i686-linux-thread-multi/CORE&quot;  -DPERLPATCHLEVEL=8 RRDs.c
Running Mkbootstrap for RRDs ()
chmod 644 RRDs.bs
rm -f blib/arch/auto/RRDs/RRDs.so
i686-pc-linux-gnu-gcc  -shared -L/usr/local/lib RRDs.o -L../../src/.libs/ -Wl,--rpath -Wl,/usr/lib -lrrd -lm -o blib/arch/auto/RRDs/RRDs.so     \
                \
          
chmod 755 blib/arch/auto/RRDs/RRDs.so
cp RRDs.bs blib/arch/auto/RRDs/RRDs.bs
chmod 644 blib/arch/auto/RRDs/RRDs.bs
Manifying blib/man3/RRDs.3pm
make[4]: Leaving directory `/var/tmp/portage/net-analyzer/rrdtool-1.2.23/work/rrdtool-1.2.23/bindings/perl-shared&apos;
cd ruby &amp;&amp; /usr/bin/ruby extconf.rb &amp;&amp; make EPREFIX=/usr sitedir=/usr/lib/ruby
checking for rrd_create() in -lrrd... yes
creating Makefile
make[4]: Entering directory `/var/tmp/portage/net-analyzer/rrdtool-1.2.23/work/rrdtool-1.2.23/bindings/ruby&apos;
Makefile:144: Commands were specified for file `RRD.so&apos; at Makefile:114,
Makefile:144: but `RRD.so&apos; is now considered the same file as `/usr/lib/ruby/1.8/i686-linux/RRD.so&apos;.
Makefile:144: Commands for `/usr/lib/ruby/1.8/i686-linux/RRD.so&apos; will be ignored in favor of those for `RRD.so&apos;.
make[4]: Circular /usr/lib/ruby/1.8/i686-linux/RRD.so &lt;- /usr/lib/ruby/1.8/i686-linux/RRD.so dependency dropped.
i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -I../../src  -fPIC -march=i686 -O2 -pipe -fno-strict-aliasing  -fPIC  -c main.c
/usr/bin/install -c -m 0755 RRD.so /usr/lib/ruby/1.8/i686-linux
/usr/bin/install: cannot stat `RRD.so&apos;: No such file or directory
make[4]: *** [/usr/lib/ruby/1.8/i686-linux/RRD.so] Error 1
make[4]: Leaving directory `/var/tmp/portage/net-analyzer/rrdtool-1.2.23/work/rrdtool-1.2.23/bindings/ruby&apos;
make[3]: *** [ruby] Error 2
make[3]: Leaving directory `/var/tmp/portage/net-analyzer/rrdtool-1.2.23/work/rrdtool-1.2.23/bindings&apos;
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-analyzer/rrdtool-1.2.23/work/rrdtool-1.2.23/bindings&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-analyzer/rrdtool-1.2.23/work/rrdtool-1.2.23&apos;
make: *** [all] Error 2

!!! ERROR: net-analyzer/rrdtool-1.2.23 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call &apos;src_compile&apos;
  ebuild.sh, line 44:   Called src_compile
  rrdtool-1.2.23.ebuild, line 64:   Called die

!!! make failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at &apos;/var/tmp/portage/net-analyzer/rrdtool-1.2.23/temp/build.log&apos;.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>corporate_gadfly@hotmail.com</who>
            <bug_when>2007-05-07 14:22:43 0000</bug_when>
            <thetext>Created an attachment (id=118452)
patch for disabling ruby bindings

Simple patch for disabling ruby bindings all together.

As stated, only disables ruby bindings, does not take care of the
sandbox violation at all. Kind of like, hiding the dirt under the
carpet.

I am not interested in the ruby bindings, so I wanted to at least
be able to install the ebuild.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>m.dreadlock@gmail.com</who>
            <bug_when>2007-05-08 14:04:43 0000</bug_when>
            <thetext>Same error as comment #1. (permission denied)
Agree with comment #7, ruby is not enabled on my machine (so i prefer not being bothered with ruby stuff ;)

Now it seems that ruby bindings was present in 1.2.19 but not enabled due missing .PHONY in  bindings/Makefile (so ruby was not tried to be installed).

If i go into /var/tmp/portage/net-analyzer/rrdtool-1.2.23/work/rrdtool-1.2.23/bindings and make install, everything seems to be ok:
make[3]: Entering directory `/var/tmp/portage/net-analyzer/rrdtool-1.2.23/work/rrdtool-1.2.23/bindings/ruby&apos;
/usr/bin/install -c -m 0755 RRD.so /usr/lib/ruby/1.8/x86_64-linux

But i&apos;m not aware of portage/sandbox rules/rights that might be the point here.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>petrus69@gmx.de</who>
            <bug_when>2007-05-10 11:08:47 0000</bug_when>
            <thetext>I&apos;ve got that /bin/install error, too:

make[4]: Entering directory `/var/tmp/portage/net-analyzer/rrdtool-1.2.23/work/rrdtool-1.2.23/bindings/ruby&apos;
Makefile:144: Commands were specified for file `RRD.so&apos; at Makefile:114,
Makefile:144: but `RRD.so&apos; is now considered the same file as `/usr/lib/ruby/1.8/i686-linux/RRD.so&apos;.
Makefile:144: Commands for `/usr/lib/ruby/1.8/i686-linux/RRD.so&apos; will be ignored in favor of those for `RRD.so&apos;.
make[4]: Circular /usr/lib/ruby/1.8/i686-linux/RRD.so &lt;- /usr/lib/ruby/1.8/i686-linux/RRD.so dependency dropped.
i686-pc-linux-gnu-gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -I../../src  -fPIC -mtune=athlon-xp -O3 -pipe  -fPIC  -c main.c
running build
running build_ext
/bin/install -c -m 0755 RRD.so /usr/lib/ruby/1.8/i686-linux
make[4]: /bin/install: Command not found
make[4]: *** [/usr/lib/ruby/1.8/i686-linux/RRD.so] Error 127
make[4]: Leaving directory `/var/tmp/portage/net-analyzer/rrdtool-1.2.23/work/rrdtool-1.2.23/bindings/ruby&apos;
make[3]: *** [ruby] Error 2
make[3]: *** Waiting for unfinished jobs....
building &apos;rrdtoolmodule&apos; extension
creating build
creating build/temp.linux-i686-2.4
i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -mtune=athlon-xp -O3 -pipe -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W -fPIC -DPIC -I/usr/include/libart-2.0 -I/usr/include/freetype2 -fPIC -I../../src -I/usr/include/python2.4 -c rrdtoolmodule.c -o build/temp.linux-i686-2.4/rrdtoolmodule.o
creating build/lib.linux-i686-2.4
i686-pc-linux-gnu-gcc -pthread -shared -mtune=athlon-xp -O3 -pipe -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W -fPIC -DPIC -I/usr/include/libart-2.0 -I/usr/include/freetype2 build/temp.linux-i686-2.4/rrdtoolmodule.o -L../../src/.libs -R../../src/.libs -lrrd -o build/lib.linux-i686-2.4/rrdtoolmodule.so
i686-pc-linux-gnu-gcc: unrecognized option `-R../../src/.libs&apos;
make[3]: Leaving directory `/var/tmp/portage/net-analyzer/rrdtool-1.2.23/work/rrdtool-1.2.23/bindings&apos;
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-analyzer/rrdtool-1.2.23/work/rrdtool-1.2.23/bindings&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-analyzer/rrdtool-1.2.23/work/rrdtool-1.2.23&apos;
make: *** [all] Error 2


I think the errors are related, they both seem to come from wrong sandbox-related pathname arithmetics, maybe some variable is not set correctly.


</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>infowolfe@gmail.com</who>
            <bug_when>2007-05-10 18:21:23 0000</bug_when>
            <thetext>/usr/bin/install -c -m 0755 RRD.so /usr/lib/ruby/1.8/x86_64-linux
ACCESS DENIED  open_wr:   /usr/lib/ruby/1.8/x86_64-linux/RRD.so
/usr/bin/install: cannot create regular file `/usr/lib/ruby/1.8/x86_64-linux/RRD.so&apos;: Permission denied
make[4]: *** [/usr/lib/ruby/1.8/x86_64-linux/RRD.so] Error 1
make[4]: Leaving directory `/dev/shm/portage/net-analyzer/rrdtool-1.2.23/work/rrdtool-1.2.23/bindings/ruby&apos;

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = &quot;/var/log/sandbox/sandbox-net-analyzer_-_rrdtool-1.2.23-22319.log&quot;

open_wr:   /usr/lib/ruby/1.8/x86_64-linux/RRD.so (symlink to /usr/lib64/ruby/1.8/x86_64-linux/RRD.so)
--------------------------------------------------------------------------------
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pva@gentoo.org</who>
            <bug_when>2007-05-12 13:34:23 0000</bug_when>
            <thetext>Fixed in rrdtool-1.2.23-r1.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>118298</attachid>
            <date>2007-05-05 22:28 0000</date>
            <desc>ACCESS VIOLATION SUMMARY</desc>
            <filename>sandbox-net-analyzer_-_rrdtool-1.2.23-812.log</filename>
            <type>text/plain</type>
            <data encoding="base64">b3Blbl93cjogICAvdXNyL2xpYi9ydWJ5LzEuOC94ODZfNjQtbGludXgvUlJELnNvIChzeW1saW5r
IHRvIC91c3IvbGliNjQvcnVieS8xLjgveDg2XzY0LWxpbnV4L1JSRC5zbykK
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>118452</attachid>
            <date>2007-05-07 14:22 0000</date>
            <desc>patch for disabling ruby bindings</desc>
            <filename>rrdtool-1.2.23-disable-ruby.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHJyZHRvb2wtMS4yLjIzLmVidWlsZAkyMDA3LTA1LTA3IDEwOjEyOjUyLjI3NTAxOTY4NSAt
MDQwMAorKysgcnJkdG9vbC0xLjIuMjMtcjEuZWJ1aWxkCTIwMDctMDUtMDcgMTA6MTM6MzguNTg1
OTQyNzQzIC0wNDAwCkBAIC0xMSw3ICsxMSw3IEBACiBMSUNFTlNFPSJHUEwtMiIKIFNMT1Q9IjAi
CiBLRVlXT1JEUz0ifmFscGhhIH5hbWQ2NCB+YXJtIH5ocHBhIH5pYTY0IH5taXBzIH5wcGMgfnBw
YzY0IH5zaCB+c3BhcmMgfng4NiIKLUlVU0U9ImRvYyBwZXJsIHB5dGhvbiBycmRjZ2kgdGNsIHVj
bGliYyIKK0lVU0U9ImRvYyBwZXJsIHB5dGhvbiBycmRjZ2kgcnVieSB0Y2wgdWNsaWJjIgogCiBS
REVQRU5EPSJ0Y2w/ICggZGV2LWxhbmcvdGNsICkKIAk+PXN5cy1saWJzL3psaWItMS4yLjEKQEAg
LTIzLDYgKzIzLDcgQEAKIERFUEVORD0iJHtSREVQRU5EfQogCXBlcmw/ICggZGV2LWxhbmcvcGVy
bCApCiAJcHl0aG9uPyAoIGRldi1sYW5nL3B5dGhvbiApCisJcnVieT8gKCBkZXYtbGFuZy9ydWJ5
ICkKIAlzeXMtYXBwcy9nYXdrIgogCiBUQ0xWRVI9IiIKQEAgLTQ5LDYgKzUwLDggQEAKIAogCXVz
ZSBweXRob24gfHwgbXljb25mPSIke215Y29uZn0gLS1kaXNhYmxlLXB5dGhvbiIKIAorCXVzZSBy
dWJ5IHx8IG15Y29uZj0iJHtteWNvbmZ9IC0tZGlzYWJsZS1ydWJ5IgorCiAJaWYgdXNlIHRjbCA7
IHRoZW4KIAkJbXljb25mPSIke215Y29uZn0gLS13aXRoLXRjbGxpYj0vdXNyLyQoZ2V0X2xpYmRp
cikiCiAJZWxzZQo=
</data>        

          </attachment>
    </bug>

</bugzilla>