Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 734024 - Gentoo Prefix bootstrap fails on Stage 3 cause of net-misc/openssh-8.3_p1-r3 'failed to remove scp'
Summary: Gentoo Prefix bootstrap fails on Stage 3 cause of net-misc/openssh-8.3_p1-r3 ...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-27 04:33 UTC by Sammy Pfeiffer
Modified: 2021-08-29 14:07 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 Sammy Pfeiffer 2020-07-27 04:33:05 UTC
Meaningful part of the log:

2020-07-26T16:00:06.0077725Z /tmp/gentoo/usr/bin/install -c -m 644 ssh-pkcs11-helper.8.out /tmp/gentoo/var/tmp/portage/net-misc/openssh-8.3_p1-r3/image/tmp/gentoo/usr/share/man/cat8/ssh-pkcs11-helper.8
2020-07-26T16:00:06.0086056Z /tmp/gentoo/usr/bin/install -c -m 644 ssh-sk-helper.8.out /tmp/gentoo/var/tmp/portage/net-misc/openssh-8.3_p1-r3/image/tmp/gentoo/usr/share/man/cat8/ssh-sk-helper.8
2020-07-26T16:00:06.3709942Z rm: cannot remove '/tmp/gentoo/var/tmp/portage/net-misc/openssh-8.3_p1-r3/image/tmp/gentoo/usr/share/man/man1/scp.1': No such file or directory
2020-07-26T16:00:06.3734672Z  * ERROR: net-misc/openssh-8.3_p1-r3::gentoo failed (install phase):
2020-07-26T16:00:06.3760726Z  *   failed to remove scp
2020-07-26T16:00:06.3800393Z  * 
2020-07-26T16:00:06.3829769Z  * Call stack:
2020-07-26T16:00:06.3887181Z  *     ebuild.sh, line 125:  Called src_install
2020-07-26T16:00:06.3938624Z  *   environment, line 2393:  Called die
2020-07-26T16:00:06.3963554Z  * The specific snippet of code:
2020-07-26T16:00:06.4080239Z  *           rm "${ED}"/usr/{bin/scp,share/man/man1/scp.1} || die "failed to remove scp";
2020-07-26T16:00:06.4101841Z  * 
2020-07-26T16:00:06.4134728Z  * If you need support, post the output of `emerge --info '=net-misc/openssh-8.3_p1-r3::gentoo'`,
2020-07-26T16:00:06.4162076Z  * the complete build log and the output of `emerge -pqv '=net-misc/openssh-8.3_p1-r3::gentoo'`.
2020-07-26T16:00:06.4193055Z  * The complete build log is located at '/tmp/gentoo/var/tmp/portage/net-misc/openssh-8.3_p1-r3/temp/build.log'.
2020-07-26T16:00:06.4218956Z  * The ebuild environment file is located at '/tmp/gentoo/var/tmp/portage/net-misc/openssh-8.3_p1-r3/temp/environment'.
2020-07-26T16:00:06.4249429Z  * Working directory: '/tmp/gentoo/var/tmp/portage/net-misc/openssh-8.3_p1-r3/work/openssh-8.3p1'
2020-07-26T16:00:06.4277649Z  * S: '/tmp/gentoo/var/tmp/portage/net-misc/openssh-8.3_p1-r3/work/openssh-8.3p1'
2020-07-26T16:00:06.7267867Z 
2020-07-26T16:00:06.7269801Z >>> Failed to emerge net-misc/openssh-8.3_p1-r3, Log file:

Full bootstrap Stage 3 log:
https://dev.azure.com/12719821/e566c963-8f77-4f01-b7bc-ae2d91b1334f/_apis/build/builds/2409/logs/41

You can find yourself in this exact scenario by doing:
docker pull awesomebytes/gentoo_prefix_ci_stage3:2409
docker run -it awesomebytes/gentoo_prefix_ci_stage3:2409 /bin/bash
(EPREFIX is /tmp/gentoo)

I don't see this bug reported in net-misc/openssh, not sure if we are affected only in Prefix.

Also note that this happens both in amd64 and x86.

After this is fixed I believe we will hit again: https://bugs.gentoo.org/733722

Reproducible: Always
Comment 1 Fabian Groffen gentoo-dev 2020-07-27 06:21:47 UTC
can you do a find for scp.1 in your $S and image dir?  I wonder if it is disabled somehow by configure in a way not forseen by the openssh ebuild
Comment 2 Sammy Pfeiffer 2020-07-27 07:35:35 UTC
@Fabian:

user@7c3b1348a94a:/tmp/gentoo$ find . -name scp.1
./var/tmp/portage/net-misc/openssh-8.3_p1-r3/work/openssh-8.3p1/scp.1
./var/tmp/portage/net-misc/openssh-8.3_p1-r3/image/tmp/gentoo/usr/share/man/cat1/scp.1


And the error says:
rm: cannot remove '/tmp/gentoo/var/tmp/portage/net-misc/openssh-8.3_p1-r3/image/tmp/gentoo/usr/share/man/man1/scp.1': No such file or directory


The paths differ here:

/tmp/gentoo/var/tmp/portage/net-misc/openssh-8.3_p1-r3/image/tmp/gentoo/usr/share/man/[  cat1  ]/scp.1
/tmp/gentoo/var/tmp/portage/net-misc/openssh-8.3_p1-r3/image/tmp/gentoo/usr/share/man/[  man1  ]/scp.1

Not sure what 'cat1' vs 'man1' mean.
Comment 3 Fabian Groffen gentoo-dev 2021-01-24 12:37:41 UTC
Is this still an issue nowadays?  I haven't seen this issue during recent linux bootstraps