Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 648416 - net-analyzer/smokeping-2.7.1 /usr/bin/smokeping sed script fails on Bin/RealBin
Summary: net-analyzer/smokeping-2.7.1 /usr/bin/smokeping sed script fails on Bin/RealBin
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-21 18:10 UTC by nic
Modified: 2018-03-27 07:28 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 nic 2018-02-21 18:10:36 UTC
Upstream changed path so net-analyzer/smokeping-2.7.1 fails to start on gentoo; the config file isn't normalized.






Reproducible: Always

Actual Results:  
ERROR: can't open /usr/bin/../etc/config: No such file or directory



/usr/bin/smokeping

-Smokeping::main("$FindBin::Bin/../etc/config");
+Smokeping::main("$FindBin::RealBin/../etc/config");




ebuild has the previous 'Bin/' and need to be updated with 'RealBin/' to rewrite the path correctly.

sed -i -e 's/$FindBin::Bin\/..\/etc\/config/\/etc\/smokeping\/config/g' "${D}/usr/bin/smokeping" "${D}/usr/bin/smokeping_cgi" || die



alternative workaround is to modify the init to append the --config statement

-command_args="--nodaemon"
+command_args="--nodaemon --config /etc/smokeping/config"
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2018-03-27 07:27:44 UTC
Fixed in -r1. Thanks!