[MacPorts] #67637: Universal builds with clang erroneously require clang itself to be universal

MacPorts noreply at macports.org
Fri Jun 16 01:09:34 UTC 2023


#67637: Universal builds with clang erroneously require clang itself to be
universal
------------------------+--------------------
  Reporter:  fhgwright  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  base       |    Version:  2.8.1
Resolution:             |   Keywords:
      Port:             |
------------------------+--------------------

Comment (by jmroot):

 Please provide a log or debug output for an affected install. Base sets
 depends_skip_archcheck for compilers it adds as dependencies, provided
 they support the -arch flag. https://github.com/macports/macports-
 base/blob/v2.8.1/src/port1.0/portconfigure.tcl#L1695-L1699

 Testing with a simple test port shows this is working as intended:
 {{{
 % port installed clang-11
 The following ports are currently installed:
   clang-11 @11.1.0_7+defaultlibcxx+emulated_tls (active)
 % port variants
 testport1 has the variants:
    universal: Build for multiple architectures
 % port deps
 Full Name: testport1 @1.1_0
 Build Dependencies:   clang-11
 Library Dependencies: libcxx
 % sudo port -v build +universal
 Password:
 --->  Computing dependencies for testport1.
 --->  Fetching distfiles for testport1
 --->  Verifying checksums for testport1
 --->  Extracting testport1
 --->  Configuring testport1
 Executing:  cd "/opt/local/var/macports/build/_Users_josh_dports-
 dev_local_test_testport1/testport1/work/testport1-1.1" && echo
 --prefix=/opt/local --disable-dependency-tracking
 --prefix=/opt/local --disable-dependency-tracking
 --->  Building testport1
 }}}

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


More information about the macports-tickets mailing list