Summary: | net/openldap26-server: portmaster: build failure: invalid option -- D | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | O. Hartmann <ohartmann> | ||||||
Component: | Individual Port(s) | Assignee: | Xin LI <delphij> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Many People | CC: | ohartmann, tijl | ||||||
Priority: | --- | Flags: | ohartmann:
maintainer-feedback+
|
||||||
Version: | Latest | ||||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Error is: [...] ===> Building for cyrus-sasl-gssapi-2.1.28 cd /usr/ports/security/cyrus-sasl2-gssapi/work/cyrus-sasl-2.1.28/include && gmake : invalid option -- D (In reply to O. Hartmann from comment #1) Sorry, error in comment #1 is of the same type, but with another failing port ... What is `MAKE_ENVI`? We never had it in tree.... According to 572f2361692640bc27729191b1267aa3fcc354a7 it seems that we should be using ${SETENVI} ${WRK_ENV} so the line becomes: ``` ${SETENVI} ${WRK_ENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} \ ``` no? (In reply to Xin LI from comment #3) Sorry,, got confused, it is SETENV and SETENVI, in lines with MAKE_CMD usage. It says "invalid option -- D", but where is that -D coming from? How are you building the port? (In reply to Tijl Coosemans from comment #5) Building with ports-mgmt/portmaster. I recall, that portmaster was the culprit, building/installing via "make" directly worked fine. (In reply to O. Hartmann from comment #6) Is this with portmaster-3.29_2? If so, can you provide the exact command line that causes the problem? It is recent portmaster-3.29_2 (ports-mgmt/portmaster). Usually I perform a "git pull" in /usr/ports: # git pull;portmaster -da That way I found several "foul" ports suffering from the reported issue. I this specific case I was rebuilding everything for xorg, nss-ldap, openldap and so on vi portmaster -df and ran into several ports not building with regard to the reported issue after a while. I could reproduce this behaviour on different CURRENT installation with a clean ports tree and base system (from buildworld buildkernel) installed via: # cd devel/gnulib OR cd net/openldap26-server # make rmconfig config (I do that whenever an issue arises due to some remnants sometimes) # portmaster -d I run then with portmaster into the failure. When performing a make all and then portmaster -dC in most cases everything runs smooth. Hope this info suffice. Addednun: [...] gmake[1]: Leaving directory '/usr/ports/net/openldap26-server/work/openldap-2.6.7/doc' : invalid option -- D Usage: gmake [options] [target] ... The problem is still present. Created attachment 255525 [details] Fix portmaster issue (2nd) Following blindly the application instruction in /usr/ports/CHANGES according to the comment made at 20240229: AUTHOR: tijl@FreeBSD.org replacing all occurences of SETNEV with the suggested form of SETNEVI and additions, the port net/openldap26-server built with portmaster as expected. Same might be true for net/openldap24-server. Hello? A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=21efd158793b5530fb82e507eaa580dcd268e9be commit 21efd158793b5530fb82e507eaa580dcd268e9be Author: O. Hartmann <ohartmann@walstatt.org> AuthorDate: 2024-11-29 08:52:41 +0000 Commit: Xin LI <delphij@FreeBSD.org> CommitDate: 2024-12-06 07:59:13 +0000 net/openldap2[56]-server: Use SETENVI instead of SETENV PR: ports/277954 net/openldap25-server/Makefile | 6 +++--- net/openldap26-server/Makefile | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) |
Created attachment 249480 [details] replace setenv with setenvi On recent CURRENT with recent ports tree, building of port net/openldap2[56]-server fails with bailing out with gmake synopsis. Workaround/solution: repalce ${SETENV} with ${SETENVI} (see patch).