diff options
author | 2024-10-16 15:15:51 +0500 | |
---|---|---|
committer | 2024-10-18 19:24:18 +0500 | |
commit | ea3ff719b1395d31235029ef86ae290a5872382c (patch) | |
tree | 42e458631865431bd79947a66e008fc1d18246fb /eclass | |
parent | dev-python/click-aliases: add 1.0.5 (diff) | |
download | guru-ea3ff719b1395d31235029ef86ae290a5872382c.tar.gz guru-ea3ff719b1395d31235029ef86ae290a5872382c.tar.bz2 guru-ea3ff719b1395d31235029ef86ae290a5872382c.zip |
boinc-app.eclass: replace symlink with shell wrapper
Closes: https://bugs.gentoo.org/941384
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/boinc-app.eclass | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/eclass/boinc-app.eclass b/eclass/boinc-app.eclass index 822c84397..1658315cc 100644 --- a/eclass/boinc-app.eclass +++ b/eclass/boinc-app.eclass @@ -88,6 +88,7 @@ boinc-app_add_deps() { local depend rdepend if [[ ${1} == "--wrapper" ]]; then + inherit wrapper rdepend="sci-misc/boinc-wrapper" else depend="sci-misc/boinc" @@ -258,8 +259,8 @@ boinc-app_foreach_wrapper_job() { # # 1. Installs A.xml in the project's root directory, renaming it to B.xml # -# 2. Installs boinc-example_wrapper symlink, which points -# to /usr/bin/boinc-wrapper, in the project's root directory +# 2. Installs boinc-example_wrapper shell script, which executes +# /usr/bin/boinc-wrapper, in the project's root directory # # Example: # @CODE @@ -296,7 +297,9 @@ boinc_install_wrapper() { ) || die "failed to install ${exe:?} wrapper job" rm -f "${T:?}/${job_dest:?}" - dosym -r /usr/bin/boinc-wrapper "$(get_project_root)/${exe:?}" + # Make a shell wrapper instead of symlink to pass filesize validation on + # updates, bug 941384 + make_wrapper "${exe:?}" /usr/bin/boinc-wrapper "" "" "$(get_project_root)" _boinc-app_fix_permissions } |