Ticket #17099: R12B-5.diff
File R12B-5.diff, 9.8 KB (added by pguyot (Paul Guyot), 16 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 -07002 +++ lib/ssl/c_src/Makefile.in 2008- 04-13 20:38:18.000000000 -07003 @@ - 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 @@ 4 4 CC = @CC@ 5 5 LD = @LD@ 6 6 SHELL = /bin/sh … … 9 9 PLAIN_CFLAGS = @CFLAGS@ 10 10 11 11 # ---------------------------------------------------- 12 @@ -12 4,7 +124,7 @@12 @@ -126,7 +126,7 @@ 13 13 CC_R_OPT = $(CC_R_FLAG)$(SSL_LIBDIR) 14 14 endif 15 15 -
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 +01002 +++ erts/emulator/sys/unix/erl_unix_sys_ddll.c 2008-09-07 10:13:54.000000000 +02003 @@ -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 -07002 +++ lib/ssl/c_src/esock_openssl.c 2008- 03-12 22:16:01.000000000 -07003 @@ -90 5,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 @@ 4 4 } 5 5 6 6 /* info callback */ -
files/patch-eunit_xml.diff
1 Index: src/eunit_xml.erl1 Index: lib/eunit/src/eunit_xml.erl 2 2 =================================================================== 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) 5 5 @@ -0,0 +1,496 @@ 6 6 +%% This library is free software; you can redistribute it and/or modify 7 7 +%% it under the terms of the GNU Lesser General Public License as … … 499 499 + ]. 500 500 + 501 501 +-endif. % TEST 502 Index: src/eunit.erl502 Index: lib/eunit/src/eunit.erl 503 503 =================================================================== 504 --- src/eunit.erl (revision 249)505 +++ src/eunit.erl (working copy)506 @@ -1 13,7 +113,7 @@507 try eunit_data:list(T ) of504 --- 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 508 508 List -> 509 509 Listeners = [eunit_tty:start(List, Options) 510 510 - | listeners(Options)], 511 511 + | listeners(List, Options)], 512 512 Serial = eunit_serial:start(Listeners), 513 case eunit_server:start_test(Server, Serial, T , Options) of513 case eunit_server:start_test(Server, Serial, Tests, Options) of 514 514 {ok, Reference} -> test_run(Reference, Listeners); 515 @@ -1 59,10 +159,12 @@515 @@ -197,10 +197,12 @@ 516 516 Dummy = spawn(fun devnull/0), 517 517 eunit_server:start_test(Server, Dummy, T, Options). 518 518 … … 526 526 LogFile -> 527 527 [spawn(fun () -> event_logger(LogFile) end)] 528 528 end. 529 Index: src/Makefile529 Index: lib/eunit/src/Makefile 530 530 =================================================================== 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 \ 534 535 eunit_lib.erl \ 535 536 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
2 2 3 3 PortSystem 1.0 4 4 name erlang 5 version R12B-4 6 revision 1 5 version R12B-5 7 6 categories lang erlang 8 7 maintainers bfulgham@macports.org 9 8 platforms darwin … … 32 31 otp_doc_man_${version}${extract.suffix} \ 33 32 otp_doc_html_${version}${extract.suffix} 34 33 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 f 633cd418d8260af7a11c998aa88072b\45 sha1 cbe6bc52a5000b21de5cac5f9b2672b935e94ed7\46 rmd160 b f05981ddf2e97910141739980cee09572b1c34d34 checksums 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 47 46 48 47 extract.only otp_src_${version}${extract.suffix} 49 48 50 49 pre-patch { file rename ${workpath}/otp_src_${version} ${workpath}/${name}-${version} } 51 50 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 52 54 patchfiles patch-toolbar.erl \ 53 55 patch-erts_emulator_Makefile.in \ 54 56 patch-lib_ssl_c_src_esock_openssl.c \ 55 57 patch-lib_ssl_c_src_Makefile.dist \ 56 58 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 58 62 59 63 configure.args --prefix=${destroot}${prefix} \ 60 64 --enable-kernel-poll \ … … 94 98 system "tar -C ${destroot}${prefix}/lib/erlang -zxvf ${distpath}/otp_doc_html_${version}${extract.suffix}" 95 99 system "tar -C ${destroot}${prefix}/lib/erlang -zxvf ${distpath}/otp_doc_man_${version}${extract.suffix}" 96 100 97 set erts_dir erts-5.6. 4101 set erts_dir erts-5.6.5 98 102 99 103 reinplace s|${destroot}|| ${destroot}${prefix}/lib/erlang/bin/erl 100 104 reinplace s|${destroot}|| ${destroot}${prefix}/lib/erlang/bin/start … … 106 110 107 111 file delete -force ${destroot}${prefix}/lib/erlang/bin/epmd 108 112 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/ 109 118 }