Big problem with ppa (6.1).

28 views
Skip to first unread message

Thierry Dumont

unread,
Feb 24, 2014, 10:26:52 AM2/24/14
to sage-s...@googlegroups.com, sys...@math.univ-lyon1.fr
Dear all,

I have juste installed 6.1 with the Ubuntu ppa on my lab's machines...:

apt-get nstall sagemath-upstream-binary sagemath-optional

(we are in LTS, Ubuntu 12.04);

The directories:

sloane/
jones/

are installed in / !!! (yes: i say /)

idem if I do:

sage -i sage-mode

a directory emacs/ is created in / with sage-mode and related files in it.

This is a least not suitable ....

Yours
t.



tdumont.vcf

Jan Groenewald

unread,
Feb 24, 2014, 10:33:01 AM2/24/14
to sage-s...@googlegroups.com
Hi Thierry,

Can you give the exact version please?

This seems to be sagemath-optional, which simply calls sage -i database-stuff, which might mean I could just set a path before sage -i, or there is an upstream problem with those optioneal packages.

The second one I think is also related to that.

The PPA might not be compatible with optional packages, yet this might be fixed easily.

Regards,
Jan




t.



--
You received this message because you are subscribed to the Google Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
To post to this group, send email to sage-s...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.



--
  .~.
  /V\     Jan Groenewald
 /( )\    www.aims.ac.za
 ^^-^^

Jan Groenewald

unread,
Feb 24, 2014, 10:41:20 AM2/24/14
to sage-s...@googlegroups.com, sage-...@googlegroups.com
Hi

Perhaps someone on sage devel can help. Specifically this is called:

0 jan@snapperkob:~/src/sagemath-optional/sagemath-optional-6.1/debian$grep -A1 SPKG postinst
        for SPKG in /usr/lib/sagemath/upstream/*; do
                HOME=/root/ DOT_SAGE=/root/.sage /usr/bin/sage -i ${SPKG#/usr/lib/sagemath/upstream/}|cut -d\- -f1,1;
        done;

Can another variable besides HOME and DOT_SAGE be set for where the optional packages put things?

Of course postinst runs as root, and usually sage -i should NOT be run as root. sagemath-optional was really for personal use, and I might discontinue it if this is not cleanly solvable. Perhaps that can be changed to su - but it would probably require adding a sagemath user which is a whole bunch of extra work. Installing sagemath-upstream-binary does not compile anything as root, it copies the compiled binaries into standard places, with files owned by root., which is normal for many binaries.

It will not solve the problem that once the sagemath-upstream-binary is installed, and a user runs sage -i as root, then the same problem might follow, unless sage -i was patched to need a --force and to have a warning when run as root.

Regards,
Jan

Jeroen Demeyer

unread,
Feb 24, 2014, 10:50:39 AM2/24/14
to sage-s...@googlegroups.com
I think that the problem is with the specific packages and that this has
nothing to do with the PPA procedure.

Jeroen.

Jeroen Demeyer

unread,
Feb 24, 2014, 10:54:48 AM2/24/14
to sage-s...@googlegroups.com
On 2014-02-24 16:26, Thierry Dumont wrote:
> sage -i sage-mode
So you don't get the message

Attempting to download package sage-mode
>>> Checking online list of optional packages.
[.]
>>> Checking online list of experimental packages.
[.]
>>> Checking online list of standard packages.
[.]
>>> Checking online list of huge packages.
[.]
>>> Checking online list of archive packages.
[.]
>>> Found sage-mode-0.6

WARNING: you are about to download and install an archived package.
This means the package is likely to be outdated and it probably won't
work at all for you! Use at your own risk!
Are you sure you want to continue [Y/n]?

Jan Groenewald

unread,
Feb 24, 2014, 11:31:16 AM2/24/14
to sage-s...@googlegroups.com, sage-...@googlegroups.com
Hi

Where are these directories in / really supposed to be installed?

$SAGEROOT/local/share?

Things like conway and cremona are there:
0 root@muizenberg:/usr/lib/sagemath/local/share#ls
aclocal       conway_polynomials  doc        gap  git-core  graphs  info  locale  maxima  perl      reflexive_polytopes  singular  terminfo
cblas_config  cremona             ellcurves  gc   gitweb    iml     jmol  man     pari    polybori  sage                 tabset    texmf


Regards,
Jan


--
You received this message because you are subscribed to the Google Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscribe@googlegroups.com.

To post to this group, send email to sage-s...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages