Ticket #16457: R12_B4.diff
File R12_B4.diff, 3.7 KB (added by pguyot (Paul Guyot), 16 years ago) |
---|
-
files/patch-erts_emulator_drivers_unix_unix_efile.c
1 --- erts/emulator/drivers/unix/unix_efile.c.orig 2008-08-06 22:13:42.000000000 -07002 +++ erts/emulator/drivers/unix/unix_efile.c 2008-08-06 22:18:36.000000000 -07003 @@ -44,6 +44,14 @@4 #endif5 #endif /* _OSE_ */6 7 +#if defined(__APPLE__) && defined(__MACH__) && !defined(__DARWIN__)8 +#define DARWIN 19 +#endif10 +11 +#ifdef DARWIN12 +#include <fcntl.h>13 +#endif /* DARWIN */14 +15 #ifdef VXWORKS16 #include <ioLib.h>17 #include <dosFsLib.h>18 @@ -818,7 +826,11 @@19 undefined fsync20 #endif /* VXWORKS */21 #else22 +#if defined(DARWIN) && defined(F_FULLFSYNC)23 + return check_error(fcntl(fd, F_FULLFSYNC), errInfo);24 +#else25 return check_error(fsync(fd), errInfo);26 +#endif /* DARWIN */27 #endif /* NO_FSYNC */28 }29 -
Portfile
2 2 3 3 PortSystem 1.0 4 4 name erlang 5 version R12B-3 6 revision 2 5 version R12B-4 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- 3.tar.gz \36 md5 c2e7f0ad54b8fadebde2d94106608d97\37 sha1 ea5f202cc35ed6ef2796727b95d62c9bbe6ad5e5\38 rmd160 e7b5da985b939e51ef4e2d19fb96cff1781ce263\39 otp_doc_man_R12B- 3.tar.gz \40 md5 13098954c9d5804bb8394fe7badb3d0d\41 sha1 8ea4c9fa7d941c339c73bb417f88ee939d6989eb\42 rmd160 7e0c27391f42b1e58c7bb1472594e9fe6f7ac414 \43 otp_doc_html_R12B- 3.tar.gz \44 md5 8865d406c256abbff63eaff62d2216aa\45 sha1 194003607113c84aef5b5daad7ca8b8901d1d80a\46 rmd160 8295d4e94952bad6458f2038415c474e687631cb34 checksums otp_src_R12B-4.tar.gz \ 35 md5 ae81edda4a17506af7a9d73abca033b2 \ 36 sha1 4e42454c3f560ce6efd3c917a79a5b288664e329 \ 37 rmd160 3c57ae04388c0493d97c76529c57c50de639bdce \ 38 otp_doc_man_R12B-4.tar.gz \ 39 md5 ef8f96d1721a2345cc87b208cde3de06 \ 40 sha1 b954711b493e384606ce23d32a6d980017637b10 \ 41 rmd160 f14eb1f542ebecceddd6ac70aa4ed325f91b0b24 \ 42 otp_doc_html_R12B-4.tar.gz \ 43 md5 f633cd418d8260af7a11c998aa88072b \ 44 sha1 cbe6bc52a5000b21de5cac5f9b2672b935e94ed7 \ 45 rmd160 bf05981ddf2e97910141739980cee09572b1c34d 47 46 48 47 extract.only otp_src_${version}${extract.suffix} 49 48 … … 51 50 52 51 patchfiles patch-toolbar.erl \ 53 52 patch-erts_emulator_Makefile.in \ 54 patch-erts_emulator_drivers_unix_unix_efile.c \55 53 patch-lib_ssl_c_src_esock_openssl.c \ 56 54 patch-lib_ssl_c_src_Makefile.dist \ 57 55 patch-lib_ssl_c_src_Makefile.in … … 94 92 system "tar -C ${destroot}${prefix}/lib/erlang -zxvf ${distpath}/otp_doc_html_${version}${extract.suffix}" 95 93 system "tar -C ${destroot}${prefix}/lib/erlang -zxvf ${distpath}/otp_doc_man_${version}${extract.suffix}" 96 94 97 set erts_dir erts-5.6. 395 set erts_dir erts-5.6.4 98 96 99 97 reinplace s|${destroot}|| ${destroot}${prefix}/lib/erlang/bin/erl 100 98 reinplace s|${destroot}|| ${destroot}${prefix}/lib/erlang/bin/start