Summary: | security/cyrus-sasl2: Fails to configure when CC does not exist (WITHOUT_CLANG): configure:5100: error: no acceptable C compiler found in $PATH | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Evgenii Khramtsov <2khramtsov> | ||||
Component: | Individual Port(s) | Assignee: | Hajimu UMEMOTO <ume> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Some People | CC: | 2khramtsov, danfe, ume | ||||
Priority: | --- | Keywords: | needs-qa | ||||
Version: | Latest | Flags: | bugzilla:
maintainer-feedback?
(ume) koobs: merge-quarterly? |
||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Evgenii Khramtsov
2021-08-02 16:34:21 UTC
A correctly written autoconf build will see and honour CC from the environment, whether or not specific compiler binaries are specified or searched. The patch set CC_FOR_BUILD to CC, but the next line shows a check for the presence of CC (which ports provides). Is there something else involved here? I note the port does not currently use autoreconf or similar, is that a factor? Comment on attachment 226882 [details]
v1 (use "git am")
^Triage: Currently set a maintainer value
(In reply to Kubilay Kocak from comment #1) (repost from #ports) Thanks. autoreconf, and also various workarounds from git log --grep='respect CC' -p don't help. An alternate approach without touching the configure file would be to add BINARY_ALIAS= cc=${CC} ld=${LD} to the Makefile, but the configure is already being patched in the port, and adjusting just CC_FOR_BUILD also adjusts LD (and likely more if needed). Passing CC_FOR_BUILD like ports-mgmt/pkg does via CONFIGURE_ENV= CC_FOR_BUILD="${CC}" also works, patching the configure file is not needed. A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=d4a8178cf538b155170f7e2497fcb57bf95868e2 commit d4a8178cf538b155170f7e2497fcb57bf95868e2 Author: Hajimu UMEMOTO <ume@FreeBSD.org> AuthorDate: 2021-08-07 03:01:25 +0000 Commit: Hajimu UMEMOTO <ume@FreeBSD.org> CommitDate: 2021-08-07 03:08:29 +0000 security/cyrus-sasl2: Respect CC. PR: 257566 security/cyrus-sasl2/Makefile.common | 1 + 1 file changed, 1 insertion(+) Thanks, committed! Thank you! This also allows me to remove the ccache-disabling hack when building this port in the tinderbox. |