I'm just curious, but how is this (cool thing) done? =)
kind regards -botp
···
Mauricio Fernández [mailto:batsman.geo@yahoo.com] wrote:
* self-hosting: rpa-base installs and updates itself
I'm just curious, but how is this (cool thing) done? =)
kind regards -botp
Mauricio Fernández [mailto:batsman.geo@yahoo.com] wrote:
* self-hosting: rpa-base installs and updates itself
When ruby runs it loads the scripts into memory.
The ruby interpreter than overwrites any rpa-base
files. When it closes and is ran the next time, then
you will have the newly installed rpa-base. ![]()
--David Ross
--- "Peña,_Botp" <botp@delmonte-phil.com> wrote:
Mauricio Fernández [mailto:batsman.geo@yahoo.com]
wrote:> * self-hosting: rpa-base installs and updates
itselfI'm just curious, but how is this (cool thing) done?
=)kind regards -botp
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
It is packaged as just another port; rpa-base is generic enough to handle
it without any problem. When bootstrapping, rpa-base will ask for some
configuration options ($prefix and some other paths) which will be reused
when you upgrade it.
As a side benefit, if you can install rpa-base on your system at all,
it is very likely that other ports will work, since you were already
using rpa-base when it installed itself ![]()
At the moment
rpa install rpa-base
is not guaranteed to be atomic (although in many cases it can recover
OK), so in the worst case you would have to reinstall rpa-base; even in
such a case, all the ports/packages that were installed previously would
be recognized (that is, you wouldn't lose anything).
I know how to make self-upgrade atomic and will probably implement
it next week. You can safely install it now, since it will be made
available through a normal 'self-update'.
On Fri, Aug 06, 2004 at 07:25:10PM +0900, "Peña, Botp" wrote:
Mauricio Fernández [mailto:batsman.geo@yahoo.com] wrote:
> * self-hosting: rpa-base installs and updates itself
I'm just curious, but how is this (cool thing) done? =)
--
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com
Looks good so far. It bootstrapped fine, but I'm not able to download
ports. Is there any way to tell rpa to connect through an http proxy?
Keep up the good work!
- CT
On Fri, 6 Aug 2004 20:49:57 +0900, Mauricio Fernández <batsman.geo@yahoo.com> wrote:
On Fri, Aug 06, 2004 at 07:25:10PM +0900, "Peña, Botp" wrote:
> Mauricio Fernández [mailto:batsman.geo@yahoo.com] wrote:
>
> > * self-hosting: rpa-base installs and updates itself
>
> I'm just curious, but how is this (cool thing) done? =)It is packaged as just another port; rpa-base is generic enough to handle
it without any problem. When bootstrapping, rpa-base will ask for some
configuration options ($prefix and some other paths) which will be reused
when you upgrade it.As a side benefit, if you can install rpa-base on your system at all,
it is very likely that other ports will work, since you were already
using rpa-base when it installed itselfAt the moment
rpa install rpa-base
is not guaranteed to be atomic (although in many cases it can recover
OK), so in the worst case you would have to reinstall rpa-base; even in
such a case, all the ports/packages that were installed previously would
be recognized (that is, you wouldn't lose anything).I know how to make self-upgrade atomic and will probably implement
it next week. You can safely install it now, since it will be made
available through a normal 'self-update'.--
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com
It will use the proxy specified in the environment variable "http_proxy".
For instance
export http_proxy="http://localhost:10000" in .bashrc
Don't forget to
rpa update
regularly to keep the info about available packages up-to-date.
On Mon, Aug 09, 2004 at 04:14:43PM +0900, CT wrote:
Looks good so far. It bootstrapped fine, but I'm not able to download
ports. Is there any way to tell rpa to connect through an http proxy?
--
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com
Hi,
I am using a mingw version of ruby (1.8.1) and I had to add
$stdout.sync=true
at the top of install.rb in order to see
the questions about the default directory.
Apart from that the installation process freezes just after
Reloading defaults...
Also it would be nice to have
a command line selection of the proxy like rubygems do ( --proxy=... )
So far it looks very nice.
Thanks!
Mauricio Fernández <batsman.geo@yahoo.com> wrote in message news:<20040809100537.GA2811@student.ei.uni-stuttgart.de>...
On Mon, Aug 09, 2004 at 04:14:43PM +0900, CT wrote:
> Looks good so far. It bootstrapped fine, but I'm not able to download
> ports. Is there any way to tell rpa to connect through an http proxy?
>It will use the proxy specified in the environment variable "http_proxy".
For instance
export http_proxy="http://localhost:10000" in .bashrcDon't forget to
rpa update
regularly to keep the info about available packages up-to-date.
I am using a mingw version of ruby (1.8.1) and I had to add
$stdout.sync=true
at the top of install.rb in order to see
the questions about the default directory.
Thanks for your report, I had only tested it on cygwin and the
'Pragmatic installer'.
Since this issue affects the bootstrapping phase, I've decided to
release the correction through rubyforge.org (instead of only as an
incremental upgrade with rpa install rpa-base).
http://rubyforge.org/frs/?group_id=265
Also it would be nice to have
a command line selection of the proxy like rubygems do ( --proxy=... )
Please try to
rpa update
rpa install rpa-base
The following options:
--proxy http://whatever:8080
--no-proxy don't use a proxy, whatever ENV["http_proxy"] says
should be now honored when doing rpa update or rpa install, as well as when
running directly a "RPAfied install.rb" (i.e. the sort of things you get
when you do rpa source portname; cd portname).
On Tue, Aug 10, 2004 at 10:36:15PM +0900, Iki wrote:
--
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com
Thanks!
What about the freezing issue?
Installation (install.rb) still freezes after posting:
Storing defaults...
Reloading defaults...
I am sorry for the late replies but I am using google news service and
it takes a while to update-send the messages.
Thanks again
Mauricio Fernández <batsman.geo@yahoo.com> wrote in message news:<20040810174310.GA21741@student.ei.uni-stuttgart.de>...
On Tue, Aug 10, 2004 at 10:36:15PM +0900, Iki wrote:
> I am using a mingw version of ruby (1.8.1) and I had to add
>
> $stdout.sync=true
>
> at the top of install.rb in order to see
> the questions about the default directory.Thanks for your report, I had only tested it on cygwin and the
'Pragmatic installer'.Since this issue affects the bootstrapping phase, I've decided to
release the correction through rubyforge.org (instead of only as an
incremental upgrade with rpa install rpa-base).http://rubyforge.org/frs/?group_id=265
> Also it would be nice to have
> a command line selection of the proxy like rubygems do ( --proxy=... )Please try to
rpa update
rpa install rpa-baseThe following options:
--proxy http://whatever:8080
--no-proxy don't use a proxy, whatever ENV["http_proxy"] saysshould be now honored when doing rpa update or rpa install, as well as when
running directly a "RPAfied install.rb" (i.e. the sort of things you get
when you do rpa source portname; cd portname).
The tarball/zip with 0.2.0a you can find on Rubyforge.org has now
$stdout.sync = true
I can't see why it is stalled at that stage: it installs OK on just
about everything else (including two other Ruby builds for win32).
Could you try to interrupt it (CTRL-C) and give me a backtrace?
You might need to run install.rb with --debug.
On Wed, Aug 11, 2004 at 10:16:32PM +0900, Iki wrote:
Thanks!
What about the freezing issue?
Installation (install.rb) still freezes after posting:>Storing defaults...
>Reloading defaults...
>===================================================I am sorry for the late replies but I am using google news service and
it takes a while to update-send the messages.
--
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com