Summary: | security/vaultwarden: failes to build with synth | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Matthias Pfaller <matthias.pfaller> | ||||
Component: | Individual Port(s) | Assignee: | Michael Reifenberger <mr> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | CC: | Trond.Endrestol, brnrd | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(mr) |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Matthias Pfaller
2023-04-21 07:17:13 UTC
Created attachment 241650 [details]
Patch for security/vaultwarden/Makefile
Misplaced hyphen and underscore in dependency.
Comment on attachment 241650 [details]
Patch for security/vaultwarden/Makefile
Patch is no longer needed.
The vaultwarden_web-vault-2023.3.0b is still missing: bash# pkg info -F vaultwarden-1.28.0_1.pkg vaultwarden-1.28.0_1 Name : vaultwarden Version : 1.28.0_1 Origin : security/vaultwarden Architecture : FreeBSD:13:amd64 Prefix : /usr/local Categories : security Licenses : GPLv3 Maintainer : mr@FreeBSD.org WWW : https://github.com/dani-garcia/vaultwarden Comment : Bitwarden compatible backend server Options : WEBVAULT : on Shared Libs required: libpq.so.5 libmariadb.so.3 Annotations : FreeBSD_version: 1302001 Flat size : 25.0MiB Description : This is a Bitwarden server API implementation written in Rust compatible with upstream Bitwarden clients*, perfect for self-hosted deployment where running the official resource-heavy service might not be ideal. WWW: https://github.com/dani-garcia/vaultwarden bash# pkg info -dF vaultwarden-1.28.0_1.pkg vaultwarden-1.28.0_1: capnproto-0.10.3 gmp-6.2.1 mariadb104-client-10.4.28 nettle-3.8.1 postgresql13-client-13.10 Could it be that the reason for this is that the directory name is www/vaultwarden-web_vault but in the Makefile there is: PKGNAMESUFFIX= _web-vault Changing PKGNAMESUFFIX didn't help, but I still think it's nicer when it matches the directory name I tried a normal build and got: [root@zork /usr/ports/security/vaultwarden]# make package ===> Building package for vaultwarden-1.28.1 actual-package-depends: dependency on /usr/local/www/vaultwarden/web-vault not registered (normal if it belongs to base) pkg-static: DEBUG: -/ With this I could find the problem. It doesn't seem to be allowed to reference a directory in a _RUN_DEPENDS variable. I changed WEBVAULT_RUN_DEPENDS= ${WWWDIR}/web-vault:www/vaultwarden-web_vault to WEBVAULT_RUN_DEPENDS= ${WWWDIR}/web-vault/404.html:www/vaultwarden-web_vault and now the dependency gets regitered. A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=20532b22c668f1187690f3cc30bd2817e2f4a315 commit 20532b22c668f1187690f3cc30bd2817e2f4a315 Author: Michael Reifenberger <mr@FreeBSD.org> AuthorDate: 2023-04-27 15:51:24 +0000 Commit: Michael Reifenberger <mr@FreeBSD.org> CommitDate: 2023-04-27 15:54:49 +0000 security/vaultwarden: Try to fix "failes to build with synth" RUN_DEPENDS should depend on a file not a directory. PR: 270974 Reported by: Matthias Pfaller security/vaultwarden/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) |