Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 596498 - app-emulation/wine[-X,-ncurses]: rm: cannot remove ‘.../app-emulation/wine-1.9.4-r3/image//usr/man/man1/wineconsole*’: No such file or directory
Summary: app-emulation/wine[-X,-ncurses]: rm: cannot remove ‘.../app-emulation/wine-1....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Wine Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-08 00:52 UTC by Tiago Resende
Modified: 2016-11-29 21:25 UTC (History)
0 users

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


Attachments
emerge --info output (emerge_info.txt,17.80 KB, text/plain)
2016-10-08 00:53 UTC, Tiago Resende
Details
build.log.zip (build.log.zip,263.26 KB, application/zip)
2016-10-08 00:54 UTC, Tiago Resende
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tiago Resende 2016-10-08 00:52:40 UTC
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.
Comment 1 Tiago Resende 2016-10-08 00:53:22 UTC
Created attachment 449516 [details]
emerge --info output
Comment 2 Tiago Resende 2016-10-08 00:54:34 UTC
Created attachment 449518 [details]
build.log.zip
Comment 3 Jan Fikar 2016-11-25 11:57:29 UTC
I confirm the problem, building wine for server with -X and -ncurses fails as described.
Comment 4 Austin English (RETIRED) gentoo-dev 2016-11-28 18:51:13 UTC
(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.
Comment 5 Austin English (RETIRED) gentoo-dev 2016-11-29 21:25:21 UTC
(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.