Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#66327 closed defect (fixed)

gawk @5.2.1_0 - Failed to configure gawk: gettext-runtime must be installed with +universal

Reported by: FaradayLight (Faraday Light) Owned by: Mark Mentovai <mark@…>
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: gawk gettext-runtime arm64 Ventura Cc: ryandesign (Ryan Carsten Schmidt), Schamschula (Marius Schamschula)
Port: gawk

Description

I am getting the above error for the first time.

Attempted to install after a clean-up but still the same issue.

I have not previously had to specify "universal" for installs (there was however a previous issue with MacPorts default config specifying universal variants as the default):

--->  Fetching distfiles for gawk
--->  Verifying checksums for gawk
--->  Extracting gawk
--->  Configuring gawk
Error: Failed to configure gawk: gettext-runtime must be installed with +universal.
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gawk/gawk/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port gawk failed

Attachments (1)

main.log (19.1 KB) - added by FaradayLight (Faraday Light) 2 years ago.

Download all attachments as: .zip

Change History (4)

Changed 2 years ago by FaradayLight (Faraday Light)

Attachment: main.log added

comment:2 Changed 2 years ago by Mark Mentovai <mark@…>

Owner: set to Mark Mentovai <mark@…>
Resolution: fixed
Status: newclosed

In 3c1ace9d14ed87685e8104301ff091df3519a97d/macports-ports (master):

gawk: reenable arm64 build

Upstream gawk has added a “PMA” (persistent memory allocator) feature
that unfortunately requires gawk to be built as a non-PIE
(position-independent executable). Non-PIE is not supported at all on
mac-arm64, so the upstream default as of
https://git.savannah.gnu.org/cgit/gawk.git/commit?id=0d9727bcd312da8555ca59942790adfee5fcafea
is to forcibly build gawk as mac-x86_64, requiring it to run under
Rosetta binary translation on mac-arm64. Informed opinion: the
upstream’s approach is misguided for multiple reasons.

The recent update of the gawk port to 5.2.1 at 42141802c346 honored this
upstream default, causing problems for mac-arm64 systems without Rosetta
installed, and problems upgrading the gawk port to this new version in
the likely case that the existing gettext-runtime dependency was not
installed as its universal variant.

To reenable the arm64 build of gawk, configure it to disable its PMA
feature, allowing it to be built as PIE and thus as a proper arm64
executable.

As non-PIE is deprecated when targeting macOS ≥ 12 on any architecture,
disable gawk’s PMA feature in that case as well.

Closes: #66327

comment:3 Changed 2 years ago by FaradayLight (Faraday Light)

Confirmed: Release 5.2.1_1 resolved the issue.

Note: See TracTickets for help on using tickets.