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"
So how would you like to see it? Having just a local "math" useflag and no tetex/imagemagick useflags? if not, how then?
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.
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)
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.
done. please verify ;)
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.
definitely not, I suppose the rsync servers didn't catch up that fast as I posted here right after having committed to cvs.
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
verified. it's there.
Weird that it didn't come up for me before, sorry about that. Verified.