[MacPorts] #66532: MoltenVK: Add universal variant; don't install universal unless universal variant is selected (was: moltenvk should be labeled as a universal variant)

MacPorts noreply at macports.org
Thu Dec 22 22:25:38 UTC 2022


#66532: MoltenVK: Add universal variant; don't install universal unless universal
variant is selected
----------------------------+------------------------
  Reporter:  MichaelGDev48  |      Owner:  ryandesign
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:
Resolution:                 |   Keywords:
      Port:  MoltenVK       |
----------------------------+------------------------
Changes (by ryandesign):

 * status:  new => assigned
 * cc: Gcenx (added)
 * keywords:  vk, vulkan, loader, moltenvk =>
 * owner:  (none) => ryandesign
 * port:  moltenvk, vulkan-loader => MoltenVK


Old description:

> When compiling and installing moltenvk it provides a universal variant
> but isn't labeled as such which causes issues for packages you try to
> build with universal label , that depend on it like vulkan-loader
> Error: Cannot install vulkan-loader for the archs 'arm64 x86_64' because
> Error: its dependency MoltenVK is only installed for the arch 'arm64'
> Error: and does not have a universal variant.
>
> file /opt/local/lib/libMoltenVK.dylib
> /opt/local/lib/libMoltenVK.dylib: Mach-O universal binary with 2
> architectures: [x86_64:Mach-O 64-bit dynamically linked shared library
> x86_64] [arm64]
> /opt/local/lib/libMoltenVK.dylib (for architecture x86_64):     Mach-O
> 64-bit dynamically linked shared library x86_64
> /opt/local/lib/libMoltenVK.dylib (for architecture arm64):      Mach-O
> 64-bit dynamically linked shared library arm64

New description:

 When compiling and installing moltenvk it provides a universal variant but
 isn't labeled as such which causes issues for packages you try to build
 with universal label , that depend on it like vulkan-loader
 {{{
 Error: Cannot install vulkan-loader for the archs 'arm64 x86_64' because
 Error: its dependency MoltenVK is only installed for the arch 'arm64'
 Error: and does not have a universal variant.
 }}}

 {{{
 file /opt/local/lib/libMoltenVK.dylib
 /opt/local/lib/libMoltenVK.dylib: Mach-O universal binary with 2
 architectures: [x86_64:Mach-O 64-bit dynamically linked shared library
 x86_64] [arm64]
 /opt/local/lib/libMoltenVK.dylib (for architecture x86_64):     Mach-O
 64-bit dynamically linked shared library x86_64
 /opt/local/lib/libMoltenVK.dylib (for architecture arm64):      Mach-O
 64-bit dynamically linked shared library arm64
 }}}

--

Comment:

 So,

 1. MoltenVK should have a universal variant, and
 2. MoltenVK should not install universal files when the universal variant
 has not been requested

 I'm assigning the ticket to myself since I'm the maintainer but I'm not
 working on this issue; others are welcome to.

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


More information about the macports-tickets mailing list