Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 204789 - app-accessibility/brltty-3.9 sandbox violation with ocaml useflag
Summary: app-accessibility/brltty-3.9 sandbox violation with ocaml useflag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-07 18:38 UTC by Alexis Ballier
Modified: 2008-01-11 04:40 UTC (History)
1 user (show)

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 Alexis Ballier gentoo-dev 2008-01-07 18:38:58 UTC
d ./../..//Programs && make api
make[3]: Entering directory `/var/tmp/portage/app-accessibility/brltty-3.9/work/brltty-3.9/Programs'
make[3]: Nothing to be done for `api'.
make[3]: Leaving directory `/var/tmp/portage/app-accessibility/brltty-3.9/work/brltty-3.9/Programs'
set -- --quiet build --build-temp .; \
	[ "linux-gnu" != "mingw32" ] || set -- "${@}" --compiler mingw32; \
	/usr/bin/python ./setup.py "${@}"
make[2]: Leaving directory `/var/tmp/portage/app-accessibility/brltty-3.9/work/brltty-3.9/Bindings/Python'
set -- Caml Python; \
	for language \
	do (cd ./..//Bindings/$language && make install) || exit 1; \
	done
make[2]: Entering directory `/var/tmp/portage/app-accessibility/brltty-3.9/work/brltty-3.9/Bindings/Caml'
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'
make[1]: *** [install-api-bindings] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-accessibility/brltty-3.9/work/brltty-3.9/Programs'
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="\${INSTALL_SCRIPT}" INSTALL_ROOT="${D}" install || diefunc "$FUNCNAME" "$LINENO" "$?";
 *  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 '/var/log/portage/app-accessibility:brltty-3.9:20080107-182830.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-accessibility/brltty-3.9/temp/environment'.
 * 
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-15825.log"

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'll get mandatory dep on findlib, so that'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
Comment 1 William Hubbs gentoo-dev 2008-01-11 04:40:22 UTC
I have put a fix for this in portage.  Thanks for the report. :-)