Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 921538 - net-misc/netifrc-0.7.7 does not start network interface if distcc is installed
Summary: net-misc/netifrc-0.7.7 does not start network interface if distcc is installed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: netifrc (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: netifrc Team
URL: https://github.com/gentoo/netifrc/pul...
Whiteboard:
Keywords: InVCS, PullRequest
Depends on:
Blocks:
 
Reported: 2024-01-07 06:04 UTC by Julien Roy
Modified: 2024-01-07 09:45 UTC (History)
4 users (show)

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 Julien Roy 2024-01-07 06:04:27 UTC
When netifrc 0.7.7 and distcc are installed concurrently, netifrc is unable to start network interfaces. It seems to be calling distcc's /usr/bin/pump during the start phase, with the `--route-metric` parameter. Distcc doesn't recognize this parameter and fails, causing netifrc to fail to start the interface:

# rc-service net.eth0 restart
 * Caching service dependencies ...                                                                                                                 [ ok ]
 * Bringing down interface eth0
 *   start-stop-daemon: no matching processes found
 *   Stopping udhcpc on eth0 ...                                                                                                                    [ ok ]
 * Bringing up interface eth0
 *   dhcp ...
 *     Running pump ...
__________Using distcc-pump from /usr/bin
distcc[1680] (dcc_get_top_dir) Warning: HOME is not set; can't find distcc directory
distcc[1680] (dcc_get_top_dir) Warning: HOME is not set; can't find distcc directory
__________Using 1 distcc server in pump mode
/usr/bin/pump: 552: --route-metric: not found
__________Shutting down distcc-pump include server                                                                                                  [ !! ]
 * ERROR: net.eth0 failed to start

Rolling back to netifrc 0.7.5 or uninstalling distcc solves the problem.

Adding 'modules="!pump"' to /etc/conf.d/net.<interface> also solves the problem more permanently. I thought I should report this anyway in case it is unwanted behavior, or if anyone else faces that error.

Reproducible: Always

Steps to Reproduce:
1. emerge net-misc/netifrc-0.7.7 and sys-devel/distcc
2. rc-service net.eth0 restart
Comment 1 Julien Roy 2024-01-07 06:07:00 UTC
Forgot to mention: this only happens with dhcp; using a static address does not trigger this error
Comment 3 matoro archtester 2024-01-07 07:13:09 UTC
Looks like this is to support the now-removed net-misc/pump (bug 694314).  Since it's gone from tree, I think we should just delete support for it from netifrc.
Comment 4 Larry the Git Cow gentoo-dev 2024-01-07 09:42:39 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=7b1c09f80b94f01f670c8d487df361b3ddfebe0c

commit 7b1c09f80b94f01f670c8d487df361b3ddfebe0c
Author:     Matoro Mahri <matoro_gentoo@matoro.tk>
AuthorDate: 2024-01-07 07:16:30 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-07 09:42:35 +0000

    Remove support for treecleaned net-misc/pump
    
    Bug: https://bugs.gentoo.org/694314
    Closes: https://bugs.gentoo.org/921538
    Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
    Closes: https://github.com/gentoo/netifrc/pull/51
    Signed-off-by: Sam James <sam@gentoo.org>

 doc/net.example.Linux.in |  7 ++----
 net/Makefile             |  2 +-
 net/dhclient.sh          |  2 +-
 net/dhcpcd.sh            |  2 +-
 net/pump.sh              | 63 ------------------------------------------------
 5 files changed, 5 insertions(+), 71 deletions(-)
Comment 5 Larry the Git Cow gentoo-dev 2024-01-07 09:45:03 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae91de64d73dcba407c178a53252d2b547ee40c8

commit ae91de64d73dcba407c178a53252d2b547ee40c8
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-01-07 09:44:40 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-07 09:44:49 +0000

    net-misc/netifrc: add 0.7.8
    
    Bug: https://bugs.gentoo.org/844178
    Bug: https://bugs.gentoo.org/921538
    Signed-off-by: Sam James <sam@gentoo.org>

 net-misc/netifrc/Manifest             |  1 +
 net-misc/netifrc/netifrc-0.7.8.ebuild | 91 +++++++++++++++++++++++++++++++++++
 2 files changed, 92 insertions(+)