[MacPorts] #66618: grep fails to build as a universal2 build during the config stage

MacPorts noreply at macports.org
Wed Jan 4 19:47:02 UTC 2023


#66618: grep fails to build as a universal2 build during the config stage
----------------------------+-------------------------
  Reporter:  MichaelGDev48  |      Owner:  Schamschula
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.8.99
Resolution:                 |   Keywords:
      Port:  grep           |
----------------------------+-------------------------

Comment (by kencu):

 There is something about building universal in "one pass" on M1 Macs that
 causes certain tests to fail, like this one:
 {{{
 checking for socklen_t... no
 checking for socklen_t equivalent... configure: error: Cannot find a type
 to use in place of socklen_t
 }}}

 I haven't looked closely enough to see why this won't work when building
 with multiple arches, but it often fails.

 Using the muniversal 1.1 PG gets past it though:
 {{{
 % port -v installed grep
 The following ports are currently installed:
   grep @3.8_1+universal (active) requested_variants='+universal'
 platform='darwin 22' archs='arm64 x86_64' date='2023-01-04T11:44:40-0800'
 }}}

 I presume this builds universal on same-arch systems (x86_64/i386) as is,
 so adding muniversal 1.1 might be only done for newer systems... but that
 sounds like too much trouble to me, so perhaps just add it always, I would
 think.

-- 
Ticket URL: <https://trac.macports.org/ticket/66618#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list