Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 298165 - media-fonts/mathematica-fonts - fonts incompatible with Wolfram Mathematica 7.0
Summary: media-fonts/mathematica-fonts - fonts incompatible with Wolfram Mathematica 7.0
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Fonts Team
URL:
Whiteboard:
Keywords:
Depends on: 561692
Blocks:
  Show dependency tree
 
Reported: 2009-12-24 01:59 UTC by Hamlet
Modified: 2015-09-28 11:07 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hamlet 2009-12-24 01:59:17 UTC
The fonts packaged with media-fonts/mathematica-fonts-7.0 seem to be incompatible with Wolfram Mathematica 7.0 itself.
In fact, the problem could be just with names: Mathematica asks for fonts with factory "-wri-", the package provides them with factory "-misc-".


Reproducible: Always

Steps to Reproduce:
1. merge media-fonts/mathematica-fonts on a computer without Wolfram Mathematica
2. log to a remote server with Wolfram Mathematica on it
3. try to run `Mathematica`

Actual Results:  
xset:  bad font path element (#23), possible causes are:
    Directory does not exist or has wrong permissions   
    Directory missing fonts.dir                         
    Incorrect font server address or syntax 

Expected Results:  
Program should start!

This becomes relevant when a Gentoo client tries to run a remote istance of Mathematica: the Gentoo box is expected to provide the fonts.
It would be nice if the package media-fonts/mathematica-fonts-7.0 could supply the correct fonts.

I propose to add a use flag to the package which installs the required aliases so that the existing fonts are seen also as "-wri-", beside "-misc-".
The code I used to implement that on command line is this:

grep -- -misc-mathematica /usr/share/fonts/mathematica-fonts/fonts.dir | sed -e 's/^.* -misc-mathematica\(.*\)$/"-wri-mathematica\1" "-misc-mathematica\1"/' >> /usr/share/fonts/mathematica-fonts/fonts.alias

(in English: for each font '-misc-mathematica...' in the package, append an alias to it named "-wri-mathematica..."
In the ebuild, of course, the paths should be prepended by the proper variable ("$D"?).
[is there an English term for "prepend"? not native speaking, sorry]

I must confess I have not yet my license, so I am not sure this works; it surely makes the `Mathematica` launcher script happy.
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2015-09-28 11:07:48 UTC
commit 80c1ba9b982daf49da3cacf93763c6e4d23f030b
Author: Justin Lecher <jlec@gentoo.org>
Date:   Mon Sep 28 13:06:53 2015 +0200
    
    media-fonts/mathematica-fonts: Clean old
    
    obsoletes:
    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=265444
    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=298165
    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=561158
    
    Package-Manager: portage-2.2.22
    Signed-off-by: Justin Lecher <jlec@gentoo.org>
    
    https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80c1ba9b982daf49da3cacf93763c6e4d23f030b