[MacPorts] #16343: git-core 1.6.0 fails for non-svn variant

MacPorts noreply at macports.org
Mon Aug 18 17:22:08 PDT 2008


#16343: git-core 1.6.0 fails for non-svn variant
----------------------------------+-----------------------------------------
 Reporter:  jcopenha at typedef.org  |       Owner:  macports-tickets at lists.macosforge.org
     Type:  defect                |      Status:  new                                  
 Priority:  Normal                |   Milestone:                                       
Component:  ports                 |     Version:  1.6.0                                
 Keywords:                        |  
----------------------------------+-----------------------------------------
 Trying to install git-core without the svn variant I get[[BR]]


 Error: Unable to upgrade port: 1[[BR]]

 --->  Staging git-core into destroot[[BR]]

 Error: Target org.macports.destroot returned: shell command "rm
 /opt/local/var/macports/build[[BR]]
 /_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_devel_git-core/work/destroot/opt/local[[BR]]
 /bin/git-svn*" returned error 1[[BR]]

 Command output: rm: /opt/local/var/macports/build[[BR]]
 /_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_devel_git-core/work/destroot/opt/local/bin/git-svn*: No
 such file or directory[[BR]]


 Between git 1.5.6.1 and git 1.6.0 they changed where git-svn and a bunch
 of other git-* files get installed (Makefile $gitexecdir).  They are now
 in /opt/local/libexec/git-core instead of /opt/local/bin

 This oneliner fixes it.[[BR]]

 [[BR]]

 {{{
 --- Portfile.orig       2008-08-18 20:13:31.000000000 -0400
 +++ Portfile    2008-08-18 20:13:44.000000000 -0400
 @@ -57,7 +57,7 @@
          }
      }
      if {![variant_isset svn]} {
 -        system "rm ${destroot}${prefix}/bin/git-svn*"
 +        system "rm ${destroot}${prefix}/libexec/git-core/git-svn*"
      }
      set docdestroot ${destroot}${prefix}/share/doc/${name}
      xinstall -d ${docdestroot}

 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/16343>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list