Bug 30991

Summary: fontforge has wrong in-compiled path for /share (GUI)
Product: Mageia Reporter: Elmar Stellnberger <estellnb>
Component: RPM PackagesAssignee: Rémi Verschelde <rverschelde>
Status: NEW --- QA Contact:
Severity: minor    
Priority: Normal CC: marja11
Version: 8   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: fontforge-20201107-1.mga8 CVE:
Status comment:

Description Elmar Stellnberger 2022-10-19 21:05:10 CEST
Fontforge is looking for some files in /share instead of /usr/share. Fontforge´s functionality seems only affected to a minor extent - just the GUI appears to look old fashioned as long as Fontforge can not see these files. No unfound files have been reported for the font forge script I have run on the command line.

> fontforge 
Copyright (c) 2000-2020. See AUTHORS for Contributors.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE.
 Version: 20201107
 Based on sources from 2020-12-30 13:31 UTC-ML-D-GDK3.
Failed to open hotkey definition file: /share/fontforge/hotkeys/default
Failed to open resource file: /share/fontforge/pixmaps/resources

> ls -l /usr/share/fontforge/hotkeys/default /usr/share/fontforge/pixmaps/resources
-rw-r--r-- 1 root root 28406 Nov  7  2020 /usr/share/fontforge/hotkeys/default
-rw-r--r-- 1 root root 12784 Dez 30  2020 /usr/share/fontforge/pixmaps/resources
> sudo ln -fs /usr/share/ /
> fontforge
Copyright (c) 2000-2020. See AUTHORS for Contributors.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE.
 Version: 20201107
 Based on sources from 2020-12-30 13:31 UTC-ML-D-GDK3.
> rm -f /share
> fontforge -lang=ff crtfl/gen-unifont-ix2w.ff
Copyright (c) 2000-2020. See AUTHORS for Contributors.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE.
 Version: 20201107
 Based on sources from 2020-12-30 13:31 UTC-ML-D-GDK3.
Failed to open hotkey definition file: /share/fontforge/hotkeys/default
This font contains both a 'kern' table and a 'GPOS' table.
  The 'kern' table will only be read if there is no 'kern' feature in 'GPOS'.
The glyph named Omega is mapped to U+03A9.
  But its name indicates it should be mapped to U+2126.
>
Comment 1 Marja Van Waes 2022-10-20 15:20:51 CEST
(In reply to Elmar Stellnberger from comment #0)
> Fontforge is looking for some files in /share instead of /usr/share.
> Fontforge´s functionality seems only affected to a minor extent - just the
> GUI appears to look old fashioned as long as Fontforge can not see these
> files. No unfound files have been reported for the font forge script I have
> run on the command line.
> 
> > fontforge 
> Copyright (c) 2000-2020. See AUTHORS for Contributors.
>  License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html>
>  with many parts BSD <http://fontforge.org/license.html>. Please read
> LICENSE.
>  Version: 20201107
>  Based on sources from 2020-12-30 13:31 UTC-ML-D-GDK3.
> Failed to open hotkey definition file: /share/fontforge/hotkeys/default
> Failed to open resource file: /share/fontforge/pixmaps/resources
> 

Assigning to our fontforge maintainer. 
(Btw, this problem doesn't occur in cauldron, so Mageia 9 should be fine)

CC: (none) => marja11
Assignee: bugsquad => rverschelde