git: 4f1eca57e2f0 - main - devel/dcd-server: fix poudriere build with BUILD_AS_NON_ROOT=yes

Piotr Kubaj <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <[email protected]>
The branch main has been updated by pkubaj:

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

commit 4f1eca57e2f0ae5a7fc932b4913d0e806f3d93d2
Author:     Piotr Kubaj <[email protected]>
AuthorDate: 2026-08-12 07:14:55 +0000
Commit:     Piotr Kubaj <[email protected]>
CommitDate: 2026-08-12 12:54:28 +0000

    devel/dcd-server: fix poudriere build with BUILD_AS_NON_ROOT=yes
    
    ===>  Building for dcd-client-0.16.2
         Warning Warning: License in sub-package dcd:dsymbol is different than its parent package, this is discouraged.
         Warning Invalid source/import path: /wrkdirs/usr/ports/devel/dcd-client/work/DCD-0.16.2/bin
        Starting Performing "release" build using /usr/local/bin/ldmd2 for ppc64.
    Error /nonexistent: Permission denied
    *** Error code 2
---
 devel/dcd-server/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/devel/dcd-server/Makefile b/devel/dcd-server/Makefile
index b4796212dfe5..ce62b4352fb6 100644
--- a/devel/dcd-server/Makefile
+++ b/devel/dcd-server/Makefile
@@ -35,9 +35,9 @@ post-patch:
 	${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/dub.json
 
 do-build:
-	@cd ${WRKSRC} && DC=${DC} ${DUB_CMD} --config=${DUB_CONFIG}
+	@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} DC=${DC} ${DUB_CMD} --config=${DUB_CONFIG}
 .if ${PKGNAMESUFFIX} == "-server"
-	@cd ${WRKSRC} && DC=${DC} ${DUB_CMD} --config=library
+	@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} DC=${DC} ${DUB_CMD} --config=library
 .endif
 
 do-install:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.