[MacPorts] #64900: nspr and nss do not respect macports.conf arch settings on 10.6.8 Rosetta

MacPorts noreply at macports.org
Thu Aug 4 10:03:43 UTC 2022


#64900: nspr and nss do not respect macports.conf arch settings on 10.6.8 Rosetta
---------------------------+-------------------------------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.2
Resolution:                |   Keywords:  powerpc, snowleopard, rosetta
      Port:  nspr, nss     |
---------------------------+-------------------------------------------

Comment (by barracuda156):

 Ok, this patch apparently fixes the problem:
 {{{
 --- nss/coreconf/Darwin.mk.orig 2022-07-21 19:11:57.000000000 +0545
 +++ nss/coreconf/Darwin.mk      2022-08-04 15:40:28.000000000 +0545
 @@ -29,16 +29,29 @@
  CCC             += -arch i386
  override CPU_ARCH      = x86
  endif
 -else
 +endif
 +
  ifeq (arm,$(CPU_ARCH))
  # Nothing set for arm currently.
 -else
 +endif
 +
 +ifeq (,$(filter-out ppc ppc64,$(CPU_ARCH)))
  OS_REL_CFLAGS  = -Dppc
 +ifdef USE_64
 +CC              += -arch ppc64
 +CCC             += -arch ppc64
 +else
  CC              += -arch ppc
  CCC             += -arch ppc
  endif
  endif

 +ifeq (,$(filter-out ppc ppc64,$(CPU_ARCH)))
 +ifneq ($(NSS_DISABLE_CRYPTO_VSX),0)
 +       NSS_DISABLE_CRYPTO_VSX=1
 +endif
 +endif
 +
  ifneq (,$(MACOS_SDK_DIR))
      GCC_VERSION_FULL := $(shell $(CC) -dumpversion)
      GCC_VERSION_MAJOR := $(shell echo $(GCC_VERSION_FULL) | awk -F. '{
 print $$1 }')
 }}}

 Then `gcc-4.2` can be used, no need to blacklist.
 Cannot test `ppc64` now, but likely this is correct.

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


More information about the macports-tickets mailing list