boinc-client: fix hostname reproducibility

The generated svn_version.h contains the hostname which makes it
non-reproducible. Fix this by removing the hostname from the file.

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit f23543fb6e)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
This commit is contained in:
Yoann Congal 2025-09-30 22:18:26 +13:00 committed by Gyorgy Sarvari
parent b4cdea2f82
commit 48e1f70ef0

View File

@ -78,7 +78,10 @@ do_install:prepend() {
}
do_install:append() {
sed -i -e 's#${S}##g' ${D}${includedir}/boinc/svn_version.h
# By default, the SVN_VERSION definition looks like:
#define SVN_VERSION "$SHA1 [https://github.com/BOINC/boinc] ($HOSTNAME:$S [client_release/7/7.20]) [Server-Release: server_release/1.1/1.1.0]"
# ... remove HOSTNAME and S to make it reproducible.
sed -i -e '/^#define SVN_VERSION /s#(\S*:\S* \[#([#g' ${D}${includedir}/boinc/svn_version.h
}
SYSTEMD_SERVICE:${PN} = "boinc-client.service"