[meta-virtualization][PATCH 07/15] umoci: set go buildid to empty for improving reproducibility

<[email protected]>
Newsgroups org.yoctoproject.lists.meta-virtualization
Message-ID <[email protected]>
From: Changqing Li <[email protected]>

Signed-off-by: Changqing Li <[email protected]>
---
 recipes-containers/umoci/umoci_git.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/recipes-containers/umoci/umoci_git.bb b/recipes-containers/umoci/umoci_git.bb
index f148b7fa..e26b4ead 100644
--- a/recipes-containers/umoci/umoci_git.bb
+++ b/recipes-containers/umoci/umoci_git.bb
@@ -50,7 +50,7 @@ do_compile:class-native () {
     # the executable (coredump)
     # https://forum.snapcraft.io/t/patchelf-broke-my-binary/4928
     # https://github.com/NixOS/patchelf/issues/146
-    oe_runmake umoci.static
+    oe_runmake umoci.static BASE_LDFLAGS="-s -w -X \${PROJECT}.gitCommit=\${COMMIT} -buildid="
 
     # so the common install can find our binary
     cp umoci.static umoci
@@ -73,7 +73,7 @@ do_compile() {
     export BUILD_FLAGS="-trimpath"
     cd ${S}
 
-    oe_runmake umoci
+    oe_runmake umoci BASE_LDFLAGS="-s -w -X \${PROJECT}.gitCommit=\${COMMIT} -buildid="
 }
 
 do_install() {
-- 
2.34.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.