https://bugs.kde.org/show_bug.cgi?id=348128

--- Comment #19 from mat...@dnet.it ---
Jack,

If you want to share your .deb, the best way would be to set up your own ppa...
but I cannot help you with this, since I never tried.

Thank you for spotting my mistype... as I said, I could not test on a real
machine when I was writing. So good to have a fix for later reference. I am
repeating the updated instructions below, including the updated patch for ease
of reference:

Instructions to patch cantor to fix this bug, starting from the source of the
official cantor package (run these commands in a terminal): 
#make a temporary directory 
mkdir /tmp/cantor 
cd /tmp/cantor 

#download the source of your currently installed cantor package 
sudo apt-get install debian-keyring 
sudo apt-get source cantor 

#the above will create a subdirectory called "cantor-version-number-something" 
#in there you will find the directory "src" (i cant test right now, so you
might have to look for it) #find and edit the file
"src/backends/sage/sagesession.cpp" according to the submitted patch #which you
can find here:
https://quickgit.kde.org/?p=cantor.git&a=commitdiff&h=6586a64bc5ae9d385be68b8500aa6b273aab0c79&hp=a94da3288f3cda78f9574aa2a7d753f4f70b5db0
 
#this patch is very simple: you only have to add "(?:Math)?" right after "Sage"
on the right line #the "right line" is 197 for the latest cantor, but it might
be some lines up or down in your version 

#now rebuild the package 
sudo apt-get install dpkg-dev 
sudo apt-get build-dep cantor 
cd "cantor-version-something" 
dpkg-buildpackage -b -us -uc 
cd .. 

#you should now have some debian packages 
#install the sage backend with 
sudo dpkg -i cantor-backend-sage*.deb 

Note that these instructions are only useful until the fix for this package
will show up in the Ubuntu repositories (or if you are running an old version
of cantor which will not be updated).

Regards
Mat

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to