Bug 1392856

Summary: "failed to read link" errors during installation and unnecessary symbolic link files after uninstallation
Product: [Fedora] Fedora Reporter: Yukio Shiiya <yuk>
Component: wineAssignee: Andreas Bierfert <andreas.bierfert>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: andreas.bierfert, besser82, mike, stefan
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-08 14:32:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Yukio Shiiya 2016-11-08 11:20:03 UTC
Description of problem:
"failed to read link" errors occur during installation of wine packages.

Also, unnecessary symbolic link files remain after uninstalling the wine packages.

Version-Release number of selected component (if applicable):
wine-1.9.20-1.fc24

How reproducible:
100%

Steps to Reproduce:
# dnf list installed 'wine*'
Last metadata expiration check: 0:22:56 ago on Tue Nov  8 19:01:51 2016.
Error: No matching Packages to list

# ls -ald /etc/alternatives/wine*
ls: cannot access '/etc/alternatives/wine*': No such file or directory

# ls -ald /usr/bin/wine*
ls: cannot access '/usr/bin/wine*': No such file or directory

# dnf install wine
Last metadata expiration check: 0:23:31 ago on Tue Nov  8 19:01:51 2016.
Dependencies resolved.
==============================================================================================================
 Package                               Arch              Version                     Repository          Size
==============================================================================================================
Installing:
(snip)

Transaction Summary
==============================================================================================================
Install  56 Packages

Total download size: 205 M
Installed size: 541 M
Is this ok [y/N]: y
Downloading Packages:
(snip)
--------------------------------------------------------------------------------------------------------------
Total                                                                         3.7 MB/s | 205 MB     00:56     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
(snip)
  Installing  : wine-1.9.20-1.fc24.x86_64                                                               56/56 
failed to read link /usr/bin/wine: No such file or directory
failed to read link /usr/bin/wineserver: No such file or directory
  Verifying   : wine-1.9.20-1.fc24.x86_64                                                                1/56 
(snip)

Installed:
(snip)

Complete!

# ls -ald /etc/alternatives/wine*
lrwxrwxrwx. 1 root root 15 Nov  8 19:27 /etc/alternatives/wine -> /usr/bin/wine32
lrwxrwxrwx. 1 root root 25 Nov  8 19:27 /etc/alternatives/wine-preloader -> /usr/bin/wine32-preloader
lrwxrwxrwx. 1 root root 21 Nov  8 19:27 /etc/alternatives/wineserver -> /usr/bin/wineserver64

# ls -ald /usr/bin/wine*
lrwxrwxrwx. 1 root root      22 Nov  8 19:27 /usr/bin/wine -> /etc/alternatives/wine
(snip)
lrwxrwxrwx. 1 root root      32 Nov  8 19:27 /usr/bin/wine-preloader -> /etc/alternatives/wine-preloader
lrwxrwxrwx. 1 root root      28 Nov  8 19:27 /usr/bin/wineserver -> /etc/alternatives/wineserver
(snip)

# dnf history undo last
Last metadata expiration check: 0:32:05 ago on Tue Nov  8 19:01:51 2016.
Undoing transaction 263, from Tue Nov  8 19:26:23 2016
(snip)
==============================================================================================================
 Package                               Arch              Version                    Repository           Size
==============================================================================================================
Removing:
(snip)

Transaction Summary
==============================================================================================================
Remove  56 Packages

Installed size: 541 M
Is this ok [y/N]: y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Erasing     : wine-1.9.20-1.fc24.x86_64                                                                1/56 
(snip)
  Verifying   : wine-1.9.20-1.fc24.x86_64                                                               15/56 
(snip)

Removed:
(snip)

Complete!

Actual results:
"failed to read link" error occurred twice while installing wine packages.

Also, unnecessary symbolic link files remain after uninstalling wine packages.
# ls -ald /etc/alternatives/wine*
lrwxrwxrwx. 1 root root 15 Nov  8 19:34 /etc/alternatives/wine -> /usr/bin/wine32
lrwxrwxrwx. 1 root root 25 Nov  8 19:34 /etc/alternatives/wine-preloader -> /usr/bin/wine32-preloader
lrwxrwxrwx. 1 root root 21 Nov  8 19:34 /etc/alternatives/wineserver -> /usr/bin/wineserver32

# ls -ald /usr/bin/wine*
lrwxrwxrwx. 1 root root 22 Nov  8 19:34 /usr/bin/wine -> /etc/alternatives/wine
lrwxrwxrwx. 1 root root 32 Nov  8 19:34 /usr/bin/wine-preloader -> /etc/alternatives/wine-preloader
lrwxrwxrwx. 1 root root 28 Nov  8 19:34 /usr/bin/wineserver -> /etc/alternatives/wineserver

Expected results:
"failed to read link" error should not occur during installation of wine packages.

Also, the above unnecessary symbolic link files should not remain after uninstalling wine packages.

Additional info:
None

Comment 1 Michael Cronenworth 2016-11-08 14:32:24 UTC
The "wine" package does not control the alternatives configuration. The "wine-core" package does. This is working as intended.