21692: Don't include build id links in Go packages
authorBrett Smith <brett.smith@curii.com>
Fri, 12 Apr 2024 18:21:20 +0000 (14:21 -0400)
committerBrett Smith <brett.smith@curii.com>
Fri, 12 Apr 2024 18:57:44 +0000 (14:57 -0400)
See comment for rationale.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

build/run-library.sh

index 6380e1cb19fafe18e2ea5034f88d9fc938abc07c..03d99b13274d233e8d3548a8631ded2566c3be6b 100755 (executable)
@@ -262,6 +262,13 @@ package_go_binary_worker() {
       binpath="$GOPATH/bin/linux_${target_arch}/${basename}"
     fi
 
+    case "$package_format" in
+        # As of April 2024 we package identical Go binaries under different
+        # packages and names. This upsets the build id database, so don't
+        # register ourselves there.
+        rpm) switches+=(--rpm-rpmbuild-define="_build_id_links none") ;;
+    esac
+
     systemd_unit="$WORKSPACE/${src_path}/${prog}.service"
     if [[ -e "${systemd_unit}" ]]; then
         switches+=(