Re: how to start with macports ?
Le lundi, 15 jan 2007, à 12:14 Europe/Paris, Matthias Steinbeck a écrit :
2007/1/15, Thomas De Contes <d.l.tDeContes@free.fr>:
i don't find on http://www.macports.org/ how to start with macports
isn't it an svn command to replace cvs -d :pserver:anonymous@anoncvs.opendarwin.org:/Volumes/src/cvs/od login cvs -d :pserver:anonymous@anoncvs.opendarwin.org:/Volumes/src/cvs/od co -P darwinports which was needed to begin with darwinports ?
The wiki is the best help http://trac.macosforge.org/projects/macports/wiki
thank you very much, it's very usefull :-)
I think you won't need svn these days to start with macports.
it's nice to be able to install macports without svn :-) but i would like to make a script which automatically install macports if it's not installed, and update it if it is already installed (like the one i made with cvs) how to do that ? on https://libre.adacore.com/GtkAda/main.html there is svn checkout http://svn.eu.adacore.com/anonsvn/Dev/trunk/GtkAda regarding to http://www.macports.org/?page_id=4 does that mean i have just to do svn checkout http://svn.eu.adacore.com/anonsvn/Dev/trunk/GtkAda ? (anyway it would be nice to tell it on the website :-) ) btw, i have an other question for this script : i did port install gtk2 port upgrade gtk2 and often it doesn't works port install may do sth wrong if the port is already installed what can i do instead ? -- Mon CV : http://tDeContes.hd.free.fr/divers/emploi/
Le dimanche, 22 juil 2007, à 12:43 Europe/Paris, Thomas De Contes a écrit :
Le lundi, 15 jan 2007, à 12:14 Europe/Paris, Matthias Steinbeck a écrit :
2007/1/15, Thomas De Contes <d.l.tDeContes@free.fr>:
i don't find on http://www.macports.org/ how to start with macports
isn't it an svn command to replace cvs -d :pserver:anonymous@anoncvs.opendarwin.org:/Volumes/src/cvs/od login cvs -d :pserver:anonymous@anoncvs.opendarwin.org:/Volumes/src/cvs/od co -P darwinports which was needed to begin with darwinports ?
I think you won't need svn these days to start with macports.
i would like to make a script which automatically install macports if it's not installed, and update it if it is already installed (like the one i made with cvs) how to do that ?
on https://libre.adacore.com/GtkAda/main.html there is svn checkout http://svn.eu.adacore.com/anonsvn/Dev/trunk/GtkAda regarding to http://www.macports.org/?page_id=4 does that mean i have just to do svn checkout http://svn.eu.adacore.com/anonsvn/Dev/trunk/GtkAda ? (anyway it would be nice to tell it on the website :-) )
i would say svn checkout http://svn.macports.org/repository/macports/ of course :-) well, reading the svn help, it seems to be the right svn command, but it seems to not be the right url :-( is there an url that i can use, which will always give me the last version of macports, please ? http://svn.macports.org/repository/macports/trunk/ ? i'll try it, but i would like have a confirmation :-) -- Mon CV : http://tDeContes.hd.free.fr/divers/emploi/
On Jul 22, 2007, at 09:32, Thomas De Contes wrote:
Le dimanche, 22 juil 2007, à 12:43 Europe/Paris, Thomas De Contes a écrit :
Le lundi, 15 jan 2007, à 12:14 Europe/Paris, Matthias Steinbeck a écrit :
2007/1/15, Thomas De Contes <d.l.tDeContes@free.fr>:
i don't find on http://www.macports.org/ how to start with macports
isn't it an svn command to replace cvs -d :pserver:anonymous@anoncvs.opendarwin.org:/Volumes/src/ cvs/od login cvs -d :pserver:anonymous@anoncvs.opendarwin.org:/Volumes/src/ cvs/od co -P darwinports which was needed to begin with darwinports ?
I think you won't need svn these days to start with macports.
i would like to make a script which automatically install macports if it's not installed, and update it if it is already installed (like the one i made with cvs) how to do that ?
To install MacPorts, download the latest disk image for you OS from (currently) here: http://trac.macosforge.org/projects/macports/browser/downloads/ MacPorts-1.5.0 And read the relevant page in the wiki for how to install it: http://trac.macosforge.org/projects/macports/wiki/InstallingMacPorts To update MacPorts, type "sudo port selfupdate". I'm sure you can write a script to handle this. If /opt/local/bin/ port does not exist then download and install MacPorts 1.5.0. And either way, selfupdate it to make sure it's up to date.
on https://libre.adacore.com/GtkAda/main.html there is svn checkout http://svn.eu.adacore.com/anonsvn/Dev/trunk/GtkAda regarding to http://www.macports.org/?page_id=4 does that mean i have just to do svn checkout http://svn.eu.adacore.com/anonsvn/Dev/trunk/GtkAda ? (anyway it would be nice to tell it on the website :-) )
I don't know why you think GtkAda is related to MacPorts... It's not. We can't help you with GtkAda; ask on their list if you have a question about it.
i would say svn checkout http://svn.macports.org/repository/macports/ of course :-)
well, reading the svn help, it seems to be the right svn command, but it seems to not be the right url :-( is there an url that i can use, which will always give me the last version of macports, please ? http://svn.macports.org/repository/macports/trunk/ ? i'll try it, but i would like have a confirmation :-)
The latest development version of the MacPorts code, which may not work or may not work with the current portfiles, is: http://svn.macports.org/repository/macports/trunk/base/ There is no URL which always points to the latest stable released version. The latest right now is: http://svn.macports.org/repository/macports/tags/release_1_5_0/base/ You don't really need to get the code from out repository though. Just download and install the disk image as above. Though you can certainly build it from source if you prefer that, for some reason. On Jul 22, 2007, at 05:43, Thomas De Contes wrote:
btw, i have an other question for this script :
i did port install gtk2 port upgrade gtk2 and often it doesn't works
"it doesn't works" is not a bug report we can do anything with. Show us the actual output you receive, tell us what version of MacPorts, Xcode and Mac OS X you have, what architecture you're on, etc. and maybe we can help then.
port install may do sth wrong if the port is already installed
what can i do instead ?
True, "port install" doesn't work if the port is already installed. That's why there's "port upgrade".
On Jul 22, 2007, at 2:26 PM, Ryan Schmidt wrote:
The latest development version of the MacPorts code, which may not work or may not work with the current portfiles, is:
http://svn.macports.org/repository/macports/trunk/base/
There is no URL which always points to the latest stable released version. The latest right now is:
http://svn.macports.org/repository/macports/tags/release_1_5_0/base/
You don't really need to get the code from out repository though. Just download and install the disk image as above. Though you can certainly build it from source if you prefer that, for some reason.
Users wanting to stay on the bleeding edge of development can either update trunk/base from svn and do the ./configure && make dance (which we would assume they know how to if they want to stay on top of development), or use rsync if they don't care about svn (a developer...? ;-). As for selfupdate, the default is to upgrade to the released code, release/base/ in rsync_dir (macports.conf). But you can also selfudpate to trunk/base by setting rsync_dir to, namely, trunk/base. Do note that if you choose this approach you'll always have to force the rebuild (-f), as selfupdate works by comparing version numbers and we're simply not upgrading the version number in trunk/base every time a commit takes place. But then again, we'd expect you to know about this sort of things if you are bold enough to use development sources ;-) Regards,... -jmpp
Le dimanche, 22 juil 2007, à 20:26 Europe/Paris, Ryan Schmidt a écrit :
On Jul 22, 2007, at 09:32, Thomas De Contes wrote:
Le dimanche, 22 juil 2007, à 12:43 Europe/Paris, Thomas De Contes a écrit :
Le lundi, 15 jan 2007, à 12:14 Europe/Paris, Matthias Steinbeck a écrit :
2007/1/15, Thomas De Contes <d.l.tDeContes@free.fr>:
i don't find on http://www.macports.org/ how to start with macports
isn't it an svn command to replace cvs -d :pserver:anonymous@anoncvs.opendarwin.org:/Volumes/src/cvs/od >>>>> login cvs -d :pserver:anonymous@anoncvs.opendarwin.org:/Volumes/src/cvs/od co -P darwinports which was needed to begin with darwinports ?
I think you won't need svn these days to start with macports.
i would like to make a script which automatically install macports if it's not installed, and update it if it is already installed (like the one i made with cvs) how to do that ?
To install MacPorts, download the latest disk image for you OS from (currently) here:
http://trac.macosforge.org/projects/macports/browser/downloads/ MacPorts-1.5.0
To update MacPorts, type "sudo port selfupdate".
I'm sure you can write a script to handle this. If /opt/local/bin/port does not exist then download and install MacPorts 1.5.0. And either way, selfupdate it to make sure it's up to date.
i trust you that it's possible to make that, but i don't know make scripts enough, above all the url to download will change and i always prefer download sources with a protocol that allow to keep unchanged files (like svn or rsync), than download archives
on https://libre.adacore.com/GtkAda/main.html there is svn checkout http://svn.eu.adacore.com/anonsvn/Dev/trunk/GtkAda regarding to http://www.macports.org/?page_id=4 does that mean i have just to do svn checkout http://svn.eu.adacore.com/anonsvn/Dev/trunk/GtkAda ? (anyway it would be nice to tell it on the website :-) )
I don't know why you think GtkAda is related to MacPorts... It's not.
sorry, it was a mistake i didn't think at all that GtkAda was related to MacPorts instead, i wanted to say :
on https://libre.adacore.com/GtkAda/main.html there is svn checkout http://svn.eu.adacore.com/anonsvn/Dev/trunk/GtkAda
regarding to http://www.macports.org/?page_id=4 does that mean i have just to do svn checkout http://svn.macports.org/repository/macports/ ? (anyway it would be nice to tell it on the website :-) )
but i hadn't read the svn help now i have :-)
i would say svn checkout http://svn.macports.org/repository/macports/ of course :-)
well, reading the svn help, it seems to be the right svn command, but it seems to not be the right url :-( is there an url that i can use, which will always give me the last version of macports, please ? http://svn.macports.org/repository/macports/trunk/ ? i'll try it, but i would like have a confirmation :-)
The latest development version of the MacPorts code,
which may not work or may not work with the current portfiles,
ok, so i'm aware :-)
is:
thank you :-) 2 questions : i remember that the cvs command caused to download base/ doc/ dports/ www/ and some readme files 1 : does't it need to download at least dports, to know the list of available ports ?? 2 : why is there no longer in macports the readme files that there were in darwinports ?
There is no URL which always points to the latest stable released version.
it's a pity (i would need it for my script, i don't know how to detect it automatically)
The latest right now is:
http://svn.macports.org/repository/macports/tags/release_1_5_0/base/
thank you :-)
You don't really need to get the code from out repository though. Just download and install the disk image as above. Though you can certainly build it from source if you prefer that, for some reason.
i want to personalize the install directory to not need to be root, i don't know if the binaries would support it (svn doesn't support it)
On Jul 22, 2007, at 05:43, Thomas De Contes wrote:
btw, i have an other question for this script :
i did port install gtk2 port upgrade gtk2 and often it doesn't works
"it doesn't works" is not a bug report we can do anything with. Show us the actual output you receive, tell us what version of MacPorts, Xcode and Mac OS X you have, what architecture you're on, etc. and maybe we can help then.
port install may do sth wrong if the port is already installed
what can i do instead ?
True, "port install" doesn't work if the port is already installed. That's why there's "port upgrade".
well, i posted this question before seeing that now port install gtk2 does nothing if gtk2 is installed sorry i had problems when it tried to install anyway, and so made a part of the upgrade but not as it should thanks to all for this improovement :-) (btw, currently port upgrade outdated gives a big error msg if there is no port outdated) -- Mon CV : http://tDeContes.hd.free.fr/divers/emploi/
On Jul 23, 2007, at 4:22 PM, Thomas De Contes wrote:
There is no URL which always points to the latest stable released version.
it's a pity (i would need it for my script, i don't know how to detect it automatically)
There's a file at a stable url that has the information for the current release, though: http://svn.macports.org/repository/macports/trunk/base/config/ RELEASE_URL -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
Le dimanche, 22 juil 2007, à 20:37 Europe/Paris, Juan Manuel Palacios a écrit :
Users wanting to stay on the bleeding edge of development can either update trunk/base from svn and do the ./configure && make dance (which we would assume they know how to if they want to stay on top of development),
or use rsync if they don't care about svn (a developer...? ;-).
As for selfupdate, the default is to upgrade to the released code, release/base/ in rsync_dir (macports.conf).
oh, it's possible to use rsync ! :-)) i didn't know it's very nice, because it allows me to install macports on a new computer, needing neither macports binaries, nor svn binaries :-) i hope it will be maintained as is at least since svn will be integrated in mac os x, will it ? (who decides this sort of thing ?) well, no matter if there is no svn URL which always points to the latest stable released version, since there is an rsync one :-) the command to do to use rsync is rsync -azv --delete-after rsync://rsync.macports.org/release/base/ macports/ isn't it ? -- Mon CV : http://tDeContes.hd.free.fr/divers/emploi/
On Jul 23, 2007, at 15:22, Thomas De Contes wrote:
The latest development version of the MacPorts code, which may not work or may not work with the current portfiles, is:
thank you :-)
2 questions :
i remember that the cvs command caused to download base/ doc/ dports/ www/ and some readme files
You mean the svn command.
1 : does't it need to download at least dports, to know the list of available ports ??
No, it doesn't. You only need base, which is the source code of the project. "./configure", "make" and "sudo make install". Then run "sudo /opt/local/bin/port selfupdate" which will check if there is a new version of MacPorts available (and, if so, will download it and "./configure", "make" and "sudo make install" it), and will also download the dports tree via rsync. (You can optionally use svn instead of rsync to get the dports tree; see another message of mine on this list from a couple minutes ago.)
2 : why is there no longer in macports the readme files that there were in darwinports ?
I don't know what files you're referring to. What was in them? What information are you missing?
You don't really need to get the code from out repository though. Just download and install the disk image as above. Though you can certainly build it from source if you prefer that, for some reason.
i want to personalize the install directory to not need to be root, i don't know if the binaries would support it (svn doesn't support it)
Oh, ok. You're right, the binaries only work in /opt/local. If you want your own prefix, you need to download the source and "./ configure --prefix=/whatever/you/want"
(btw, currently port upgrade outdated gives a big error msg if there is no port outdated)
Yes, that problem has already been reported: http://trac.macosforge.org/projects/macports/ticket/12288 Patches to correct it are of course welcome! On Jul 23, 2007, at 16:36, Thomas De Contes wrote:
oh, it's possible to use rsync ! :-)) i didn't know
it's very nice, because it allows me to install macports on a new computer, needing neither macports binaries, nor svn binaries :-) i hope it will be maintained as is at least since svn will be integrated in mac os x, will it ? (who decides this sort of thing ?)
well, no matter if there is no svn URL which always points to the latest stable released version, since there is an rsync one :-)
MacPorts has used rsync for a long time (since the beginning?) and I don't know of any plans to remove that functionality. FYI: I believe Mac OS X 10.5 Leopard will include Subversion (in the Developer Tools a.k.a. Xcode).
the command to do to use rsync is rsync -azv --delete-after rsync://rsync.macports.org/release/base/ macports/ isn't it ?
I don't know; I don't regularly use rsync and generally have to consult the manpage myself.
Le mardi, 24 juil 2007, à 11:05 Europe/Paris, Ryan Schmidt a écrit :
On Jul 23, 2007, at 15:22, Thomas De Contes wrote:
i remember that the cvs command caused to download base/ doc/ dports/ www/ and some readme files
You mean the svn command.
no, i meant the cvs command, it was on the web site, before macports switched to svn (i took a long time to switch) : cvs -d :pserver:anonymous:@anoncvs.opendarwin.org:/Volumes/src/cvs/od login cvs -d :pserver:anonymous@anoncvs.opendarwin.org:/Volumes/src/cvs/od co -P darwinports
1 : does't it need to download at least dports, to know the list of available ports ??
No, it doesn't. You only need base, which is the source code of the project. "./configure", "make" and "sudo make install". Then run "sudo /opt/local/bin/port selfupdate" which will check if there is a new version of MacPorts available (and, if so, will download it and "./configure", "make" and "sudo make install" it), and will also download the dports tree via rsync.
thank you for explanations :-)
2 : why is there no longer in macports the readme files that there were in darwinports ?
I don't know what files you're referring to. What was in them? What information are you missing?
they are here : http://svn.macports.org/repository/macports/tags/release_1_3_2-archive/ but in fact i don't really need them, all what i need is on the web site :-) it's just better if at each time we download sth, we have a readme at once to not need to search after information elsewhere :-)
You don't really need to get the code from out repository though. Just download and install the disk image as above. Though you can certainly build it from source if you prefer that, for some reason.
i want to personalize the install directory to not need to be root, i don't know if the binaries would support it (svn doesn't support it)
Oh, ok. You're right, the binaries only work in /opt/local. If you want your own prefix, you need to download the source and "./configure --prefix=/whatever/you/want"
to be precise, i have to do ./configure --prefix=/my-macports-install-directory --with-install-user=me --with-install-group=mygroup to not have the installer trying to do chown root/admin
On Jul 23, 2007, at 16:36, Thomas De Contes wrote:
oh, it's possible to use rsync ! :-)) i didn't know
it's very nice, because it allows me to install macports on a new computer, needing neither macports binaries, nor svn binaries :-) i hope it will be maintained as is at least since svn will be integrated in mac os x, will it ? (who decides this sort of thing ?)
well, no matter if there is no svn URL which always points to the latest stable released version, since there is an rsync one :-)
MacPorts has used rsync for a long time (since the beginning?) and I don't know of any plans to remove that functionality.
ok, thank you :-)
FYI: I believe Mac OS X 10.5 Leopard will include Subversion (in the Developer Tools a.k.a. Xcode).
nice :-)
the command to do to use rsync is rsync -azv --delete-after rsync://rsync.macports.org/release/base/ macports/ isn't it ?
I don't know; I don't regularly use rsync and generally have to consult the manpage myself.
no matter, it works :-) -- Mon CV : http://tDeContes.hd.free.fr/divers/emploi/
Le 23 juil. 07 à 22:22, Thomas De Contes a écrit :
Le dimanche, 22 juil 2007, à 20:26 Europe/Paris, Ryan Schmidt a écrit :
On Jul 22, 2007, at 05:43, Thomas De Contes wrote:
btw, i have an other question for this script :
i did port install gtk2 port upgrade gtk2 and often it doesn't works
"it doesn't works" is not a bug report we can do anything with.
sorry
Show us the actual output you receive,
tell us what version of MacPorts, Xcode and Mac OS X you have,
all the last
what architecture you're on,
PPC
etc.
need you sth else ? :-)
and maybe we can help then.
i hope :-)
port install may do sth wrong if the port is already installed
what can i do instead ?
True, "port install" doesn't work if the port is already installed. That's why there's "port upgrade".
well, i posted this question before seeing that now port install gtk2 does nothing if gtk2 is installed sorry
i had problems when it tried to install anyway, and so made a part of the upgrade but not as it should
there is still the pb, but it seems to not happen at each time i don't know exactly in which conditions it happens or not i installed all of that in jully, an today i re-run my script to update all : + port install subversion ---> Activating subversion 1.4.5_0 Error: Target org.macports.activate returned: Image error: Another version of this port (subversion @1.4.4_0) is already active. Error: Status 1 encountered during processing. + port install mpfr ---> Activating mpfr 2.3.0_2+darwin_8 Error: Target org.macports.activate returned: Image error: Another version of this port (mpfr @2.2.1_1+darwin_8) is already active. Error: Status 1 encountered during processing. + port install gtk2 ---> Activating gtk2 2.10.14_0 Error: Target org.macports.activate returned: Image error: Another version of this port (gtk2 @2.10.13_0) is already active. Error: Status 1 encountered during processing. -- je milite contre l'assistanat, je travaille dans une SCOP !
Le 13 sept. 07 à 00:53, Thomas De Contes a écrit :
Le 23 juil. 07 à 22:22, Thomas De Contes a écrit :
Le dimanche, 22 juil 2007, à 20:26 Europe/Paris, Ryan Schmidt a écrit :
On Jul 22, 2007, at 05:43, Thomas De Contes wrote:
btw, i have an other question for this script :
i did port install gtk2 port upgrade gtk2 and often it doesn't works
"it doesn't works" is not a bug report we can do anything with.
sorry
Show us the actual output you receive,
tell us what version of MacPorts, Xcode and Mac OS X you have,
all the last
what architecture you're on,
PPC
etc.
need you sth else ? :-)
and maybe we can help then.
i hope :-)
port install may do sth wrong if the port is already installed
what can i do instead ?
True, "port install" doesn't work if the port is already installed. That's why there's "port upgrade".
well, i posted this question before seeing that now port install gtk2 does nothing if gtk2 is installed sorry
i had problems when it tried to install anyway, and so made a part of the upgrade but not as it should
there is still the pb, but it seems to not happen at each time i don't know exactly in which conditions it happens or not
i installed all of that in jully, an today i re-run my script to update all :
+ port install subversion ---> Activating subversion 1.4.5_0 Error: Target org.macports.activate returned: Image error: Another version of this port (subversion @1.4.4_0) is already active. Error: Status 1 encountered during processing.
+ port install mpfr ---> Activating mpfr 2.3.0_2+darwin_8 Error: Target org.macports.activate returned: Image error: Another version of this port (mpfr @2.2.1_1+darwin_8) is already active. Error: Status 1 encountered during processing.
+ port install gtk2 ---> Activating gtk2 2.10.14_0 Error: Target org.macports.activate returned: Image error: Another version of this port (gtk2 @2.10.13_0) is already active. Error: Status 1 encountered during processing.
-- je milite contre l'assistanat, je travaille dans une SCOP !
Thomas said you have to use `port upgrade`. -- Anthony Ramine, the infamous MacPorts Trac slave. nox@macports.org
On Sep 12, 2007, at 17:53, Thomas De Contes wrote:
Le 23 juil. 07 à 22:22, Thomas De Contes a écrit :
Le dimanche, 22 juil 2007, à 20:26 Europe/Paris, Ryan Schmidt a écrit :
On Jul 22, 2007, at 05:43, Thomas De Contes wrote:
btw, i have an other question for this script :
i did port install gtk2 port upgrade gtk2 and often it doesn't works
"it doesn't works" is not a bug report we can do anything with.
sorry
Show us the actual output you receive,
tell us what version of MacPorts, Xcode and Mac OS X you have,
all the last
what architecture you're on,
PPC
etc.
need you sth else ? :-)
and maybe we can help then.
i hope :-)
port install may do sth wrong if the port is already installed
what can i do instead ?
True, "port install" doesn't work if the port is already installed. That's why there's "port upgrade".
well, i posted this question before seeing that now port install gtk2 does nothing if gtk2 is installed sorry
i had problems when it tried to install anyway, and so made a part of the upgrade but not as it should
there is still the pb, but it seems to not happen at each time i don't know exactly in which conditions it happens or not
i installed all of that in jully, an today i re-run my script to update all :
+ port install subversion ---> Activating subversion 1.4.5_0 Error: Target org.macports.activate returned: Image error: Another version of this port (subversion @1.4.4_0) is already active. Error: Status 1 encountered during processing.
+ port install mpfr ---> Activating mpfr 2.3.0_2+darwin_8 Error: Target org.macports.activate returned: Image error: Another version of this port (mpfr @2.2.1_1+darwin_8) is already active. Error: Status 1 encountered during processing.
+ port install gtk2 ---> Activating gtk2 2.10.14_0 Error: Target org.macports.activate returned: Image error: Another version of this port (gtk2 @2.10.13_0) is already active. Error: Status 1 encountered during processing.
Ok, so as it says, you cannot "install" those ports because they are already installed. Instead of "port install subversion" you should have used "port upgrade subversion", etc. To fix this now, you need to: port deactivate subversion @1.4.4_0 port activate subversion @1.4.5_0 port deactivate mpfr @2.2.1_1+darwin_8 port activate mpfr @2.3.0_2+darwin_8 port deactivate gtk2 @2.10.13_0 port activate gtk2 @2.10.14_0 Once you are satisfied that the new versions work, you can remove the old versions: port uninstall subversion @1.4.4_0 port uninstall mpfr @2.2.1_1+darwin_8 port uninstall gtk2 @2.10.13_0 If you would like MacPorts to automatically uninstall the old version when activating the new version, use "port -u upgrade foo" instead of "port upgrade foo"
Le 13 sept. 07 à 02:06, Ryan Schmidt a écrit :
On Sep 12, 2007, at 17:53, Thomas De Contes wrote:
Le 23 juil. 07 à 22:22, Thomas De Contes a écrit :
Le dimanche, 22 juil 2007, à 20:26 Europe/Paris, Ryan Schmidt a écrit :
On Jul 22, 2007, at 05:43, Thomas De Contes wrote:
btw, i have an other question for this script :
i did port install gtk2 port upgrade gtk2 and often it doesn't works
port install may do sth wrong if the port is already installed
what can i do instead ?
True, "port install" doesn't work if the port is already installed. That's why there's "port upgrade".
well, i posted this question before seeing that now port install gtk2 does nothing if gtk2 is installed sorry
i had problems when it tried to install anyway, and so made a part of the upgrade but not as it should
there is still the pb, but it seems to not happen at each time i don't know exactly in which conditions it happens or not
i installed all of that in jully, an today i re-run my script to update all :
+ port install subversion ---> Activating subversion 1.4.5_0 Error: Target org.macports.activate returned: Image error: Another version of this port (subversion @1.4.4_0) is already active. Error: Status 1 encountered during processing.
+ port install mpfr ---> Activating mpfr 2.3.0_2+darwin_8 Error: Target org.macports.activate returned: Image error: Another version of this port (mpfr @2.2.1_1+darwin_8) is already active. Error: Status 1 encountered during processing.
+ port install gtk2 ---> Activating gtk2 2.10.14_0 Error: Target org.macports.activate returned: Image error: Another version of this port (gtk2 @2.10.13_0) is already active. Error: Status 1 encountered during processing.
Ok, so as it says, you cannot "install" those ports because they are already installed. Instead of "port install subversion" you should have used "port upgrade subversion", etc.
If you would like MacPorts to automatically uninstall the old version when activating the new version, use "port -u upgrade foo" instead of "port upgrade foo"
well, i try to make a script which can install or upgrade, without i have to tell what to do now i have : port install subversion port install mpfr port install gtk2 port -u upgrade outdated i though that in case of install, "port -u upgrade outdated" would do nothing, and in case of upgrade, "port install ..." would do nothing, but it's not like that how can i make my script ? or is it possible to modify "port install ..." to make it either do nothing, or upgrade properly ?
To fix this now, you need to:
port deactivate subversion @1.4.4_0 port activate subversion @1.4.5_0
port deactivate mpfr @2.2.1_1+darwin_8 port activate mpfr @2.3.0_2+darwin_8
port deactivate gtk2 @2.10.13_0 port activate gtk2 @2.10.14_0
Once you are satisfied that the new versions work, you can remove the old versions:
port uninstall subversion @1.4.4_0 port uninstall mpfr @2.2.1_1+darwin_8 port uninstall gtk2 @2.10.13_0
thank you :-) -- je milite contre l'assistanat, je travaille dans une SCOP !
Citando Thomas De Contes :
Le 13 sept. 07 à 02:06, Ryan Schmidt a écrit :
well, i try to make a script which can install or upgrade, without i have to tell what to do
now i have :
port install subversion port install mpfr port install gtk2 port -u upgrade outdated
i though that in case of install, "port -u upgrade outdated" would do nothing, and in case of upgrade, "port install ..." would do nothing, but it's not like that
how can i make my script ?
or is it possible to modify "port install ..." to make it either do nothing, or upgrade properly ?
port consists in phases that are executed one after another. install needs configure, build, destroot to have been done. And those do not conflict with the fact a previous version of the port already exist. Which means that when you do port install foo, what is done is done (only the last (activate) phase was erroneous). deactivate and activate are just some copying or moving of the built program.
If you want to upgrade a port, you can first deactivate it then install it. The thing upgrade does better is that it remembers the variants you had selected. If doing a "port installed foo" before deciding if you need to upgrade or install foo is too much a burden, you can try something like: port deactivate foo ; port install foo which will issue an error if foo was not installed and will then proceed to install it, and just install a new version if it is already installed. Emmanuel
Le 16 sept. 07 à 19:09, Emmanuel Hainry a écrit :
Citando Thomas De Contes :
well, i try to make a script which can install or upgrade, without i have to tell what to do
now i have :
port install subversion port install mpfr port install gtk2 port -u upgrade outdated
i though that in case of install, "port -u upgrade outdated" would do nothing, and in case of upgrade, "port install ..." would do nothing, but it's not like that
how can i make my script ?
or is it possible to modify "port install ..." to make it either do nothing, or upgrade properly ?
port consists in phases that are executed one after another. install needs configure, build, destroot to have been done. And those do not conflict with the fact a previous version of the port already exist. Which means that when you do port install foo, what is done is done (only the last (activate) phase was erroneous). deactivate and activate are just some copying or moving of the built program.
If you want to upgrade a port, you can first deactivate it then install it. The thing upgrade does better is that it remembers the variants you had selected. If doing a "port installed foo" before deciding if you need to upgrade or install foo is too much a burden, you can try something like:
port deactivate foo ; port install foo
which will issue an error if foo was not installed and will then proceed to install it, and just install a new version if it is already installed.
well, i try to understand all what you say, but i need help from those who have experience, because i don't kow how to make tests, for this sort of thing i tried : port deactivate active || exit port install subversion || exit port install mpfr || exit port install gtk2 || exit port -u upgrade outdated || exit + port deactivate active ---> Deactivating Xft2 2.1.12_0 ---> Deactivating apr 1.2.11_0 ---> Deactivating apr-util 1.2.10_0 ---> Deactivating atk 1.20.0_0 ---> Deactivating cairo 1.4.10_0 ---> Deactivating db44 4.4.20_1+darwin_8 ---> Deactivating expat 2.0.1_0 ---> Deactivating fontconfig 2.4.2_0+macosx ---> Deactivating freetype 2.3.5_0 ---> Deactivating gettext 0.16.1_0 ---> Deactivating glib2 2.14.0_0 ---> Deactivating gmp 4.2.1_4+test ---> Deactivating gtk2 2.12.0_0 ---> Deactivating jpeg 6b_2 ---> Deactivating libiconv 1.11_6+darwin_8 ---> Deactivating libpng 1.2.20_0+darwin_8 ---> Deactivating mpfr 2.3.0_2+darwin_8 ---> Deactivating ncurses 5.6_0+darwin_8 ---> Deactivating ncursesw 5.6_0+darwin_8 ---> Deactivating neon 0.26.4_0 ---> Deactivating openssl 0.9.8e_0+darwin_8 ---> Deactivating pango 1.18.1_0 ---> Deactivating pkgconfig 0.22_0 ---> Deactivating readline 5.2.007_0 ---> Deactivating render 0.9_1 ---> Deactivating sqlite3 3.4.2_0+darwin_8 ---> Deactivating subversion 1.4.5_0 ---> Deactivating tiff 3.8.2_0+darwin_8 ---> Deactivating xorg-util-macros 1.1.5_0 ---> Deactivating xorg-xproto 7.0.11_0 ---> Deactivating xrender 0.9.0_1+darwin_8 ---> Deactivating zlib 1.2.3_1 + port install subversion ---> Activating subversion 1.4.5_0 ---> Cleaning subversion + port install mpfr ---> Activating mpfr 2.3.0_2+darwin_8 ---> Cleaning mpfr + port install gtk2 ---> Activating gtk2 2.12.0_0 Error: Target org.macports.activate returned: shell command "gdk- pixbuf-query-loaders /Users/thomas/Documents/prgm/bin/autoinstall/ macports/lib/gtk-2.0/2.10.0/loaders/*.so > /Users/thomas/Documents/ prgm/bin/autoinstall/macports/etc/gtk-2.0/gdk-pixbuf.loaders" returned error 133 Command output: dyld: Library not loaded: /Users/thomas/Documents/ prgm/bin/autoinstall/macports/lib/libpango-1.0.0.dylib Referenced from: /Users/thomas/Documents/prgm/bin/autoinstall/ macports/bin/gdk-pixbuf-query-loaders Reason: image not found Error: Status 1 encountered during processing. + exit well, it seems that "port install foo" installs and activates all dependancies of foo if there is nothing, but activates only foo, without its dependancies, if all is already installed but not activated so, what do you thing about port deactivate outdated || exit port install subversion || exit port install mpfr || exit port install gtk2 || exit port -u upgrade outdated || exit ? and about port -u upgrade outdated || exit port install subversion || exit port install mpfr || exit port install gtk2 || exit ? sorry, all, i forget every time to do "reply all" instead of "reply" -- j'agis contre l'assistanat, je travaille dans une SCOP !
participants (6)
-
Daniel J. Luke
-
Emmanuel Hainry
-
Juan Manuel Palacios
-
N_Ox
-
Ryan Schmidt
-
Thomas De Contes