Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68287 - Sandbox violation when emerging app-office/pybliographer-1.2.4
Summary: Sandbox violation when emerging app-office/pybliographer-1.2.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
: 68309 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-20 09:54 UTC by James Farrell
Modified: 2004-10-20 22:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fixes scrollkeeper sandbox violation and correctly updates /var/lib/scrollkeeper (pybliographer-1.2.4.ebuild.patch,977 bytes, patch)
2004-10-20 09:56 UTC, James Farrell
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Farrell 2004-10-20 09:54:37 UTC
Pybliographer tries to update the scrollkeeper database in /var/lib/scrollkeeper.

It uses scrollkeeper to manage documentation, and the ebuild should depend on it.

Reproducible: Always
Steps to Reproduce:
ACCEPT_KEYWORDS="~x86" emerge pybliographer
Actual Results:  
When emerge is doing "make install" into the /var/tmp sandbox, it gives an
access violation error when trying to execute the following command:

scrollkeeper-update -p /var/lib/scrollkeeper -o
/var/tmp/portage/pybliographer-1.2.4/image//usr/share/omf/pybliographer

The log file /tmp/sandbox-app-office_-_pybliographer-1.2.4-xxxxx.log contains:

open_wr:   /var/lib/scrollkeeper/scrollkeeper_docs
open_wr:   /var/lib/scrollkeeper/scrollkeeper_docs



Expected Results:  
The installation should stay in the sandbox, but also update the system-wide
scrollkeeper database correctly.

Simply setting scrollkeeper_localstate_dir="${D}/var/lib/scrollkeeper" will
result in the database in /var/lib/scrollkeeper getting overwritten
(fortunately, it can be rebuilt). A correct solution can be found in the
gnucash-1.8.7 ebuild, and I used this in the attached patch.
Comment 1 James Farrell 2004-10-20 09:56:25 UTC
Created attachment 42255 [details, diff]
Fixes scrollkeeper sandbox violation and correctly updates /var/lib/scrollkeeper
Comment 2 Andrej Kacian (RETIRED) gentoo-dev 2004-10-20 13:58:22 UTC
*** Bug 68309 has been marked as a duplicate of this bug. ***
Comment 3 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-10-20 21:55:05 UTC
Fixed in CVS (not with the patch but with `inherit gnome2`).
Thanks for the bug report.
Comment 4 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-10-20 22:14:35 UTC
I noticed that X permission issue was different thing
(if you run emerge in X terminal using su to get root
privilege it will fail to configure), and fixed that in CVS.