#66605 closed defect (fixed)

gts @0.7.6-20121130_1: universal build fails on M1 Mac

Reported by: kencu (Ken) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: gts

Description

checking build system type... arm-apple-darwin22.2.0
checking host system type... Invalid configuration `aarch64-apple-darwin22.2.0': machine `aarch64-apple' not recognized
configure: error: /bin/sh ./config.sub aarch64-apple-darwin22.2.0 failed

the non-universal build succeeds

Attachments (1)

gts-fail.log (10.5 KB) - added by kencu (Ken) 23 months ago.

Download all attachments as: .zip

Change History (3)

Changed 23 months ago by kencu (Ken)

Attachment: gts-fail.log added

comment:1 Changed 23 months ago by kencu (Ken)

adding the usual block works:

platform darwin arm {
    depends_build-append    port:automake

    post-patch {
        # Use newer config.guess and config.sub to support Apple Silicon.
        set automake_dirs [glob -directory ${prefix}/share automake-*]
        set automake_dir [lindex [lsort -command vercmp $automake_dirs] end]
        copy -force ${automake_dir}/config.guess ${automake_dir}/config.sub \
            ${worksrcpath}
    }
}
 % port -v installed gts
The following ports are currently installed:
  gts @0.7.6-20121130_1 requested_variants='' platform='darwin 22' archs='arm64' date='2022-12-29T12:06:07-0800'
  gts @0.7.6-20121130_1+universal (active) requested_variants='+universal' platform='darwin 22' archs='arm64 x86_64' date='2023-01-02T13:41:41-0800'

comment:2 Changed 23 months ago by Ken <21211439+kencu@…>

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.