[MacPorts] #32260: libpixman: libpng14.dylib, file was built for unsupported file format which is not the architecture being linked

MacPorts noreply at macports.org
Sat Jan 14 11:41:55 PST 2012


#32260: libpixman: libpng14.dylib, file was built for unsupported file format which
is not the architecture being linked
---------------------------------+------------------------------------------
  Reporter:  brian@…             |       Owner:  macports-tickets@…                   
      Type:  defect              |      Status:  reopened                             
  Priority:  Normal              |   Milestone:                                       
 Component:  ports               |     Version:  2.0.3                                
Resolution:                      |    Keywords:                                       
      Port:  libpixman           |  
---------------------------------+------------------------------------------

Comment(by schwern@…):

 Upon further investigation it appears that libpng is an optional
 dependency of libpixman.  libpixman itself will try to use it if it is
 installed, detected by autoconf.  This is a problem as Macports doesn't
 appear to have a way to declare an optional dependency.  This bug breaks
 automated +universal installs of any of libpixman's dependents, which
 leads all the way up to gtk2.

 I can suggest a few of solutions.  First is to just declare libpng as a
 dependency.  Lots of stuff already depend on libpng, including cairo and
 gtk2, and it's pretty small.

 Second is to include custom code in the libpixman portfile to rebuild
 libpng if necessary.  At this point I wave my hands for lack of knowledge.

 Finally, the libpixman portfile could pass in an option to configure to
 disable PNG support if it detects an unsuitable libpng install.  This
 would probably require patching configure.  Again, I must wave my hands.

-- 
Ticket URL: <https://trac.macports.org/ticket/32260#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list