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 | 32 |
1 files changed, 16 insertions, 16 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 3bd756449e..564837c7cd 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 | |||
@@ -32,7 +32,7 @@ Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> | |||
32 | 2 files changed, 36 insertions(+), 10 deletions(-) | 32 | 2 files changed, 36 insertions(+), 10 deletions(-) |
33 | 33 | ||
34 | 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 |
35 | index c7c2e83..4a90d9d 100644 | 35 | index c7c2e83e0f..4a90d9da5c 100644 |
36 | --- a/src/cmd/go/internal/envcmd/env.go | 36 | --- a/src/cmd/go/internal/envcmd/env.go |
37 | +++ b/src/cmd/go/internal/envcmd/env.go | 37 | +++ b/src/cmd/go/internal/envcmd/env.go |
38 | @@ -189,7 +189,7 @@ func ExtraEnvVarsCostly() []cfg.EnvVar { | 38 | @@ -189,7 +189,7 @@ func ExtraEnvVarsCostly() []cfg.EnvVar { |
@@ -45,10 +45,10 @@ index c7c2e83..4a90d9d 100644 | |||
45 | // Should not happen - b.CFlags was given an empty package. | 45 | // Should not happen - b.CFlags was given an empty package. |
46 | fmt.Fprintf(os.Stderr, "go: invalid cflags: %v\n", err) | 46 | fmt.Fprintf(os.Stderr, "go: invalid cflags: %v\n", err) |
47 | 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 |
48 | index 13d2a78..e3dd486 100644 | 48 | index e05471b06c..9724cd07d0 100644 |
49 | --- a/src/cmd/go/internal/work/exec.go | 49 | --- a/src/cmd/go/internal/work/exec.go |
50 | +++ b/src/cmd/go/internal/work/exec.go | 50 | +++ b/src/cmd/go/internal/work/exec.go |
51 | @@ -231,6 +231,8 @@ func (b *Builder) Do(ctx context.Context, root *Action) { | 51 | @@ -232,6 +232,8 @@ func (b *Builder) Do(ctx context.Context, root *Action) { |
52 | writeActionGraph() | 52 | writeActionGraph() |
53 | } | 53 | } |
54 | 54 | ||
@@ -57,7 +57,7 @@ index 13d2a78..e3dd486 100644 | |||
57 | // buildActionID computes the action ID for a build action. | 57 | // buildActionID computes the action ID for a build action. |
58 | func (b *Builder) buildActionID(a *Action) cache.ActionID { | 58 | func (b *Builder) buildActionID(a *Action) cache.ActionID { |
59 | p := a.Package | 59 | p := a.Package |
60 | @@ -252,7 +254,7 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID { | 60 | @@ -253,7 +255,7 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID { |
61 | if p.Module != nil { | 61 | if p.Module != nil { |
62 | 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) |
63 | } | 63 | } |
@@ -66,7 +66,7 @@ index 13d2a78..e3dd486 100644 | |||
66 | // The Go compiler always hides the exact value of $GOROOT | 66 | // The Go compiler always hides the exact value of $GOROOT |
67 | // when building things in GOROOT. | 67 | // when building things in GOROOT. |
68 | // | 68 | // |
69 | @@ -284,9 +286,9 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID { | 69 | @@ -285,9 +287,9 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID { |
70 | } | 70 | } |
71 | if len(p.CgoFiles)+len(p.SwigFiles)+len(p.SwigCXXFiles) > 0 { | 71 | if len(p.CgoFiles)+len(p.SwigFiles)+len(p.SwigCXXFiles) > 0 { |
72 | fmt.Fprintf(h, "cgo %q\n", b.toolID("cgo")) | 72 | fmt.Fprintf(h, "cgo %q\n", b.toolID("cgo")) |
@@ -78,7 +78,7 @@ index 13d2a78..e3dd486 100644 | |||
78 | 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) |
79 | // Include the C compiler tool ID so that if the C | 79 | // Include the C compiler tool ID so that if the C |
80 | // compiler changes we rebuild the package. | 80 | // compiler changes we rebuild the package. |
81 | @@ -294,14 +296,14 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID { | 81 | @@ -295,14 +297,14 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID { |
82 | fmt.Fprintf(h, "CC ID=%q\n", ccID) | 82 | fmt.Fprintf(h, "CC ID=%q\n", ccID) |
83 | } | 83 | } |
84 | if len(p.CXXFiles)+len(p.SwigCXXFiles) > 0 { | 84 | if len(p.CXXFiles)+len(p.SwigCXXFiles) > 0 { |
@@ -95,7 +95,7 @@ index 13d2a78..e3dd486 100644 | |||
95 | fmt.Fprintf(h, "FC=%q %q\n", fcExe, fflags) | 95 | fmt.Fprintf(h, "FC=%q %q\n", fcExe, fflags) |
96 | if fcID, _, err := b.gccToolID(fcExe[0], "f95"); err == nil { | 96 | if fcID, _, err := b.gccToolID(fcExe[0], "f95"); err == nil { |
97 | fmt.Fprintf(h, "FC ID=%q\n", fcID) | 97 | fmt.Fprintf(h, "FC ID=%q\n", fcID) |
98 | @@ -318,7 +320,7 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID { | 98 | @@ -319,7 +321,7 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID { |
99 | } | 99 | } |
100 | } | 100 | } |
101 | if p.Internal.BuildInfo != nil { | 101 | if p.Internal.BuildInfo != nil { |
@@ -104,7 +104,7 @@ index 13d2a78..e3dd486 100644 | |||
104 | } | 104 | } |
105 | 105 | ||
106 | // Configuration specific to compiler toolchain. | 106 | // Configuration specific to compiler toolchain. |
107 | @@ -3137,8 +3139,25 @@ func envList(key, def string) []string { | 107 | @@ -2679,8 +2681,25 @@ func envList(key, def string) []string { |
108 | return args | 108 | return args |
109 | } | 109 | } |
110 | 110 | ||
@@ -131,7 +131,7 @@ index 13d2a78..e3dd486 100644 | |||
131 | if cppflags, err = buildFlags("CPPFLAGS", "", p.CgoCPPFLAGS, checkCompilerFlags); err != nil { | 131 | if cppflags, err = buildFlags("CPPFLAGS", "", p.CgoCPPFLAGS, checkCompilerFlags); err != nil { |
132 | return | 132 | return |
133 | } | 133 | } |
134 | @@ -3154,6 +3173,13 @@ func (b *Builder) CFlags(p *load.Package) (cppflags, cflags, cxxflags, fflags, l | 134 | @@ -2696,6 +2715,13 @@ func (b *Builder) CFlags(p *load.Package) (cppflags, cflags, cxxflags, fflags, l |
135 | if ldflags, err = buildFlags("LDFLAGS", defaultCFlags, p.CgoLDFLAGS, checkLinkerFlags); err != nil { | 135 | if ldflags, err = buildFlags("LDFLAGS", defaultCFlags, p.CgoLDFLAGS, checkLinkerFlags); err != nil { |
136 | return | 136 | return |
137 | } | 137 | } |
@@ -145,24 +145,24 @@ index 13d2a78..e3dd486 100644 | |||
145 | 145 | ||
146 | return | 146 | return |
147 | } | 147 | } |
148 | @@ -3169,7 +3195,7 @@ var cgoRe = lazyregexp.New(`[/\\:]`) | 148 | @@ -2713,7 +2739,7 @@ func (b *Builder) cgo(a *Action, cgoExe, objdir string, pcCFLAGS, pcLDFLAGS, cgo |
149 | |||
150 | func (b *Builder) cgo(a *Action, cgoExe, objdir string, pcCFLAGS, pcLDFLAGS, cgofiles, gccfiles, gxxfiles, mfiles, ffiles []string) (outGo, outObj []string, err error) { | ||
151 | p := a.Package | 149 | p := a.Package |
150 | sh := b.Shell(a) | ||
151 | |||
152 | - cgoCPPFLAGS, cgoCFLAGS, cgoCXXFLAGS, cgoFFLAGS, cgoLDFLAGS, err := b.CFlags(p) | 152 | - cgoCPPFLAGS, cgoCFLAGS, cgoCXXFLAGS, cgoFFLAGS, cgoLDFLAGS, err := b.CFlags(p) |
153 | + cgoCPPFLAGS, cgoCFLAGS, cgoCXXFLAGS, cgoFFLAGS, cgoLDFLAGS, err := b.CFlags(p, false) | 153 | + cgoCPPFLAGS, cgoCFLAGS, cgoCXXFLAGS, cgoFFLAGS, cgoLDFLAGS, err := b.CFlags(p, false) |
154 | if err != nil { | 154 | if err != nil { |
155 | return nil, nil, err | 155 | return nil, nil, err |
156 | } | 156 | } |
157 | @@ -3725,7 +3751,7 @@ func (b *Builder) swigIntSize(objdir string) (intsize string, err error) { | 157 | @@ -3268,7 +3294,7 @@ func (b *Builder) swigOne(a *Action, file, objdir string, pcCFLAGS []string, cxx |
158 | p := a.Package | ||
159 | sh := b.Shell(a) | ||
158 | 160 | ||
159 | // Run SWIG on one SWIG input file. | ||
160 | func (b *Builder) swigOne(a *Action, p *load.Package, file, objdir string, pcCFLAGS []string, cxx bool, intgosize string) (outGo, outC string, err error) { | ||
161 | - cgoCPPFLAGS, cgoCFLAGS, cgoCXXFLAGS, _, _, err := b.CFlags(p) | 161 | - cgoCPPFLAGS, cgoCFLAGS, cgoCXXFLAGS, _, _, err := b.CFlags(p) |
162 | + cgoCPPFLAGS, cgoCFLAGS, cgoCXXFLAGS, _, _, err := b.CFlags(p, false) | 162 | + cgoCPPFLAGS, cgoCFLAGS, cgoCXXFLAGS, _, _, err := b.CFlags(p, false) |
163 | if err != nil { | 163 | if err != nil { |
164 | return "", "", err | 164 | return "", "", err |
165 | } | 165 | } |
166 | -- | 166 | -- |
167 | 2.43.0 | 167 | 2.44.0 |
168 | 168 | ||