[MacPorts] howto/InstallingOlderPort modified

MacPorts noreply at macports.org
Sat Feb 25 02:53:48 UTC 2017


Page "howto/InstallingOlderPort" was changed by jmroot
Diff URL: <https://trac.macports.org/wiki/howto/InstallingOlderPort?action=diff&version=21>
Revision 21
Comment: update for github
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/InstallingOlderPort
=========================================================================
--- howto/InstallingOlderPort (version: 20)
+++ howto/InstallingOlderPort (version: 21)
@@ -1,9 +1,4 @@
 [wiki:howto <- Back to the HOWTO section]
-
-{{{
-#!div style="background-color: lightyellow; padding: 0.25em;"
-TODO: This page is outdated after the move to Git and GitHub. Please help to update it!
-}}}
 
 = How to install an older version of a port =
 
@@ -62,30 +57,31 @@
 
 == (Re)installing an older version that's no longer installed == #install
 
-If you want to go back to an older version after you've already uninstalled it, or to install an older version of a port that predates when you first installed it, you can do so by manually downloading the older version of the portfile and any associated files from the MacPorts Subversion repository.
+If you want to go back to an older version after you've already uninstalled it, or to install an older version of a port that predates when you first installed it, you can do so by manually downloading the older version of the portfile and any associated files from the MacPorts Git repository.
 
-=== Step 1: '''Find the right revision''' ===
+=== Step 1: '''Find the right commit''' ===
 To install an older version of the port, you'll have to get the necessary files from the repository.
-[browser:trunk/dports Browse the repository] to find the directory of the port you want, then use the Revision Log link in the upper right to find the older version that you want to install.
-For example, if you wanted to install the older 8.4.16 version of tcl, browse to the [browser:trunk/dports/lang/tcl lang/tcl] directory and look at its [log:trunk/dports/lang/tcl revision log].
-Here you'll note that tcl was updated to 8.5.0 in !r32235, so you want the revision before that, which was !r30810.
-(You can also just subtract one from the revision you found, e.g. !r32235 - 1 = !r32234.)
-If desired, you can click the [browser:trunk/dports/lang/tcl at 30810 @30810] link in the revision log (not the [30810] link) to see the directory as it existed in that revision.
+[https://github.com/macports/macports-ports Browse the repository] to find the directory of the port you want, then use the History button in the upper right to find the older version that you want to install.
+For example, if you wanted to install the older 8.4.16 version of tcl, browse to the [https://github.com/macports/macports-ports/tree/master/lang/tcl lang/tcl] directory and look at its [https://github.com/macports/macports-ports/commits/master/lang/tcl history].
+Here you'll note that tcl was updated to 8.5.0 in !345f962, so you want the commit before that, which was !686ea4f.
+If desired, you can click the [https://github.com/macports/macports-ports/tree/686ea4fa0fddeb03fdf2fc04dded68e05181bc95/lang/tcl <>] link in the history (not the !686ea4f link) to see the directory as it existed in that commit.
 
 === Step 2: '''Get the port directory''' ===
-In the Terminal, using the revision number, port category and port name, check out the port's directory at the desired revision using the `svn` command:
+In the Terminal, using the commit hash, port category and port name, check out the port's directory at the desired commit using the `git` command:
 {{{
-$ svn checkout -r 30810 https://svn.macports.org/repository/macports/trunk/dports/lang/tcl
+$ git clone --single-branch https://github.com/macports/macports-ports.git
+$ cd macports-ports
+$ git checkout 686ea4fa0fddeb03fdf2fc04dded68e05181bc95
 }}}
-This creates a "tcl" directory in your current location, and populates that with everything the port needs to build.
-Replace "30810" and "lang/tcl" with the correct revision and category/portname for the port you're interested in.
+This creates a "macports-ports" directory in your current location, and populates that with a complete copy of the ports tree as it existed at the specified point in history.
+Replace "!686ea4fa0fddeb03fdf2fc04dded68e05181bc95" with the commit you're interested in.
 
 Note:
-Subversion is included with Mac OS X 10.5 and later but you may want to get a newer version by installing the subversion port;
-Mac OS X 10.4 does not include subversion, so users of that system must install the port:
+Git is included with Xcode 4.1 and later but you may want to get a newer version by installing the git port;
+Xcode 4.0 and earlier do not include git, so users of those versions must install the port:
 
 {{{
-$ sudo port install subversion
+$ sudo port install git
 }}}
 
 Note:
@@ -98,10 +94,10 @@
 If you really want to put the port directory in one of the mentioned directories in your home directory, and you don't mind other users on your system reading your files (e.g. if your computer is used by only one person), you could change the permissions of the desired directory from 0700 (`drwx------`) to 0755 (`drwxr-xr-x`).
 
 === Step 3: '''Build the downloaded port''' ===
-Finally, change to the directory you checked out with Subversion (which contains the Portfile) and install the port, omitting the port name:
+Finally, change to the directory you checked out with Git (which contains the Portfile) and install the port, omitting the port name:
 
 {{{
-$ cd tcl
+$ cd lang/tcl
 $ sudo port install
 }}}
 
@@ -158,11 +154,13 @@
 
 {{{port info php5}}} shows it to be first in the '''lang''' category, so it would be located in lang/php5.
 
-After browsing [log:trunk/dports/lang/php5 php5's history], 5.3.0 was introduced in r53563 which means the previous revision, r53555, was the last update for 5.2.10.  With this information, we can run:
+After browsing [https://github.com/macports/macports-ports/commits/master/lang/php5 php5's history], 5.3.0 was introduced in !bf7adcc which means the previous commit, !9b7c823, was the last update for 5.2.10.  With this information, we can run:
 
 {{{
-$ svn checkout -r 53555 https://svn.macports.org/repository/macports/trunk/dports/lang/php5
-$ cd php5
+$ git clone --single-branch https://github.com/macports/macports-ports.git
+$ cd macports-ports
+$ git checkout 9b7c823b360a9ed1d9c6e05a15806b959b93fc05
+$ cd lang/php5
 $ sudo port install -- +apache2 +postgresql83
 }}}
 
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/howto/InstallingOlderPort>
MacPorts <https://www.macports.org/>
Ports system for macOS

This is an automated message. Someone added your email address to be
notified of changes on 'howto/InstallingOlderPort' page.
If it was not you, please report to admin at macports.org.


More information about the macports-changes mailing list