Summary: | net-misc/netifrc-0.7.1-r1: /lib/netifrc/net/dhcpcd.sh: line 94: dhcpcd: command not found | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Daniel M. Weeks <dan> |
Component: | netifrc | Assignee: | netifrc Team <netifrc> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | fturco, grknight, polynomial-c |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Daniel M. Weeks
2020-12-15 19:11:00 UTC
Does this commit fix it for you? https://github.com/Polynomial-C/netifrc/commit/c0a768ae6573b6eea4ff5252df19cae4e9113c22 I believe this patch is what may fix it (since dhcpcd is now called in stop too): --- a/net/dhcpcd.sh 2020-09-08 15:34:41.870917891 -0400 +++ b/net/dhcpcd.sh 2020-12-15 14:51:27.148297703 -0500 @@ -5,7 +5,7 @@ dhcpcd_depend() { after interface - program start dhcpcd + program dhcpcd provide dhcp # We prefer dhcpcd over these (In reply to Brian Evans from comment #2) > I believe this patch is what may fix it (since dhcpcd is now called in stop > too): > > --- a/net/dhcpcd.sh 2020-09-08 15:34:41.870917891 -0400 > +++ b/net/dhcpcd.sh 2020-12-15 14:51:27.148297703 -0500 > @@ -5,7 +5,7 @@ > dhcpcd_depend() > { > after interface > - program start dhcpcd > + program dhcpcd > provide dhcp > > # We prefer dhcpcd over these Oh right. Haven't looked at depend at all. That looks like it's a much cleaner fix than mine. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=ee7316e32ecd90384f05f77ddb29abbdf97fa6a2 commit ee7316e32ecd90384f05f77ddb29abbdf97fa6a2 Author: Brian Evans <grknight@gentoo.org> AuthorDate: 2020-12-15 19:39:21 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2020-12-15 20:10:51 +0000 net/dhcpcd.sh: Don't run dhcpcd on stop if it's not installed Bug: https://bugs.gentoo.org/760093 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> net/dhcpcd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) > Workaround: Disable dhcpcd if it not in use, ex: > modules="!dhcpcd" That workaround doesn't seem to work for me. In fact, it would seem that I cannot disable **any** modules. See https://bugs.gentoo.org/761987 On the other hand, removing `start On the other hand, removing `start` in `dhcpcd_depend` *does* work. (In reply to Another Mortal from comment #5) > > Workaround: Disable dhcpcd if it not in use, ex: > > modules="!dhcpcd" > > That workaround doesn't seem to work for me. > In fact, it would seem that I cannot disable **any** modules. > See https://bugs.gentoo.org/761987 > > On the other hand, removing `start You should not mix dhcpcd's runscript with another networking system like netifrc. This script activates dhcpcd's manager mode for all devices (by default) and is meant to manage all interfaces with dhcp that appear. If you want to use netifrc, do so for all interfaces and not this script. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e113ea4ee9aefeda5879557ce11af9457433841 commit 1e113ea4ee9aefeda5879557ce11af9457433841 Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2021-01-05 15:12:55 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2021-01-05 15:20:27 +0000 net-misc/netifrc: Revbump to fix a couple of outstanding issues - Don't run dhcpcd on interface stop if it is not installed - Removed support for very old dhcpcd versions (1.x - 3.x) - ppp-2.4.9 renamed "rp-pppoe" plugin to "pppoe" (we now support both) Bug: https://bugs.gentoo.org/760093 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> net-misc/netifrc/Manifest | 1 + net-misc/netifrc/netifrc-0.7.1-r2.ebuild | 73 ++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) |