[MacPorts] #53295: gnutls 3.5.8 won't install on Snow Leopard, Mac OS X 10.6.8, because of hundreds of "no such instructions" in macosx/ghash-x86_64.s

MacPorts noreply at macports.org
Tue Jan 17 05:59:57 UTC 2017


#53295: gnutls 3.5.8 won't install on Snow Leopard, Mac OS X 10.6.8, because of
hundreds of "no such instructions" in macosx/ghash-x86_64.s
------------------------+-------------------------
  Reporter:  ballapete  |      Owner:  Schamschula
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:
Resolution:             |   Keywords:  snowleopard
      Port:  gnutls     |
------------------------+-------------------------

Comment (by kencu):

 This is a bit weird - I've seen this before, tho, with tcl, when I tried
 to do something similar. I have been accused of excessive nesting in
 portfiles, and this is the exact reason.

 For all the world, this block looks like it should work correctly, but it
 doesn't -- the test fails weirdly with what ryan said above.
 {{{

 if { ${os.major} < 11 && {{${build_arch} eq "i386"} || {${build_arch} eq
 "x86_64"}} } {
     compiler.blacklist-append *gcc-4.2
     compiler.blacklist-append {clang < 400}
 }
 }}}

 this works
 {{{

 if { ${os.major} < 11 } {
     if { ${build_arch} eq "i386" || ${build_arch} eq "x86_64" } {
     compiler.blacklist-append *gcc-4.2
     compiler.blacklist-append {clang < 400}
     }
 }
 }}}
 this does not
 {{{
 if { ${os.major} < 11 } && { ${build_arch} eq "i386" || ${build_arch} eq
 "x86_64" } {
     compiler.blacklist-append *gcc-4.2
     compiler.blacklist-append {clang < 400}
 }
 }}}

 there's a secret to this, I guess.

 Anyway, I guess what Ryan's getting at is something like this, which
 works.
 {{{
 if { ${build_arch} eq "i386" || ${build_arch} eq "x86_64" } {
     compiler.blacklist-append *gcc-4.2
     compiler.blacklist-append {clang < 400}
 }
 }}}

 Whether that goes into a platform darwin {} block as well is still
 mysterious to me. Probably no point, although I do see it recommended.

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


More information about the macports-tickets mailing list