On 6 Nov, Alan McKinnon wrote:
> On Thursday 06 November 2008 13:53:47 Helmut Jarausch wrote:
>> Hi,
>>
>> I am trying to write an ebuild for media-libs/babl-
>> Unfortunately, probably when making docs, it invokes
>> inkscape which wants to access and write to
>> /root/.config/Inkscape
>>
>> which probably comes from
>> $(HOME)/.config/Inkscape
>>
>> This violates the sandbox - see below -
>>
>> What can I do about it?
>
> Posting the ebuild you are using would be a good start..
>
Here it is : (it's simple modification of babl-0.0.22)
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils subversion
DESCRIPTION="Dynamic, any to any, pixel format conversion library"
HOMEPAGE="http://www.gegl.org/babl/";
#SRC_URI="ftp://ftp.gtk.org/pub/${PN}/0.0/${P}.tar.bz2";
ESVN_REPO_URI="http://svn.gnome.org/svn/babl/trunk/";
ESVN_PROJECT="${PN}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="sse mmx"
DEPEND="virtual/libc"
S=${WORKDIR}/${PN}
src_compile() {
./autogen.sh || die "autogen failed"
econf $(use_enable mmx) \
$(use_enable sse) \
|| die "econf failed"
emake || die "emake failed"
}
src_install() {
emake install DESTDIR=${D} || die "emake install failed"
find "${D}" -name '*.la' -delete
dodoc AUTHORS COPYING ChangeLog INSTALL README
}
=
The last messages are: ( I have USE=doc )
make[3]: Entering directory `/var/tmp/portage/media-libs/babl-/work/babl/doc
s/graphics'
SVG: babl-a4poster.png [OK]
SVG: babl-16x16.png [OK]
HTML: BablFishPath.html [OK]
SVG: babl-48x48.png [OK]
make[3]: Leaving directory `/var/tmp/portage/media-libs/babl-/work/babl/docs
/graphics'
RSS: changelog.rss [OK]
HTML: index.html. [OK]
[OK]
make[2]: Leaving directory `/var/tmp/portage/media-libs/babl-/work/babl/docs
'
make[2]: Entering directory `/var/tmp/portage/media-libs/babl-/work/babl'
make[2]: Leaving directory `/var/tmp/portage/media-libs/babl-/work/babl'
make[1]: Leaving directory `/var/tmp/portage/media-libs/babl-/work/babl'
>>> Source compiled.
--- ACCESS VIOLATION SUMMARY ---
LOG FILE = "/var/log/sandbox/sandbox-29334.log"
mkdir: /root/.config/Inkscape
open_wr: /root/.config/Inkscape/extension-errors.log
mkdir: /root/.config/Inkscape
open_wr: /root/.config/Inkscape/extension-errors.log
mkdir: /root/.config/Inkscape
open_wr: /root/.config/Inkscape/extension-errors.log
Many thanks for any hints,
Helmut.
--
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany