Opened 14 years ago

Closed 14 years ago

#25615 closed defect (fixed)

postfix-2.7.1 build error when selecting variant dovecot_sasl

Reported by: Markus.Ueberall@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: haspatch Cc: jmroot (Joshua Root)
Port: postfix

Description

With changeset [68844], a number of "set CCARGS [concat ${CCARGS} ...]" blocks got replaced by the more elegant "lappend CCARGS ..." equivalent--however, the dovecot_sasl variant definition below is problematic:

variant dovecot_sasl description "add Dovecot SASL support " {
    lappend CCARGS  -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\\\\"dovecot\\\\\\"
}

According to the logfile, this becomes

:info:build /usr/bin/gcc-4.2 -DNO_PCRE -arch x86_64 -DUSE_TLS -DHAS_SSL -I/opt/local/include -DUSE_CYRUS_SASL -DUSE_SASL_AUTH -I/opt/local/include/sasl -DUSE_SASL_AUTH {-DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\"} -DBIND_8_COMPAT -DNO_NETINFO -DRESOLVE_H_NEEDS_ARPA_NAMESER_COMPAT_H -DNO_KQUEUE -g -O2 -I. -DMACOSX -c alldig.c
:info:build /usr/bin/gcc-4.2 -DNO_PCRE -arch x86_64 -DUSE_TLS -DHAS_SSL -I/opt/local/include -DUSE_CYRUS_SASL -DUSE_SASL_AUTH -I/opt/local/include/sasl -DUSE_SASL_AUTH {-DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\"} -DBIND_8_COMPAT -DNO_NETINFO -DRESOLVE_H_NEEDS_ARPA_NAMESER_COMPAT_H -DNO_KQUEUE -g -O2 -I. -DMACOSX -c allprint.c
:info:build i686-apple-darwin10-gcc-4.2.1: {-DDEF_SERVER_SASL_TYPE=\"dovecot\"}: No such file or directory
:info:build i686-apple-darwin10-gcc-4.2.1: {-DDEF_SERVER_SASL_TYPE=\"dovecot\"}: No such file or directory

Removing the numerous escape chars did the trick (cf. attached diff).

Attachments (1)

Portfile-postfix.diff (484 bytes) - added by Markus.Ueberall@… 14 years ago.
Portfile diff (removes escapes which prevented proper build for variant dovecot_sasl)

Download all attachments as: .zip

Change History (2)

Changed 14 years ago by Markus.Ueberall@…

Attachment: Portfile-postfix.diff added

Portfile diff (removes escapes which prevented proper build for variant dovecot_sasl)

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

Thanks. Not sure why it was like that in the first place. r69582

Note: See TracTickets for help on using tickets.