aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2007-02-24 04:14:54 +0800
committerolgeni <olgeni@FreeBSD.org>2007-02-24 04:14:54 +0800
commit7958c306c9134211323ba2e641cf56956a9663b7 (patch)
tree48c285d983c5c9463e75b7f210332e4c9d5f9825 /lang
parent19cba8b82a37229326d31077a1601ff4656325ee (diff)
downloadfreebsd-ports-gnome-7958c306c9134211323ba2e641cf56956a9663b7.tar.gz
freebsd-ports-gnome-7958c306c9134211323ba2e641cf56956a9663b7.tar.zst
freebsd-ports-gnome-7958c306c9134211323ba2e641cf56956a9663b7.zip
Fix formatting exception in io:format.
Obtained from: Hans Bolinder <hans.bolinder(at)ericsson.com>
Diffstat (limited to 'lang')
-rw-r--r--lang/erlang/Makefile2
-rw-r--r--lang/erlang/files/patch-lib_stdlib_src_io__lib__pretty.erl16
-rw-r--r--lang/erlang14/Makefile2
-rw-r--r--lang/erlang14/files/patch-lib_stdlib_src_io__lib__pretty.erl16
4 files changed, 34 insertions, 2 deletions
diff --git a/lang/erlang/Makefile b/lang/erlang/Makefile
index 5065c6f97900..a94778ac80e2 100644
--- a/lang/erlang/Makefile
+++ b/lang/erlang/Makefile
@@ -7,7 +7,7 @@
PORTNAME= erlang
PORTVERSION= r11b3
-PORTREVISION= 2
+PORTREVISION= 3
PORTEPOCH= 1
CATEGORIES= lang parallel
MASTER_SITES= http://www.erlang.org/download/ \
diff --git a/lang/erlang/files/patch-lib_stdlib_src_io__lib__pretty.erl b/lang/erlang/files/patch-lib_stdlib_src_io__lib__pretty.erl
new file mode 100644
index 000000000000..0f3305e2fd57
--- /dev/null
+++ b/lang/erlang/files/patch-lib_stdlib_src_io__lib__pretty.erl
@@ -0,0 +1,16 @@
+
+$FreeBSD$
+
+--- lib/stdlib/src/io_lib_pretty.erl.orig
++++ lib/stdlib/src/io_lib_pretty.erl
+@@ -159,7 +159,9 @@
+ %% Reuse the list created by io_lib:write_binary()...
+ pp_binary([LT,LT,S,GT,GT], Col, Ll, Ind, LD) ->
+ N = max(8, Ll - Col - LD),
+- [LT,LT,pp_binary(S, N, N, Ind),GT,GT].
++ [LT,LT,pp_binary(S, N, N, Ind),GT,GT];
++pp_binary(S, _Col, _Ll, _Ind, _LD) ->
++ S.
+
+ pp_binary([BS, $, | S], N, N0, Ind) ->
+ Len = length(BS) + 1,
diff --git a/lang/erlang14/Makefile b/lang/erlang14/Makefile
index 5065c6f97900..a94778ac80e2 100644
--- a/lang/erlang14/Makefile
+++ b/lang/erlang14/Makefile
@@ -7,7 +7,7 @@
PORTNAME= erlang
PORTVERSION= r11b3
-PORTREVISION= 2
+PORTREVISION= 3
PORTEPOCH= 1
CATEGORIES= lang parallel
MASTER_SITES= http://www.erlang.org/download/ \
diff --git a/lang/erlang14/files/patch-lib_stdlib_src_io__lib__pretty.erl b/lang/erlang14/files/patch-lib_stdlib_src_io__lib__pretty.erl
new file mode 100644
index 000000000000..0f3305e2fd57
--- /dev/null
+++ b/lang/erlang14/files/patch-lib_stdlib_src_io__lib__pretty.erl
@@ -0,0 +1,16 @@
+
+$FreeBSD$
+
+--- lib/stdlib/src/io_lib_pretty.erl.orig
++++ lib/stdlib/src/io_lib_pretty.erl
+@@ -159,7 +159,9 @@
+ %% Reuse the list created by io_lib:write_binary()...
+ pp_binary([LT,LT,S,GT,GT], Col, Ll, Ind, LD) ->
+ N = max(8, Ll - Col - LD),
+- [LT,LT,pp_binary(S, N, N, Ind),GT,GT].
++ [LT,LT,pp_binary(S, N, N, Ind),GT,GT];
++pp_binary(S, _Col, _Ll, _Ind, _LD) ->
++ S.
+
+ pp_binary([BS, $, | S], N, N0, Ind) ->
+ Len = length(BS) + 1,