Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 684074 - sci-misc/boinc - user/group check isn't called in /etc/init.d/boinc create_work_directory() if files exist already
Summary: sci-misc/boinc - user/group check isn't called in /etc/init.d/boinc create_wo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sven Eden
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2019-04-22 00:42 UTC by peter@prh.myzen.co.uk
Modified: 2021-04-06 09:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description peter@prh.myzen.co.uk 2019-04-22 00:42:52 UTC
I have boinc in its own partition, which I mount at /home/prh/boinc. If /etc/conf.d/boinc has user:group set to boinc:boinc and all the files under /home/prh/boinc have owner:group prh:prh, boinc appears to start but crashes a short time later. Or if /etc/conf.d/boinc has user:group set to prh:prh and all the files under /home/prh/boinc have owner:group boinc:boinc, the same happens. Only if /etc/conf.d/boinc and /home/prh/boinc/* ownership agree does boinc run.

Two machines show the same behaviour; one is amd64, the other ~amd64.
Comment 1 peter@prh.myzen.co.uk 2019-04-22 08:25:59 UTC
I should have added that needing correct ownership of files is no surprise; I was reporting that the check for this in the create_work_directory function in /etc/init.d/boinc doesn't catch the error if the files exist already.
Comment 2 Sven Eden 2019-09-24 16:13:24 UTC
Sorry for the long wait, RL got me really busy in the past months.

I'll check that in the next few days!
Comment 3 Sven Eden 2020-11-08 14:11:52 UTC
I am switching to 'GLEP 81' with the next bump. This should already help with such situations.
Comment 4 Larry the Git Cow gentoo-dev 2021-01-18 13:38:39 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9b2020e1f608225d8fd30a16b4b7a1dcb9f214f

commit e9b2020e1f608225d8fd30a16b4b7a1dcb9f214f
Author:     Sven Eden <sven.eden@prydeworx.com>
AuthorDate: 2020-11-08 14:21:41 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2021-01-18 13:37:24 +0000

    sci-misc/boinc: V7.16.14 bump, EAPI 7 upgrade, bug fixes, GLEP 81
    
    This version bump also fixes the following issues:
    * The user/group management is now done according to GLEP 81
    * /etc/init.d/boinc: Ensure correct RUNTIMEDIR permissions (#684074)
    * /etc/init.d/boinc: The password does no longer need to be submitted
    * Hardcoded library search paths to /lib and /usr/lib have been
      removed or switched to /lib64 and /usr/lib64, if those are the
      regular library directories on the emerging system. (#732024)
    
    Closes: https://bugs.gentoo.org/684074
    Closes: https://bugs.gentoo.org/717580
    Closes: https://bugs.gentoo.org/732024
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: Sven Eden <sven.eden@prydeworx.com>
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 sci-misc/boinc/Manifest                            |   1 +
 sci-misc/boinc/boinc-7.16.14.ebuild                | 205 +++++++++++++++++++++
 sci-misc/boinc/files/boinc-7.16-fix_webview.patch  |  11 ++
 .../boinc/files/boinc-7.16-remove-usr_lib.patch    |  89 +++++++++
 sci-misc/boinc/files/boinc.init.in                 |  53 +-----
 sci-misc/boinc/metadata.xml                        |  44 +++--
 6 files changed, 342 insertions(+), 61 deletions(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02bb05185b94caddcc12b46400c9f2721da613f2

commit 02bb05185b94caddcc12b46400c9f2721da613f2
Author:     Sven Eden <sven.eden@prydeworx.com>
AuthorDate: 2020-11-08 14:14:19 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2021-01-18 13:37:24 +0000

    acct-user/boinc: User for sci-misc/boinc
    
    Bug: https://bugs.gentoo.org/684074
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    RepoMan-Options: --force
    Signed-off-by: Sven Eden <sven.eden@prydeworx.com>
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 acct-user/boinc/boinc-0.ebuild | 14 ++++++++++++++
 acct-user/boinc/metadata.xml   | 16 ++++++++++++++++
 2 files changed, 30 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0744d92a4fc52070fef8e6580d2bbc152d51fb87

commit 0744d92a4fc52070fef8e6580d2bbc152d51fb87
Author:     Sven Eden <sven.eden@prydeworx.com>
AuthorDate: 2020-11-08 14:12:14 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2021-01-18 13:37:24 +0000

    acct-group/boinc: Add group for sci-misc/boinc
    
    Bug: https://bugs.gentoo.org/684074
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    RepoMan-Options: --force
    Signed-off-by: Sven Eden <sven.eden@prydeworx.com>
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 acct-group/boinc/boinc-0.ebuild |  9 +++++++++
 acct-group/boinc/metadata.xml   | 16 ++++++++++++++++
 2 files changed, 25 insertions(+)