Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 81671 - mediawiki w/tetex depends on ghostscript
Summary: mediawiki w/tetex depends on ghostscript
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Christian Parpart (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-11 14:48 UTC by Scott Dial
Modified: 2005-02-17 17:21 UTC (History)
0 users

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 Scott Dial 2005-02-11 14:48:55 UTC
When the optional USE for tetex is enabled, then mediawiki should depend on ghostscript. The texvc binary expects latex, dvips, convert, and gs to be available.

You can get this from the horse's mouth here:
http://sourceforge.net/project/shownotes.php?group_id=34373&release_id=302064

So, the usings "tetex" as the switch for enabling math rendering is not correct. There really needs to be another switch for this as having math rendering enabled means you depend on app-text/tetex, app-text/ghostscript and media-gfx/imagemagick. In any case, the resultion needs to make sure those three packages are installed otherwise (like it is now) math rendering will not work.

Reproducible: Always
Steps to Reproduce:
1. emerge unmerge ghostscript
2. USE="tetex" emerge mediawiki
3. webapp-config a wiki
4. Go on your wiki and try to do something like "<math>x</math>" in a page
Actual Results:  
You will get the following error:
"Failed to parse (PNG conversion failed; check for correct installation of
latex, dvips, gs, and convert): x"

Expected Results:  
Shown a rendering of "x"
Comment 1 Christian Parpart (RETIRED) gentoo-dev 2005-02-12 08:10:46 UTC
So how would you like to see it? Having just a local "math" useflag and no tetex/imagemagick useflags? if not, how then?
Comment 2 Scott Dial 2005-02-12 21:04:09 UTC
A local "math" use flag would seem like the best answer.

One problem I have noticed from having does this install on a machine that was a tetex "virgin" was that dvips will be misconfigured by default. The texvc program expects dvips to write a ps file out, but the default install config for tetex is not this, but rather to try to send it to a print via lpr. This really isn't mediawiki's problem, but mediawiki itself will not install out of the box on a "virgin" computer with math then.

Perhaps the mediawiki package should inform the user that they need to go into "texconfig" and change the print cmd. This can be done from the command-line with the following: texconfig dvips printcmd -

Thanks for the response.
Comment 3 Christian Parpart (RETIRED) gentoo-dev 2005-02-16 18:05:08 UTC
I changed USE-flag tetex to math and added ghostscript to its DEPEND.
This is done in the new version bumped ebuild 1.4.0_beta6.

Though, please tell me if this fullfills your wishes (math USE-flag).

If so, I'll close the bug then as FIXED (for mediawiki 1.4 line and above)
Comment 4 Scott Dial 2005-02-16 20:01:41 UTC
the local-USE math will then depend on imagemagick as well:

RDEPEND="virtual/php
		 >=dev-db/mysql-4
		 math? ( app-text/tetex
		 		 app-text/ghostscript
		 		 media-gfx/imagemagick )
		 imagemagick? ( media-gfx/imagemagick )"

Also, postinstall-en.txt needs to be updated at the bottom according. It would be good to include a statement in the "If you have enabled math support" a line explaining that you need to execute "$ texconfig dvips printcmd -" if you have not configure tetex before.

After those two things, I would call this bug closed. Thanks.
Comment 5 Christian Parpart (RETIRED) gentoo-dev 2005-02-16 20:29:18 UTC
done. please verify ;)
Comment 6 Scott Dial 2005-02-16 20:48:25 UTC
CVS shows that you commited 2 hours ago which would correspond with you comment, but the version is still the same and I don't see the changes. Perhaps something went wrong with the CVS commit?

I'm gonna go ahead and reopen this bug in the meantime.
Comment 7 Christian Parpart (RETIRED) gentoo-dev 2005-02-16 20:57:04 UTC
definitely not, I suppose the rsync servers didn't catch up that fast as I posted here right after having committed to cvs.
Comment 8 Scott Dial 2005-02-16 21:04:56 UTC
Hmm, I am looking at the web CVS portal and I see that the files were touched 2 hours ago, but I don't see the updates to RDEPEND or to postinstall-en.txt
Comment 9 Christian Parpart (RETIRED) gentoo-dev 2005-02-17 17:13:48 UTC
verified. it's there.
Comment 10 Scott Dial 2005-02-17 17:21:49 UTC
Weird that it didn't come up for me before, sorry about that. Verified.