Stefano Lattarini
2013-01-02 18:10:15 UTC
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".
http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=5766355051ff8844adf47f34445172eaa9045723
The branch, master has been updated
via 5766355051ff8844adf47f34445172eaa9045723 (commit)
from adc8482c102058ea9db2f22db90e0c995d35d174 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 5766355051ff8844adf47f34445172eaa9045723
Author: Stefano Lattarini <***@gmail.com>
Date: Wed Jan 2 17:01:05 2013 +0100
go: fix checks for about I/O functions
Reference:
<http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00000.html>
* lib/autoconf/go.m4 (_AC_LANG_IO_PROGRAM(Go), AC_LANG_INT_SAVE): Here,
correctly use 'os.OpenFile()' <http://golang.org/pkg/os/#OpenFile>
rather than 'os.Open()' <http://golang.org/pkg/os/#Open> (which has
more restricted semantics and incompatible signature).
Signed-off-by: Stefano Lattarini <***@gmail.com>
-----------------------------------------------------------------------
Summary of changes:
lib/autoconf/go.m4 | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/autoconf/go.m4 b/lib/autoconf/go.m4
index bf215bf..bf1a4ae 100644
--- a/lib/autoconf/go.m4
+++ b/lib/autoconf/go.m4
@@ -61,7 +61,7 @@ $2
# Produce source that performs I/O.
m4_define([_AC_LANG_IO_PROGRAM(Go)],
[AC_LANG_PROGRAM([import ( "fmt"; "os" )],
-[f, err := os.Open("conftest.out", os.O_CREATE|os.O_WRONLY, 0777)
+[f, err := os.OpenFile("conftest.out", os.O_CREATE|os.O_WRONLY, 0777)
if err != nil {
fmt.Println(err)
os.Exit(1)
@@ -107,7 +107,7 @@ import (
"os"
)
],
-[f, err := os.Open("conftest.val", os.O_CREATE|os.O_WRONLY, 0777)
+[f, err := os.OpenFile("conftest.val", os.O_CREATE|os.O_WRONLY, 0777)
if err != nil {
os.Exit(1)
}
hooks/post-receive
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".
http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=5766355051ff8844adf47f34445172eaa9045723
The branch, master has been updated
via 5766355051ff8844adf47f34445172eaa9045723 (commit)
from adc8482c102058ea9db2f22db90e0c995d35d174 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 5766355051ff8844adf47f34445172eaa9045723
Author: Stefano Lattarini <***@gmail.com>
Date: Wed Jan 2 17:01:05 2013 +0100
go: fix checks for about I/O functions
Reference:
<http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00000.html>
* lib/autoconf/go.m4 (_AC_LANG_IO_PROGRAM(Go), AC_LANG_INT_SAVE): Here,
correctly use 'os.OpenFile()' <http://golang.org/pkg/os/#OpenFile>
rather than 'os.Open()' <http://golang.org/pkg/os/#Open> (which has
more restricted semantics and incompatible signature).
Signed-off-by: Stefano Lattarini <***@gmail.com>
-----------------------------------------------------------------------
Summary of changes:
lib/autoconf/go.m4 | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/autoconf/go.m4 b/lib/autoconf/go.m4
index bf215bf..bf1a4ae 100644
--- a/lib/autoconf/go.m4
+++ b/lib/autoconf/go.m4
@@ -61,7 +61,7 @@ $2
# Produce source that performs I/O.
m4_define([_AC_LANG_IO_PROGRAM(Go)],
[AC_LANG_PROGRAM([import ( "fmt"; "os" )],
-[f, err := os.Open("conftest.out", os.O_CREATE|os.O_WRONLY, 0777)
+[f, err := os.OpenFile("conftest.out", os.O_CREATE|os.O_WRONLY, 0777)
if err != nil {
fmt.Println(err)
os.Exit(1)
@@ -107,7 +107,7 @@ import (
"os"
)
],
-[f, err := os.Open("conftest.val", os.O_CREATE|os.O_WRONLY, 0777)
+[f, err := os.OpenFile("conftest.val", os.O_CREATE|os.O_WRONLY, 0777)
if err != nil {
os.Exit(1)
}
hooks/post-receive
--
GNU Autoconf source repository
GNU Autoconf source repository