diff options
author | Yoann Congal <yoann.congal@smile.fr> | 2025-06-30 10:27:17 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-06-30 09:48:59 -0700 |
commit | f23543fb6e8dc8af1f50058ed5739c4419e462db (patch) | |
tree | 641a35622dceca1ec31e7e95cd9f61aa9d405444 | |
parent | a8dfd10600035a799abae03178fc7054582ea43d (diff) | |
download | meta-openembedded-f23543fb6e8dc8af1f50058ed5739c4419e462db.tar.gz |
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>
-rw-r--r-- | meta-oe/recipes-extended/boinc/boinc-client_7.20.5.bb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta-oe/recipes-extended/boinc/boinc-client_7.20.5.bb b/meta-oe/recipes-extended/boinc/boinc-client_7.20.5.bb index b2cfd9b874..3e626f32d9 100644 --- a/meta-oe/recipes-extended/boinc/boinc-client_7.20.5.bb +++ b/meta-oe/recipes-extended/boinc/boinc-client_7.20.5.bb | |||
@@ -77,7 +77,10 @@ do_install:prepend() { | |||
77 | } | 77 | } |
78 | 78 | ||
79 | do_install:append() { | 79 | do_install:append() { |
80 | sed -i -e 's#${S}##g' ${D}${includedir}/boinc/svn_version.h | 80 | # By default, the SVN_VERSION definition looks like: |
81 | #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]" | ||
82 | # ... remove HOSTNAME and S to make it reproducible. | ||
83 | sed -i -e '/^#define SVN_VERSION /s#(\S*:\S* \[#([#g' ${D}${includedir}/boinc/svn_version.h | ||
81 | } | 84 | } |
82 | 85 | ||
83 | SYSTEMD_SERVICE:${PN} = "boinc-client.service" | 86 | SYSTEMD_SERVICE:${PN} = "boinc-client.service" |