From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-misc/boinc/, sci-misc/boinc/files/
Date: Mon, 1 Aug 2022 08:35:07 +0000 (UTC) [thread overview]
Message-ID: <1659342878.b19f0b8c64154a126e0cc38af89b4a58434c1c43.flow@gentoo> (raw)
commit: b19f0b8c64154a126e0cc38af89b4a58434c1c43
Author: Sven Eden <sven.eden <AT> prydeworx <DOT> com>
AuthorDate: Wed Jul 27 11:41:27 2022 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Mon Aug 1 08:34:38 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b19f0b8c
sci-misc/boinc: Simplify the init script
It is no longer neccessary to maintain CUDA/OpenCL symlinks.
[ flow: remove sed which became effectless ]
Signed-off-by: Sven Eden <sven.eden <AT> prydeworx.com>
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
Modified-by: Florian Schmaus <flow <AT> gentoo.org>
sci-misc/boinc/boinc-7.20.2-r2.ebuild | 1 -
sci-misc/boinc/boinc-9999.ebuild | 1 -
sci-misc/boinc/files/boinc.init.in | 49 -----------------------------------
3 files changed, 51 deletions(-)
diff --git a/sci-misc/boinc/boinc-7.20.2-r2.ebuild b/sci-misc/boinc/boinc-7.20.2-r2.ebuild
index 4f714313eeff..2375df6ac7ea 100644
--- a/sci-misc/boinc/boinc-7.20.2-r2.ebuild
+++ b/sci-misc/boinc/boinc-7.20.2-r2.ebuild
@@ -161,7 +161,6 @@ src_install() {
rm -r "${ED}"/etc || die "rm failed"
find "${D}" -name '*.la' -delete || die "Removing .la files failed"
- sed -e "s/@libdir@/$(get_libdir)/" "${FILESDIR}"/${PN}.init.in > ${PN}.init || die
newinitd ${PN}.init ${PN}
newconfd "${FILESDIR}"/${PN}.conf ${PN}
}
diff --git a/sci-misc/boinc/boinc-9999.ebuild b/sci-misc/boinc/boinc-9999.ebuild
index b6be3bb05451..9689e98c8f56 100644
--- a/sci-misc/boinc/boinc-9999.ebuild
+++ b/sci-misc/boinc/boinc-9999.ebuild
@@ -164,7 +164,6 @@ src_install() {
rm -r "${ED}"/etc || die "rm failed"
find "${D}" -name '*.la' -delete || die "Removing .la files failed"
- sed -e "s/@libdir@/$(get_libdir)/" "${FILESDIR}"/${PN}.init.in > ${PN}.init || die
newinitd ${PN}.init ${PN}
newconfd "${FILESDIR}"/${PN}.conf ${PN}
}
diff --git a/sci-misc/boinc/files/boinc.init.in b/sci-misc/boinc/files/boinc.init.in
index 9ac9b11a930d..c95b49825fbe 100644
--- a/sci-misc/boinc/files/boinc.init.in
+++ b/sci-misc/boinc/files/boinc.init.in
@@ -41,53 +41,6 @@ create_work_directory() {
return 0
}
-fix_lib_symlinks() {
- local src="$1"
- local tgt="$2"
-
- # If the source does not exist, we can not do anything
- if [ ! -f "${src}" ] ; then
- return 1
- fi
-
- # Check whether the symlink is already there and in order
- if [ -L "${tgt}" ] ; then
- if [ -f "${tgt}" ] ; then
- return 0
- fi
-
- # Remove broken symlink
- if ! rm -f "${tgt}"; then
- eerror "Removing '${tgt}' failed!"
- return 1
- fi
- fi
-
- # symlink the correct path
- if ! ln -snf "${src}" "${tgt}"; then
- eerror "Symlinking '${src}' to '${tgt}' failed!"
- return 1
- fi
-
- return 0
-}
-
-cuda_check() {
- local libsource="/opt/cuda/@libdir@/libcudart.so"
- local libtarget="${RUNTIMEDIR}/libcudart.so"
-
- fix_lib_symlinks "${libsource}" "${libtarget}" || return 1
- return 0
-}
-
-opencl_check() {
- local libsource="/usr/@libdir@/libOpenCL.so"
- local libtarget="${RUNTIMEDIR}/libOpenCL.so"
-
- fix_lib_symlinks "${libsource}" "${libtarget}" || return 1
- return 0
-}
-
env_check() {
# Make sure the configuration is sane
: ${USER:="boinc"}
@@ -120,8 +73,6 @@ env_check() {
start_pre() {
env_check || return 1
create_work_directory || return 1
- cuda_check || einfo "CUDA not supported"
- opencl_check || einfo "OpenCL not supported"
if [ ! -f "${RUNTIMEDIR}/lockfile" ]; then
einfo "File \"${RUNTIMEDIR}/lockfile\" does not exist, assuming first run."
next reply other threads:[~2022-08-01 8:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-01 8:35 Florian Schmaus [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-04-24 20:14 [gentoo-commits] repo/gentoo:master commit in: sci-misc/boinc/, sci-misc/boinc/files/ Florian Schmaus
2022-04-23 10:24 Florian Schmaus
2022-04-23 10:24 Florian Schmaus
2018-04-24 21:57 Andreas Sturmlechner
2017-08-19 19:01 Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1659342878.b19f0b8c64154a126e0cc38af89b4a58434c1c43.flow@gentoo \
--to=flow@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox