You are here    Bugs    PlayOnLinux    Bug    Ticket #5585 nl sv ru pl es de fr

Bug #5585 on PlayOnLinux

Installing corefonts fails because of wrong pathname

Added by kaimon on 2017-09-12 15:43:26 - Comment or update this ticket

Statut:
New
Priority:
High
Assigned to:
Nobody
Last update:
2017-09-12 17:55:29
Description, steps to reproduce:

Installing coreffonts terminates without error message.

I tried from terminal and got this -

playonlinux
Looking for python... 2.7.9 - wxversion(s): 3.0-gtk2, 2.8-gtk2-unicode
selected
[main] Message: PlayOnLinux (4.2.12) is starting
[clean_tmp] Message: Cleaning temp directory
[Check_OpenGL] Message: 32bits direct rendering is enabled
[Check_OpenGL] Message: 64bits direct rendering is enabled
[POL_System_CheckFS] Message: Checking filesystem for /home/xxx/.PlayOnLinux/
[main] Message: Filesystem is compatible
[install_plugins] Message: Überprüfe Plugin: Capture...
[install_plugins] Message: Überprüfe Plugin: ScreenCap...
[install_plugins] Message: Überprüfe Plugin: PlayOnLinux Vault...
[update_check] Message: List is up to date
[POL_SetupWindow_Init] Message: Creating new window for pid 4890
[POL_Call] Message: Calling POL_Install_corefonts
[POL_Call] Message: ----- Starting function POL_Install_corefonts -----
[POL_GPG_auth_script] Message: Checking signature of POL_Install_corefonts
[POL_GPG_install_key] Message: Importing PlayOnLinux public key
[POL_Source] Message: POL GPG : Good signature
[POL_Call] Message: Calling POL_Internal_InstallFonts
[POL_Call] Message: ----- Starting function POL_Internal_InstallFonts -----
[POL_GPG_auth_script] Message: Checking signature of POL_Internal_InstallFonts
[POL_GPG_install_key] Message: Importing PlayOnLinux public key
[POL_Source] Message: POL GPG : Good signature
--- Licence translated into your language ---
These fonts were provided by Microsoft
"in the interest of cross-platform compatibility".
This is no longer the case, but they are still available from third parties.

You are free to download these fonts and use them for your own use,
but you may not redistribute them in modified form,
including changes to the file name or packaging format.


--- Original licence ---
These fonts were provided by Microsoft "in the interest of
cross-platform compatibility".
This is no longer the case, but they are still available from
third parties.

You are free to download these fonts and use them for your own use,
but you may not redistribute them in modified form, including changes
to the file name or packaging format.
Downloading: andale32.exe...
[POL_Call] Message: ----- Ending function POL_Internal_InstallFonts -----
[source] Message: Installing microsoft fonts
cp: der Aufruf von stat für „/home/xxx/.PlayOnLinux//fonts/*“ ist nicht möglich: Datei oder Verzeichnis nicht gefunden
[POL_Call] Message: ----- Ending function POL_Install_corefonts -----
[POL_SetupWindow_Close] Message: Closing window for pid 4890
[POL_SetupWindow_Init] Message: Creating new window for pid 5195
[POL_Call] Message: Calling POL_Install_corefonts
[POL_Call] Message: ----- Starting function POL_Install_corefonts -----
[POL_GPG_auth_script] Message: Checking signature of POL_Install_corefonts
[POL_GPG_install_key] Message: Importing PlayOnLinux public key
[POL_Source] Message: POL GPG : Good signature
[POL_Call] Message: Calling POL_Internal_InstallFonts
[POL_Call] Message: ----- Starting function POL_Internal_InstallFonts -----
[POL_GPG_auth_script] Message: Checking signature of POL_Internal_InstallFonts
[POL_GPG_install_key] Message: Importing PlayOnLinux public key
[POL_Source] Message: POL GPG : Good signature
--- Licence translated into your language ---
These fonts were provided by Microsoft
"in the interest of cross-platform compatibility".
This is no longer the case, but they are still available from third parties.

You are free to download these fonts and use them for your own use,
but you may not redistribute them in modified form,
including changes to the file name or packaging format.

--- Original licence ---
These fonts were provided by Microsoft "in the interest of
cross-platform compatibility".
This is no longer the case, but they are still available from
third parties.

You are free to download these fonts and use them for your own use,
but you may not redistribute them in modified form, including changes
to the file name or packaging format.
Downloading: andale32.exe...
[POL_Call] Message: ----- Ending function POL_Internal_InstallFonts -----
[source] Message: Installing microsoft fonts
cp: the call of stat for „/home/.../.PlayOnLinux//fonts/*“ is not possible: File or directory not found
[POL_Call] Message: ----- Ending function POL_Install_corefonts -----
[POL_SetupWindow_Close] Message: Closing window for pid 5195
Registered PID: 4619 (Missing)
Registered PID: 4657 (Missing)
Registered PID: 4890 (Missing)
Registered PID: 5195 (Present)

Why is POL looking for a directory name with 2 slashes? The (empty) directory is there but needs only one slash.

History

Update by kaimon on 2017-09-12 16:21:34

I forgot to mention this forum thread, which has more information: https://www.playonlinux.com/en/topic-15280.html

I tried version 4.2.5-1 from debian jessie repo and the debian packages from this site of version 4.2.11 (which is the latest version offered for jessie in the playonlinux repo, no version for stretch available) and a deb package of version 4.2.12 - the problem is present in all of them.

I started checking the sourcecode. First thing I noticed was /usr/share/playonlinux/python/lib/Variables.py:

# Debian packagers should switch this to TRUE
# It will disable update alerts, bug reports, statistics
# It will set the good locale directory, and it will use the good msttcorefonts
os.environ["DEBIAN_PACKAGE"] = "FALSE"  

which probably should have been set to true in a debian package?

Anyway, I tried but it did not correct the wrong path.

Update by kaimon on 2017-09-12 17:55:29

So POL calls this script: https://www.playonlinux.com/en/app-1081-POL_Install_corefonts.html and the variable $POL_USER_ROOT used there has a slash at the end on my system which for some reason isn't expected by the script.

The issue has been reported elsewhere, it does not seem to be debian specific.

https://forums.fedoraforum.org/showthread.php?t=313967