diff --git a/golang-1.2.1-i686-cgo-test-failure.patch b/golang-1.2.1-i686-cgo-test-failure.patch new file mode 100644 index 0000000..3ec543c --- /dev/null +++ b/golang-1.2.1-i686-cgo-test-failure.patch @@ -0,0 +1,13 @@ +Index: go/src/run.bash +=================================================================== +--- go.orig/src/run.bash ++++ go/src/run.bash +@@ -105,7 +105,7 @@ go run $GOROOT/test/run.go - . || exit 1 + (xcd ../misc/cgo/test + go test -ldflags '-linkmode=auto' || exit 1 + # linkmode=internal fails on dragonfly since errno is a TLS relocation. +-[ "$GOHOSTOS" == dragonfly ] || go test -ldflags '-linkmode=internal' || exit 1 ++#[ "$GOHOSTOS" == dragonfly ] || go test -ldflags '-linkmode=internal' || exit 1 + case "$GOHOSTOS-$GOARCH" in + openbsd-386 | openbsd-amd64) + # test linkmode=external, but __thread not supported, so skip testtls. diff --git a/golang.spec b/golang.spec index b33dc38..a4af927 100644 --- a/golang.spec +++ b/golang.spec @@ -82,11 +82,15 @@ Patch2: ./golang-1.2-skipCpuProfileTest.patch # https://code.google.com/p/go/source/detail?r=a15f344a9efa Patch3: golang-1.2-archive_tar-xattr.patch -# skip test that causes a SIGABRT on fc21 +# skip test that causes a SIGABRT on fc21 (bz1086900) # until this test/issue is fixed # https://bugzilla.redhat.com/show_bug.cgi?id=1086900 Patch5: golang-1.2.1-disable_testsetgid.patch +# skip this test, which fails in i686 on fc21 inside mock/chroot (bz1087621) +# https://bugzilla.redhat.com/show_bug.cgi?id=1087621 +Patch6: golang-1.2.1-i686-cgo-test-failure.patch + # Having documentation separate was broken Obsoletes: %{name}-docs < 1.1-4 @@ -378,6 +382,9 @@ cp %SOURCE400 src/pkg/archive/tar/testdata/xattrs.tar # SIGABRT bz1086900 %patch5 -p1 +# cgo/test bz1087621 +%patch6 -p1 + # create a [dirty] gcc wrapper to allow us to build with our own flags # (dirty because it is spoofing 'gcc' since CC value is stored in the go tool) # TODO: remove this and just set CFLAGS/LDFLAGS once upstream supports it @@ -786,10 +793,10 @@ fi %changelog -* Fri Apr 10 2014 Vincent Batts 1.2.1-5 +* Fri Apr 11 2014 Vincent Batts 1.2.1-5 - skip test that is causing a SIGABRT on fc21 bz1086900 -* Thu Apr 09 2014 Vincent Batts 1.2.1-4 +* Thu Apr 10 2014 Vincent Batts 1.2.1-4 - fixing file and directory ownership bz1010713 * Wed Apr 09 2014 Vincent Batts 1.2.1-3