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>
This commit is contained in:
Yoann Congal 2025-06-30 10:27:17 +02:00 committed by Khem Raj
parent a8dfd10600
commit f23543fb6e
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -77,7 +77,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"