Hi all, I've just now run into the situation where some code I'd like to compile (Cash, a scripting language, not available through macports) requires an older version of an installed package (ocaml, specifically it requires 3.09; 3.10 is current). It looks like it is normal to delete Portfiles for old versions of software (I don't see ocaml 3.09 anywhere). What is the reason for this? Sometimes the ability to install old versions of software is useful, and it seems like *extra* work to delete old Portfile versions. Is there a way for me to recover the ocaml 3.09 Portfile so I can install it alongside 3.10 (where alongside means, of course, only one is active at once). Thanks. -Denis
On 7/17/07, Denis Bueno <denbuen@sandia.gov> wrote:
Is there a way for me to recover the ocaml 3.09 Portfile so I can install it alongside 3.10 (where alongside means, of course, only one is active at once).
First look up which macports changeset ocaml 3.09 corresponds to, for example by going to http://trac.macosforge.org/projects/macports/timeline/ Let's assume it's 20526. cd $myrepository # create this as an empty directory if you don't have one yet svn co --revision 20526 https://svn.macports.org/repository/macports/trunk/dports/lang/ocaml/ lang/ocaml/ portindex . sudo port deactivate ocaml sudo port install ocaml (Untested commands, use at your own risk.) Regards, Marc
On Jul 17, 2007, at 1:33 PM, Marc André Selig wrote:
svn co --revision 20526 https://svn.macports.org/repository/macports/trunk/dports/lang/ocaml/ lang/ocaml/ portindex .
you don't need to run portindex for this. Instead, just cd to the directory where the Portfile is and do sudo port deactivate ocaml sudo port install When you run a port command without the port target, it will look for a Portfile in the current directory and use it. -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
Hello Marc, thank you very much! With that information I could go back now to an old version of ffmpeg - exporting videos with sound is working again on my mac! Regards, John Marc André Selig wrote:
On 7/17/07, Denis Bueno <denbuen@sandia.gov> wrote:
Is there a way for me to recover the ocaml 3.09 Portfile so I can install it alongside 3.10 (where alongside means, of course, only one is active at once).
First look up which macports changeset ocaml 3.09 corresponds to, for example by going to http://trac.macosforge.org/projects/macports/timeline/
Let's assume it's 20526.
cd $myrepository # create this as an empty directory if you don't have one yet svn co --revision 20526 https://svn.macports.org/repository/macports/trunk/dports/lang/ocaml/ lang/ocaml/ portindex . sudo port deactivate ocaml sudo port install ocaml
(Untested commands, use at your own risk.)
Regards, Marc _______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
participants (4)
-
Daniel J. Luke
-
Denis Bueno
-
John Hauf
-
Marc André Selig