Ticket #15868: patch.diff
File patch.diff, 9.2 KB (added by blb@…, 16 years ago) |
---|
-
src/port/port.tcl
2639 2639 2640 2640 # Try to open a browser to the homepage for the given port 2641 2641 if { $homepage != "" } { 2642 system " ${macports::autoconf::open_path}'$homepage'"2642 system "open '$homepage'" 2643 2643 } else { 2644 2644 ui_error [format "No homepage for %s" $portname] 2645 2645 } -
src/registry1.0/receipt_flat.tcl
146 146 set receipt_file [file join ${receipt_path} receipt] 147 147 } 148 148 149 if { [file exists ${receipt_file}.bz2] && [file exists ${registry::autoconf::bzip2_path}]} {149 if { [file exists ${receipt_file}.bz2] } { 150 150 set receipt_file ${receipt_file}.bz2 151 set receipt_contents [exec ${registry::autoconf::bzip2_path}-d -c ${receipt_file}]151 set receipt_contents [exec bzip2 -d -c ${receipt_file}] 152 152 } elseif { [file exists ${receipt_file}] } { 153 153 set receipt_handle [open ${receipt_file} r] 154 154 set receipt_contents [read $receipt_handle] … … 325 325 326 326 system "mv ${receipt_file}.tmp ${receipt_file}" 327 327 328 if { [file exists ${receipt_file}] && [file exists ${registry::autoconf::bzip2_path}] &&![info exists registry.nobzip] } {329 system " ${registry::autoconf::bzip2_path}-f ${receipt_file}"328 if { [file exists ${receipt_file}] && ![info exists registry.nobzip] } { 329 system "bzip2 -f ${receipt_file}" 330 330 } 331 331 332 332 return 1 … … 527 527 528 528 if { ![file exists ${map_file}.db] } { 529 529 # Convert to new format 530 if { [file exists ${map_file}.bz2] && [file exists ${registry::autoconf::bzip2_path}]} {531 set old_filemap [exec ${registry::autoconf::bzip2_path}-d -c ${map_file}.bz2]530 if { [file exists ${map_file}.bz2] } { 531 set old_filemap [exec bzip2 -d -c ${map_file}.bz2] 532 532 } elseif { [file exists $map_file] } { 533 533 set map_handle [open ${map_file} r] 534 534 set old_filemap [read $map_handle] … … 703 703 704 704 set map_file [file join ${receipt_path} dep_map] 705 705 706 if { [file exists ${map_file}.bz2] && [file exists ${registry::autoconf::bzip2_path}]} {707 set dep_map [exec ${registry::autoconf::bzip2_path}-d -c ${map_file}.bz2]706 if { [file exists ${map_file}.bz2] } { 707 set dep_map [exec bzip2 -d -c ${map_file}.bz2] 708 708 } elseif { [file exists ${map_file}] } { 709 709 set map_handle [open ${map_file} r] 710 710 set dep_map [read $map_handle] … … 806 806 807 807 file rename ${map_file}.tmp ${map_file} 808 808 809 if { [file exists ${map_file}] && [file exists ${registry::autoconf::bzip2_path}] &&![info exists registry.nobzip] } {810 system " ${registry::autoconf::bzip2_path}-f ${map_file}"809 if { [file exists ${map_file}] && ![info exists registry.nobzip] } { 810 system "bzip2 -f ${map_file}" 811 811 } 812 812 813 813 return 1 -
src/registry1.0/registry_autoconf.tcl.in
31 31 package provide registry 1.0 32 32 33 33 namespace eval registry::autoconf { 34 variable bzip2_path "@BZIP2@"35 34 } -
src/port1.0/portfetch.tcl
58 58 default extract.suffix .tar.gz 59 59 default fetch.type standard 60 60 61 default cvs.cmd { $portutil::autoconf::cvs_path}61 default cvs.cmd {cvs} 62 62 default cvs.password "" 63 63 default cvs.dir {${workpath}} 64 64 default cvs.method {export} … … 70 70 default cvs.args "" 71 71 default cvs.post_args {"${cvs.module}"} 72 72 73 default svn.cmd { $portutil::autoconf::svn_path}73 default svn.cmd {svn} 74 74 default svn.dir {${workpath}} 75 75 default svn.method {export} 76 76 default svn.tag "" … … 470 470 set savecmd ${cvs.cmd} 471 471 set saveargs ${cvs.args} 472 472 set savepost_args ${cvs.post_args} 473 set cvs.cmd "echo ${cvs.password} | $portutil::autoconf::cvs_path"473 set cvs.cmd "echo ${cvs.password} | cvs" 474 474 set cvs.args login 475 475 set cvs.post_args "" 476 476 if {[catch {command_exec cvs -notty "" "2>&1"} result]} { … … 536 536 537 537 # Look for the git command 538 538 set git.cmd {} 539 foreach gitcmd "$p ortutil::autoconf::git_path $prefix_frozen/bin/git git" {539 foreach gitcmd "$prefix_frozen/bin/git git" { 540 540 if {[file executable $gitcmd]} { 541 541 set git.cmd $gitcmd 542 542 break -
src/port1.0/portdestroot.tcl
92 92 ui_msg "$UI_PREFIX [format [msgcat::mc "Staging %s into destroot"] ${portname}]" 93 93 94 94 set oldmask [umask ${destroot.umask}] 95 set mtree ${portutil::autoconf::mtree_path}96 95 97 96 if { ${destroot.clean} == "yes" } { 98 97 system "rm -Rf \"${destroot}\"" … … 100 99 101 100 file mkdir "${destroot}" 102 101 if { ${os.platform} == "darwin" } { 103 system "cd \"${destroot}\" && ${mtree}-e -U -f [file join ${portsharepath} install macosx.mtree]"102 system "cd \"${destroot}\" && mtree -e -U -f [file join ${portsharepath} install macosx.mtree]" 104 103 file mkdir "${destroot}/${applications_dir}" 105 104 file mkdir "${destroot}/${frameworks_dir}" 106 105 } 107 106 file mkdir "${destroot}/${prefix}" 108 system "cd \"${destroot}/${prefix}\" && ${mtree}-e -U -f [file join ${portsharepath} install prefix.mtree]"107 system "cd \"${destroot}/${prefix}\" && mtree -e -U -f [file join ${portsharepath} install prefix.mtree]" 109 108 } -
src/port1.0/port_autoconf.tcl.in
proc destroot_main {args} {
31 31 package provide port 1.0 32 32 33 33 namespace eval portutil::autoconf { 34 variable cvs_path "@CVS@"35 variable svn_path "@SVN@"36 variable git_path "@GIT@"37 variable rsync_path "@RSYNC@"38 variable mtree_path "@MTREE@"39 variable xar_path "@XAR@"40 34 variable sed_command "@SED@" 41 35 variable sed_ext_flag "@SED_EXT@" 42 36 variable tar_command "@TAR_CMD@" -
src/macports1.0/macports.tcl
1413 1413 proc mportsync {{optionslist {}}} { 1414 1414 global macports::sources macports::portdbpath macports::rsync_options tcl_platform 1415 1415 global macports::portverbose 1416 global macports::autoconf::rsync_path1417 1416 array set options $optionslist 1418 1417 1419 1418 set numfailed 0 … … 1431 1430 {^file$} { 1432 1431 set portdir [macports::getportdir $source] 1433 1432 if {[file exists $portdir/.svn]} { 1434 set svn_commandline "[macports::findBinary svn ${macports::autoconf::svn_path}] update --non-interactive ${portdir}"1433 set svn_commandline "[macports::findBinary svn] update --non-interactive ${portdir}" 1435 1434 ui_debug $svn_commandline 1436 1435 if { 1437 1436 [catch { … … 1464 1463 set source "${source}/" 1465 1464 } 1466 1465 # Do rsync fetch 1467 set rsync_commandline " ${macports::autoconf::rsync_path}${rsync_options} ${source} ${destdir}"1466 set rsync_commandline "rsync ${rsync_options} ${source} ${destdir}" 1468 1467 ui_debug $rsync_commandline 1469 1468 if {[catch {system $rsync_commandline}]} { 1470 1469 ui_error "Synchronization of the local ports tree failed doing rsync" … … 1810 1809 # selfupdate procedure 1811 1810 proc macports::selfupdate {{optionslist {}}} { 1812 1811 global macports::prefix macports::portdbpath macports::libpath macports::rsync_server macports::rsync_dir macports::rsync_options 1813 global macports::autoconf::macports_version macports::autoconf::rsync_path1812 global macports::autoconf::macports_version 1814 1813 array set options $optionslist 1815 1814 1816 1815 # syncing ports tree. … … 1829 1828 1830 1829 # sync the MacPorts sources 1831 1830 ui_debug "Updating MacPorts sources using rsync" 1832 if { [catch { system " $rsync_path$rsync_options rsync://${rsync_server}/${rsync_dir} $mp_source_path" } result ] } {1831 if { [catch { system "rsync $rsync_options rsync://${rsync_server}/${rsync_dir} $mp_source_path" } result ] } { 1833 1832 return -code error "Error synchronizing MacPorts sources: $result" 1834 1833 } 1835 1834 -
src/macports1.0/macports_autoconf.tcl.in
35 35 variable macports_conf_path "@MPCONFIGDIR_EXPANDED@" 36 36 variable macports_version "@MACPORTS_VERSION@" 37 37 variable macports_user_dir "~/.macports" 38 variable svn_path "@SVN@"39 variable rsync_path "@RSYNC@"40 variable open_path "@OPEN@"41 38 }