Ticket #53892: fix-53892.diff

File fix-53892.diff, 2.4 KB (added by easye, 8 years ago)

untested fix

  • lang/sbcl/Portfile

    # HG changeset patch
    # Parent  c72fa019b47fa80c4d89cbee49f40b4a2682d114
    Address https://trac.macports.org/ticket/53892
    
    diff -r c72fa019b47f -r 632ab69bb036 lang/sbcl/Portfile
    a b  
    66
    77# Please revbump ../../math/maxima when this port changes
    88version         1.3.16
    9 revision        0
     9revision        1
    1010
    1111categories      lang
    1212license         BSD
     
    2929use_bzip2       yes
    3030
    3131patchfiles \
    32     patch-contrib-sb-posix-posix-tests.lisp.diff
     32    patch-contrib-sb-posix-posix-tests.lisp.diff \
     33    patch-fix-float-no-AVX.diff
     34   
    3335# Removed with sbcl-1.3.10 to work on macOS 10.12 Sierra; may be of use for older platforms
    3436#    patch-use-right-gcc.diff
    3537
  • new file lang/sbcl/files/patch-fix-float-no-AVX.diff

    diff -r c72fa019b47f -r 632ab69bb036 lang/sbcl/files/patch-fix-float-no-AVX.diff
    - +  
     1# HG changeset patch
     2# User Stas Boukarev <stassats@gmail.com>
     3# Date 1491011923 -10800
     4#      Sat Apr 01 04:58:43 2017 +0300
     5# Node ID 1065bfec0105c17816ebc2715583e7707892da61
     6# Parent  7f3149adfcff6e64ceba1f43a056ab65431fbcbd
     7Fix float state saving on x86-64 Darwin without AVX.
     8
     9Fixes lp#1678347.
     10
     11diff -r 7f3149adfcff -r 1065bfec0105 src/runtime/x86-64-darwin-os.c
     12--- src/runtime/x86-64-darwin-os.c      Sat Apr 01 04:25:21 2017 +0300
     13+++ src/runtime/x86-64-darwin-os.c      Sat Apr 01 04:58:43 2017 +0300
     14@@ -300,7 +300,7 @@
     15     x86_avx_state64_t float_state;
     16     mach_msg_type_number_t float_state_count = avx_supported? x86_AVX_STATE64_COUNT : x86_FLOAT_STATE64_COUNT;
     17     x86_avx_state64_t *target_float_state;
     18-    int float_state_flavor = avx_supported? x86_AVX_STATE64 : x86_FLOAT_STATE64_COUNT;
     19+    int float_state_flavor = avx_supported? x86_AVX_STATE64 : x86_FLOAT_STATE64;
     20 #else
     21     x86_float_state64_t float_state;
     22     mach_msg_type_number_t float_state_count = x86_FLOAT_STATE64_COUNT;
  • math/maxima/Portfile

    diff -r c72fa019b47f -r 632ab69bb036 math/maxima/Portfile
    a b  
    44
    55name            maxima
    66version         5.39.0
    7 revision        1
     7revision        2
    88categories      math
    99maintainers     mareimbrium.org:kuba openmaintainer
    1010platforms       darwin