Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 269305 - dev-util/cscope-15.7a does not create necessary catalogs
Summary: dev-util/cscope-15.7a does not create necessary catalogs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-10 20:46 UTC by Lukasz Ligowski
Modified: 2009-05-11 20:57 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 Lukasz Ligowski 2009-05-10 20:46:51 UTC
I found out by equery f cscope that it installs something called "ocs" so i tried to run it but i got:

user@silownik ~ $ ocs
setting default sysdir
/usr/local/lib/cs does not exist.Please create the directory and set SYSDIR appropriately



Reproducible: Always

Steps to Reproduce:
1. run ocs

Actual Results:  
prints error

Expected Results:  
works

this ocs file is a sh script and relevant lines are around line 74
Comment 1 Ulrich Müller gentoo-dev 2009-05-11 20:26:42 UTC
Citing <http://sourceforge.net/tracker/index.php?func=detail&aid=976788&group_id=4664&atid=304664> (comment by Michael Schwendt from 2004-07-03):

| According to the FHS, /usr is for shareable read-only data, so
| /usr/local/lib/cs as a default for SYSDIR is not a good choice. Better would
| be something like /var/lib/cs. 
|
| Also, the following portion of the patch should be reverted/changed:
|
| #check that SYSDIR exists
| if [ ! -d ${SYSDIR} ]; then
|    echo -n $SYSDIR does not exist. 
|    echo Please create the directory and set SYSDIR appropriately
|    exit 
| fi
|
| Currently, ocs fails for ordinary users (using Local/Home) unless they
| override SYSDIR.
Comment 2 Ulrich Müller gentoo-dev 2009-05-11 20:57:45 UTC
Fixed in -r1, thanks for reporting.