2010/8/5 cschwan <[email protected]>: Hi,
> There are six python files which would need a patch and more than five > (we need only small numbers of scripts from sage_scripts). You may > have look and the patches here: I agree that a s|SAGE_ROOT/foo|SAGE_FOO| is required, that is, not only for SAGE_LOCAL :-) The solution I used in the Mandriva package was to make symlinks, example on a i686 computer with sage 4.4: $ ls -l /usr/share/sage/local total 4 drwxr-xr-x 2 root root 4096 2010-05-08 03:00 bin/ lrwxrwxrwx 1 root root 23 2010-05-08 03:00 include -> ../../../../usr/include/ lrwxrwxrwx 1 root root 19 2010-05-08 03:00 lib -> ../../../../usr/lib/ lrwxrwxrwx 1 root root 21 2010-05-08 03:00 share -> ../../../../usr/share/ also, in x86_64, the lib symlink is actually pointing to /usr/lib64 I agree this is not optimal, but was a way to keep patches more manageable by needing minimal path related patches. The other symlinks are: $ ls -l /usr/share/sage/devel/sage lrwxrwxrwx 1 root root 43 2010-05-08 03:00 /usr/share/sage/devel/sage -> ../../../../usr/lib/python2.6/site-packages/ $ ls -l /usr/share/sage/doc lrwxrwxrwx 1 root root 33 2010-05-08 03:00 /usr/share/sage/doc -> ../../../usr/share/sage/devel/doc/ Also, I prefer to avoid putting too much stuff in /usr/bin in my "specialized" packages, but set $PATH in the /usr/bin/sage script, as well as some other environment variables. There is only one sage package file in /usr/bin: $ rpm -ql sagemath | grep /usr/bin /usr/bin/sage but still... $ ls /usr/bin | wc -l 3517 > - > http://www.students.uni-mainz.de/cschwan/sage-baselayout-4.5.1-fix-SAGE_LOCAL.patch > - > http://www.students.uni-mainz.de/cschwan/sage-baselayout-4.5.1-fix-SAGE_LOCAL.patch Paulo -- To post to this group, send an email to [email protected] To unsubscribe from this group, send an email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
