Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 645106 - net-misc/cfengine-3.6.2: FindV6InterfacesInfo() finds no ipv6 interfaces
Summary: net-misc/cfengine-3.6.2: FindV6InterfacesInfo() finds no ipv6 interfaces
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sysadmin Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-20 12:12 UTC by Chris Rorvick
Modified: 2018-04-12 07:45 UTC (History)
1 user (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 Chris Rorvick 2018-01-20 12:12:39 UTC
The ebuild applies a patch to find ifconfig(8) in /bin, but the patch is obviously wrong.  Upstream has made a similar, though correct, change.

Possible fix:

diff --git a/net-misc/cfengine/files/cfengine-3.6.2-ifconfig.patch b/net-misc/cfengine/files/cfengine-3.6.2-ifconfig.patch
index ae0f491347f..a31b3513ded 100644
--- a/net-misc/cfengine/files/cfengine-3.6.2-ifconfig.patch
+++ b/net-misc/cfengine/files/cfengine-3.6.2-ifconfig.patch
@@ -5,7 +5,7 @@
      }
  #else
 -    if ((pp = cf_popen("/sbin/ifconfig -a", "r", true)) == NULL)
-+    if ((pp = cf_popen("/sbin/ifconfig -a", "r", true)) == NULL || (pp = cf_popen("/bin/ifconfig -a", "r", true)) == NULL)
++    if ((pp = cf_popen("/sbin/ifconfig -a", "r", true)) == NULL && (pp = cf_popen("/bin/ifconfig -a", "r", true)) == NULL)
      {
          Log(LOG_LEVEL_VERBOSE, "Could not find interface info");
          return;
Comment 1 Larry the Git Cow gentoo-dev 2018-04-12 07:45:39 UTC
The bug has been closed via the following commit(s):

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

commit a1c0851a496509240d8292e3d080b4eb97cd4851
Author:     Chris Rorvick <chris@rorvick.com>
AuthorDate: 2018-01-20 12:13:26 +0000
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: 2018-04-12 07:45:31 +0000

    net-misc/cfengine: find ifconfig(8) in /bin/.
    
    The ebuild applies a patch intending to look for ifconfig(8) in
    /bin/ after not finding it in /sbin/. The patch is obviously wrong,
    though, and is instead requiring ifconfig to be found in *both*
    locations.
    
    Closes: http://bugs.gentoo.org/645106
    Closes: https://github.com/gentoo/gentoo/pull/6913

 net-misc/cfengine/files/cfengine-3.6.2-ifconfig.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)