diff options
Diffstat (limited to 'meta/recipes-devtools/go/go/0001-cmd-go-make-content-based-hash-generation-less-pedan.patch')
-rw-r--r-- | meta/recipes-devtools/go/go/0001-cmd-go-make-content-based-hash-generation-less-pedan.patch | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/meta/recipes-devtools/go/go/0001-cmd-go-make-content-based-hash-generation-less-pedan.patch b/meta/recipes-devtools/go/go/0001-cmd-go-make-content-based-hash-generation-less-pedan.patch index 9a2551031a..3bd756449e 100644 --- a/meta/recipes-devtools/go/go/0001-cmd-go-make-content-based-hash-generation-less-pedan.patch +++ b/meta/recipes-devtools/go/go/0001-cmd-go-make-content-based-hash-generation-less-pedan.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 10766ca6f4007b96e3f6bf4fb496e5df74397eb9 Mon Sep 17 00:00:00 2001 | 1 | From 9a6c5040cbcd88b10ceb8ceaebc8d6158c086670 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Mon, 28 Mar 2022 10:59:03 -0700 | 3 | Date: Mon, 28 Mar 2022 10:59:03 -0700 |
4 | Subject: [PATCH 1/9] cmd/go: make content-based hash generation less pedantic | 4 | Subject: [PATCH 1/9] cmd/go: make content-based hash generation less pedantic |
@@ -25,16 +25,17 @@ Upstream-Status: Inappropriate [OE specific] | |||
25 | Signed-off-by: Alex Kube <alexander.j.kube@gmail.com> | 25 | Signed-off-by: Alex Kube <alexander.j.kube@gmail.com> |
26 | Signed-off-by: Matt Madison <matt@madison.systems> | 26 | Signed-off-by: Matt Madison <matt@madison.systems> |
27 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 27 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
28 | Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> | ||
28 | --- | 29 | --- |
29 | src/cmd/go/internal/envcmd/env.go | 2 +- | 30 | src/cmd/go/internal/envcmd/env.go | 2 +- |
30 | src/cmd/go/internal/work/exec.go | 44 ++++++++++++++++++++++++------- | 31 | src/cmd/go/internal/work/exec.go | 44 ++++++++++++++++++++++++------- |
31 | 2 files changed, 36 insertions(+), 10 deletions(-) | 32 | 2 files changed, 36 insertions(+), 10 deletions(-) |
32 | 33 | ||
33 | diff --git a/src/cmd/go/internal/envcmd/env.go b/src/cmd/go/internal/envcmd/env.go | 34 | diff --git a/src/cmd/go/internal/envcmd/env.go b/src/cmd/go/internal/envcmd/env.go |
34 | index 66ef5ce..fb7448a 100644 | 35 | index c7c2e83..4a90d9d 100644 |
35 | --- a/src/cmd/go/internal/envcmd/env.go | 36 | --- a/src/cmd/go/internal/envcmd/env.go |
36 | +++ b/src/cmd/go/internal/envcmd/env.go | 37 | +++ b/src/cmd/go/internal/envcmd/env.go |
37 | @@ -183,7 +183,7 @@ func ExtraEnvVarsCostly() []cfg.EnvVar { | 38 | @@ -189,7 +189,7 @@ func ExtraEnvVarsCostly() []cfg.EnvVar { |
38 | } | 39 | } |
39 | }() | 40 | }() |
40 | 41 | ||
@@ -44,10 +45,10 @@ index 66ef5ce..fb7448a 100644 | |||
44 | // Should not happen - b.CFlags was given an empty package. | 45 | // Should not happen - b.CFlags was given an empty package. |
45 | fmt.Fprintf(os.Stderr, "go: invalid cflags: %v\n", err) | 46 | fmt.Fprintf(os.Stderr, "go: invalid cflags: %v\n", err) |
46 | diff --git a/src/cmd/go/internal/work/exec.go b/src/cmd/go/internal/work/exec.go | 47 | diff --git a/src/cmd/go/internal/work/exec.go b/src/cmd/go/internal/work/exec.go |
47 | index 67d1193..62e1774 100644 | 48 | index 13d2a78..e3dd486 100644 |
48 | --- a/src/cmd/go/internal/work/exec.go | 49 | --- a/src/cmd/go/internal/work/exec.go |
49 | +++ b/src/cmd/go/internal/work/exec.go | 50 | +++ b/src/cmd/go/internal/work/exec.go |
50 | @@ -223,6 +223,8 @@ func (b *Builder) Do(ctx context.Context, root *Action) { | 51 | @@ -231,6 +231,8 @@ func (b *Builder) Do(ctx context.Context, root *Action) { |
51 | writeActionGraph() | 52 | writeActionGraph() |
52 | } | 53 | } |
53 | 54 | ||
@@ -56,7 +57,7 @@ index 67d1193..62e1774 100644 | |||
56 | // buildActionID computes the action ID for a build action. | 57 | // buildActionID computes the action ID for a build action. |
57 | func (b *Builder) buildActionID(a *Action) cache.ActionID { | 58 | func (b *Builder) buildActionID(a *Action) cache.ActionID { |
58 | p := a.Package | 59 | p := a.Package |
59 | @@ -244,7 +246,7 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID { | 60 | @@ -252,7 +254,7 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID { |
60 | if p.Module != nil { | 61 | if p.Module != nil { |
61 | fmt.Fprintf(h, "module %s@%s\n", p.Module.Path, p.Module.Version) | 62 | fmt.Fprintf(h, "module %s@%s\n", p.Module.Path, p.Module.Version) |
62 | } | 63 | } |
@@ -65,7 +66,7 @@ index 67d1193..62e1774 100644 | |||
65 | // The Go compiler always hides the exact value of $GOROOT | 66 | // The Go compiler always hides the exact value of $GOROOT |
66 | // when building things in GOROOT. | 67 | // when building things in GOROOT. |
67 | // | 68 | // |
68 | @@ -276,9 +278,9 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID { | 69 | @@ -284,9 +286,9 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID { |
69 | } | 70 | } |
70 | if len(p.CgoFiles)+len(p.SwigFiles)+len(p.SwigCXXFiles) > 0 { | 71 | if len(p.CgoFiles)+len(p.SwigFiles)+len(p.SwigCXXFiles) > 0 { |
71 | fmt.Fprintf(h, "cgo %q\n", b.toolID("cgo")) | 72 | fmt.Fprintf(h, "cgo %q\n", b.toolID("cgo")) |
@@ -77,7 +78,7 @@ index 67d1193..62e1774 100644 | |||
77 | fmt.Fprintf(h, "CC=%q %q %q %q\n", ccExe, cppflags, cflags, ldflags) | 78 | fmt.Fprintf(h, "CC=%q %q %q %q\n", ccExe, cppflags, cflags, ldflags) |
78 | // Include the C compiler tool ID so that if the C | 79 | // Include the C compiler tool ID so that if the C |
79 | // compiler changes we rebuild the package. | 80 | // compiler changes we rebuild the package. |
80 | @@ -286,14 +288,14 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID { | 81 | @@ -294,14 +296,14 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID { |
81 | fmt.Fprintf(h, "CC ID=%q\n", ccID) | 82 | fmt.Fprintf(h, "CC ID=%q\n", ccID) |
82 | } | 83 | } |
83 | if len(p.CXXFiles)+len(p.SwigCXXFiles) > 0 { | 84 | if len(p.CXXFiles)+len(p.SwigCXXFiles) > 0 { |
@@ -94,16 +95,16 @@ index 67d1193..62e1774 100644 | |||
94 | fmt.Fprintf(h, "FC=%q %q\n", fcExe, fflags) | 95 | fmt.Fprintf(h, "FC=%q %q\n", fcExe, fflags) |
95 | if fcID, _, err := b.gccToolID(fcExe[0], "f95"); err == nil { | 96 | if fcID, _, err := b.gccToolID(fcExe[0], "f95"); err == nil { |
96 | fmt.Fprintf(h, "FC ID=%q\n", fcID) | 97 | fmt.Fprintf(h, "FC ID=%q\n", fcID) |
97 | @@ -310,7 +312,7 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID { | 98 | @@ -318,7 +320,7 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID { |
98 | } | 99 | } |
99 | } | 100 | } |
100 | if p.Internal.BuildInfo != "" { | 101 | if p.Internal.BuildInfo != nil { |
101 | - fmt.Fprintf(h, "modinfo %q\n", p.Internal.BuildInfo) | 102 | - fmt.Fprintf(h, "modinfo %q\n", p.Internal.BuildInfo.String()) |
102 | + //fmt.Fprintf(h, "modinfo %q\n", p.Internal.BuildInfo) | 103 | + //fmt.Fprintf(h, "modinfo %q\n", p.Internal.BuildInfo.String()) |
103 | } | 104 | } |
104 | 105 | ||
105 | // Configuration specific to compiler toolchain. | 106 | // Configuration specific to compiler toolchain. |
106 | @@ -2989,8 +2991,25 @@ func envList(key, def string) []string { | 107 | @@ -3137,8 +3139,25 @@ func envList(key, def string) []string { |
107 | return args | 108 | return args |
108 | } | 109 | } |
109 | 110 | ||
@@ -130,7 +131,7 @@ index 67d1193..62e1774 100644 | |||
130 | if cppflags, err = buildFlags("CPPFLAGS", "", p.CgoCPPFLAGS, checkCompilerFlags); err != nil { | 131 | if cppflags, err = buildFlags("CPPFLAGS", "", p.CgoCPPFLAGS, checkCompilerFlags); err != nil { |
131 | return | 132 | return |
132 | } | 133 | } |
133 | @@ -3006,6 +3025,13 @@ func (b *Builder) CFlags(p *load.Package) (cppflags, cflags, cxxflags, fflags, l | 134 | @@ -3154,6 +3173,13 @@ func (b *Builder) CFlags(p *load.Package) (cppflags, cflags, cxxflags, fflags, l |
134 | if ldflags, err = buildFlags("LDFLAGS", defaultCFlags, p.CgoLDFLAGS, checkLinkerFlags); err != nil { | 135 | if ldflags, err = buildFlags("LDFLAGS", defaultCFlags, p.CgoLDFLAGS, checkLinkerFlags); err != nil { |
135 | return | 136 | return |
136 | } | 137 | } |
@@ -144,7 +145,7 @@ index 67d1193..62e1774 100644 | |||
144 | 145 | ||
145 | return | 146 | return |
146 | } | 147 | } |
147 | @@ -3021,7 +3047,7 @@ var cgoRe = lazyregexp.New(`[/\\:]`) | 148 | @@ -3169,7 +3195,7 @@ var cgoRe = lazyregexp.New(`[/\\:]`) |
148 | 149 | ||
149 | func (b *Builder) cgo(a *Action, cgoExe, objdir string, pcCFLAGS, pcLDFLAGS, cgofiles, gccfiles, gxxfiles, mfiles, ffiles []string) (outGo, outObj []string, err error) { | 150 | func (b *Builder) cgo(a *Action, cgoExe, objdir string, pcCFLAGS, pcLDFLAGS, cgofiles, gccfiles, gxxfiles, mfiles, ffiles []string) (outGo, outObj []string, err error) { |
150 | p := a.Package | 151 | p := a.Package |
@@ -153,7 +154,7 @@ index 67d1193..62e1774 100644 | |||
153 | if err != nil { | 154 | if err != nil { |
154 | return nil, nil, err | 155 | return nil, nil, err |
155 | } | 156 | } |
156 | @@ -3577,7 +3603,7 @@ func (b *Builder) swigIntSize(objdir string) (intsize string, err error) { | 157 | @@ -3725,7 +3751,7 @@ func (b *Builder) swigIntSize(objdir string) (intsize string, err error) { |
157 | 158 | ||
158 | // Run SWIG on one SWIG input file. | 159 | // Run SWIG on one SWIG input file. |
159 | func (b *Builder) swigOne(a *Action, p *load.Package, file, objdir string, pcCFLAGS []string, cxx bool, intgosize string) (outGo, outC string, err error) { | 160 | func (b *Builder) swigOne(a *Action, p *load.Package, file, objdir string, pcCFLAGS []string, cxx bool, intgosize string) (outGo, outC string, err error) { |
@@ -163,5 +164,5 @@ index 67d1193..62e1774 100644 | |||
163 | return "", "", err | 164 | return "", "", err |
164 | } | 165 | } |
165 | -- | 166 | -- |
166 | 2.30.2 | 167 | 2.43.0 |
167 | 168 | ||