[MacPorts] #71728: xxhashlib 0.8.3 broken on Rosetta

MacPorts noreply at macports.org
Thu Jan 2 21:26:07 UTC 2025


#71728: xxhashlib 0.8.3 broken on Rosetta
---------------------------+----------------------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.10.5
Resolution:                |   Keywords:  rosetta, snowleopard
      Port:  xxhashlib     |
---------------------------+----------------------------------

Comment (by barracuda156):

 Okay, I guess it is due to this attempt to do a guesswork in the source:
 {{{
 # automatically enable runtime vector dispatch on x86/64 targets
 detect_x86_arch = $(shell $(CC) -dumpmachine | grep -E 'i[3-6]86|x86_64')
 ifneq ($(strip $(call detect_x86_arch)),)
     #note: can be overridden at compile time, by setting DISPATCH=0
     DISPATCH ?= 1
 endif
 }}}

 Here is the fix:
 {{{
 if {${os.arch} eq "i386" && ${configure.build_arch} eq "ppc"} {
     # Only needed for Rosetta, since Makefile misdetects build arch.
     build.cmd-prepend   DISPATCH=0
 }
 }}}

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


More information about the macports-tickets mailing list