<?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>204789</bug_id>
          
          <creation_ts>2008-01-07 18:38 0000</creation_ts>
          <short_desc>app-accessibility/brltty-3.9 sandbox violation with ocaml useflag</short_desc>
          <delta_ts>2008-01-11 04:40:22 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>unspecified</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>aballier@gentoo.org</reporter>
          <assigned_to>williamh@gentoo.org</assigned_to>
          <cc>accessibility@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>aballier@gentoo.org</who>
            <bug_when>2008-01-07 18:38:58 0000</bug_when>
            <thetext>d ./../..//Programs &amp;&amp; make api
make[3]: Entering directory `/var/tmp/portage/app-accessibility/brltty-3.9/work/brltty-3.9/Programs&apos;
make[3]: Nothing to be done for `api&apos;.
make[3]: Leaving directory `/var/tmp/portage/app-accessibility/brltty-3.9/work/brltty-3.9/Programs&apos;
set -- --quiet build --build-temp .; \
	[ &quot;linux-gnu&quot; != &quot;mingw32&quot; ] || set -- &quot;${@}&quot; --compiler mingw32; \
	/usr/bin/python ./setup.py &quot;${@}&quot;
make[2]: Leaving directory `/var/tmp/portage/app-accessibility/brltty-3.9/work/brltty-3.9/Bindings/Python&apos;
set -- Caml Python; \
	for language \
	do (cd ./..//Bindings/$language &amp;&amp; make install) || exit 1; \
	done
make[2]: Entering directory `/var/tmp/portage/app-accessibility/brltty-3.9/work/brltty-3.9/Bindings/Caml&apos;
ocamlfind remove brlapi
ocamlfind: [WARNING] No such directory: /usr/lib64/ocaml/site-packages/brlapi
ocamlfind install brlapi ./META brlapi.mli brlapi.cmi libbrlapi.a dllbrlapi.so brlapi.cma  
ACCESS DENIED  mkdir:     /usr/lib64/ocaml/site-packages/brlapi
ocamlfind: Cannot mkdir /usr/lib64/ocaml/site-packages/brlapi: Permission denied
make[2]: *** [install-with-findlib] Error 2
make[2]: Leaving directory `/var/tmp/portage/app-accessibility/brltty-3.9/work/brltty-3.9/Bindings/Caml&apos;
make[1]: *** [install-api-bindings] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-accessibility/brltty-3.9/work/brltty-3.9/Programs&apos;
make: *** [install] Error 2
 * 
 * ERROR: app-accessibility/brltty-3.9 failed.
 * Call stack:
 *               ebuild.sh, line   46:  Called src_install
 *             environment, line 2115:  Called die
 * The specific snippet of code:
 *       make INSTALL_PROGRAM=&quot;\${INSTALL_SCRIPT}&quot; INSTALL_ROOT=&quot;${D}&quot; install || diefunc &quot;$FUNCNAME&quot; &quot;$LINENO&quot; &quot;$?&quot;;
 *  The die message:
 *   (no error message)
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at &apos;/var/log/portage/app-accessibility:brltty-3.9:20080107-182830.log&apos;.
 * The ebuild environment file is located at &apos;/var/tmp/portage/app-accessibility/brltty-3.9/temp/environment&apos;.
 * 
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = &quot;/var/log/sandbox/sandbox-15825.log&quot;

mkdir:     /usr/lib64/ocaml/site-packages/brlapi
--------------------------------------------------------------------------------


fix is easy though:
either inherit findlib eclass and call findlib_src_preinst to get the sane variables exported. But this way (because the eclass suck) you&apos;ll get mandatory dep on findlib, so that&apos;s probably no good.

So, its probably better to just copy the stuff from findlib_src_presinst before make install. Btw, if I hit that, dev-ml/findlib dep is probably missing</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>williamh@gentoo.org</who>
            <bug_when>2008-01-11 04:40:22 0000</bug_when>
            <thetext>I have put a fix for this in portage.  Thanks for the report. :-)</thetext>
          </long_desc>
      
    </bug>

</bugzilla>