Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280623 - app-text/sloccount sets $libexec_dir incorrectly on prefix systems
Summary: app-text/sloccount sets $libexec_dir incorrectly on prefix systems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 OS X
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-07 02:52 UTC by Mark A Rada
Modified: 2009-08-07 21:38 UTC (History)
1 user (show)

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


Attachments
Sets $libexec_dir to the correct directory (sloccount-prefix-libexec.patch,261 bytes, patch)
2009-08-07 02:59 UTC, Mark A Rada
Details | Diff
Proposed diff to ebuild (sloccount-2.26-r1.ebuild.patch,444 bytes, patch)
2009-08-07 03:01 UTC, Mark A Rada
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark A Rada 2009-08-07 02:52:25 UTC
It is a simple matter of the sloccount-2.22-libexec.patch not taking into account the fact that prefix systems will have the libexec directory prefixed.

Thus, the program complains that it cannot find some of the executables it expects to find (see below).

Reproducible: Always

Steps to Reproduce:
1. use ecopy to get the package
2. emerge the package
3. run `hash -r'
4. run `sloccount .'

Actual Results:  
Something along the lines of:

/Users/markrada26/Gentoo/usr/bin/sloccount: line 226: make_filelists: command not found


Expected Results:  
Something along the lines of:

Creating filelist for src
Categorizing files.
Finding a working MD5 command....
Found a working MD5 command.
Computing results.

[...]
Comment 1 Mark A Rada 2009-08-07 02:59:39 UTC
Created attachment 200467 [details, diff]
Sets $libexec_dir to the correct directory

A proposed patch
Comment 2 Mark A Rada 2009-08-07 03:01:47 UTC
Created attachment 200469 [details, diff]
Proposed diff to ebuild
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-08-07 21:38:16 UTC
(In reply to comment #2)
> Created an attachment (id=200469) [edit]
> Proposed diff to ebuild
> 

It's not darwin specific, it affects all prefix archs. Thanks for the patches.