Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#22560 - [sage-mathematics] SageTex installed by default

Attached to Project: Community Packages
Opened by Fabio Zanini (iosonofabio) - Sunday, 23 January 2011, 02:09 GMT
Last edited by Thomas Dziedzic (tomd123) - Thursday, 03 February 2011, 00:18 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Thomas Dziedzic (tomd123)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Sage-mathematics offers the useful latex package Sage-TeX, which can be used to combine LaTeX (in various flavours) with Sage. The files are saved in the /opt/sage folder, but this is not parsed by Texlive, which makes the call \usepackage{sagetex} fail. It would be useful to copy them into the /use/share/texmf folder, so that the SageTeX package works out of the box.

Additional info:
* package: sage-mathematics

Steps to implement the new feature:
In the .install file of sage-mathematics, add the following:
* check whether the system includes Texlive (a pacman -Qs texlive sould suffice)
* copy /opt/sage/local/share/texmf/tex/* into /usr/share/texmf/tex/
* run texhash on the folder /usr/share/texmf/tex/

See the wiki entry for sage for a detailed explanation.
This task depends upon

Closed by  Thomas Dziedzic (tomd123)
Thursday, 03 February 2011, 00:18 GMT
Reason for closing:  Fixed
Additional comments about closing:  pkgrel 3
Comment by Fabio Zanini (iosonofabio) - Sunday, 23 January 2011, 02:11 GMT
PS: the same files should be deleted in post_remove.
Comment by Thomas Dziedzic (tomd123) - Monday, 24 January 2011, 21:33 GMT
I'm wondering if maybe we should split this package into sagetex into the aur
Comment by Fabio Zanini (iosonofabio) - Tuesday, 25 January 2011, 07:29 GMT
It is a viable alternative, but the SageTeX files are already downloaded within the Sage package.

In fact, Sage tends to ship as a self-consistent blob, rather than to require its sub-packages as deps (matplotlib, ipython, sagetex, etc.). This strategy goes against our habit to split subpackages cleanly. However, since that's the way it is constructed, I would stick with it now (i.e. no AUR package).
Comment by Thomas Dziedzic (tomd123) - Wednesday, 26 January 2011, 16:44 GMT
I'm wondering if I should maybe copy the sagetex files to /usr/share/texmf/tex/ and include those in the package. I think it might be best to let pacman manage all files, since files might get added. Or also, I could just run texhash on the path /opt/sage/local/share/texmf/tex/ since sage really is such an atypical package.
Comment by Fabio Zanini (iosonofabio) - Friday, 28 January 2011, 10:03 GMT
texhash --help mentions the env var $TEXMFDBS. Maybe we could just set this variable to /usr/share/texmf/tex in the texlive package, then update it to

TEXMFDBS='/usr/share/texmf/tex/:/opt/sage/local/share/texmf/tex/'

in the sage-mathematics package, then run texhash without args. When the sage-mathematics package is uninstalled, we could just strip the last part of $TEXMFDBS, and run texhash again.
Comment by Thomas Dziedzic (tomd123) - Tuesday, 01 February 2011, 06:10 GMT
I have implemented this by moving the sagetex files to /usr/share/texmf

I would just like to ask, is there a reason why you told me to copy them rather then move? if none I will keep it the way it is.

Also, I didn't think this change was worth a rebuild, so you will have to wait until the next release, or until I decide to rebuild it.

Thanks!
Comment by Fabio Zanini (iosonofabio) - Tuesday, 01 February 2011, 11:21 GMT
I guess you can move the files instead of copying. Afterwards, you should remember to run texhash again.

Also, after removing the package, those files should be removed again, and texhash should be run as well.

edit: I thank YOU!
Comment by Thomas Dziedzic (tomd123) - Tuesday, 01 February 2011, 16:14 GMT
ok, so I rebuilt the packages overnight ;)

Can you test out one of the sage 4.6.1-3 packages in http://pkgbuild.com/~td123/
one is for i686 and one is for x86_64, and tell me if they work for you?
Comment by Fabio Zanini (iosonofabio) - Tuesday, 01 February 2011, 22:49 GMT
Seems to work. In the second last line of the post_install message, the word "Also" should be written lower-case, but this small point is not worth a rebuild :-)
Thanks for help, I guess you can close the feature request now.
Comment by Thomas Dziedzic (tomd123) - Wednesday, 02 February 2011, 03:29 GMT
Going to fix this and push the updated package. Thanks for working with me!

Loading...