Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 352142 - app-misc/nut-16.5 needs to define variable FOODDIR
Summary: app-misc/nut-16.5 needs to define variable FOODDIR
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-19 17:57 UTC by keenblade
Modified: 2011-01-19 22:30 UTC (History)
0 users

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 keenblade 2011-01-19 17:57:15 UTC
When running app-misc/nut, it gives this error and then closes:
$ nut
"Can't open food file "/usr/local/lib/nut/sr23.nut" to create food database."

Fix is to define FOODDIR var in the ebuild like this:
	emake FOODDIR='\"/usr/share/nut\"' || die

Reproducible: Always

Steps to Reproduce:
1. $ nut
2.
3.

Actual Results:  
Can't open food file "/usr/local/lib/nut/sr23.nut" to create food database.
Then app is closed.

Expected Results:  
Reading food file "/usr/share/nut/sr23.nut"
Comment 1 keenblade 2011-01-19 18:12:46 UTC
There is newer app-misc/nut-16.6. It works just renaming the ebuild with the suggested emake line before. And the patch file in files dir need to be renamed accordigly.
Comment 2 Rafał Mużyło 2011-01-19 18:52:36 UTC
The /usr/local part bothers me.
Are you sure you didn't put something there to cause this effect ?
Comment 3 Rafał Mużyło 2011-01-19 19:02:16 UTC
Never mind.
It's simply a matter of upstream needing a better build system.
Your fix is correct.
Comment 4 keenblade 2011-01-19 22:30:11 UTC
In portage there is an updated app-misc/nut-16.5.ebuild which uses a sed statement for the issue. So I think the issue is solved. The only thing remaining is a version bump to app-misc/nut-16.6.
Thanks.