I have an environment in which PROFILE=jos is set, which leads to: /bin/sh ../mkinstalldirs _tmpinst/bin mkdir -p -- _tmpinst/bin cp mono-wrapper _tmpinst/bin/mono echo '#! /bin/sh' > _tmpinst/bin/ilasm ; \ r=`pwd`; m=`cd /var/tmp/portage/dev-lang/mono-6.12.0.122/work/mono-6.12.0.122-abi_x86_64.amd64/mcs && pwd`; \ echo 'exec "'"$r/_tmpinst/bin/mono"'" "'"$m/ilasm/ilasm.exe"'" "$@"' >> _tmpinst/bin/ilasm ; \ chmod +x _tmpinst/bin/ilasm echo '#! /bin/sh' > _tmpinst/bin/csc ; \ r=`pwd`; m=`cd /var/tmp/portage/dev-lang/mono-6.12.0.122/work/mono-6.12.0.122-abi_x86_64.amd64/mcs && pwd`; \ echo 'exec "'"$r/_tmpinst/bin/mono"'" "'"/var/tmp/portage/dev-lang/mono-6.12.0.122/work/mono-6.12.0.122-abi_x86_64.amd64/external/roslyn-binaries/Microsoft.Net.Compilers/3.6.0/csc.exe"'" "$@"' >> _tmpinst/bin/csc ; \ chmod +x _tmpinst/bin/csc echo '#! /bin/sh' > _tmpinst/bin/mcs ; \ r=`pwd`; m=`cd /var/tmp/portage/dev-lang/mono-6.12.0.122/work/mono-6.12.0.122-abi_x86_64.amd64/mcs && pwd`; \ echo 'exec "'"$r/_tmpinst/bin/mono"'" "'"$m/class/lib/net_4_x/mcs.exe"'" "$@"' >> _tmpinst/bin/mcs ; \ chmod +x _tmpinst/bin/mcs echo '#! /bin/sh' > _tmpinst/bin/al ; \ r=`pwd`; m=`cd /var/tmp/portage/dev-lang/mono-6.12.0.122/work/mono-6.12.0.122-abi_x86_64.amd64/mcs && pwd`; \ echo 'exec "'"$r/_tmpinst/bin/mono"'" "'"$m/class/lib/net_4_x/al.exe"'" "$@"' >> _tmpinst/bin/al ; \ chmod +x _tmpinst/bin/al if test -w /var/tmp/portage/dev-lang/mono-6.12.0.122/work/mono-6.12.0.122-abi_x86_64.amd64/mcs; then :; else chmod -R +w /var/tmp/portage/dev-lang/mono-6.12.0.122/work/mono-6.12.0.122-abi_x86_64.amd64/mcs; fi cd /var/tmp/portage/dev-lang/mono-6.12.0.122/work/mono-6.12.0.122-abi_x86_64.amd64/mcs && make --no-print-directory -s NO_DIR_CHECK=1 PROFILES='binary_reference_assemblies net_4_x xbuild_12 xbuild_14 ' CC='x86_64-pc-linux-gnu-gcc' all-profiles build/rules.make:112: build/profiles/jos.make: No such file or directory make[3]: *** No rule to make target 'build/profiles/jos.make'. Stop. make[2]: *** [Makefile:708: all-mcs] Error 2 make[2]: Leaving directory '/var/tmp/portage/dev-lang/mono-6.12.0.122/work/mono-6.12.0.122-abi_x86_64.amd64/runtime' make[1]: *** [Makefile:601: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/dev-lang/mono-6.12.0.122/work/mono-6.12.0.122-abi_x86_64.amd64' make: *** [Makefile:529: all] Error 2 From my question on #gentoo-portage: (23:15:09) dwfreed: if mono's buildsystem uses PROFILE for some legitimate purpose, then the mono ebuild should unset the variable before running the buildsystem Reproducible: Always
Created attachment 766450 [details] build.log.gz
Created attachment 766451 [details] emerge-info.txt
Created attachment 766452 [details] environment
Adding unset PROFILE to src_prepare() helps me to get around this