Hi

python2.6_2.6.6-6ubuntu7.diff.gz says somewhere in it:

+<H2><A NAME="4.81">4.81. &quot;import crypt&quot; fails</A></H2>
+[Unix]
+<P>
+Starting with Python 1.5, the crypt module is disabled by default.
+In order to enable it, you must go into the Python source tree and
+edit the file Modules/Setup to enable it (remove a '#' sign in
+front of the line starting with '#crypt').  Then rebuild.
+You may also have to add the string '-lcrypt' to that same line.

If I untar /usr/local/src/sage-4.6.2/spkg/standard/python-2.6.4.p9.spkg,
and patch as below, re-tar it, and  sage -f python-2.6.4.p9.spkg, 
the crypt import error is gone, and sage works fine. (I didn't get it
to apply by just dropping Setup.dist and Setup.dist.patch in patches/ ,
so I patched the file manually and rebuilt.)

--- ../src/Modules/Setup.dist   2011-04-18 11:45:30.152401392 +0200
+++ Setup.dist  2011-04-18 11:27:11.540790019 +0200
@@ -221,7 +221,7 @@
#
# First, look at Setup.config; configure may have set this for you.

-#crypt cryptmodule.c -lcrypt   # crypt(3); needs -lcrypt on some systems
+crypt cryptmodule.c -lcrypt    # crypt(3); needs -lcrypt on some systems


# Some more UNIX dependent modules -- off by default, since these


Is this a patch that can go into sage, or will it break other distributions?

Regards,
Jan


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

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to