Merge branch '21692-go-packages-no-build-id'
[arvados.git] / 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+=(