Summary: | Bootstrapping Gentoo Prefix fails for bison-3.8.2-r2 | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | thomas.roblitz |
Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=904887 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
thomas.roblitz
2022-12-15 10:40:30 UTC
Hi, I experienced the same error today (Jan 11, 2023). Since it is a file collision I guess it is related to this news item: https://github.com/gentoo/gentoo-news/blob/master/2022-12-27-alternatives-introduction/2022-12-27-alternatives-introduction.en.txt where also app-alternatives/yacc was introduced. From the news it seems like the collision could be ignored, but the bootstrap still fails. Cheers APN It's got to be because it exists but isn't a symlink: -h FILE FILE exists and is a symbolic link (same as -L) The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa1d9b702b2f2ae20082028c5ee9436a40879755 commit aa1d9b702b2f2ae20082028c5ee9436a40879755 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-01-13 09:49:40 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-01-13 10:01:11 +0000 sys-devel/bison: adapt pkg_postinst for prefix bootstrapping The file may exist as it was manually built and it's okay to just ignore it for now as it'll get washed out during stage3. Closes: https://bugs.gentoo.org/886123 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/bison/bison-3.8.2-r2.ebuild | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef1e3dad5e18f887a56ae06c02eff74ab5c33a40 commit ef1e3dad5e18f887a56ae06c02eff74ab5c33a40 Author: Yifeng Li <tomli@tomli.me> AuthorDate: 2023-04-23 16:43:02 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-04-23 19:12:59 +0000 app-arch/tar: adapt pkg_postinst for prefix bootstrapping This commit allows Portage to overwrite the binary executable "tar" with a symbolic link, this situation is encountered during Gentoo prefix bootstrap. If left unhandled, it causes the bootstrap to fail with the error message: ln: failed to create symbolic link '/Users/ec2-user/gentoo/tmp/bin/tar': File exists The original binary is renamed to tar.bak. [sam: This is analogous to sys-devel/bison's hack too.] Bug: https://bugs.gentoo.org/886123 Closes: https://bugs.gentoo.org/904887 Suggested-by: Sam James <sam@gentoo.org> Signed-off-by: Yifeng Li <tomli@tomli.me> Closes: https://github.com/gentoo/gentoo/pull/30723 Signed-off-by: Sam James <sam@gentoo.org> app-arch/tar/tar-1.34-r2.ebuild | 7 +++++++ app-arch/tar/tar-1.34-r3.ebuild | 7 +++++++ 2 files changed, 14 insertions(+) |