From andrew@REDACTED Sat Jul 2 05:52:05 2011 From: andrew@REDACTED (Andrew Thompson) Date: Fri, 1 Jul 2011 23:52:05 -0400 Subject: [erlang-patches] Fix incorrect use of error_logger:(info|warning|error)_report/2 Message-ID: <20110702035205.GK7407@hijacked.us> git fetch git://github.com/Vagabond/otp.git fix_error_logger_calls https://github.com/Vagabond/otp/compare/fix_error_logger_calls https://github.com/Vagabond/otp/compare/fix_error_logger_calls.patch Change incorrect calls to the report/2 functions that are supplying a format string and a list of terms to print to use the correct (info|warning|error)_msg/2 functions instead. The incorrect use of these functions is generating a report with the type set to the format string, which is ignored by both the builtin error_logger handlers and the SASL ones. From tomas.abrahamsson@REDACTED Sun Jul 3 22:54:42 2011 From: tomas.abrahamsson@REDACTED (Tomas Abrahamsson) Date: Sun, 3 Jul 2011 22:54:42 +0200 Subject: [erlang-patches] [PATCH] Teach the emacs mode to compile yecc and leex files Message-ID: <1309726482-6212-1-git-send-email-tomas.abrahamsson@gmail.com> If visiting a .yrl or .xrl file in emacs with erlang-mode, then the `erlang-compile' function (normally bound to C-c C-k), now knows how to compile yecc and leex files, and then, if that compilation succeeds, also compiles the resulting .erl files. Also introduce a `erlang-compile-command-function-alist' to make it possible to hook in other functions for computing compilation commands/expressions, depending on file name. --- lib/tools/emacs/erlang.el | 84 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 84 insertions(+), 0 deletions(-) diff --git a/lib/tools/emacs/erlang.el b/lib/tools/emacs/erlang.el index 6728bef..9203622 100644 --- a/lib/tools/emacs/erlang.el +++ b/lib/tools/emacs/erlang.el @@ -523,6 +523,32 @@ This is an elisp list of options. Each option can be either: - a string Example: '(bin_opt_info (i . \"/path1/include\") (i . \"/path2/include\"))") +(defvar erlang-compile-command-function-alist + '((".erl\\'" . inferior-erlang-compute-erl-compile-command) + (".xrl\\'" . inferior-erlang-compute-leex-compile-command) + (".yrl\\'" . inferior-erlang-compute-yecc-compile-command) + ("." . inferior-erlang-compute-erl-compile-command)) + "*Alist of filename patterns vs corresponding compilation functions. +Each element looks like (REGEXP . FUNCTION). Compiling a file whose name +matches REGEXP specifies FUNCTION to use to compute the compilation +command. The FUNCTION will be called with two arguments: module name and +default compilation options, like output directory. The FUNCTION +is expected to return a string.") + +(defvar erlang-leex-compile-opts '() + "*Options to pass to leex when compiling xrl files. +This is an elisp list of options. Each option can be either: +- an atom +- a dotted pair +- a string") + +(defvar erlang-yecc-compile-opts '() + "*Options to pass to yecc when compiling yrl files. +This is an elisp list of options. Each option can be either: +- an atom +- a dotted pair +- a string") + (eval-and-compile (defvar erlang-regexp-modern-p (if (> erlang-emacs-major-version 21) t nil) @@ -5276,6 +5302,22 @@ unless the optional NO-DISPLAY is non-nil." (file-name-as-directory buffer-dir)))) (defun inferior-erlang-compute-compile-command (module-name opts) + (let ((ccfn erlang-compile-command-function-alist) + (res (inferior-erlang-compute-erl-compile-command module-name opts)) + ccfn-entry + done) + (if (not (null (buffer-file-name))) + (while (and (not done) (not (null ccfn))) + (setq ccfn-entry (car ccfn)) + (setq ccfn (cdr ccfn)) + (if (string-match (car ccfn-entry) (buffer-file-name)) + (let ((c-fn (cdr ccfn-entry))) + (setq done t) + (if (not (null c-fn)) + (setq result (funcall c-fn module-name opts))))))) + result)) + +(defun inferior-erlang-compute-erl-compile-command (module-name opts) (let* ((out-dir-opt (assoc 'outdir opts)) (out-dir (cdr out-dir-opt))) (if erlang-compile-use-outdir @@ -5299,6 +5341,48 @@ unless the optional NO-DISPLAY is non-nil." (remq out-dir-opt opts)) tmpvar tmpvar tmpvar2))))) +(defun inferior-erlang-compute-leex-compile-command (module-name opts) + (let ((file-name (buffer-file-name)) + (erl-compile-expr (inferior-erlang-remove-any-trailing-dot + (inferior-erlang-compute-erl-compile-command + module-name opts)))) + (format (concat "f(LErr1__), f(LErr2__), " + "case case leex:file(\"%s\", [%s]) of" + " ok -> ok;" + " {ok,_} -> ok;" + " {ok,_,_} -> ok;" + " LErr1__ -> LErr1__ " + "end of" + " ok -> %s;" + " LErr2__ -> LErr2__ " + "end.") + file-name + (inferior-erlang-format-comma-opts erlang-leex-compile-opts) + erl-compile-expr))) + +(defun inferior-erlang-compute-yecc-compile-command (module-name opts) + (let ((file-name (buffer-file-name)) + (erl-compile-expr (inferior-erlang-remove-any-trailing-dot + (inferior-erlang-compute-erl-compile-command + module-name opts)))) + (format (concat "f(YErr1__), f(YErr2__), " + "case case yecc:file(\"%s\", [%s]) of" + " {ok,_} -> ok;" + " {ok,_,_} -> ok;" + " YErr1__ -> YErr1__ " + "end of" + " ok -> %s;" + " YErr2__ -> YErr2__ " + "end.") + file-name + (inferior-erlang-format-comma-opts erlang-yecc-compile-opts) + erl-compile-expr))) + +(defun inferior-erlang-remove-any-trailing-dot (str) + (if (string= (substring str -1) ".") + (substring str 0 (1- (length str))) + str)) + (defun inferior-erlang-format-comma-opts (opts) (if (null opts) "" -- 1.7.5.3 From klas.johansson@REDACTED Mon Jul 4 13:14:40 2011 From: klas.johansson@REDACTED (Klas Johansson) Date: Mon, 4 Jul 2011 13:14:40 +0200 Subject: [erlang-patches] eunit: generate separate surefire XMLs for each test suite In-Reply-To: <4DE4EF2E.1010900@erlang.org> References: <4DE4EF2E.1010900@erlang.org> Message-ID: On Tue, May 31, 2011 at 3:37 PM, Henrik Nord wrote: > On 05/26/2011 06:22 PM, Klas Johansson wrote: >> >> Hi, >> >> Yet another eunit fix: >> >> ? ? Generate separate surefire XMLs for each test suite >> >> ? ? Previously the test cases of all test suites (=modules) were put in >> ? ? one and the same surefire report XML thereby breaking the principle of >> ? ? least astonishment and making post analysis harder. ?Assume the >> ? ? following layout: >> >> ? ? ? ? src/x.erl >> ? ? ? ? src/y.erl >> ? ? ? ? test/x_tests.erl >> ? ? ? ? test/y_tests.erl >> >> ? ? The results for both x_tests and y_tests were written to only one >> ? ? report grouped under either module x or y (seemingly randomly). >> >> ? ? Now two reports, one for module x and one for y are generated. >> >> This has now been running for a couple of weeks in our system and >> seems to do the trick. >> >> Code here: >> >> ? git fetch git://github.com/klajo/otp.git eunit-surefire-fixes >> >> >> >> Cheers, >> Klas >> _______________________________________________ >> erlang-patches mailing list >> erlang-patches@REDACTED >> http://erlang.org/mailman/listinfo/erlang-patches > > Thank you Klas > > I have included this in 'pu' and it will cook for a while. > > > -- > /Henrik Nord Erlang/OTP Hi, Richard Carlsson commented upon this patch on github a while back, does this mean that the patch will graduate or do you have any further things you'd like to check or perhaps would like me to address? https://github.com/erlang/otp/commit/61621e6623bca4ae75c44a2d8f765098ac798e42 Thanks and Regards, Klas From tuncer.ayaz@REDACTED Tue Jul 5 13:57:02 2011 From: tuncer.ayaz@REDACTED (Tuncer Ayaz) Date: Tue, 5 Jul 2011 13:57:02 +0200 Subject: [erlang-patches] Clean up hipe.hrl.src Message-ID: Signed-off-by: Kostis Sagonas git fetch git://github.com/tuncer/otp.git hipe-cleanup https://github.com/tuncer/otp/compare/hipe-cleanup.patch https://github.com/tuncer/otp/compare/hipe-cleanup From joe@REDACTED Thu Jul 7 00:43:48 2011 From: joe@REDACTED (Joe Williams) Date: Wed, 6 Jul 2011 15:43:48 -0700 Subject: [erlang-patches] release_handler_1 improvements In-Reply-To: <6ED9E10797924705B8D252A4593F22E3@joetify.com> References: <1C74E579B911446FBEFB7DF9D3DDD11A@joetify.com> <20110609071143.GB16577@erix.ericsson.se> <59BD610D63824C4AABB5673C3688A9FF@joetify.com> <20110610155125.GD7170@erix.ericsson.se> <5599EA2E920D462E9CA899BD7DF1B3E6@joetify.com> <6ED9E10797924705B8D252A4593F22E3@joetify.com> Message-ID: <89662D877556421FAD369A3FEA3A4CCA@joetify.com> Anything I can do to help this patch graduate? Thanks! -Joe -- Name: Joseph A. Williams Email: joe@REDACTED Blog: http://www.joeandmotorboat.com/ Twitter: http://twitter.com/williamsjoe On Tuesday, June 14, 2011 at 12:26 PM, Joe Williams wrote: > Updated this branch, please refetch. > > git fetch git://github.com/joewilliams/otp.git (http://github.com/joewilliams/otp.git) release_handler_1 > > > -- > Name: Joseph A. Williams > Email: joe@REDACTED (mailto:joe@REDACTED) > Blog: http://www.joeandmotorboat.com/ > Twitter: http://twitter.com/williamsjoe > > > On Friday, June 10, 2011 at 8:52 AM, Joe Williams wrote: > > > Great, thanks! > > > > > > -- > > Name: Joseph A. Williams > > Email: joe@REDACTED (mailto:joe@REDACTED) > > Blog: http://www.joeandmotorboat.com/ > > Twitter: http://twitter.com/williamsjoe > > > > > > On Friday, June 10, 2011 at 8:51 AM, Raimo Niskanen wrote: > > > > > On Thu, Jun 09, 2011 at 08:20:51AM -0700, Joe Williams wrote: > > > > Please fetch: > > > > > > > > git fetch git://github.com/joewilliams/otp.git (http://github.com/joewilliams/otp.git) release_handler_1 > > > > > > > > This is a different branch with a better commit message and no white space changes. > > > > > > Excellent. I will include your patch in 'pu' after rewording the > > > summary line to imperative form. > > > > > > > > > > > > > > > > > > > -- > > > > Name: Joseph A. Williams > > > > Email: joe@REDACTED (mailto:joe@REDACTED) > > > > Blog: http://www.joeandmotorboat.com/ > > > > Twitter: http://twitter.com/williamsjoe > > > > > > > > > > > > On Thursday, June 9, 2011 at 7:44 AM, Joe Williams wrote: > > > > > > > > > Nothing specific, just wondered if anyone had any thoughts on how I dealt with a couple of corner cases in installing releases. > > > > > > > > > > I'll fix things up and get back shortly. > > > > > > > > > > -- > > > > > Name: Joseph A. Williams > > > > > Email: joe@REDACTED (mailto:joe@REDACTED) (mailto:joe@REDACTED) > > > > > Blog: http://www.joeandmotorboat.com/ > > > > > Twitter: http://twitter.com/williamsjoe > > > > > > > > > > > > > > > On Thursday, June 9, 2011 at 12:11 AM, Raimo Niskanen wrote: > > > > > > > > > > > On Wed, Jun 08, 2011 at 03:41:37PM -0700, Joe Williams wrote: > > > > > > > Any thoughts/feedback on this patch? I realize it doesn't follow the guidelines (https://github.com/erlang/otp/wiki/Submitting-patches) exactly and will clean it up soon. > > > > > > > > > > > > Anything in particular? I just got caught up in tideous merge work > > > > > > yesterday and missed to include your patch in 'pu', I was about > > > > > > to take it now. > > > > > > > > > > > > But if you have a cleanup I can wait for it... > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > Name: Joseph A. Williams > > > > > > > Email: joe@REDACTED (mailto:joe@REDACTED) (mailto:joe@REDACTED) > > > > > > > Blog: http://www.joeandmotorboat.com/ > > > > > > > Twitter: http://twitter.com/williamsjoe > > > > > > > > > > > > > > > > > > > > > On Tuesday, June 7, 2011 at 2:33 PM, Joe Williams wrote: > > > > > > > > > > > > > > > git fetch git://github.com/joewilliams/otp.git (http://github.com/joewilliams/otp.git) (http://github.com/joewilliams/otp.git) (http://github.com/joewilliams/otp.git) release_handler > > > > > > > > > > > > > _______________________________________________ > > > > > > > erlang-patches mailing list > > > > > > > erlang-patches@REDACTED (mailto:erlang-patches@REDACTED) (mailto:erlang-patches@REDACTED) > > > > > > > http://erlang.org/mailman/listinfo/erlang-patches > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > > > / Raimo Niskanen, Erlang/OTP, Ericsson AB > > > > > > > > > > _______________________________________________ > > > > > erlang-patches mailing list > > > > > erlang-patches@REDACTED (mailto:erlang-patches@REDACTED) (mailto:erlang-patches@REDACTED) > > > > > http://erlang.org/mailman/listinfo/erlang-patches > > > > > > -- > > > > > > / Raimo Niskanen, Erlang/OTP, Ericsson AB > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lukas@REDACTED Thu Jul 7 10:38:44 2011 From: lukas@REDACTED (Lukas Larsson) Date: Thu, 7 Jul 2011 10:38:44 +0200 Subject: [erlang-patches] release_handler_1 improvements In-Reply-To: <89662D877556421FAD369A3FEA3A4CCA@joetify.com> References: <1C74E579B911446FBEFB7DF9D3DDD11A@joetify.com> <20110609071143.GB16577@erix.ericsson.se> <59BD610D63824C4AABB5673C3688A9FF@joetify.com> <20110610155125.GD7170@erix.ericsson.se> <5599EA2E920D462E9CA899BD7DF1B3E6@joetify.com> <6ED9E10797924705B8D252A4593F22E3@joetify.com> <89662D877556421FAD369A3FEA3A4CCA@joetify.com> Message-ID: <4E157094.4010109@erix.ericsson.se> Hello! During July most patch work has been put on hold due to vacations. We'll get back to you in August with an update! Lukas On 07/07/11 00:43, Joe Williams wrote: > Anything I can do to help this patch graduate? > > Thanks! > > -Joe > > > -- > Name: Joseph A. Williams > Email: joe@REDACTED > Blog: http://www.joeandmotorboat.com/ > Twitter: http://twitter.com/williamsjoe > > On Tuesday, June 14, 2011 at 12:26 PM, Joe Williams wrote: > >> Updated this branch, please refetch. >> >> git fetch git://github.com/joewilliams/otp.git >> release_handler_1 >> >> >> -- >> Name: Joseph A. Williams >> Email: joe@REDACTED >> Blog: http://www.joeandmotorboat.com/ >> Twitter: http://twitter.com/williamsjoe >> >> On Friday, June 10, 2011 at 8:52 AM, Joe Williams wrote: >> >>> Great, thanks! >>> >>> >>> -- >>> Name: Joseph A. Williams >>> Email: joe@REDACTED >>> Blog: http://www.joeandmotorboat.com/ >>> Twitter: http://twitter.com/williamsjoe >>> >>> On Friday, June 10, 2011 at 8:51 AM, Raimo Niskanen wrote: >>> >>>> On Thu, Jun 09, 2011 at 08:20:51AM -0700, Joe Williams wrote: >>>>> Please fetch: >>>>> >>>>> git fetch git://github.com/joewilliams/otp.git >>>>> release_handler_1 >>>>> >>>>> This is a different branch with a better commit message and no >>>>> white space changes. >>>> >>>> Excellent. I will include your patch in 'pu' after rewording the >>>> summary line to imperative form. >>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Name: Joseph A. Williams >>>>> Email: joe@REDACTED >>>>> Blog: http://www.joeandmotorboat.com/ >>>>> Twitter: http://twitter.com/williamsjoe >>>>> >>>>> >>>>> On Thursday, June 9, 2011 at 7:44 AM, Joe Williams wrote: >>>>> >>>>>> Nothing specific, just wondered if anyone had any thoughts on how >>>>>> I dealt with a couple of corner cases in installing releases. >>>>>> >>>>>> I'll fix things up and get back shortly. >>>>>> >>>>>> -- >>>>>> Name: Joseph A. Williams >>>>>> Email: joe@REDACTED >>>>>> (mailto:joe@REDACTED) >>>>>> Blog: http://www.joeandmotorboat.com/ >>>>>> Twitter: http://twitter.com/williamsjoe >>>>>> >>>>>> >>>>>> On Thursday, June 9, 2011 at 12:11 AM, Raimo Niskanen wrote: >>>>>> >>>>>>> On Wed, Jun 08, 2011 at 03:41:37PM -0700, Joe Williams wrote: >>>>>>>> Any thoughts/feedback on this patch? I realize it doesn't >>>>>>>> follow the guidelines >>>>>>>> (https://github.com/erlang/otp/wiki/Submitting-patches) exactly >>>>>>>> and will clean it up soon. >>>>>>> >>>>>>> Anything in particular? I just got caught up in tideous merge work >>>>>>> yesterday and missed to include your patch in 'pu', I was about >>>>>>> to take it now. >>>>>>> >>>>>>> But if you have a cleanup I can wait for it... >>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Name: Joseph A. Williams >>>>>>>> Email: joe@REDACTED >>>>>>>> (mailto:joe@REDACTED) >>>>>>>> Blog: http://www.joeandmotorboat.com/ >>>>>>>> Twitter: http://twitter.com/williamsjoe >>>>>>>> >>>>>>>> >>>>>>>> On Tuesday, June 7, 2011 at 2:33 PM, Joe Williams wrote: >>>>>>>> >>>>>>>>> git fetch git://github.com/joewilliams/otp.git >>>>>>>>> >>>>>>>>> (http://github.com/joewilliams/otp.git) >>>>>>>>> (http://github.com/joewilliams/otp.git) release_handler >>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> erlang-patches mailing list >>>>>>>> erlang-patches@REDACTED >>>>>>>> (mailto:erlang-patches@REDACTED) >>>>>>>> http://erlang.org/mailman/listinfo/erlang-patches >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> >>>>>>> / Raimo Niskanen, Erlang/OTP, Ericsson AB >>>>>> >>>>>> _______________________________________________ >>>>>> erlang-patches mailing list >>>>>> erlang-patches@REDACTED >>>>>> (mailto:erlang-patches@REDACTED) >>>>>> http://erlang.org/mailman/listinfo/erlang-patches >>>> >>>> -- >>>> >>>> / Raimo Niskanen, Erlang/OTP, Ericsson AB >>> >> > > > _______________________________________________ > erlang-patches mailing list > erlang-patches@REDACTED > http://erlang.org/mailman/listinfo/erlang-patches -------------- next part -------------- An HTML attachment was scrubbed... URL: From wfragg@REDACTED Thu Jul 14 12:03:47 2011 From: wfragg@REDACTED (Ivan Dubrov) Date: Thu, 14 Jul 2011 17:03:47 +0700 Subject: [erlang-patches] Patch for dialyzer complaining on certain binary comprehensions Message-ID: <4E1EBF03.9020303@gmail.com> Hi, Please consider the patch to the dialyzer to suppress warnings emitted on certain binary comprehensions, like << <<>> || {A, B} <- [{a, b}] >>, caused by compiler-emitted default clause. Dialyzer already have a code that suppresses the warning for regular list comprehensions, but it does not work for binary comprehensions. Unfortunately, I did not understood how to implement a test case for dialyzer, so I have not created one. Attached is a test file, run "dialyzer test.erl" to get the warning: test.erl:7: The pattern <[_ | _], _> can never match the type <[],<<_:_*1>>> Fetch fix from: git fetch git://github.com/idubrov/otp.git dialyzer_bincomp_bug -- WBR, Ivan S. Dubrov -------------- next part -------------- A non-text attachment was scrubbed... Name: test.erl Type: text/x-erlang Size: 197 bytes Desc: not available URL: From holger@REDACTED Thu Jul 14 18:29:36 2011 From: holger@REDACTED (Holger =?iso-8859-1?Q?Wei=DF?=) Date: Thu, 14 Jul 2011 18:29:36 +0200 Subject: [erlang-patches] Let epmd ignore empty ERL_EPMD_ADDRESS Message-ID: <20110714162936.GA35305047@CIS.FU-Berlin.DE> By default, epmd listens on all available network interfaces. However, if it's executed using the following command line (in a Bourne Shell), epmd currently listens only on the loopback interface: $ ERL_EPMD_ADDRESS='' epmd FreeBSD PR #158357 is an example of how this can lead to unexpected behaviour in practice: http://www.freebsd.org/cgi/query-pr.cgi?pr=158357 The following patch lets epmd ignore ERL_EPMD_ADDRESS if it's set to the empty string: git fetch git://github.com/weiss/otp.git ignore-empty-epmd-address Holger From aronisstav@REDACTED Sat Jul 16 14:13:17 2011 From: aronisstav@REDACTED (Stavros Aronis) Date: Sat, 16 Jul 2011 14:13:17 +0200 Subject: [erlang-patches] Patch for dialyzer complaining on certain binary comprehensions In-Reply-To: <4E1EBF03.9020303@gmail.com> References: <4E1EBF03.9020303@gmail.com> Message-ID: Hi Ivan, I have added your patch in a series of patches for Dialyzer I am about to send. I have also amended it to include the testcase you provide. Just for the record, if a test is not supposed to return any warnings, including it in Dialyzer's testsuites is as simple as putting the source file in one of the *_SUITE_data/src directories (if warnings are expected, they should be listed in a similar file in *_SUITE_data/results). Thank you for your contribution, Stavros On Thu, Jul 14, 2011 at 12:03 PM, Ivan Dubrov wrote: > Hi, > > Please consider the patch to the dialyzer to suppress warnings emitted on > certain binary comprehensions, like << <<>> || {A, B} <- [{a, b}] >>, caused > by compiler-emitted default clause. Dialyzer already have a code that > suppresses the warning for regular list comprehensions, but it does not work > for binary comprehensions. > > Unfortunately, I did not understood how to implement a test case for > dialyzer, so I have not created one. Attached is a test file, run "dialyzer > test.erl" to get the warning: > test.erl:7: The pattern <[_ | _], _> can never match the type > <[],<<_:_*1>>> > > Fetch fix from: > > git fetch git://github.com/idubrov/otp.**gitdialyzer_bincomp_bug > > -- > WBR, > Ivan S. Dubrov > > > > _______________________________________________ > erlang-patches mailing list > erlang-patches@REDACTED > http://erlang.org/mailman/listinfo/erlang-patches > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aronisstav@REDACTED Sat Jul 16 19:06:05 2011 From: aronisstav@REDACTED (Stavros Aronis) Date: Sat, 16 Jul 2011 19:06:05 +0200 Subject: [erlang-patches] Small fixes for dialyzer Message-ID: This patch contains updated results for some of the current test-suites of Dialyzer and patches for two bugs: - A minor issue when reporting unused functions (e.g. this removes a certain warning about an unused function in yeccpre.hrl). Reported and patched by Hans Bolinder. - An issue related with the default-clause of list comprehensions on bitstrings. Reported and patched by Ivan Dubrov. git fetch git://github.com/aronisstav/otp.git dialyzer-small-fixes Stavros -------------- next part -------------- An HTML attachment was scrubbed... URL: From carlsson.richard@REDACTED Mon Jul 18 23:39:56 2011 From: carlsson.richard@REDACTED (Richard Carlsson) Date: Mon, 18 Jul 2011 23:39:56 +0200 Subject: [erlang-patches] eunit update Message-ID: <4E24A82C.80205@gmail.com> Finally, I've managed to synch the OTP version of EUnit with my own development repository. They started drifting apart while I hadn't switched my own repo to Git yet. git fetch git@REDACTED:richcarl/otp.git eunit-2.2.0 Until OTP decides on what to do with their licensing, that version will remain as LGPL. The stand-alone version of EUnit is now dual licensed under Apache 2.0 + LGPL, and can be found here: https://github.com/richcarl/eunit /Richard From datacompboy@REDACTED Tue Jul 19 20:58:25 2011 From: datacompboy@REDACTED (Anton Fedorov) Date: Wed, 20 Jul 2011 01:58:25 +0700 Subject: [erlang-patches] Add --merge_plts feature to dialyzer, so its possible now to combine several PLTs into single one. Message-ID: <913a6581aec1ff9f11280eba6f062c4d.squirrel@webmail.call2ru.com> To be able to generate plts for system in parallel, its useful to generate one-plt per application, and merge them after to one single big PLT. git fetch git://github.com/datacompboy/otp.git dialyzer_merge_plts -- Regards, Anton Fedorov Call2ru service E-Mail: datacompboy@REDACTED Jabber: datacompboy@REDACTED ICQ: 272-35-262 Mobile: +7-913-925-7974 [SMS 24h, Call 05:00-19:00 MSKT (GMT+3)] From aronisstav@REDACTED Tue Jul 19 22:26:25 2011 From: aronisstav@REDACTED (Stavros Aronis) Date: Tue, 19 Jul 2011 22:26:25 +0200 Subject: [erlang-patches] Add --merge_plts feature to dialyzer, so its possible now to combine several PLTs into single one. In-Reply-To: <913a6581aec1ff9f11280eba6f062c4d.squirrel@webmail.call2ru.com> References: <913a6581aec1ff9f11280eba6f062c4d.squirrel@webmail.call2ru.com> Message-ID: Hi Anton, I am sorry to inform you that in Dialyzer's case "the whole is greater that the sum (or even the merge) of it's parts"! When Dialyzer analyzes a set of modules without a PLT, it assumes that a call to any external function will accept any term as an argument and return a value that can also be any term. Therefore each of these single-application-PLTs is going to be agnostic about calls to functions in all other applications. As a result, these PLTs will be missing the constraints that are imposed by these external calls and the information stored within will be less strict. In the end, when you merge all these PLTs, you will have a valid PLT, but it will also be less strict than the one you will get by analyzing all the applications together. I am not sure if there is any proper use for your trick. On Tue, Jul 19, 2011 at 8:58 PM, Anton Fedorov wrote: > To be able to generate plts for system in parallel, its useful to generate > one-plt per application, and merge them after to one single big PLT. > > git fetch git://github.com/datacompboy/otp.git dialyzer_merge_plts > > -- > Regards, > Anton Fedorov > Call2ru service > E-Mail: datacompboy@REDACTED > Jabber: datacompboy@REDACTED > ICQ: 272-35-262 > Mobile: +7-913-925-7974 [SMS 24h, Call 05:00-19:00 MSKT (GMT+3)] > > _______________________________________________ > erlang-patches mailing list > erlang-patches@REDACTED > http://erlang.org/mailman/listinfo/erlang-patches > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fabian.krol@REDACTED Wed Jul 20 08:07:29 2011 From: fabian.krol@REDACTED (Fabian Krol) Date: Wed, 20 Jul 2011 08:07:29 +0200 Subject: [erlang-patches] Non-existing function in distributed reference manual Message-ID: Hi, in distributed reference manual there is a mention of non-existing function erlang:disconnect/1. I've fix it to erlang:disconnect_node/1. git fetch git://github.com/mpetrsson/otp.git fix-reference_manual-distributed All best, -- Fabian Kr?l +48 794 746861 www.fabiankrol.com From lemenkov@REDACTED Thu Jul 21 10:00:32 2011 From: lemenkov@REDACTED (Peter Lemenkov) Date: Thu, 21 Jul 2011 12:00:32 +0400 Subject: [erlang-patches] [PATCH 1/1] Fix install dir typo for snmp man3 Message-ID: <1311235232-18408-1-git-send-email-lemenkov@gmail.com> From: Hans Ulrich Niedermann This is an obvious thing that should be fixed upstream. --- lib/snmp/doc/src/Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/snmp/doc/src/Makefile b/lib/snmp/doc/src/Makefile index 35ed63e..30fabc1 100644 --- a/lib/snmp/doc/src/Makefile +++ b/lib/snmp/doc/src/Makefile @@ -286,7 +286,7 @@ release_docs_spec: docs $(INSTALL_DATA) $(INFO_FILE) $(RELSYSDIR) $(INSTALL_DIR) $(RELEASE_PATH)/man/man1 $(INSTALL_DATA) $(MAN1_FILES) $(RELEASE_PATH)/man/man1 - $(INSTALL_DIR) $(RELEASE_PATH)/man/man + $(INSTALL_DIR) $(RELEASE_PATH)/man/man3 $(INSTALL_DATA) $(MAN3_FILES) $(RELEASE_PATH)/man/man3 $(INSTALL_DIR) $(RELEASE_PATH)/man/man6 $(INSTALL_DATA) $(MAN6_FILES) $(RELEASE_PATH)/man/man6 -- 1.7.6 From lemenkov@REDACTED Thu Jul 21 10:09:59 2011 From: lemenkov@REDACTED (Peter Lemenkov) Date: Thu, 21 Jul 2011 12:09:59 +0400 Subject: [erlang-patches] [PATCH 1/1] Do not install *.bat files on non-win32 machines Message-ID: <1311235799-19992-1-git-send-email-lemenkov@gmail.com> From: Hans Ulrich Niedermann Signed-off-by: Peter Lemenkov Signed-off-by: Hans Ulrich Niedermann --- lib/observer/src/Makefile | 9 ++++++--- lib/webtool/priv/Makefile | 8 ++++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/lib/observer/src/Makefile b/lib/observer/src/Makefile index 2d06cb6..3875b62 100644 --- a/lib/observer/src/Makefile +++ b/lib/observer/src/Makefile @@ -56,13 +56,16 @@ TARGET_FILES= $(MODULES:%=$(EBIN)/%.$(EMULATOR)) $(APP_TARGET) $(APPUP_TARGET) PRIVDIR= ../priv WEBTOOLFILES= $(PRIVDIR)/crashdump_viewer.tool BINDIR= $(PRIVDIR)/bin +ifeq ($(findstring win32,$(TARGET)),win32) +WIN32_EXECUTABLES= $(BINDIR)/etop.bat $(BINDIR)/getop.bat $(BINDIR)/cdv.bat +else +WIN32_EXECUTABLES= +endif EXECUTABLES= \ $(BINDIR)/etop \ $(BINDIR)/getop \ $(BINDIR)/cdv \ - $(BINDIR)/etop.bat \ - $(BINDIR)/getop.bat \ - $(BINDIR)/cdv.bat + $(WIN32_EXECUTABLES) CDVDIR= $(PRIVDIR)/crashdump_viewer GIF_FILES= \ $(CDVDIR)/collapsd.gif \ diff --git a/lib/webtool/priv/Makefile b/lib/webtool/priv/Makefile index 56ab772..6e1c660 100644 --- a/lib/webtool/priv/Makefile +++ b/lib/webtool/priv/Makefile @@ -39,8 +39,12 @@ HTDOCS_FILES = root/doc/index.html \ root/doc/tool_management.html \ root/doc/start_info.html -SCRIPTS = bin/start_webtool \ - bin/start_webtool.bat +ifeq ($(findstring win32,$(TARGET)),win32) +WIN32_SCRIPTS= bin/start_webtool.bat +else +WIN32_SCRIPTS= +endif +SCRIPTS = bin/start_webtool $(WIN32_SCRIPTS) # ---------------------------------------------------- # FLAGS -- 1.7.6 From lihaitao@REDACTED Fri Jul 22 11:39:25 2011 From: lihaitao@REDACTED (Haitao Li) Date: Fri, 22 Jul 2011 17:39:25 +0800 Subject: [erlang-patches] Fix error in beam_disasm if no attributes chunk found in beam files Message-ID: Hi, How to reproduce: $ erl 1> c(abc). {ok,abc} 2> beam_lib:strip(abc). {ok,{abc,"abc.beam"}} 3> beam_disasm:file(abc). {error,beam_disasm, {internal,{{case_clause,{error,beam_lib, {missing_chunk,'abc.beam',"Attr"}}}, [{beam_disasm,optional_chunk,2}, {beam_disasm,process_chunks,1}, {beam_disasm,file,1}, {erl_eval,do_apply,5}, {shell,exprs,7}, {shell,eval_exprs,7}, {shell,eval_loop,3}]}}} Patch: git fetch git://github.com/lht/otp.git beam-disasm-chunks-badmatch diff --git a/lib/compiler/src/beam_disasm.erl b/lib/compiler/src/beam_disasm.erl index 017ca12..9df10e9 100644 --- a/lib/compiler/src/beam_disasm.erl +++ b/lib/compiler/src/beam_disasm.erl @@ -182,7 +182,7 @@ process_chunks(F) -> Literals = beam_disasm_literals(LiteralBin), Code = beam_disasm_code(CodeBin, Atoms, mk_imports(ImportsList), StrBin, Lambdas, Literals, Module), - Attributes = optional_chunk(F, attributes), + Attributes = optional_chunk(F, "Attr"), CompInfo = case optional_chunk(F, "CInf") of none -> none; Haitao From lihaitao@REDACTED Sun Jul 31 11:53:59 2011 From: lihaitao@REDACTED (Haitao Li) Date: Sun, 31 Jul 2011 17:53:59 +0800 Subject: [erlang-patches] IC: Improve preprocessor & codegen performance Message-ID: Hi, Please fetch patches about IDL compiier optimization from: git fetch git://github.com/lht/otp.git idl-compiler-opt Test result of one real idl file from the project I am working on. Erlang IDL compiler version 4.2.26 File "../mmtdev.idl" compilation started : 2011/7/31 17:49 Time for input file scanning : 7.66 Time for input file parsing : 0.02 Time for pragma registration : 0.31 Time for type code appliance : 0.38 Time for code generation : 10.20 Time for TOTAL : 18.61 Erlang IDL compiler version 4.2.26 File "../mmtdev.idl" compilation started : 2011/7/31 17:49 Time for input file scanning : 0.83 Time for input file parsing : 0.03 Time for pragma registration : 0.31 Time for type code appliance : 0.41 Time for code generation : 1.85 Time for TOTAL : 3.45 /Haitao