Opened 4 years ago

Closed 4 years ago

#60100 closed defect (fixed)

mod_gnutls: Portfile error

Reported by: mf2k (Frank Schima) Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: mod_gnutls

Description

$ port info mod_gnutls
Error: Unable to open port: can't read "PythonBranch": no such variable

Change History (5)

comment:1 Changed 4 years ago by Schamschula (Marius Schamschula)

I cannot reproduce this error:

$ port info mod_gnutls
mod_gnutls @0.10.0 (www, security, crypto)
Variants:             apache22, memcache, python37, [+]python38, universal

Description:          mod_gnutls uses the GnuTLS library to provide SSL 3.0, TLS 1.0 and TLS 1.1 encryption for Apache HTTPD. It is similar to mod_ssl in purpose, but does not use OpenSSL.
Homepage:             https://mod.gnutls.org

Build Dependencies:   pkgconfig, autoconf, automake, libtool
Library Dependencies: apache2, gnutls, python38
Platforms:            darwin
License:              Apache-2
Maintainers:          Email: mps@macports.org, GitHub: Schamschula
                      Policy: openmaintainer

comment:2 Changed 4 years ago by mf2k (Frank Schima)

Try this:

port info mod_gnutls +python37

comment:3 Changed 4 years ago by jmroot (Joshua Root)

Yeah, the variable is used before the variant bodies are evaluated, so it's undefined if it wasn't set in the if block.

Another point this raises: adding the dependency appears to be the only place the PythonBranch variable is used. How are you telling the software which python version to use?

comment:4 Changed 4 years ago by Schamschula (Marius Schamschula)

Indeed!

Unfortunately, after I specify the python interpreter, configure gives me the mistaken error:

checking whether /opt/local/bin/python3.8 version is >= 3... no

Still looking into that.

comment:5 Changed 4 years ago by Schamschula (Marius Schamschula)

Resolution: fixed
Status: assignedclosed

In 789567135dca85be88ab1b969668bcd1caedf553/macports-ports (master):

mod_gnutls 0.10.0: fix error in calling python

Closes: #60100

Note: See TracTickets for help on using tickets.