Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115469 - libconf-0.42.10 ruby bindings sandbox vio
Summary: libconf-0.42.10 ruby bindings sandbox vio
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: dams (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-13 14:46 UTC by Ed Catmur
Modified: 2006-02-14 12:01 UTC (History)
0 users

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 Ed Catmur 2005-12-13 14:46:49 UTC
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 ->
/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'
make[2]: Entering directory
`/var/tmp/portage/libconf-0.42.10/work/perl-Libconf-0.42.10/bindings/ruby'
make -C src install
make[3]: Entering directory
`/var/tmp/portage/libconf-0.42.10/work/perl-Libconf-0.42.10/bindings/ruby/src'
/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': 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'
make[2]: *** [install] Error 2
...
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-dev-util_-_libconf-0.42.10-18984.log"

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

DESTDIR=${D} works.
Comment 1 dams (RETIRED) gentoo-dev 2005-12-14 01:35:13 UTC
can you emerge sync and retry ? In the ebuild, you should have something like :

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

Comment 2 Ed Catmur 2005-12-14 06:47:39 UTC
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.
Comment 3 dams (RETIRED) gentoo-dev 2005-12-14 06:57:10 UTC
I have added DESTDIR=${D}, it should fix it, as you suggested 
Comment 4 Ed Catmur 2006-02-14 12:01:40 UTC
Confirmed fixed.