[MacPorts] #20728: When building +universal, warn if dependencies don't have +universal
#20728: When building +universal, warn if dependencies don't have +universal -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: 1.7.1 Keywords: | Port: -------------------------------------+-------------------------------------- When building a port with the universal variant, MacPorts base should print a warning if any of that port's library or runtime dependencies have a universal variant but the dependency is not installed with that variant. Most ports would fail to build in this case if their dependencies aren't universal. But in [ticket:20727 some situations] the build might silently succeed, but not be usable. Either way, a concrete error message from MacPorts about the issue would be good, e.g. {{{ Warning: Before building fontconfig with the universal variant, you should build libiconv with the universal variant }}} -- Ticket URL: <http://trac.macports.org/ticket/20728> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20728: When building +universal, warn if dependencies don't have +universal -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: 1.7.1 Keywords: | Port: -------------------------------------+-------------------------------------- Comment(by jmr@…): Ideally there would be a general check that the arch(s) being built for matches what all the deps were installed with, and we would try to add the needed arch(s) if not present. -- Ticket URL: <http://trac.macports.org/ticket/20728#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20728: When building +universal, warn if dependencies don't have +universal -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: MacPorts Future Component: base | Version: 1.7.1 Keywords: | Port: -------------------------------------+-------------------------------------- Changes (by ryandesign@…): * milestone: => MacPorts Future Comment: Replying to [comment:1 jmr@…]:
Ideally there would be a general check that the arch(s) being built for matches what all the deps were installed with, Ah yes. That would be a better generalization. When building for an arch (or archs), bail if dependencies don't have that arch (those archs). This implies we need a way for ports to store in the registry what archs they were built for.
Need an exception for noarch ports: they should record not the build arch but "noarch". This implies we need a way for ports to indicate they are noarch -- #12206, also #20739.
and we would try to add the needed arch(s) if not present. I would skip that suggestion for now; it adds more complication, and this is already complicated enough. We can do that later, separately. For now it would be fine to bail with a good error message.
-- Ticket URL: <http://trac.macports.org/ticket/20728#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20728: When building a port for a set of archs, warn if dependencies don't have at least those archs -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: MacPorts Future Component: base | Version: 1.7.1 Keywords: | Port: -------------------------------------+-------------------------------------- Comment(by ryandesign@…): Updating title to reflect that what really matters is the set of architectures, regardless of whether that came about through the universal variant or the build_arch setting. -- Ticket URL: <http://trac.macports.org/ticket/20728#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20728: When building a port for a set of archs, warn if dependencies don't have at least those archs -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: MacPorts Future Component: base | Version: 1.7.1 Keywords: | Port: -------------------------------------+-------------------------------------- Comment(by ryandesign@…): I added a new portgroup in r58377 -- "archcheck" -- that can be used by individual ports to detect and warn about this problem. This is no substitute for a proper solution in base that would automatically check all ports. -- Ticket URL: <http://trac.macports.org/ticket/20728#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20728: When building a port for a set of archs, warn if dependencies don't have at least those archs -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: MacPorts 1.9.0 Component: base | Version: 1.7.1 Keywords: | Port: -------------------------------------+-------------------------------------- Changes (by jmr@…): * milestone: MacPorts Future => MacPorts 1.9.0 -- Ticket URL: <http://trac.macports.org/ticket/20728#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20728: When building a port for a set of archs, warn if dependencies don't have at least those archs --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: enhancement | Status: closed Priority: Normal | Milestone: MacPorts 1.9.0 Component: base | Version: 1.7.1 Resolution: fixed | Keywords: Port: | --------------------------------------+------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: r65087 -- Ticket URL: <http://trac.macports.org/ticket/20728#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts