#12399: Get pycrypto to build on FreeBSD
-------------------------------------+-------------------------------------
       Reporter:  kcrisman           |        Owner:  pjeremy
           Type:  defect             |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.1
      Component:  porting: BSD       |   Resolution:
       Keywords:  spkg pycrypto      |    Merged in:
        Authors:  Stephen            |    Reviewers:  Jean-Pierre Flori
  Montgomery-Smith, Jean-Pierre      |  Work issues:
  Flori                              |       Commit:
Report Upstream:  Reported           |  036984d734e7a22f65ab657f24ea68e0149ac850
  upstream. No feedback yet.         |     Stopgaps:
         Branch:                     |
  u/jpflori/ticket/12399             |
   Dependencies:                     |
-------------------------------------+-------------------------------------
Changes (by jpflori):

 * commit:   => 036984d734e7a22f65ab657f24ea68e0149ac850
 * branch:   => u/jpflori/ticket/12399


Old description:

> Stephen Montgomery-Smith reports:
> {{{
> OK, I started working on building sage.  So far I can get all the spkg's
> to build except:
>
> gap-4.4.12.p6
> pycrypto-2.1.0
> singular-3-1-3-3.p3
> maxima-5.23.2.p3
> sage-4.8
>
> The build problem with pycrypto-2.1.0 and singular-3-1-3-3.p3 are easy to
> fix.
> }}}
> The patch is apparently
> {{{
>
> --- pycrypto-2.1.0/src/src/libtom/tomcrypt_pk.h-orig    2012-01-21
> 19:43:56.000000000 +0000
> +++ pycrypto-2.1.0/src/src/libtom/tomcrypt_pk.h 2012-01-21
> 19:45:01.000000000 +0000
> @@ -496,7 +496,7 @@
>  int der_printable_value_decode(int v);
>
>  /* UTF-8 */
> -#if (defined(SIZE_MAX) || __STDC_VERSION__ >= 199901L ||
> defined(WCHAR_MAX) || defined(_WCHAR_T) || defined(_WCHAR_T_DEFINED)) &&
> !defined(LTC_NO_WCHAR)
> +#if (defined(SIZE_MAX) || __STDC_VERSION__ >= 199901L ||
> defined(WCHAR_MAX) || defined(_WCHAR_T) || defined(_WCHAR_T_DEFINED) ||
> defined(_GCC_WCHAR_T)) && !defined(LTC_NO_WCHAR)
>  #include <wchar.h>
>  #else
>  typedef ulong32 wchar_t;
> }}}
>
> Use spkg at:
> *
> http://boxen.math.washingotn.edu/home/jpflori/spkg/pycrypto-2.1.0.p0.spkg

New description:

 Stephen Montgomery-Smith reports:
 {{{
 OK, I started working on building sage.  So far I can get all the spkg's
 to build except:

 gap-4.4.12.p6
 pycrypto-2.1.0
 singular-3-1-3-3.p3
 maxima-5.23.2.p3
 sage-4.8

 The build problem with pycrypto-2.1.0 and singular-3-1-3-3.p3 are easy to
 fix.
 }}}
 The patch is apparently
 {{{

 --- pycrypto-2.1.0/src/src/libtom/tomcrypt_pk.h-orig    2012-01-21
 19:43:56.000000000 +0000
 +++ pycrypto-2.1.0/src/src/libtom/tomcrypt_pk.h 2012-01-21
 19:45:01.000000000 +0000
 @@ -496,7 +496,7 @@
  int der_printable_value_decode(int v);

  /* UTF-8 */
 -#if (defined(SIZE_MAX) || __STDC_VERSION__ >= 199901L ||
 defined(WCHAR_MAX) || defined(_WCHAR_T) || defined(_WCHAR_T_DEFINED)) &&
 !defined(LTC_NO_WCHAR)
 +#if (defined(SIZE_MAX) || __STDC_VERSION__ >= 199901L ||
 defined(WCHAR_MAX) || defined(_WCHAR_T) || defined(_WCHAR_T_DEFINED) ||
 defined(_GCC_WCHAR_T)) && !defined(LTC_NO_WCHAR)
  #include <wchar.h>
  #else
  typedef ulong32 wchar_t;
 }}}

 Use git branch.

--

--
Ticket URL: <http://trac.sagemath.org/ticket/12399#comment:10>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

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

Reply via email to