[MacPorts] #54531: cmake 3.9.0: upgrade from 3.8.2_0 fails in make with urllib3 distribution not found (eventually)

MacPorts noreply at macports.org
Tue Jul 25 09:48:25 UTC 2017


#54531: cmake 3.9.0: upgrade from 3.8.2_0 fails in make with urllib3 distribution
not found (eventually)
--------------------------+-------------------
 Reporter:  sambthompson  |      Owner:
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.4.1
 Keywords:                |       Port:  cmake
--------------------------+-------------------
 upgrading cmake port as part of upgrade outdated invocation, get error
 during build from source.

 Tail of output from {{{sudo port -v upgrade cmake}}} is:
 {{{
 .
 .
 .
 [ 11%] Built target cmsys
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.9.0'
 make: *** [all] Error 2
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.9.0'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.9.0"
 && /usr/bin/make -j8 -w all VERBOSE=ON
 Exit code: 2
 Error: Failed to build cmake: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cmake/cmake/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
 }}}

 [Also attached main.log]

 I can't see a message prior to the Exit code: 2 which explains why {{{make
 -j8 -w all VERBOSE=ON}}} fails.

 Tried {{{port clean}}}, same result. Nothing stands out in the problem
 hotlist. No open tickets for cmake match these symptoms.

 {{{port uninstall}}} and {{{port install}}} also fails. Now cmake is not
 installed!

 Re-running the install command without cleaning allows it to proceed to
 73% before it fails again, again with no clear message. The next time it
 gets to 94%, same results. Then 98%, then 100%. 6th and later invocations
 yield message:

 {{{
 pkg_resources.DistributionNotFound: The 'urllib3<1.22,>=1.21.1'
 distribution was not found and is required by requests
 }}}

 However,

 {{{
 % sudo port installed | grep urllib
    py27-urllib3 @1.22_0 (active)
 }}}

 Repeating the port install gets no further; message is the same.

 This is on El-Capitan with MacPorts 2.4.1. Has been working OK, this was
 routine maintenance.

 {{{
 % uname -a
 Darwin host.local 15.6.0 Darwin Kernel Version 15.6.0: Tue Apr 11 16:00:51
 PDT 2017; root:xnu-3248.60.11.5.3~1/RELEASE_X86_64 x86_64

 % xcodebuild -version
 Xcode 8.2.1
 Build version 8C1002
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/54531>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list