Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829761 - www-apps/gitea: is broken b/c user "git" is not created
Summary: www-apps/gitea: is broken b/c user "git" is not created
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Ryan Tsien
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-12-21 09:39 UTC by Toralf Förster
Modified: 2023-11-21 14:38 UTC (History)
4 users (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 Toralf Förster gentoo-dev 2021-12-21 09:39:06 UTC
At the tinderbox I'm faced with failures like

/usr/lib/tmpfiles.d/gitea.conf:1: Failed to resolve user 'git': No such process

if I run "systemd-tmpfiles --create". Whilst the tinderbox setup for "systemd" images is far from being perfect this looks like an error.
Comment 1 Larry the Git Cow gentoo-dev 2023-11-21 14:38:03 UTC
The bug has been closed via the following commit(s):

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

commit 7fb39ef76095d92e575957a40533ef0ada3e68c7
Author:     Ryan Qian <i@bitbili.net>
AuthorDate: 2023-11-17 12:22:18 +0000
Commit:     Yixun Lan <dlan@gentoo.org>
CommitDate: 2023-11-21 14:27:00 +0000

    www-apps/gitea: fix the execution logic of 'tmpfiles_process'
    
    It is not guaranteed that the git user and group always exist (due
    to the acct USE Flag), but for convenience, the tmpfile uses the git
    user and group by default.
    
    To avoid installation errors, a condition needs to be added here:
    if there is no git user or group, the installation of tmpfile will be
    skipped and the user will be notified to handle it by themselves.
    
    This commit won't affect the already installed gitea, so no new revision.
    
    Closes: https://bugs.gentoo.org/829761
    Closes: https://bugs.gentoo.org/858668
    Closes: https://github.com/gentoo/gentoo/pull/33867
    
    Signed-off-by: Ryan Qian <i@bitbili.net>
    Signed-off-by: Yixun Lan <dlan@gentoo.org>

 www-apps/gitea/gitea-1.20.4.ebuild | 21 +++++++++++++++++++--
 www-apps/gitea/gitea-1.20.5.ebuild | 21 +++++++++++++++++++--
 www-apps/gitea/gitea-1.21.0.ebuild | 21 +++++++++++++++++++--
 3 files changed, 57 insertions(+), 6 deletions(-)