Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42336 - sandbox violation during emerge of ncurses-5.3-r5 (also r2)
Summary: sandbox violation during emerge of ncurses-5.3-r5 (also r2)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-21 00:35 UTC by gna
Modified: 2021-11-03 10:58 UTC (History)
2 users (show)

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


Attachments
patch to fix the bug (ncurses-5.3-share.patch,686 bytes, patch)
2004-02-21 00:38 UTC, gna
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description gna 2004-02-21 00:35:29 UTC
This seems to be the same bug as described by the submitter of bug 30568. The discussion after that seems to be referring to something different. The bug occurs when the sandbox is has a directory share in it. This is wrongly changed to lib and hence the sandbox violation.

The sandbox log is below
--------------------------------
unlink:    /downloads/nobkup/linux/gentoo/lib/tmp/portage/ncurses-5.3-r5/image/usr/share/terminfo
symlink:   /downloads/nobkup/linux/gentoo/lib/tmp/portage/ncurses-5.3-r5/image/usr/share/terminfo
--------------------------------
Note the first lib should be share and the second share should be lib.

The bug seems to be in ncurses-5.3-r5/misc/run_tic.in

I will attach a small patch that seems to fix the problem.

Reproducible: Always
Steps to Reproduce:
1. set PORTAGE_TMPDIR in make.conf to a path with /share/ in it
2. emerge ncurses
3.

Actual Results:  
sandbox access violation

Expected Results:  
install
Comment 1 gna 2004-02-21 00:38:15 UTC
Created attachment 26035 [details, diff]
patch to fix the bug
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-29 11:12:56 UTC
Good catch - fixed in CVS, thanks.
Comment 3 SpanKY gentoo-dev 2005-09-11 20:24:44 UTC
Thomas: think you could merge this old patch we've been using for quite a while
now ?
Comment 4 Thomas Dickey 2005-09-12 02:09:16 UTC
yes, that looks ok