<?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>115469</bug_id>
          
          <creation_ts>2005-12-13 14:46 0000</creation_ts>
          <short_desc>libconf-0.42.10 ruby bindings sandbox vio</short_desc>
          <delta_ts>2006-02-14 12:01:40 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>Applications</component>
          <version>2005.1</version>
          <rep_platform>All</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>ed@catmur.co.uk</reporter>
          <assigned_to>dams@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>ed@catmur.co.uk</who>
            <bug_when>2005-12-13 14:46:49 0000</bug_when>
            <thetext>running install
running build
running build_ext
running install_lib
creating /var/tmp/portage/libconf-0.42.10/image/usr/lib/python2.4
creating /var/tmp/portage/libconf-0.42.10/image/usr/lib/python2.4/site-packages
copying build/lib.linux-i686-2.4/conf2xml.so -&gt;
/var/tmp/portage/libconf-0.42.10/image/usr/lib/python2.4/site-packages
make[2]: Leaving directory
`/var/tmp/portage/libconf-0.42.10/work/perl-Libconf-0.42.10/bindings/python&apos;
make[2]: Entering directory
`/var/tmp/portage/libconf-0.42.10/work/perl-Libconf-0.42.10/bindings/ruby&apos;
make -C src install
make[3]: Entering directory
`/var/tmp/portage/libconf-0.42.10/work/perl-Libconf-0.42.10/bindings/ruby/src&apos;
/bin/install -c -m 0755 conf2xml.so /usr/lib/ruby/site_ruby/1.8/i686-linux
ACCESS DENIED  open_wr:   /usr/lib/ruby/site_ruby/1.8/i686-linux/conf2xml.so
/bin/install: cannot create regular file
`/usr/lib/ruby/site_ruby/1.8/i686-linux/conf2xml.so&apos;: Permission denied
make[3]: *** [/usr/lib/ruby/site_ruby/1.8/i686-linux/conf2xml.so] Error 1
make[3]: Leaving directory
`/var/tmp/portage/libconf-0.42.10/work/perl-Libconf-0.42.10/bindings/ruby/src&apos;
make[2]: *** [install] Error 2
...
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = &quot;/var/log/sandbox/sandbox-dev-util_-_libconf-0.42.10-18984.log&quot;

open_wr:   /usr/lib/ruby/site_ruby/1.8/i686-linux/conf2xml.so
--------------------------------------------------------------------------------

DESTDIR=${D} works.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dams@gentoo.org</who>
            <bug_when>2005-12-14 01:35:13 0000</bug_when>
            <thetext>can you emerge sync and retry ? In the ebuild, you should have something like :

	sed -i &quot;/^LIB_DIR/ { s:lib:$(get_libdir): }&quot; \
		bindings/c/src/Makefile \
		|| die &quot;bad sed&quot;

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ed@catmur.co.uk</who>
            <bug_when>2005-12-14 06:47:39 0000</bug_when>
            <thetext>No change. That phrase is in the original ebuild.

The ruby bindings Makefile generated by extconf.rb has:

srcdir = ext/
topdir = /usr/lib/ruby/1.8/i686-linux
hdrdir = $(topdir)
VPATH = $(srcdir):$(topdir):$(hdrdir)
prefix = $(DESTDIR)/usr
exec_prefix = $(DESTDIR)/usr
sitedir = $(DESTDIR)/usr/lib/ruby/site_ruby
rubylibdir = $(libdir)/ruby/$(ruby_version)
archdir = $(rubylibdir)/$(arch)
sbindir = $(exec_prefix)/sbin
datadir = $(DESTDIR)/usr/share
includedir = $(prefix)/include
infodir = $(DESTDIR)/usr/share/info
sysconfdir = $(DESTDIR)/etc
mandir = $(DESTDIR)/usr/share/man
libdir = $(DESTDIR)/usr/lib
sharedstatedir = $(prefix)/com
oldincludedir = $(DESTDIR)/usr/include
sitearchdir = $(sitelibdir)/$(sitearch)
bindir = $(exec_prefix)/bin
localstatedir = $(DESTDIR)/var/lib
sitelibdir = $(sitedir)/$(ruby_version)
libexecdir = $(exec_prefix)/libexec
...
RUBYARCHDIR   = $(sitearchdir)$(target_prefix)
...
install-so: $(RUBYARCHDIR)
install-so: $(RUBYARCHDIR)/$(DLLIB)
$(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
        $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)

nb, I have ruby 1.8.4_pre2 installed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dams@gentoo.org</who>
            <bug_when>2005-12-14 06:57:10 0000</bug_when>
            <thetext>I have added DESTDIR=${D}, it should fix it, as you suggested </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ed@catmur.co.uk</who>
            <bug_when>2006-02-14 12:01:40 0000</bug_when>
            <thetext>Confirmed fixed.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>