7
0
forked from pool/go1.14
Files
go1.14/reproducible.patch
Jeff Kowalczyk ec55f285d1 Accepting request 1167936 from home:bmwiedemann:branches:devel:languages:go
Add reproducible.patch to avoid build-time race (boo#1102408)

Workaround variations in build results between -j1 and -j4 builds.

Compilation time on 4-core VM increases from 211 to 322 seconds,
while 1-core VM remains at 519 s.

This patch applies to go1.15, go1.14 and go1.13 packages.

OBS-URL: https://build.opensuse.org/request/show/1167936
OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/go1.14?expand=0&rev=45
2024-04-16 11:54:00 +00:00

24 lines
826 B
Diff

Date: 2024-04-15
Author: Bernhard M. Wiedemann <bmwiedemann suse de>
Workaround variations in build results between -j1 and -j4 builds.
Compilation time on 4-core VM increases from 211 to 322 seconds,
while 1-core VM remains at 519 s.
This patch applies to go1.15, go1.14 and go1.13 packages.
Index: go/src/make.bash
===================================================================
--- go.orig/src/make.bash
+++ go/src/make.bash
@@ -209,7 +209,7 @@ fi
# Run dist bootstrap to complete make.bash.
# Bootstrap installs a proper cmd/dist, built with the new toolchain.
# Throw ours, built with Go 1.4, away after bootstrap.
-./cmd/dist/dist bootstrap $buildall $vflag $GO_DISTFLAGS "$@"
+taskset 1 ./cmd/dist/dist bootstrap $buildall $vflag $GO_DISTFLAGS "$@"
rm -f ./cmd/dist/dist
# DO NOT ADD ANY NEW CODE HERE.