diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2022-09-13 13:13:52 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2022-09-13 13:13:52 -0400 |
commit | f5b7922278ff5b9ef80fbb9650a381b122b549b0 (patch) | |
tree | c8e588b8b291def9c918d38e43ac083b330c9a4e /recipes-networking/cni | |
parent | f6f4f2c1c33dd9d351dc76362ac2157d7c66c5dd (diff) | |
download | meta-virtualization-f5b7922278ff5b9ef80fbb9650a381b122b549b0.tar.gz |
cni: reproducible builds: pass -trimpath
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-networking/cni')
-rw-r--r-- | recipes-networking/cni/cni_git.bb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes-networking/cni/cni_git.bb b/recipes-networking/cni/cni_git.bb index 81988ce3..58431da4 100644 --- a/recipes-networking/cni/cni_git.bb +++ b/recipes-networking/cni/cni_git.bb | |||
@@ -38,10 +38,10 @@ do_compile() { | |||
38 | export GO111MODULE=off | 38 | export GO111MODULE=off |
39 | 39 | ||
40 | cd ${B}/src/github.com/containernetworking/cni/libcni | 40 | cd ${B}/src/github.com/containernetworking/cni/libcni |
41 | ${GO} build | 41 | ${GO} build -trimpath |
42 | 42 | ||
43 | cd ${B}/src/github.com/containernetworking/cni/cnitool | 43 | cd ${B}/src/github.com/containernetworking/cni/cnitool |
44 | ${GO} build | 44 | ${GO} build -trimpath |
45 | 45 | ||
46 | cd ${B}/src/github.com/containernetworking/plugins | 46 | cd ${B}/src/github.com/containernetworking/plugins |
47 | PLUGINS="$(ls -d plugins/meta/*; ls -d plugins/ipam/*; ls -d plugins/main/* | grep -v windows)" | 47 | PLUGINS="$(ls -d plugins/meta/*; ls -d plugins/ipam/*; ls -d plugins/main/* | grep -v windows)" |
@@ -49,7 +49,7 @@ do_compile() { | |||
49 | for p in $PLUGINS; do | 49 | for p in $PLUGINS; do |
50 | plugin="$(basename "$p")" | 50 | plugin="$(basename "$p")" |
51 | echo "building: $p" | 51 | echo "building: $p" |
52 | ${GO} build -o ${B}/plugins/bin/$plugin github.com/containernetworking/plugins/$p | 52 | ${GO} build -trimpath -o ${B}/plugins/bin/$plugin github.com/containernetworking/plugins/$p |
53 | done | 53 | done |
54 | } | 54 | } |
55 | 55 | ||