Opened 6 months ago

Closed 6 months ago

#68750 closed defect (fixed)

py38-cvxopt: can't read "env(USER)": no such variable

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: jjstickel (Jonathan Stickel)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: py38-cvxopt

Description

https://build.macports.org/builders/ports-11_arm64-builder/builds/108342/steps/install-port/logs/stdio

DEBUG: Executing proc-pre-org.macports.destroot-destroot-2
Error: Failed to destroot py38-cvxopt: can't read "env(USER)": no such variable
DEBUG: Error code: NONE
DEBUG: Backtrace: can't read "env(USER)": no such variable
    while executing
"$pre $targetname"

Change History (3)

comment:1 Changed 6 months ago by jmroot (Joshua Root)

Yeah, USER is definitely not guaranteed to be set in the environment. Depending on what you're trying to do, you probably want either $macportsuser or ${install.user}.

comment:2 Changed 6 months ago by jjstickel (Jonathan Stickel)

Oops, that pre-destroot code block was errantly included. Glad it was caught here so that it can be removed.

PR submitted: https://github.com/macports/macports-ports/pull/21492

comment:3 Changed 6 months ago by jjstickel (Jonathan Stickel)

Resolution: fixed
Status: assignedclosed

In adb6d9cfd8d147126dc8885593753b746e4d7d40/macports-ports (master):

py-cvxopt: remove unnecessary pre-destroot code block

  • remove unnecessary pre-destroot code block

Closes: #68750

Note: See TracTickets for help on using tickets.