[MacPorts] #50469: Git clone fails - SSL certificate problem: Couldn't understand the server certificate format

MacPorts noreply at macports.org
Sun Nov 20 12:44:03 CET 2016


#50469: Git clone fails - SSL certificate problem: Couldn't understand the server
certificate format
---------------------+--------------------------------
  Reporter:  breun   |      Owner:  macports-tickets@…
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  base    |    Version:  2.3.4
Resolution:          |   Keywords:
      Port:          |
---------------------+--------------------------------

Comment (by breun):

 MacPorts is accessing my home directory, because of the local git clone of
 the `macports-ports` repository I added in
 `/opt/local/etc/macports/sources.conf`, but the MacPorts installation
 itself is in the default `/opt/local` directory.

 When I comment the local entry from `sources.conf` and leave just the
 default rsync entry the fetch fails in the same way:

 {{{
 $ sudo port -dv fetch ansible
 DEBUG: Copying /Users/breun/Library/Preferences/com.apple.dt.Xcode.plist
 to /opt/local/var/macports/home/Library/Preferences
 DEBUG: Changing to port directory:
 /opt/local/var/macports/sources/rsync.macports.org/release/ports/sysutils/ansible
 DEBUG: OS darwin/16.1.0 (Mac OS X 10.12) arch i386
 DEBUG: Re-registering default for build.cmd
 DEBUG: Re-registering default for destroot.cmd
 DEBUG: Re-registering default for destroot.destdir
 DEBUG: Sourcing PortGroup python 1.0 from
 /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/python-1.0.tcl
 DEBUG: Sourcing PortGroup github 1.0 from
 /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/github-1.0.tcl
 DEBUG: only one arch supported, so not adding the default universal
 variant
 DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
 DEBUG: Preferred compilers: clang macports-clang-3.8 macports-clang-3.7
 DEBUG: Finished running callback
 portconfigure::add_automatic_compiler_dependencies
 DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
 DEBUG: Finished running callback
 portbuild::add_automatic_buildsystem_dependencies
 DEBUG: Attempting ln -sf
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_ansible/ansible/work
 /opt/local/var/macports/sources/rsync.macports.org/release/ports/sysutils/ansible/work
 DEBUG: Checksum recorded in statefile
 '0eb70249efbb7b3bc062270873345cfcbbcbac32a917dac44ce8aa500d1eb526' differs
 from Portfile checksum
 '9caae729c44a6276b200899983edf2b6352ea1f37a3a305fbecebc2c1d781d2e'
 Portfile changed since last build; discarding previous state.
 DEBUG: Starting logging for ansible
 DEBUG: Found Dependency: path: /usr/bin filename: git regex: ^git$
 --->  Computing dependencies for ansible
 DEBUG: Found Dependency: path: /usr/bin filename: git regex: ^git$
 DEBUG: Searching for dependency: git
 DEBUG: Didn't find receipt, going to depspec regex for: git
 DEBUG: Found Dependency: path: /usr/bin filename: git regex: ^git$
 DEBUG: Executing org.macports.main (ansible)
 DEBUG: fetch phase started at Sun Nov 20 12:40:42 CET 2016
 --->  Fetching distfiles for ansible
 DEBUG: Executing org.macports.fetch (ansible)
 DEBUG: Executing: /usr/bin/git clone -q
 https://github.com/ansible/ansible.git
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_ansible/ansible/work/ansible-2.1.2.0-1
 2>&1
 fatal: unable to access 'https://github.com/ansible/ansible.git/': SSL
 certificate problem: Couldn't understand the server certificate format
 Command failed: /usr/bin/git clone -q
 https://github.com/ansible/ansible.git
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_ansible/ansible/work/ansible-2.1.2.0-1
 2>&1
 Exit code: 128
 Error: org.macports.fetch for port ansible returned: Git clone failed
 DEBUG: Error code: NONE
 DEBUG: Backtrace: Git clone failed
     while executing
 "gitfetch"
     (procedure "portfetch::fetch_main" line 14)
     invoked from within
 "portfetch::fetch_main org.macports.fetch"
     ("eval" body line 1)
     invoked from within
 "eval $procedure $targetname"
 Warning: targets not executed for ansible: org.macports.fetch
 Please see the log file for port ansible for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_ansible/ansible/main.log
 To report a bug, follow the instructions in the guide:
     http://guide.macports.org/#project.tickets
 Error: Processing of port ansible failed
 }}}

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



More information about the macports-tickets mailing list