New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #17099: R12B-5.diff

File R12B-5.diff, 9.8 KB (added by pguyot@…, 4 years ago)
  • files/patch-lib_ssl_c_src_Makefile.in

     
    1 --- lib/ssl/c_src/Makefile.in.orig      2008-04-13 20:41:08.000000000 -0700 
    2 +++ lib/ssl/c_src/Makefile.in   2008-04-13 20:38:18.000000000 -0700 
    3 @@ -38,7 +38,7 @@ 
     1--- lib/ssl/c_src/Makefile.in.orig      2008-11-04 12:17:23.000000000 +0100 
     2+++ lib/ssl/c_src/Makefile.in   2008-11-06 07:46:48.000000000 +0100 
     3@@ -40,7 +40,7 @@ 
    44 CC = @CC@ 
    55 LD = @LD@ 
    66 SHELL = /bin/sh 
     
    99 PLAIN_CFLAGS = @CFLAGS@ 
    1010  
    1111 # ---------------------------------------------------- 
    12 @@ -124,7 +124,7 @@ 
     12@@ -126,7 +126,7 @@ 
    1313 CC_R_OPT = $(CC_R_FLAG)$(SSL_LIBDIR) 
    1414 endif 
    1515  
  • files/patch-decode_fun.c.diff

     
     1--- lib/erl_interface/src/decode/decode_fun.c.orig      2008-11-06 06:53:46.000000000 +0100 
     2+++ lib/erl_interface/src/decode/decode_fun.c   2008-11-06 06:54:09.000000000 +0100 
     3@@ -103,7 +103,7 @@ 
     4                memcpy(p->free_vars, s, n); 
     5            } 
     6        } 
     7-       *index += s-s0; 
     8+       *index += n + s-s0; 
     9         return 0; 
     10        break; 
     11     default: 
  • files/patch-erts_emulator_sys_unix_ddll.c

     
    1 --- erts/emulator/sys/unix/erl_unix_sys_ddll.c  2007-11-26 20:01:23.000000000 +0100 
    2 +++ erts/emulator/sys/unix/erl_unix_sys_ddll.c  2008-09-07 10:13:54.000000000 +0200 
    3 @@ -127,6 +127,7 @@ 
    4             } else { 
    5                 ret = ERL_DE_ERROR_UNSPECIFIED; 
    6             } 
    7 +               NSDestroyObjectFileImage(ofile); 
    8             break; 
    9         /* XXX:PaN should anything return something else ? */ 
    10         /*case NSObjectFileImageInappropriateFile: 
    11 @@ -240,7 +241,15 @@ 
    12  int erts_sys_ddll_close(void *handle) 
    13  { 
    14  #if defined(HAVE_MACH_O_DYLD_H) 
    15 -    return ERL_DE_NO_ERROR; /* XXX:PaN No close functionality in MacOSX??? */ 
    16 +    { 
    17 +       int ret; 
    18 +       if (NSUnLinkModule((NSModule) handle, NSUNLINKMODULE_OPTION_NONE)) { 
    19 +           ret = ERL_DE_NO_ERROR; 
    20 +       } else { 
    21 +           ret = ERL_DE_ERROR_UNSPECIFIED; 
    22 +       } 
    23 +       return ret; 
    24 +    } 
    25  #elif defined(HAVE_DLOPEN) 
    26      { 
    27         int ret; 
  • files/patch-lib_ssl_c_src_esock_openssl.c

     
    1 --- lib/ssl/c_src/esock_openssl.c.orig  2008-03-12 22:15:41.000000000 -0700 
    2 +++ lib/ssl/c_src/esock_openssl.c       2008-03-12 22:16:01.000000000 -0700 
    3 @@ -905,8 +905,8 @@ 
     1--- lib/ssl/c_src/esock_openssl.c.orig  2008-11-04 12:17:23.000000000 +0100 
     2+++ lib/ssl/c_src/esock_openssl.c       2008-11-06 07:46:48.000000000 +0100 
     3@@ -907,8 +907,8 @@ 
    44     } 
    55  
    66     /* info callback */ 
  • files/patch-eunit_xml.diff

     
    1 Index: src/eunit_xml.erl 
     1Index: lib/eunit/src/eunit_xml.erl 
    22=================================================================== 
    3 --- src/eunit_xml.erl   (revision 0) 
    4 +++ src/eunit_xml.erl   (revision 0) 
     3--- lib/eunit/src/eunit_xml.erl (revision 0) 
     4+++ lib/eunit/src/eunit_xml.erl (revision 0) 
    55@@ -0,0 +1,496 @@ 
    66+%% This library is free software; you can redistribute it and/or modify 
    77+%% it under the terms of the GNU Lesser General Public License as 
     
    499499+    ]. 
    500500+ 
    501501+-endif.  % TEST 
    502 Index: src/eunit.erl 
     502Index: lib/eunit/src/eunit.erl 
    503503=================================================================== 
    504 --- src/eunit.erl       (revision 249) 
    505 +++ src/eunit.erl       (working copy) 
    506 @@ -113,7 +113,7 @@ 
    507      try eunit_data:list(T) of 
     504--- lib/eunit/src/eunit.erl.orig        2008-11-04 11:52:12.000000000 +0100 
     505+++ lib/eunit/src/eunit.erl     2008-11-06 07:24:28.000000000 +0100 
     506@@ -148,7 +148,7 @@ 
     507     try eunit_data:list(Tests) of 
    508508        List -> 
    509509            Listeners = [eunit_tty:start(List, Options) 
    510510-                        | listeners(Options)], 
    511511+                        | listeners(List, Options)], 
    512512            Serial = eunit_serial:start(Listeners), 
    513             case eunit_server:start_test(Server, Serial, T, Options) of 
     513            case eunit_server:start_test(Server, Serial, Tests, Options) of 
    514514                {ok, Reference} -> test_run(Reference, Listeners); 
    515 @@ -159,10 +159,12 @@ 
     515@@ -197,10 +197,12 @@ 
    516516     Dummy = spawn(fun devnull/0), 
    517517     eunit_server:start_test(Server, Dummy, T, Options). 
    518518  
     
    526526        LogFile -> 
    527527            [spawn(fun () -> event_logger(LogFile) end)] 
    528528     end. 
    529 Index: src/Makefile 
     529Index: lib/eunit/src/Makefile 
    530530=================================================================== 
    531 --- src/Makefile        (revision 249) 
    532 +++ src/Makefile        (working copy) 
    533 @@ -22,6 +22,7 @@ 
     531--- lib/eunit/src/Makefile.orig 2008-11-04 11:52:12.000000000 +0100 
     532+++ lib/eunit/src/Makefile      2008-11-06 07:23:09.000000000 +0100 
     533@@ -37,7 +37,8 @@ 
     534        eunit_test.erl \ 
    534535        eunit_lib.erl \ 
    535536        eunit_data.erl \ 
    536         eunit_tty.erl \ 
    537 +       eunit_xml.erl \ 
    538         code_monitor.erl \ 
    539         file_monitor.erl \ 
    540         autoload.erl 
     537-       eunit_tty.erl 
     538+       eunit_tty.erl \ 
     539+       eunit_xml.erl 
     540  
     541 OBJECTS=$(SOURCES:%.erl=$(EBIN)/%.$(EMULATOR)) $(APP_TARGET) $(APPUP_TARGET) 
     542  
  • files/patch-decode_big.c.diff

    Property changes on: files/patch-eunit_xml.diff
    ___________________________________________________________________
    Added: svn:mergeinfo
    
     
     1--- lib/erl_interface/src/decode/decode_big.c.orig      2008-11-06 06:57:02.000000000 +0100 
     2+++ lib/erl_interface/src/decode/decode_big.c   2008-11-06 06:58:39.000000000 +0100 
     3@@ -51,7 +51,9 @@ 
     4       u = (unsigned char *) s; 
     5       for (i = 0; i < b->arity; ++i) { 
     6          dt[i] = u[i*2]; 
     7-         dt[i] |= ((unsigned short) u[(i*2)+1]) << 8; 
     8+        if ((i*2 + 1) < digit_bytes) { 
     9+          dt[i] |= ((unsigned short) u[(i*2)+1]) << 8; 
     10+        } 
     11       } 
     12   } else { 
     13       s++; /* skip sign byte */ 
  • Portfile

     
    22 
    33PortSystem 1.0 
    44name            erlang 
    5 version         R12B-4 
    6 revision    1 
     5version         R12B-5 
    76categories      lang erlang 
    87maintainers     bfulgham@macports.org 
    98platforms       darwin 
     
    3231                otp_doc_man_${version}${extract.suffix}         \ 
    3332                otp_doc_html_${version}${extract.suffix} 
    3433 
    35 checksums       otp_src_R12B-4.tar.gz \ 
    36                     md5     ae81edda4a17506af7a9d73abca033b2 \ 
    37                     sha1    4e42454c3f560ce6efd3c917a79a5b288664e329 \ 
    38                     rmd160  3c57ae04388c0493d97c76529c57c50de639bdce \ 
    39                 otp_doc_man_R12B-4.tar.gz \ 
    40                     md5     ef8f96d1721a2345cc87b208cde3de06 \ 
    41                     sha1    b954711b493e384606ce23d32a6d980017637b10 \ 
    42                     rmd160  f14eb1f542ebecceddd6ac70aa4ed325f91b0b24 \ 
    43                 otp_doc_html_R12B-4.tar.gz \ 
    44                     md5     f633cd418d8260af7a11c998aa88072b \ 
    45                     sha1    cbe6bc52a5000b21de5cac5f9b2672b935e94ed7 \ 
    46                     rmd160  bf05981ddf2e97910141739980cee09572b1c34d 
     34checksums       otp_src_R12B-5.tar.gz \ 
     35                    md5     250fc48242a098073474e563c3f23e76 \ 
     36                    sha1    681570df942cd53d2c18404b356dd5dc1ff016ef \ 
     37                    rmd160  7473d6119a55365ebe582c55c8b19c3f2870565a \ 
     38                otp_doc_man_R12B-5.tar.gz \ 
     39                    md5     6231cb172847040395cc34b20781aa3b \ 
     40                    sha1    ae7036bd2afc9d1fca97f0de2eca84f56656def8 \ 
     41                    rmd160  e28d555d0a86fc69e0ee091864828c8eaa58d2be \ 
     42                otp_doc_html_R12B-5.tar.gz \ 
     43                    md5     fb0c5454bbd865e881b6712295f6d41f \ 
     44                    sha1    0bd369d02051e01bac58c9b8665bd3538e116f51 \ 
     45                    rmd160  b460906043171b27735332ec90c45e38d888869a 
    4746 
    4847extract.only    otp_src_${version}${extract.suffix} 
    4948 
    5049pre-patch       { file rename ${workpath}/otp_src_${version} ${workpath}/${name}-${version} } 
    5150 
     51# http://www.erlang.org/pipermail/erlang-bugs/2008-October/001023.html 
     52# http://www.erlang.org/pipermail/erlang-bugs/2008-October/001024.html 
     53# http://support.process-one.net/browse/EUNIT-13 
    5254patchfiles      patch-toolbar.erl \ 
    5355                patch-erts_emulator_Makefile.in \ 
    5456                patch-lib_ssl_c_src_esock_openssl.c \ 
    5557                patch-lib_ssl_c_src_Makefile.dist \ 
    5658                patch-lib_ssl_c_src_Makefile.in \ 
    57                 patch-erts_emulator_sys_unix_ddll.c 
     59                patch-decode_big.c.diff \ 
     60                patch-decode_fun.c.diff \ 
     61                patch-eunit_xml.diff 
    5862 
    5963configure.args  --prefix=${destroot}${prefix}   \ 
    6064                --enable-kernel-poll            \ 
     
    9498        system "tar -C ${destroot}${prefix}/lib/erlang -zxvf ${distpath}/otp_doc_html_${version}${extract.suffix}" 
    9599        system "tar -C ${destroot}${prefix}/lib/erlang -zxvf ${distpath}/otp_doc_man_${version}${extract.suffix}" 
    96100  
    97         set erts_dir   erts-5.6.4 
     101        set erts_dir   erts-5.6.5 
    98102 
    99103        reinplace s|${destroot}|| ${destroot}${prefix}/lib/erlang/bin/erl 
    100104        reinplace s|${destroot}|| ${destroot}${prefix}/lib/erlang/bin/start 
     
    106110 
    107111        file delete -force ${destroot}${prefix}/lib/erlang/bin/epmd 
    108112        system "ln -s ../${erts_dir}/bin/epmd ${destroot}${prefix}/lib/erlang/bin/epmd" 
     113 
     114    # Fix eunit. 
     115    # See http://www.erlang.org/pipermail/erlang-questions/2008-November/039625.html 
     116    file mkdir ${destroot}${prefix}/lib/erlang/lib/eunit-2.0/include/ 
     117        file copy ${worksrcpath}/lib/eunit/include/eunit.hrl ${destroot}${prefix}/lib/erlang/lib/eunit-2.0/include/ 
    109118}