How come macports does not recognize "exit" ?
---> Fetching XFree86 Error: You have an Apple X11 installation already. MacPorts will not overwrite it. If you really want to use XFree86 instead, please move it aside first : sudo mv /usr/X11R6 /usr/X11R6.apple Error: Target org.macports.fetch returned: invalid command name "exit" Error: Status 1 encountered during processing. yves
On Jul 25, 2007, at 10:31 AM, Yves de Champlain wrote:
---> Fetching XFree86
Error: You have an Apple X11 installation already. MacPorts will not overwrite it.
If you really want to use XFree86 instead, please move it aside first :
sudo mv /usr/X11R6 /usr/X11R6.apple
Error: Target org.macports.fetch returned: invalid command name "exit" Error: Status 1 encountered during processing.
It was added because ports shouldn't exit (they shouldn't be able to kill the tcl interpreter that they're running in), but instead should just return an error. -- 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 07-07-25 à 10:59, Daniel J. Luke a écrit :
On Jul 25, 2007, at 10:31 AM, Yves de Champlain wrote:
---> Fetching XFree86
Error: You have an Apple X11 installation already. MacPorts will not overwrite it.
If you really want to use XFree86 instead, please move it aside first :
sudo mv /usr/X11R6 /usr/X11R6.apple
Error: Target org.macports.fetch returned: invalid command name "exit" Error: Status 1 encountered during processing.
It was added because ports shouldn't exit (they shouldn't be able to kill the tcl interpreter that they're running in), but instead should just return an error.
If I understand, the following code should end with "return 1" instead of "exit 1" ? } elseif { [file exists ${prefix}/include/X11/X.h] } { ui_error " You have an Apple X11SDK installation already. MacPorts will not overwrite it. If you wish to use Apple X11, install it from your MacOSX install disc. If you really want to use XFree86 instead, please move it aside first : sudo mv /usr/X11R6 /usr/X11R6.apple " exit 1 } thanks yves
On Jul 25, 2007, at 11:17 AM, Yves de Champlain wrote:
If I understand, the following code should end with "return 1" instead of "exit 1" ?
Yes, or you could use "return -code error" You can also include some explanation (like the fusefs Portfile does), but I'm not sure if/how the macports infrastructure uses 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. | +========================================================+
Le 07-07-25 à 11:22, Daniel J. Luke a écrit :
On Jul 25, 2007, at 11:17 AM, Yves de Champlain wrote:
If I understand, the following code should end with "return 1" instead of "exit 1" ?
Yes, or you could use "return -code error"
You can also include some explanation (like the fusefs Portfile does), but I'm not sure if/how the macports infrastructure uses it.
It uses it very well :-) Bilbo:/usr/X11R6 yves$ sudo port fetch XFree86 ---> Fetching XFree86 Error: Target org.macports.fetch returned: You have an Apple X11 installation already. MacPorts will not overwrite it. If you really want to use XFree86 instead, please move it aside first : sudo mv /usr/X11R6 /usr/X11R6.apple Error: Status 1 encountered during processing. yves
participants (2)
-
Daniel J. Luke
-
Yves de Champlain