Bug 276998 - security/vaultwarden: staging fails in poudriere
Summary: security/vaultwarden: staging fails in poudriere
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Michael Reifenberger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-12 09:38 UTC by freebsd
Modified: 2024-02-14 12:40 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (mr)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description freebsd 2024-02-12 09:38:03 UTC
My poudriere fails to build the package, logs end with

===========================================================================
=======================<phase: stage          >============================
===== env: NO_DEPENDS=yes USER=nobody UID=65534 GID=65534
===>  Staging for vaultwarden-1.30.3
/bin/mkdir -p /wrkdirs/usr/ports/security/vaultwarden/work/stage//usr/local/www/vaultwarden/data
/usr/sbin/chown www:www /wrkdirs/usr/ports/security/vaultwarden/work/stage//usr/local/www/vaultwarden/data
chown: /wrkdirs/usr/ports/security/vaultwarden/work/stage//usr/local/www/vaultwarden/data: Operation not permitted
*** Error code 1

Stop.
make: stopped in /usr/ports/security/vaultwarden
=>> Cleaning up wrkdir
===>  Cleaning for vaultwarden-1.30.3
build of security/vaultwarden | vaultwarden-1.30.3 ended at Sun Feb 11 02:00:06 UTC 2024
build time: 00:22:17
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-02-14 12:40:23 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f8bbc28c4040edafe99a2672808247a72b473165

commit f8bbc28c4040edafe99a2672808247a72b473165
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2024-02-14 12:37:58 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2024-02-14 12:39:41 +0000

    security/vaultwarden: fix packaging

    The ownership can and should only be done in the plist never directly
    in the make targets, make package should be executable as a regular user
    and this is the case in the cluster)

    PR:             276998
    Reported by:    freebsd@rail.eu.org

 security/vaultwarden/Makefile  | 1 -
 security/vaultwarden/pkg-plist | 5 +----
 2 files changed, 1 insertion(+), 5 deletions(-)