Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 807973 - net-misc/iputils-20210722: ping/meson.build:38:0: ERROR: Program or command 'ip' not found or not executable
Summary: net-misc/iputils-20210722: ping/meson.build:38:0: ERROR: Program or command '...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-13 09:42 UTC by Roman Gruber
Modified: 2021-09-10 20:18 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 Roman Gruber 2021-08-13 09:42:44 UTC
I do not use new tool ip, i use old tool ifconfig
Gentoo wiki does not say which package to install for ip: reference: https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Networking

net-misc/iputils-20210722::gentoo fails to build because of missing tool ip
manpage knows tool: man ip

output
>>> Emerging (5 of 11) net-misc/iputils-20210722::gentoo
 * iputils-20210722.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                               [ ok ]
 * iputils-manpages-20210722.tar.xz BLAKE2B SHA512 size ;-) ...                                                                                                      [ ok ]
>>> Unpacking source...
>>> Unpacking iputils-20210722.tar.gz to /var/tmp/portage/net-misc/iputils-20210722/work
>>> Unpacking iputils-manpages-20210722.tar.xz to /var/tmp/portage/net-misc/iputils-20210722/work
>>> Source unpacked in /var/tmp/portage/net-misc/iputils-20210722/work
>>> Preparing source in /var/tmp/portage/net-misc/iputils-20210722/work/iputils-20210722 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-misc/iputils-20210722/work/iputils-20210722 ...
meson setup --buildtype plain --libdir lib64 --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload --build.pkg-config-path /usr/share/pkgconfig --pkg-config-path /usr/share/pkgconfig --native-file /var/tmp/portage/net-misc/iputils-20210722/temp/meson.x86_64-pc-linux-gnu.amd64.ini -DUSE_CAP=false -DUSE_IDN=true -DBUILD_ARPING=true -DBUILD_CLOCKDIFF=false -DBUILD_PING=true -DBUILD_RARPD=false -DBUILD_RDISC=false -DENABLE_RDISC_SERVER=false -DBUILD_TFTPD=false -DBUILD_TRACEPATH=false -DBUILD_TRACEROUTE6=false -DBUILD_NINFOD=false -DNINFOD_MESSAGES=false -DNO_SETCAP_OR_SUID=true -Dsystemdunitdir=/lib/systemd/system -DUSE_GETTEXT=false -DBUILD_HTML_MANS=false -DBUILD_MANS=false /var/tmp/portage/net-misc/iputils-20210722/work/iputils-20210722 /var/tmp/portage/net-misc/iputils-20210722/work/iputils-20210722-build
The Meson build system
Version: 0.58.1
Source dir: /var/tmp/portage/net-misc/iputils-20210722/work/iputils-20210722
Build dir: /var/tmp/portage/net-misc/iputils-20210722/work/iputils-20210722-build
Build type: native build
Project name: iputils
Project version: 20210722
C compiler for the host machine: x86_64-pc-linux-gnu-gcc (gcc 9.3.0 "x86_64-pc-linux-gnu-gcc (Gentoo 9.3.0-r2 p4) 9.3.0")
C linker for the host machine: x86_64-pc-linux-gnu-gcc ld.bfd 2.36.1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/x86_64-pc-linux-gnu-pkg-config (1.8.0)
Found CMake: /usr/bin/cmake (3.21.1)
Run-time dependency systemd found: NO (tried pkgconfig and cmake)
Checking for function "__fpending" : YES 
Checking for function "getrandom" : YES 
Checking for function "nanosleep" : YES 
Checking if "struct icmp6_nodeinfo" compiles: NO 
Checking if "struct tm time;" compiles: YES 
Library m found: YES
Library resolv found: YES
Checking for function "clock_gettime" : YES 
Library disabler-appears-to-disable-executable-build found: NO
Run-time dependency disabler-appears-to-disable-executable-build found: NO (tried pkgconfig and cmake)
Run-time dependency libidn2 found: YES 2.3.2
Has header "error.h" : YES 
Program /usr/lib/python-exec/python3.9/meson found: YES (/usr/lib/python-exec/python3.9/meson)
Configuring config.h using configuration
Program setcap found: YES (/sbin/setcap)

ping/meson.build:38:0: ERROR: Program or command 'ip' not found or not executable

A full log can be found at /var/tmp/portage/net-misc/iputils-20210722/work/iputils-20210722-build/meson-logs/meson-log.txt
 * ERROR: net-misc/iputils-20210722::gentoo failed (configure phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_configure
 *   environment, line 2870:  Called meson_src_configure
 *   environment, line 2104:  Called die
 * The specific snippet of code:
 *       "${mesonargs[@]}" ) || die
 * 
 * If you need support, post the output of `emerge --info '=net-misc/iputils-20210722::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-misc/iputils-20210722::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-misc/iputils-20210722/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/iputils-20210722/temp/environment'.
 * Working directory: '/var/tmp/portage/net-misc/iputils-20210722/work/iputils-20210722'
 * S: '/var/tmp/portage/net-misc/iputils-20210722/work/iputils-20210722'

>>> Failed to emerge net-misc/iputils-20210722, Log file:

>>>  '/var/tmp/portage/net-misc/iputils-20210722/temp/build.log'

 * Regenerating GNU info directory index...
 * Processed 145 info files.

 * IMPORTANT: 3 config files in '/etc' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.
 * After world updates, it is important to remove obsolete packages with
 * emerge --depclean. Refer to `man emerge` for more information.


Reproducible: Always

Steps to Reproduce:
1. tool ip not installed
2. ebuild does not enforce package which contains ip
3. gentoo wiki does not refer to package which has ip tool in it
Actual Results:  
ebuild fails

Expected Results:  
Please edit gentoo wiki so i know which package needs to be installed for tool ip
please fix ebuild with dependency

thank you
Comment 1 Larry the Git Cow gentoo-dev 2021-09-10 17:17:57 UTC
The bug has been closed via the following commit(s):

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

commit b88892c8d906c8bf491a8d9cf8fd7ddde1251700
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-09-10 17:17:36 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-09-10 17:17:36 +0000

    net-misc/iputils: make tests conditional
    
    Closes: https://bugs.gentoo.org/807973
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/iputils-20210722-optional-tests.patch    | 202 +++++++++++++++++++++
 net-misc/iputils/iputils-20210722.ebuild           |  10 +-
 net-misc/iputils/iputils-99999999.ebuild           |   5 +-
 3 files changed, 215 insertions(+), 2 deletions(-)