Summary: | net-nds/rpcbind-02.4.-r2 will not start with systemd and USE="-warmstart" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Neil Bothwick <neil> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | alexander, arthur, francoisvalenduc, rich0 |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | fix rpcbind.service warmstart flags |
Description
Neil Bothwick
2018-03-10 21:46:15 UTC
s/warmstart/warmstarts/ Adding this function to the ebuild fixes the issue: pkg_preinst() { use warmstarts || sed -i 's:ExecStart=/sbin/rpcbind $RPCBIND_OPTIONS -w -f:ExecStart=/sbin/rpcbind $RPCBIND_OPTIONS -f:' "${D}/lib/systemd/system/rpcbind.service" } The contents of the function are a single line, Bugzilla helpfully wrapped them :( Hello, I confirm the issue. The proposed solution look correct (I did not tested it) @Neil Bothwick: please submit a patch, if you want I may make one. Created attachment 523562 [details, diff]
fix rpcbind.service warmstart flags
Hello,
I made a patch to fix the issue. I tested it using epatch feature.
I will submit the patch to the main stream of rpcbind.
The patch add or remove the "-w" of the rpcbind.service file at configure phase according the the --enable/disable-warmstart flags.
Best regards.
rpcbind-0.2.4-r3 is in the tree, but instead of using either of the solutions given here it brute forces the problem by forcing on the warmstarts flag if systemd is set. |