Install phase of the net-misc/openssh fails with: >>> Install net-misc/openssh-8.4_p1-r2 into /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image make -j10 -l20 install-nokeys DESTDIR=/var/tmp/portage/net-misc/openssh-8.4_p1-r2/image Makefile:655: warning: ignoring prerequisites on suffix rule definition (cd openbsd-compat && make) /bin/mkdir -p /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/bin /bin/mkdir -p /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/etc/ssh /bin/mkdir -p /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/sbin /bin/mkdir -p /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/share/man/cat1 make[1]: Entering directory '/var/tmp/portage/net-misc/openssh-8.4_p1-r2/work/openssh-8.4p1/openbsd-compat' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/var/tmp/portage/net-misc/openssh-8.4_p1-r2/work/openssh-8.4p1/openbsd-compat' /bin/mkdir -p /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/share/man/cat5 /bin/mkdir -p /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/share/man/cat8 /bin/mkdir -p /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/lib64/misc /bin/mkdir -p -m 0755 /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/var/empty /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 0755 ssh /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/bin/ssh /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 0755 scp /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/bin/scp /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 0755 ssh-add /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/bin/ssh-add /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 0755 ssh-agent /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/bin/ssh-agent /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 0755 ssh-keygen /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/bin/ssh-keygen /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 0755 ssh-keyscan /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/bin/ssh-keyscan /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 0755 sshd /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/sbin/sshd /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 4711 ssh-keysign /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/lib64/misc/ssh-keysign /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 0755 ssh-pkcs11-helper /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/lib64/misc/ssh-pkcs11-helper /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 0755 ssh-sk-helper /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/lib64/misc/ssh-sk-helper /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 0755 sftp /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/bin/sftp /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 0755 sftp-server /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/lib64/misc/sftp-server /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 644 ssh.1.out /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/share/man/cat1/ssh.1 /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 644 scp.1.out /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/share/man/cat1/scp.1 /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 644 ssh-add.1.out /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/share/man/cat1/ssh-add.1 /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 644 ssh-agent.1.out /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/share/man/cat1/ssh-agent.1 /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 644 ssh-keygen.1.out /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/share/man/cat1/ssh-keygen.1 /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 644 ssh-keyscan.1.out /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/share/man/cat1/ssh-keyscan.1 /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 644 moduli.5.out /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/share/man/cat5/moduli.5 /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 644 sshd_config.5.out /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/share/man/cat5/sshd_config.5 /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 644 ssh_config.5.out /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/share/man/cat5/ssh_config.5 /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 644 sshd.8.out /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/share/man/cat8/sshd.8 /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 644 sftp.1.out /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/share/man/cat1/sftp.1 /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 644 sftp-server.8.out /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/share/man/cat8/sftp-server.8 /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 644 ssh-keysign.8.out /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/share/man/cat8/ssh-keysign.8 /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 644 ssh-pkcs11-helper.8.out /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/share/man/cat8/ssh-pkcs11-helper.8 /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c -m 644 ssh-sk-helper.8.out /var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/share/man/cat8/ssh-sk-helper.8 rm: cannot remove '/var/tmp/portage/net-misc/openssh-8.4_p1-r2/image/usr/share/man/man1/scp.1': No such file or directory * ERROR: net-misc/openssh-8.4_p1-r2::gentoo failed (install phase): * failed to remove scp * * Call stack: * ebuild.sh, line 125: Called src_install * environment, line 2462: Called die * The specific snippet of code: * rm "${ED}"/usr/{bin/scp,share/man/man1/scp.1} || die "failed to remove scp"; * * If you need support, post the output of `emerge --info '=net-misc/openssh-8.4_p1-r2::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-misc/openssh-8.4_p1-r2::gentoo'`. * The complete build log is located at '/var/tmp/portage/net-misc/openssh-8.4_p1-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-misc/openssh-8.4_p1-r2/temp/environment'. * Working directory: '/var/tmp/portage/net-misc/openssh-8.4_p1-r2/work/openssh-8.4p1' * S: '/var/tmp/portage/net-misc/openssh-8.4_p1-r2/work/openssh-8.4p1' * Messages for package net-misc/openssh-8.4_p1-r2: * ERROR: net-misc/openssh-8.4_p1-r2::gentoo failed (install phase): * failed to remove scp * * Call stack: * ebuild.sh, line 125: Called src_install * environment, line 2462: Called die * The specific snippet of code: * rm "${ED}"/usr/{bin/scp,share/man/man1/scp.1} || die "failed to remove scp"; * * If you need support, post the output of `emerge --info '=net-misc/openssh-8.4_p1-r2::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-misc/openssh-8.4_p1-r2::gentoo'`. * The complete build log is located at '/var/tmp/portage/net-misc/openssh-8.4_p1-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-misc/openssh-8.4_p1-r2/temp/environment'. * Working directory: '/var/tmp/portage/net-misc/openssh-8.4_p1-r2/work/openssh-8.4p1' * S: '/var/tmp/portage/net-misc/openssh-8.4_p1-r2/work/openssh-8.4p1' if Portage FEATURES variable contains noman flag.
FEATURES=noman wouldn't stop man pages from existing in the image/ directory, and so `FEATURES=noman USE=-scp` works for me. However this caught my attention: [...]image/usr/share/man/cat1/scp.1 ^^^^ This should be man1 rather than cat1. Seems to happen when neither groff nor mandoc is installed at all. However I'm unsure of a situation where this is possible unless you're overriding the system set or using package.provided (this would be an unsupported configuration).
Assigning anyway just in case a no-mandoc no-groff situation needs to be considered.
And please attach full build.log and emerge --info for completeness, notably interested in knowing what profile is used.
That's a good point, thanks for your feedback Ionen! I have removed virtual/man from this system, because, well, I am building embedded system and I don't need man pages in the first place, so what's the point of having virtual/man if noman feature is enabled? :) But I totally see your point about unsupported configuration, so will be okay if this use case falls into this category. (will be attaching both build.log and emerge --info shortly)
The path is actually coming from the ebuild :O # https://bugs.gentoo.org/733802 if ! use scp; then rm "${ED}"/usr/{bin/scp,share/man/man1/scp.1} \ || die "failed to remove scp" fi
Created attachment 680626 [details] build.log
$ emerge --info Portage 3.0.12 (python 3.8.6-final-0, default/linux/amd64/17.1/no-multilib, gcc-9.3.0, glibc-2.32-r3, 5.4.80-gentoo-r1-jasper x86_64) ================================================================= System uname: Linux-5.4.80-gentoo-r1-jasper-x86_64-Intel-R-_Core-TM-_i9-9940X_CPU_@_3.30GHz-with-glibc2.2.5 Timestamp of repository gentoo: Fri, 01 Jan 2021 22:30:01 +0000 Head commit of repository gentoo: 87cc63f928f9542b8d114f18e32c8df1377515dd sh bash 5.0_p18 ld GNU gold (Gentoo 2.34 p6 2.34.0) 1.16 app-shells/bash: 5.0_p18::gentoo dev-lang/perl: 5.30.3::gentoo dev-lang/python: 3.8.6::gentoo dev-util/cmake: 3.17.4-r1::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/sandbox: 2.20::gentoo sys-devel/autoconf: 2.69-r5::gentoo sys-devel/automake: 1.16.2-r1::gentoo sys-devel/binutils: 2.34-r2::gentoo sys-devel/gcc: 9.3.0-r2::gentoo sys-devel/gcc-config: 2.3.2-r1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.32-r3::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-umask: 022 sync-uri: rsync://rsync.gentoo.org/gentoo-portage/ sync-user: portage priority: 50 sync-rsync-extra-opts: sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -fstack-protector-strong -fomit-frame-pointer -mtune=generic " CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fomit-frame-pointer -mtune=generic " DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe -fstack-protector-strong -fomit-frame-pointer -mtune=generic " FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox nodoc noinfo noman parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -fstack-protector-strong -fomit-frame-pointer -mtune=generic " GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="C.UTF8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="" MAKEOPTS="-j10 -l20" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="amd64 libglvnd split-usr systemd" ABI_X86="64" CPU_FLAGS_X86="mmx mmxext aes avx avx2 f16c fma3 pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" KERNEL="linux" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" USERLAND="GNU" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7450452e3294e02ce38c03194aec9ee4acf2770a commit 7450452e3294e02ce38c03194aec9ee4acf2770a Author: Patrick McLean <chutzpah@gentoo.org> AuthorDate: 2021-03-05 04:29:08 +0000 Commit: Patrick McLean <chutzpah@gentoo.org> CommitDate: 2021-03-05 18:44:23 +0000 net-misc/openssh-8.5_p1: Fix USE=-scp FEATURES=noman (bug #763051) Closes: https://bugs.gentoo.org/763051 Signed-off-by: Patrick McLean <chutzpah@gentoo.org> net-misc/openssh/openssh-8.5_p1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)