From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (unknown [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F33F0158094 for ; Sat, 25 Jun 2022 19:42:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D2B46E09D9; Sat, 25 Jun 2022 19:42:52 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A885DE09DA for ; Sat, 25 Jun 2022 19:42:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7926534164E for ; Sat, 25 Jun 2022 19:42:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DB12550C for ; Sat, 25 Jun 2022 19:42:49 +0000 (UTC) From: "Anna Vyalkova" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anna Vyalkova" Message-ID: <1656186035.4edaff1836f43fc50d07deaf7e4b26fc80608c80.cybertailor@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: eclass/ X-VCS-Repository: repo/proj/guru X-VCS-Files: eclass/boinc-app.eclass X-VCS-Directories: eclass/ X-VCS-Committer: cybertailor X-VCS-Committer-Name: Anna Vyalkova X-VCS-Revision: 4edaff1836f43fc50d07deaf7e4b26fc80608c80 X-VCS-Branch: dev Date: Sat, 25 Jun 2022 19:42:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5826f5b7-2bc5-455d-88bf-3ffe6cbe5fde X-Archives-Hash: 94feeec386b5d4db4f4258b6f6b3132a commit: 4edaff1836f43fc50d07deaf7e4b26fc80608c80 Author: Anna (cybertailor) Vyalkova sysrq in> AuthorDate: Sat Jun 25 19:16:00 2022 +0000 Commit: Anna Vyalkova sysrq in> CommitDate: Sat Jun 25 19:40:35 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4edaff18 boinc-app.eclass: set owner to root Don't let BOINC client remove our files. Signed-off-by: Anna (cybertailor) Vyalkova sysrq.in> eclass/boinc-app.eclass | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/eclass/boinc-app.eclass b/eclass/boinc-app.eclass index 8478c373d..2b6fc5e40 100644 --- a/eclass/boinc-app.eclass +++ b/eclass/boinc-app.eclass @@ -191,7 +191,7 @@ boinc-app_appinfo_prepare() { # doappinfo "${FILESDIR}"/app_info_${PV}.xml # # exeinto $(get_project_root) -# exeopts -m 0755 --owner boinc --group boinc +# exeopts -m 0755 --owner root --group boinc # newexe bin/${PN} example_app_v${PV} # } # @CODE @@ -211,7 +211,7 @@ doappinfo() { ( # subshell to avoid pollution of calling environment insinto $(get_project_root) - insopts -m 0644 --owner boinc --group boinc + insopts -m 0644 --owner root --group boinc doins "${T}"/app_info.xml ) || die "failed to install app_info.xml" @@ -279,7 +279,7 @@ dowrapper() { ( # subshell to avoid pollution of calling environment insinto $(get_project_root) - insopts -m 0644 --owner boinc --group boinc + insopts -m 0644 --owner root --group boinc doins "${T}/${wrapperjob}" dosym -r /usr/bin/boinc-wrapper "$(get_project_root)/${wrapperexe}" ) || die "failed to install '${app}' wrapper app" @@ -330,7 +330,7 @@ boinc-app_pkg_postinst() { boinc-app_pkg_postrm() { debug-print-function ${FUNCNAME} "${@}"] - if [[ -z ${REPLACING_VERSIONS} ]]; then + if [[ -z ${REPLACED_BY_VERSION} ]]; then local gui_rpc_auth="$(get_boincdir)/gui_rpc_auth.cfg" local passwd=$(cat "${EROOT}/${gui_rpc_auth}" 2>/dev/null) if [[ -z ${passwd} ]]; then @@ -341,6 +341,7 @@ boinc-app_pkg_postrm() { elog "to stop current tasks and delete remaining project files:" elog elog "$ boinccmd --passwd ${passwd} --project ${BOINC_MASTER_URL} detach" + elog fi }