Background: I have an amd64 system and I was trying to build wine with the minimum amount of useflags enabled, so I could avoid building 32-bit dependencies. My only use for wine is running avisynth, which I assumed would be unaffected by those useflags. When I tried building wine with only the threads useflag enabled, it failed during the install phase with the following error: rm: cannot remove ‘/home/var_tmp/portage/app-emulation/wine-1.9.4-r3/image//usr/man/man1/wineconsole*’: No such file or directory The portion of the ebuild responsible seems to be this: # Remove wineconsole if neither backend is installed #551124 if ! use X && ! use ncurses; then rm "${D}"/usr/{bin/,man/man1/}wineconsole* || die use abi_x86_32 && rm "${D}"/usr/lib32/wine/{,fakedlls/}wineconsole.exe* || die use abi_x86_64 && rm "${D}"/usr/lib64/wine/{,fakedlls/}wineconsole.exe* || die fi If I understood correctly, the issue seems to be that the manpages are located in /usr/share/man/man1 instead of /usr/man/man1. A quick grep tells me that all currently available versions of the ebuild are affected. emerge -pv app-emulation/wine: [ebuild R ] app-emulation/wine-1.8.3::gentoo USE="threads -X -alsa -capi -cups -custom-cflags -dos -fontconfig -gecko -gphoto2 -gsm -gstreamer -jpeg -lcms -ldap -mono -mp3 -ncurses* -netapi -nls -odbc -openal -opencl -opengl -osmesa -oss -pcap -perl -pipelight -png -prelink -pulseaudio -realtime -run-exes -s3tc -samba -scanner (-selinux) -ssl -staging {-test} -truetype -udisks -v4l -vaapi -xcomposite -xinerama -xml" ABI_X86="32 64 (-x32)" LINGUAS="en en_US -ar -bg -ca -cs -da -de -el -eo -es -fa -fi -fr -he -hi -hr -hu -it -ja -ko -lt -ml -nb_NO -nl -or -pa -pl -pt_BR -pt_PT -rm -ro -ru -sk -sl -sr_RS@cyrillic -sr_RS@latin -sv -te -th -tr -uk -wa -zh_CN -zh_TW" 0 KiB I'll attach the full build log and emerge --info output.
Created attachment 449516 [details] emerge --info output
Created attachment 449518 [details] build.log.zip
I confirm the problem, building wine for server with -X and -ncurses fails as described.
(In reply to Jan Fikar from comment #3) > I confirm the problem, building wine for server with -X and -ncurses fails > as described. I can see it as well, I'll take a look.
(In reply to Austin English from comment #4) > (In reply to Jan Fikar from comment #3) > > I confirm the problem, building wine for server with -X and -ncurses fails > > as described. > > I can see it as well, I'll take a look. Fixed by https://github.com/gentoo/gentoo/commit/177d61f02f8c2865910179d81c43f703f221e6b9, except in 1.8.3, which is stablized. It is fixed in 1.8.3-r1 though.