Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 900441 - net-misc/netifrc-0.7.3: /lib/netifrc/net/apipa.sh cannot locate arping
Summary: net-misc/netifrc-0.7.3: /lib/netifrc/net/apipa.sh cannot locate arping
Status: RESOLVED DUPLICATE of bug 893290
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: netifrc (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: netifrc Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-09 03:13 UTC by Alex Gendin
Modified: 2023-03-09 03:59 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 Alex Gendin 2023-03-09 03:13:54 UTC
Function apipa_depend() defines two locations for arping:
  1) /sbin/arping
  2) /bin/arping

Default package from @system set which provides arping is net-misc/iputils-20221126-r1[arping].
Package net-misc/iputils-20221126-r1 installs arping at /usr/bin/.

Reproducible: Always

Steps to Reproduce:
1. Have a spare network interface, for example enp6s5.
2. Create symlink: # ln -finsv net.lo /etc/init.d/net.enp6s5
3. Open /etc/conf.d/net and add this line: config_enp6s5="apipa"
4. Run: # /etc/init.d/net.enp6s5 start
Actual Results:  
 * Bringing up interface enp6s5
 *   apipa ...
 *     nothing provides `apipa'
 * ERROR: net.enp6s5 failed to start

Expected Results:  
 * Bringing up interface enp6s5
 *   apipa ...
 *     Searching for free addresses in 169.254.0.0/16
 *   169.254.201.164/16

As a workaround, a user of net-misc/netifrc and net-misc/iputils can create symlink:

    # ln -finsv ../usr/bin/arping /bin/arping

Actual fix for net-misc/netifrc should add at least /usr/bin/arping as alternative for arping location.

Note: Package net-analyzer/arping can be used instead of net-misc/iputils to build arping. net-analyzer/arping installs arping at another location, /usr/sbin/arping. This location also is not part of arping search path in the /lib/netifrc/net/apipa.sh.
Comment 1 Greg Kubaryk 2023-03-09 03:59:04 UTC

*** This bug has been marked as a duplicate of bug 893290 ***