Opened 4 years ago

Closed 4 years ago

#62447 closed defect (fixed)

octave-1.0 Port Group: OCTAVE_ARCH is empty for noarch ports

Reported by: Schamschula (Marius Schamschula) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port:

Description

As I was upgrading to build against Python 3.9, I ran into the following error:

Executing:  cd "/opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_math_octave-symbolic/octave-symbolic/work/symbolic" && /usr/bin/arch -arch $OCTAVE_ARCH /opt/local/bin/octave-cli -q -f -H --eval 'try; pkg build -verbose -nodeps /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_math_octave-symbolic/octave-symbolic/work/tmp-build /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_math_octave-symbolic/octave-symbolic/work/symbolic-2.9.0.tar.gz; catch; disp(lasterror.message); exit(1); end_try_catch;' 
arch: Unknown architecture: /opt/local/bin/octave-cli
arch: Unknown architecture: q
arch: Unknown architecture: f
arch: Unknown architecture: H
arch: Unknown architecture: eval
Command failed:  cd "/opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_math_octave-symbolic/octave-symbolic/work/symbolic" && /usr/bin/arch -arch $OCTAVE_ARCH /opt/local/bin/octave-cli -q -f -H --eval 'try; pkg build -verbose -nodeps /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_math_octave-symbolic/octave-symbolic/work/tmp-build /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_math_octave-symbolic/octave-symbolic/work/symbolic-2.9.0.tar.gz; catch; disp(lasterror.message); exit(1); end_try_catch;' 

I edited a local copy of octave-1.0.tcl to manually set the arch, both for pre-configure and pre-destroot stages, and the installation went as expected.

Thus, it seems, $OCTAVE_ARCH never is set for the configure.cmd and destroot.cmd.

Attachments (1)

octave-symbolic-main.log (333.1 KB) - added by Schamschula (Marius Schamschula) 4 years ago.

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by Schamschula (Marius Schamschula)

Attachment: octave-symbolic-main.log added

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

Summary: octave-1.0 Port Group: OCTAVE_ARCH is empty.octave-1.0 Port Group: OCTAVE_ARCH is empty for noarch ports

Should OCTAVE_ARCH be set at all when building something noarch? If so, to what?

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

Perhaps not!

If I comment out supported_archs noarch it builds as normal.

Removing /usr/bin/arch -arch \$OCTAVE_ARCH if noarch is set does the trick.

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

Resolution: fixed
Status: assignedclosed

In 6f02d4c65c7ddf52441331dfb7267c0c8bbcbfa8/macports-ports (master):

octave-1.0.tcl: correctly handle noarch

Closes: #62447

Note: See TracTickets for help on using tickets.