| Summary: | databases/pgpool-II-40: Broken PAM option? | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Tobias Kortkamp <tobik> | ||||
| Component: | Individual Port(s) | Assignee: | Tobias Kortkamp <tobik> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | CC: | tz | ||||
| Priority: | --- | Keywords: | patch | ||||
| Version: | Latest | Flags: | tz:
maintainer-feedback+
|
||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Tobias Kortkamp
2019-01-10 11:22:03 UTC
Hello Tobias, thanks for taking care of this issue. I must admit, that i have no test-case for PÁM and i am not sure, that i understand this fully. Your explanation and your patch seems fine to me. Therefore i approve the patch. Greetings, Torsten A commit references this bug: Author: tobik Date: Wed Jan 16 12:03:14 UTC 2019 New revision: 490475 URL: https://svnweb.freebsd.org/changeset/ports/490475 Log: databases/pgpool-II-40: Unbreak PAM option The PAM option is tangled up with the SSL option in a weird way. SSL_CONFIGURE_WITH is set once before bsd.port.options.mk for enabling SSL support and overwritten again after including bsd.port.options.mk but only when PAM=on. Setting options helper after this point is not really supported, but --with-pam actually makes it to CONFIGURE_ARGS. When options helpers are processed the results are only realized later by make(1). SSL_CONFIGURE_WITH has been defined before including bsd.port.options.mk, so this sort of "works". This, however, is presumably an implementation detail and enabling the PAM option breaks SSL support since SSL_CONFIGURE_WITH is overwritten with a new value: CONFIGURE_ARGS only has --with-pam left and is missing --with-openssl. PAM support does not depend on SSL support. Just switch everything to options helpers to fix this. PR: 234817 Submitted by: tobik Approved by: tz (maintainer) Changes: head/databases/pgpool-II-40/Makefile A commit references this bug: Author: tobik Date: Wed Jan 16 12:06:25 UTC 2019 New revision: 490476 URL: https://svnweb.freebsd.org/changeset/ports/490476 Log: MFH: r490475 databases/pgpool-II-40: Unbreak PAM option The PAM option is tangled up with the SSL option in a weird way. SSL_CONFIGURE_WITH is set once before bsd.port.options.mk for enabling SSL support and overwritten again after including bsd.port.options.mk but only when PAM=on. Setting options helper after this point is not really supported, but --with-pam actually makes it to CONFIGURE_ARGS. When options helpers are processed the results are only realized later by make(1). SSL_CONFIGURE_WITH has been defined before including bsd.port.options.mk, so this sort of "works". This, however, is presumably an implementation detail and enabling the PAM option breaks SSL support since SSL_CONFIGURE_WITH is overwritten with a new value: CONFIGURE_ARGS only has --with-pam left and is missing --with-openssl. PAM support does not depend on SSL support. Just switch everything to options helpers to fix this. PR: 234817 Submitted by: tobik Approved by: tz (maintainer) Approved by: ports-secteam build fix blanket Changes: _U branches/2019Q1/ branches/2019Q1/databases/pgpool-II-40/Makefile (In reply to Torsten Zuehlsdorff from comment #1) Thank you, Torsten. |