[MacPorts] #51359: qhull fails to build on 10.6.8

MacPorts noreply at macports.org
Mon May 16 15:10:35 PDT 2016


#51359: qhull fails to build on 10.6.8
---------------------------+---------------------
  Reporter:  dyne2meter@…  |      Owner:  mmoll@…
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.3.4
Resolution:                |   Keywords:
      Port:  qhull         |
---------------------------+---------------------

Comment (by drjesacco@…):

 This version of qhull does not build on a G4 based PPC running OS X 10.5.8
 using Apple's gcc-4.2.1. It can be coerced to build using gcc5 by altering
 the configuration phase of the MacPorts build as shown:


 {{{
 diff -u Portfile- Portfile
 --- Portfile-   2016-05-16 15:31:11.000000000 -0400
 +++ Portfile    2016-05-16 17:44:32.000000000 -0400
 @@ -43,6 +43,11 @@
      configure.optflags  -O3 -pipe -march=native
  }

 +pre-configure {
 +# Suppress -arch flag
 +    configure.args-append -DCMAKE_OSX_ARCHITECTURES=""
 + }
 +
  configure.args-append   -DDOC_INSTALL_DIR=share/doc/qhull
 -DMAN_INSTALL_DIR=share/man/man1
 }}}

 To understand why this "ham-fisted" approach works, examine lines 122-174
 of:

 {{{
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/cmake-1.0.tcl
 }}}

 The MacPorts implementation of cmake always sets the -arch flag for
 'platform darwin' irrespective of the choice of compiler. Adding a pre-
 configure block to the Portfile overwrites what was done in cmake-1.0.tcl.

 A better approach would be to modify that section of cmake-1.0.tcl to
 properly handle GNU compilers.

 -Joseph

-- 
Ticket URL: <https://trac.macports.org/ticket/51359#comment:7>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list