Re: Make, in place build, was Re: [racket-users] Racket v6.2

2015-09-11 Thread Gustavo Massaccesi
I'm using:

make in-place PKGS="racket-test-core"

This install only a small set of packages, so the build time is short.
Also, the time of "raco setup" is smaller.

I usually add a few additional packages when I need them, for example
"compiler-lib".

Gustavo



On Fri, Sep 11, 2015 at 12:06 AM, Anthony Carrico  wrote:
> On 09/10/2015 08:40 PM, Anthony Carrico wrote:
>> I'll forward you a transcript of a failed build.
>
> FYI: Off list Matthew suggested that it ran out of memory, and indeed
> the build succeeds with more free memory.
>
> --
> Anthony Carrico
>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Make, in place build, was Re: [racket-users] Racket v6.2

2015-09-10 Thread Anthony Carrico
On 09/10/2015 08:40 PM, Anthony Carrico wrote:
> I'll forward you a transcript of a failed build.

FYI: Off list Matthew suggested that it ran out of memory, and indeed
the build succeeds with more free memory.

-- 
Anthony Carrico


-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: Make, in place build, was Re: [racket-users] Racket v6.2

2015-09-10 Thread Anthony Carrico
On 09/10/2015 04:27 PM, Matthew Flatt wrote:
> At Thu, 10 Sep 2015 15:10:27 -0400, Anthony Carrico wrote:
>> This failed to
>> build, I guess because of package mismatches, so I pulled and tried
>> again, which failed.
> 
> I'm a little curious about that failure, but many things can go wrong
> at this level.

I'll forward you a transcript of a failed build.

-- 
Anthony Carrico

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Make, in place build, was Re: [racket-users] Racket v6.2

2015-09-10 Thread Matthew Flatt
At Thu, 10 Sep 2015 15:10:27 -0400, Anthony Carrico wrote:
> I did a 2 character change to Racket (see
> https://github.com/plt/racket/pull/1045), and hit make.

For that case, I would use `raco setup` instead of `make` (since it's
not a change to the runtime). Or I might use `make as-is`, which
refrains from updating packages and is otherwise mostly `raco setup`.

> This failed to
> build, I guess because of package mismatches, so I pulled and tried
> again, which failed.

I'm a little curious about that failure, but many things can go wrong
at this level.

> 1. This is a slow way to work. I'm wondering what cycle the primary devs
> use? Avoid make somehow?

Changing something as primitive is "kw.rkt" is slow for me, too. I
would use something like `raco setup racket` to first try out the
change on limited set of modules, but a full `raco setup` is usually
not far behind.

> 2. Is it possible to extract the in place build from the fast desktop to
> use on my laptop (same architecture)?

Yes, you should be able to copy over an in-place build, and using `tar`
to preserve timestamps will work best. The contents of the
"racket/src/build" directory tend to be sensitive to the path, though,
so you'd have to discard that part.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Make, in place build, was Re: [racket-users] Racket v6.2

2015-09-10 Thread Anthony Carrico
I did a 2 character change to Racket (see
https://github.com/plt/racket/pull/1045), and hit make. This failed to
build, I guess because of package mismatches, so I pulled and tried
again, which failed.
Also, my laptop is very slow for this kind of thing, so I did a fresh
clone and in place build on a faster desktop, which went fine.

Next I reapplied my 2 character change and hit make again. It started
off and I got bored an went to lunch. Later it was done and everything
is nice.

1. This is a slow way to work. I'm wondering what cycle the primary devs
use? Avoid make somehow?

2. Is it possible to extract the in place build from the fast desktop to
use on my laptop (same architecture)?

On 06/23/2015 08:39 PM, Jay McCarthy wrote:
> Here's what I do for building from git, and I think it's the simplest thing:
> 
> $ git clone https://github.com/plt/racket
> $ cd racket
> $ make
> 
> This clones a single (small) repository and then builds everything. It
> will automatically install the latest version of whatever other
> packages you need without actually cloning any of the other
> repositories. This means that you have a pretty minimal connection to
> git.
> 
> When you need to update again, you can just update racket and then do
> another "make" and it will download the updates for the packages too.
> 
> Now, sometimes you will actually want to have the git repos of other
> packages. That's easy too. Since I work on the Web server, here's what
> I did:
> 
> # Create a helpful directory. There's nothing special about this name,
> but I like it
> $ mkdir extra-pkgs
> $ cd extra-pkgs
> # Tell racket to switch the web-server package from being a tar-ball
> install to being a git clone
> $ raco pkg update --clone web-server
> 
> Now I'm good to go to
> 
> $ cd web-server
> $ ed web-server-lib/web-server/main.rkt
> 
> and so forth.
> 
> Something that is neat about the new world is that it is easy to have
> a released version of Racket downloaded from the site, but have a git
> clone of some small set of other package repos that you are doing
> development on. The only difference will be the first three steps.
> 
> I hope this helps,
> 
> <3
> 
> Jay
> 

-- 
Anthony Carrico

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.