Git -core was an obsolete git port

I want to run the "repo" command on a Mac (and download the code from Git repo). I followed the above guide:

http://threadeds.blogspot.com/2009/02/getting-started-with-google-android-on.html

When I execute the command

POSIXLY_CORRECT=1 sudo port install gmake libsdl git-core gnupg

I get this error:

I have the following problem when installing

Error: git-core has been made obsolete by the port git. Please install git instead.
Error: org.macports.configure for port git-core returned: obsolete port
Please see the log file for port git-core for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_git-core/git-core/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port git-core failed

How can I solve this problem?

+4
source share
2 answers

The portpackage seems to rename git-coreonly git. Therefore, changing the command to

POSIXLY_CORRECT=1 sudo port install gmake libsdl git gnupg

must work.

+7
source

If you update macports ( sudo port selfupdate), you will find that the repo now depends on git instead of git -core.

: (/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/python/repo/Portfile) :

depend_run : git -core

:

port info repo

repo @1.19_1 (python)

: Repo - , Git. Repo                      git,                                           Android. Repo                     Git, git                      Android. : http://source.android.com/source/git-repo.html

: git : darwin : Apache-2 : nomaintainer@macports.org

/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/python/repo/Portfile:

depend_run : git

macports .

+1

Source: https://habr.com/ru/post/1547819/


All Articles