Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 902725 - sys-fs/bcachefs-tools-9999: ln: failed to create symbolic link '/var/tmp/portage/sys-fs/bcachefs-tools-9999/work/cargo_home/git/git': File exists
Summary: sys-fs/bcachefs-tools-9999: ln: failed to create symbolic link '/var/tmp/port...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matt Jolly
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-03-22 12:58 UTC by Marcin Mirosław
Modified: 2023-06-10 06:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,66.28 KB, text/plain)
2023-03-22 13:00 UTC, Marcin Mirosław
Details
build.log (build.log,48.94 KB, text/x-log)
2023-06-08 04:13 UTC, Stijn Tintel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Mirosław 2023-03-22 12:58:43 UTC
Vendoring windows_x86_64_msvc v0.42.1 (/usr/portage/distfiles/cargo-registry/registry/src/github.com-1ecc6299db9ec823/windows_x86_64_msvc-0.42.1) to /var/tmp/portage/sys-fs/bcachefs-tools-9999/work/cargo_home/gentoo/windows_x86_64_msvc
To use vendored sources, add this to your .cargo/config.toml for this project:

[source.crates-io]
replace-with = "vendored-sources"

[source."https://evilpiepirate.org/git/rust-bindgen.git"]
git = "https://evilpiepirate.org/git/rust-bindgen.git"
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "/var/tmp/portage/sys-fs/bcachefs-tools-9999/work/cargo_home/gentoo"
ln: failed to create symbolic link '/var/tmp/portage/sys-fs/bcachefs-tools-9999/work/cargo_home/git/git': File exists
 * ERROR: sys-fs/bcachefs-tools-9999::gentoo failed (unpack phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_unpack
 *   environment, line 3510:  Called cargo_live_src_unpack
 *   environment, line 1540:  Called die
 * The specific snippet of code:
 *           ln -sv "${ECARGO_REGISTRY_DIR}/git" "${ECARGO_HOME}/git" || die;
 *
 * If you need support, post the output of `emerge --info '=sys-fs/bcachefs-tools-9999::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-fs/bcachefs-tools-9999::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-fs/bcachefs-tools-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-fs/bcachefs-tools-9999/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-fs/bcachefs-tools-9999/work/bcachefs-tools-9999/rust-src/mount'
 * S: '/var/tmp/portage/sys-fs/bcachefs-tools-9999/work/bcachefs-tools-9999/rust-src/mount'


Reproducible: Always




Portage 3.0.44 (python 3.10.10-final-0, default/linux/amd64/17.1/no-multilib/hardened, gcc-12, glibc-2.36-r7, 6.1.0-02489-g8e1519ccb62b x86_64)
=================================================================
System uname: Linux-6.1.0-02489-g8e1519ccb62b-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-glibc2.36
KiB Mem:    10374556 total,   1216784 free
KiB Swap:    3158008 total,   1950332 free
Timestamp of repository gentoo: Wed, 22 Mar 2023 06:31:51 +0000
Head commit of repository gentoo: d13a1da5c967f572cb6acb14533300e9d13d02ca

sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.39 p5) 2.39.0
ccache version 4.7.4 [enabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-lang/perl:             5.36.0-r2::gentoo
dev-lang/python:           3.9.16_p3::gentoo, 3.10.10_p3::gentoo, 3.11.2_p2::gentoo
dev-lang/rust-bin:         1.66.1-r1::gentoo
dev-util/ccache:           4.7.4::gentoo
dev-util/cmake:            3.25.2::gentoo
dev-util/meson:            1.0.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/openrc:           0.45.2-r2::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r4::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           15.0.7-r1::gentoo
sys-devel/gcc:             12.2.1_p20230121-r1::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/llvm:            15.0.7::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    sync-user: portage:portage
    priority: -1000
    volatile: True
Installed sets: @masscheck, @nagios-plugins, @rblowanie, @recoll
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=westmere -mtune=native    -fno-unwind-tables -ftracer -ftree-loop-distribution -floop-interchange -fpredictive-commoning -fpredictive-commoning -fprefetch-loop-arrays   -fuse-linker-plugin -fvar-tracking-assignments -fno-common --param=l2-cache-size=256"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/apache2-php8.0/ext-active/ /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php7.4/ext-active/ /etc/php/fpm-php8.0/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/
phpdbg-php7.4/ext-active/ /etc/php/phpdbg-php8.0/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=westmere -mtune=native    -fno-unwind-tables -ftracer -ftree-loop-distribution -floop-interchange -fpredictive-commoning -fpredictive-commoning -fprefetch-loop-arrays   -fuse-linker-plugin -fvar-tracking-assignments -fno-common --param=l2-cache-size=256"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-O2 -pipe -march=westmere -mtune=native    -fno-unwind-tables -ftracer -ftree-loop-distribution -floop-interchange -fpredictive-commoning -fpredictive-commoning -fprefetch-loop-arrays   -fuse-linker-plugin -fvar-tracking-assignments -fno-common --param=l2-cache-size=256"
FEATURES="Xcollision-protect assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live ccache cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandb
ox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=westmere -mtune=native    -fno-unwind-tables -ftracer -ftree-loop-distribution -floop-interchange -fpredictive-commoning -fpredictive-commoning -fprefetch-loop-arrays   -fuse-linker-plugin -fvar-tracking-assignments -fno-common --param=l2-cache-size=256"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="pl_PL.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common"
LEX="flex"
LINGUAS="en"
MAKEOPTS="-j6"
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 --excl
ude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="acl aio amd64 apache2 bash-completion bzip2 caps cet cli crypt dri hardened iconv idn ipv6 jit libglvnd libtirpc lto modules nano-syntax ncurses nls nptl openmp pcre p
go pie readline seccomp smp split-usr ssl ssp test-rust threads unicode vhosts vim-syntax xattr xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="alias authn_core access_compat auth_basic authz_core authn_alias authn_anon auth_digest authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_own
er authz_user autoindex cgi dav dav_fs dav_lock dir env expires ext_filter filter headers hugepages include info log_config logio mime mime_magic negotiation remoteip rewri
te setenvif status unique_id unixd socache_shmcb usertrack vhost_alias" APACHE2_MPMS="itk" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="apache aggregation bind cgroups conntrack contextswitch cpu curl curl_json df disk dns email entropy ethstat exec filecount hugepages interface iptables irq lvm match_regex mysql netlink load mem
ory network nginx notify_email ntpd openvpn ping postgresql processes protocols redis rrdcached rrdtool snmp statsd swap syslog tail tail_csv tcpconns unixsock uptime vmem"
 CPU_FLAGS_X86="aes mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2" ELIBC="glibc" GRUB_PLATFORMS="pc efi-64" KERNEL="linux" L10N="en" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" NGINX_MODULES_HTTP="access autoindex browser charset fastcgi gzip map limit_zone proxy rewrite http2
stub_status gzip_static" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS=
"python3_10" RUBY_TARGETS="ruby27 ruby30" USERLAND="GNU" XTABLES_ADDONS="fuzzy geoip lscan psd tarpit"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GP
ROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, P
ORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Marcin Mirosław 2023-03-22 12:59:49 UTC
This happens when I try to compile second time after cleaning distfiles directory.
Comment 2 Marcin Mirosław 2023-03-22 13:00:42 UTC
Created attachment 858591 [details]
build.log

build.log
Comment 3 Matt Jolly gentoo-dev 2023-03-31 00:02:25 UTC
Thanks for the bug report; I'll look into it. I'm unlikely to be available until the week after Easter (Sorry, "real life").

TBH if this is broken in the live ebuild we may get lucky and have upstream fix it before I take a look; It seems like something entirely on their end.

I note that there still hasn't been another release since v24_p<whatever>, I'll see about an updated ebuild once my bcachefs NAS is out of its shipping container or go prod Kent and see if he'll tag a v25.
Comment 4 Stijn Tintel 2023-06-08 04:12:32 UTC
Still hitting this today, on default/linux/amd64/17.0/musl/hardened.

# emerge --info =sys-fs/bcachefs-tools-9999::gentoo
Unavailable repository 'guru' referenced by masters entry in '/var/db/repos/stintel/metadata/layout.conf'
WARNING: One or more repositories have missing repo_name entries:

        /var/db/repos/misc/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.


Portage 3.0.45.3 (python 3.11.3-final-0, default/linux/amd64/17.0/musl/hardened, gcc-12, musl-1.2.3-r7, 6.2.8-x86_64-02607-gc4a8b2463a13 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.2.8-x86_64-02607-gc4a8b2463a13-x86_64-AMD_Opteron-tm-_Processor_4228_HE-with-libc
KiB Mem:   131991756 total,  56257884 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 08 Jun 2023 03:15:01 +0000
Head commit of repository gentoo: 61091f465be228d81785d5cde71eb7b881642e87
Head commit of repository musl: 4faecd7c3d7e381f720c23b721cb1191e3f3d35f

Head commit of repository stintel: 7a26fc4b3e7c975acfa5bcdd3b0e128581967ead

sh bash 5.1_p16-r4
ld GNU ld (Gentoo 2.39 p6) 2.39.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r4::gentoo
dev-lang/perl:             5.36.0-r2::gentoo
dev-lang/python:           3.10.10_p3::gentoo, 3.11.3::gentoo
dev-lang/rust:             1.69.0-r1::gentoo
dev-util/cmake:            3.26.3::gentoo
dev-util/meson:            1.1.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/openrc:           0.46::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r1::gentoo
sys-devel/gcc:             11.3.1_p20221209::gentoo, 12.2.1_p20230428-r1::gentoo
sys-devel/gcc-config:      2.10::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/llvm:            15.0.7::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/musl:             1.2.3-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: --exclude-from=/etc/portage/rsync.exclude
    sync-rsync-verify-jobs: 1

misc
    location: /var/db/repos/misc
    masters: gentoo
    volatile: True

musl
    location: /var/db/repos/musl
    sync-type: git
    sync-uri: https://github.com/gentoo/musl.git
    masters: gentoo
    volatile: False

stintel
    location: /var/db/repos/stintel
    sync-type: git
    sync-uri: https://github.com/stintel/gentoo-overlay.git
    masters: gentoo
    volatile: False

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-gentoo-linux-musl"
CFLAGS="-O2 -pipe -march=bdver1 -g"
CHOST="x86_64-gentoo-linux-musl"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=bdver1 -g"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-O2 -pipe -march=bdver1 -g"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live cgroup clean-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news 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 -march=bdver1 -g"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirror.leaseweb.com/gentoo https://gentoo.adlevio.net"
INSTALL_MASK="charset.alias /usr/share/locale/locale.alias"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j12"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync.exclude"
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"
SHELL="/bin/bash"
USE="acl aes aio amd64 audit avx bash-completion bzip2 caps cet cli crypt dri fma4 fortran hardened iconv io-uring ipv6 libtirpc lto mmx mmxext ncurses nls nptl numa openmp pam pclmul pcre pie popcnt readline sctp seccomp smp split-usr sse sse2 sse3 sse4_1 sse4_2 sse4a ssl ssp ssse3 test-rust unicode xattr xop xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx fma4 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" ELIBC="musl" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" NGINX_MODULES_HTTP="access addition auth_basic autoindex browser charset dav empty_gif fancyindex fastcgi geo geoip gzip gzip_static headers_more limit_req limit_zone map memcached mp4 proxy realip referer rewrite scgi spdy split_clients ssi stub_status upload upload_progress upstream_ip_hash userid uwsgi" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres14" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby30 ruby31" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 5 Stijn Tintel 2023-06-08 04:13:56 UTC
Created attachment 863529 [details]
build.log
Comment 6 Matt Jolly gentoo-dev 2023-06-08 04:29:44 UTC
Hi All.

Good news: I've updated the live ebuild so that it actually builds.
Bad news: It doesn't seem to fix this bug
Good news: There's a new point-in-time bcachefs package that seems to work around it: `sys-fs/bcachefs-tools-24_p20230603` - this should be suitable for the short term.

I'm unable to repro this on any of my machines, but they're not hardened or musl... I'll see if I can repro in some chroots this evening.
Comment 7 Matt Jolly gentoo-dev 2023-06-08 09:33:37 UTC
More Good (?) news!

I can repro by trying to build in a hardened chroot. At this point I suspect something in the rust packaging doesn't agree with hardened.

Running with --debug I see:

```
[source.vendored-sources]
directory = "/var/tmp/portage/sys-fs/bcachefs-tools-9999/work/cargo_home/gentoo"
+ [[ -d /var/cache/distfiles/cargo-registry/git ]]
+ ln -sv /var/cache/distfiles/cargo-registry/git /var/tmp/portage/sys-fs/bcachefs-tools-9999/work/cargo_home/git
ln: failed to create symbolic link '/var/tmp/portage/sys-fs/bcachefs-tools-9999/work/cargo_home/git/git': File exists
+ die
+ [[ -n '' ]]
+ set +x
```
Comment 8 Larry the Git Cow gentoo-dev 2023-06-10 06:37:38 UTC
The bug has been closed via the following commit(s):

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

commit 857bbea037bed3e12454a34e2ca24adb041d180f
Author:     Matt Jolly <Matt.Jolly@footclan.ninja>
AuthorDate: 2023-06-08 10:19:05 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-06-10 06:37:26 +0000

    sys-fs/bcachefs-tools: fix live hardened build
    
    Closes: https://bugs.gentoo.org/902725
    Signed-off-by: Matt Jolly <Matt.Jolly@footclan.ninja>
    Closes: https://github.com/gentoo/gentoo/pull/31352
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-fs/bcachefs-tools/bcachefs-tools-9999.ebuild | 1 -
 1 file changed, 1 deletion(-)
Comment 9 Larry the Git Cow gentoo-dev 2023-06-10 06:50:53 UTC
The bug has been referenced in the following commit(s):

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

commit 681ca5418e6a79fdf0e5213e672b568c055ba83a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-06-10 06:48:22 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-06-10 06:50:47 +0000

    cargo.eclass: make cargo_live_src_unpack idempotent
    
    Allow multiple calls w/ different S set by guarding the symlink creation.
    
    Bug: https://bugs.gentoo.org/902725
    Signed-off-by: Sam James <sam@gentoo.org>

 eclass/cargo.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)