Summary: | mail/fetchmail: fails to build if DEFAULT_VERSIONS+=ssl=openssl111 exists in make.conf file | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Gerard Seibert <gerard_seibert> | ||||
Component: | Individual Port(s) | Assignee: | freebsd-ports-bugs (Nobody) <ports-bugs> | ||||
Status: | Closed Works As Intended | ||||||
Severity: | Affects Only Me | CC: | chalpin, mandree, tatsuki_makino | ||||
Priority: | --- | Flags: | chalpin:
maintainer-feedback+
|
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Gerard Seibert
2019-11-23 12:00:46 UTC
Fetchmail pleads "not guilty", as this error is propagating up from gssapi.mk in the ports framework. See https://svnweb.freebsd.org/ports/head/Mk/Uses/gssapi.mk?view=markup#l89 However, DEFAULT_VERSIONS+=ssl=openssl111 was specifically tested with mail/fetchmail in poudriere on 11.3 by adding the following to poudriere's make.conf: DEFAULT_VERSIONS+=ssl=openssl111 OPTIONS_UNSET+= GSSAPI_BASE OPTIONS_SET+= GSSAPI_NONE How are you selecting your GSSAPI option? If you are running `make config` in the port directory, then you are setting the options that will be used to build the port directly on the host, NOT the options that poudriere will see. To set options for poudriere, you will need to use either `poudriere options` or edit poudriere's make.conf. (In reply to Corey Halpin from comment #1) I was using the poudriere "make.conf" file. I added the two additional 'options'. I will test it out later today. You might want to add that to the packaged message. Thanks! Created attachment 209366 [details]
poudriere error log for fetchmail build
I may have spoken too soon. I just tried to build 'fetchmail' using the options you showed, without success. I have 'fetchmail' configured to not use GSSAPI: GSSAPI_NONE=off: Disable GSSAPI support
What else could be wrong?
The error shown in your log is: ====> You must select one and only one option from the GSSAPI single =====> No option was selected (and one must be) This is what I would expect to see if you added OPTIONS_UNSET+= GSSAPI_BASE to your make.conf without also adding OPTIONS_SET+= GSSAPI_NONE And indeed, the included make.conf in the log shows: OPTIONS_SET+= GSSAPI_NONEWITH_CCACHE_BUILD=yes (note that the GSSAPI_NONE option is smashed into WITH_CCACHE. Since GSSAPI_NONEWITH_CCACHE_BUILD=yes is not the name of any valid option, it has no effect.) (In reply to Corey Halpin from comment #4) I have no idea where this is coming from: OPTIONS_SET+= GSSAPI_NONEWITH_CCACHE_BUILD=yes It is not in the make.conf file. This is the poudriere make.conf file: # Possible values: 9.3, 9.4, 9.5, 9.6, 10, 11 DEFAULT_VERSIONS+=pgsql=11 # Possible values: 4.8, 410 DEFAULT_VERSIONS+=samba=410 # Possible values: base, openssl, openssl111, libressl, libressl-devel DEFAULT_VERSIONS+=ssl=openssl111 # Possible values: 5.5, 5.6, 5.7, 8.0, 5.5m, 10.0m, 10.1m, 10.2m, 10.3m, 5.5p, 5.6p, 5.7p, 5.6w DEFAULT_VERSIONS+=mysql=8.0 # Needed for 'fetchmail' OPTIONS_UNSET+= GSSAPI_BASE OPTIONS_SET+= GSSAPI_NONE Is it possible that there is no newline after OPTIONS_SET+= GSSAPI_NONE in your make.conf? If so, that file is not a valid POSIX text file (cf. https://stackoverflow.com/questions/729692/why-should-text-files-end-with-a-newline) and poudriere could quite easily be having trouble processing it. OPTIONS_SET+= GSSAPI_NONEWITH_CCACHE_BUILD=yes It would have erased the line break by mistake. It can be divided into OPTIONS_SET+= GSSAPI_NONE and WITH_CCACHE_BUILD=yes. There are usually 4 options for gssapi. GSSAPI_BASE, GSSAPI_HEIMDAL, GSSAPI_MIT and GSSAPI_NONE. We should write all 4. OPTIONS_SET= GSSAPI_NONE OPTIONS_UNSET= GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT HEIMDAL is similar to that of BASE. SET/UNSET can be applied only to mail/fetchmail as follows. mail_fetchmail_SET= GSSAPI_NONE mail_fetchmail_UNSET= GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT # I am doing something similar at bug 241797 :) ooo, OPTIONS_SET+= GSSAPI_NONEWITH_CCACHE_BUILD=yes is concatenated from /usr/local/etc/poudriere.d/make.conf Tatsuki, since mail/fetchmail is already using the standard GSSAPI options I'm not really following how this bug is similar to 241797. Could you clarify? Sorry, my comment #7 and #8 follows how to change options in make.conf. Regarding how to write make.conf, I wrote bug 241797 about wireshark combined with ports openssl, so I thought it would be useful for fetchmail. Only it. (In reply to Corey Halpin from comment #6) I can confirm that the lack of a 'newline' was the cause of the problem. Given comment #11, I am closing this problem report. |