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"
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.
The /usr/local part bothers me. Are you sure you didn't put something there to cause this effect ?
Never mind. It's simply a matter of upstream needing a better build system. Your fix is correct.
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.