Ticket #9975: gnutls-2.2.1.p5-2.12.3.diff

File gnutls-2.2.1.p5-2.12.3.diff, 2.4 KB (added by mariah, 8 years ago)

Diff for the gnutls spkg, for reviewing only.

  • SPKG.txt

    # HG changeset patch
    # User Mariah Lenox <mariah.lenox@gmail.com>
    # Date 1305138858 14400
    # Node ID 6f808d539902172c3e13b9e54ba24f1e993189f5
    # Parent  aff9a92bba9826e4ba3fe9227a989d0cc0cf74d4
    trac #9975 - Update GnuTLS  and clean up the package
    
    diff -r aff9a92bba98 -r 6f808d539902 SPKG.txt
    a b  
    1919
    2020== Dependencies ==
    2121
    22  * OpenCDK?
    23  * libgpg_error?
    24  * FIXME
     22 * OpenCDK
     23 * libgpg_error
     24 * zlib
     25 * libgcrypt
    2526
    2627== Changelog ==
    2728
     29=== gnutls-2.12.3 (Mariah Lenox, 11 May 2011) ===
     30
     31  * update to 2.12.3 release
     32  * fix many of the issues mentioned in trac #9975
     33
    2834=== gnutls-2.2.1.p5 (Jaap Spies, Jan 2, 2010) ===
    2935  * make SAGE64 work on Solaris
    3036
  • new file spkg-check

    diff -r aff9a92bba98 -r 6f808d539902 spkg-check
    - +  
     1#!/bin/sh
     2
     3if [ -z $SAGE_LOCAL ]; then
     4   echo "SAGE_LOCAL undefined ... exiting";
     5   echo "Maybe run 'sage -sh'?"
     6   exit 1
     7fi
     8
     9cd src
     10
     11if [ "x$SAGE64" = xyes ] ; then
     12   CFLAGS="-O2 -g -m64"
     13   export CFLAGS
     14   CXXFLAGS="-O2 -g -m64"
     15   export CXXFLAGS
     16   LDFLAGS="$LDFLAGS -m64"
     17   export LDFLAGS
     18   CPPFLAGS="$CPPFLAGS -m64"
     19   export CPPFLAGS
     20fi
     21
     22make check
     23
     24if [ $? -ne 0 ]; then
     25   echo "An error occurred while testing GnuTLS"
     26   exit 1
     27fi
     28
  • spkg-install

    diff -r aff9a92bba98 -r 6f808d539902 spkg-install
    a b  
    2727   CXXFLAGS="-O2 -g -m64 "; export CXXFLAGS
    2828fi
    2929
     30# setting environment variable RM interfers with libtool
     31# which expects RM="rm -f"
     32RM_SAVE=$RM
     33echo $RM_SAVE
     34unset RM
    3035
    3136# --disable-cxx is needed to compile on OSX.
    3237# See http://www.nabble.com/%22gnutls%22-under-Darwin-%28was%3A-CVS-commit%3A-pkgsrc-security-gnutls%29-tf3062958.html#a8573149
    3338
    34 ./configure --prefix="$SAGE_LOCAL" --enable-shared --disable-static  --disable-cxx --enable-guile=no
     39./configure --prefix="$SAGE_LOCAL" --enable-shared --disable-static  --disable-cxx --enable-guile=no --with-libgcrypt
    3540
    3641if [ $? -ne 0 ]; then
    3742   echo "failed to configure GNUTLS"
    3843   exit 1
    3944fi
    4045
    41 make
     46$MAKE
    4247
    4348if [ $? -ne 0 ]; then
    4449   echo "failed to build GNUTLS"
    4550   exit 1
    4651fi
    4752
    48 make install
     53$MAKE install
    4954
    5055if [ $? -ne 0 ]; then
    5156   echo "failed to install GNUTLS"
    5257   exit 1
    5358fi
     59
     60# restore RM environment variable
     61RM=$RM_SAVE
     62export RM