Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 825374 - sys-libs/libcap build fails with diff: command not found
Summary: sys-libs/libcap build fails with diff: command not found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-20 22:04 UTC by Kenneth Hoste
Modified: 2021-11-20 23:30 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 Kenneth Hoste 2021-11-20 22:04:39 UTC
The installation of sys-libs/libcap-2.60 is failing for me during Gentoo Prefix bootstrap (tested on ppc64le and aarch64) because diff is used by the Makefile, but not declared as a build dependency:

diff -u capshdoc.c capshdoc.c.cf || (rm capshdoc.c.cf ; exit 1)
/bin/sh: diff: command not found
make[1]: *** [Makefile:50: capshdoc.c.cf] Error 1
make[1]: Leaving directory '/cvmfs/pilot.eessi-hpc.org/2021.12/compat/linux/ppc64le/var/tmp/portage/sys-libs/libcap-2.60-r1/work/libcap-2.60-.ppc64/progs'
make: *** [Makefile:14: all] Error 2
 * ERROR: sys-libs/libcap-2.60-r1::gentoo failed (compile phase):
 *   emake failed

Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-20 22:45:11 UTC
Thank you!
Comment 2 Larry the Git Cow gentoo-dev 2021-11-20 23:30:39 UTC
The bug has been closed via the following commit(s):

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

commit b5180661038ebf872dc5d4bd5ab9714f305e6102
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-11-20 23:29:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-20 23:30:32 +0000

    sys-libs/libcap: add diffutils BDEPEND
    
    While patch is required by PMS, diff(utils) is not, so let's
    BDEPEND on it explicitly.
    
    Closes: https://bugs.gentoo.org/825374
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-libs/libcap/libcap-2.60-r1.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)