[MacPorts] #58235: llvm-6.0: python27 dependency

MacPorts noreply at macports.org
Mon Mar 25 19:27:12 UTC 2019


#58235: llvm-6.0: python27 dependency
--------------------------------+----------------------
  Reporter:  nerdling           |      Owner:  jeremyhu
      Type:  defect             |     Status:  assigned
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:
Resolution:                     |   Keywords:
      Port:  llvm-6.0 llvm-7.0  |
--------------------------------+----------------------
Changes (by nerdling):

 * port:  llvm-6.0 => llvm-6.0 llvm-7.0


Old description:

> Was compiling dependencies for lilypond-devel today (with trace mode) and
> had the build fail at llvm-6.0.
>
> I checked the log, where I saw configure stopped after not finding
> python27. Adding python27 to the depends_lib resolved the issue.
>
> {{{
> --- a/lang/llvm-6.0/Portfile
> +++ b/lang/llvm-6.0/Portfile
> @@ -32,7 +32,7 @@ if {${subport} eq "llvm-${llvm_version}"} {
>                          around a well specified code representation
> known as \
>                          the LLVM intermediate representation ("LLVM
> IR").
>
> -    depends_lib         port:libedit port:libffi port:ncurses
> path:lib/libxar.dylib:xar port:zlib
> +    depends_lib         port:libedit port:libffi port:ncurses
> path:lib/libxar.dylib:xar port:zlib port:python27
>      depends_run         bin:perl:perl5 port:llvm_select
>  } elseif {${subport} eq "clang-${llvm_version}"} {
>      homepage            https://clang.llvm.org/
> }}}

New description:

 Was compiling dependencies for lilypond-devel today (with trace mode) and
 had the build fail at llvm-6.0.

 I checked the log, where I saw configure stopped after not finding
 python27. Adding python27 to the depends_lib resolved the issue.

 {{{
 CMake Error at CMakeLists.txt:629 (message):
   Python 2.7 or newer is required
 }}}

 {{{
 --- a/lang/llvm-6.0/Portfile
 +++ b/lang/llvm-6.0/Portfile
 @@ -32,7 +32,7 @@ if {${subport} eq "llvm-${llvm_version}"} {
                          around a well specified code representation known
 as \
                          the LLVM intermediate representation ("LLVM IR").

 -    depends_lib         port:libedit port:libffi port:ncurses
 path:lib/libxar.dylib:xar port:zlib
 +    depends_lib         port:libedit port:libffi port:ncurses
 path:lib/libxar.dylib:xar port:zlib port:python27
      depends_run         bin:perl:perl5 port:llvm_select
  } elseif {${subport} eq "clang-${llvm_version}"} {
      homepage            https://clang.llvm.org/
 }}}

 This also impacts llvm-7.0.

--

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


More information about the macports-tickets mailing list