index : bootstrap32 | |
Archlinux32 bootstrap scripts | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | i486-stage4/autoconf/DESCR | 11 | ||||
-rw-r--r-- | i486-stage4/autoconf/autoconf-2.69-go-test-351-OpenFile.patch | 21 |
diff --git a/i486-stage4/autoconf/DESCR b/i486-stage4/autoconf/DESCR new file mode 100644 index 0000000..a678d74 --- /dev/null +++ b/i486-stage4/autoconf/DESCR @@ -0,0 +1,11 @@ +# testing the go macros requires a running go actually +sed -i "/checkdepends=(/s/checkdepends=('gcc-go' //" PKGBUILD + +# on 64-bit a known bug exists: https://bugs.archlinux.org/task/55142?project=1&string=autoconf +# 38: autotools and whitespace in file names FAILED (tools.at:1310) +# => curiously not happending on this version!? + +# autoconf: 351 Go: https://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00000.html +sed -i 's@source=(@source=(autoconf-2.69-go-test-351-OpenFile.patch @' PKGBUILD +sed -i "s@md5sums=(@md5sums=('a7e1e05d4372b2ef5fae29b59e677e7d' @" PKGBUILD +sed -i '/patch -p1.*libtool/ a \ patch -Np1 -i "${srcdir}/autoconf-2.69-go-test-351-OpenFile.patch"' PKGBUILD diff --git a/i486-stage4/autoconf/autoconf-2.69-go-test-351-OpenFile.patch b/i486-stage4/autoconf/autoconf-2.69-go-test-351-OpenFile.patch new file mode 100644 index 0000000..b69f423 --- /dev/null +++ b/i486-stage4/autoconf/autoconf-2.69-go-test-351-OpenFile.patch @@ -0,0 +1,21 @@ +diff -rauN autoconf-2.69/lib/autoconf/go.m4 autoconf-2.69-go-test-351-OpenFile-patch/lib/autoconf/go.m4 +--- autoconf-2.69/lib/autoconf/go.m4 2012-01-21 14:46:39.000000000 +0100 ++++ autoconf-2.69-go-test-351-OpenFile-patch/lib/autoconf/go.m4 2018-03-16 16:46:23.323273368 +0100 +@@ -61,7 +61,7 @@ + # 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 @@ + "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) + } |