Commit Graph

30107 Commits

Author SHA1 Message Date
Matthew Flatt
b21e0d9132 fix shortcut for native packages 2013-07-07 11:44:07 -06:00
Matthew Flatt
1a0312acc0 Package-database reading and related library improvements
The main result is that `path->selative-string/library' now generates
"<pkg>/..." strings.

To make that possible, minimal support for reading the
installed-package database moved to a new `pkg/path' library.

To make that possible and avoid poetntial problems from concurrent
reading and writing of the database file, `racket/file' now provides
`call-with-atomic-output-file', which implements the write-and-move
dance that CM uses for compiled bytcode (i.e., `with-compile-output').
The new function is used to write links and installed-package files.

Finally, `racket/base' provides the new function
`call-with-default-reading-parameterization', which is used to guard
various file `read's to make them consistent and avoid security holes.
2013-07-07 11:26:40 -06:00
Sam Tobin-Hochstadt
beea085484 Email me on all Travis builds. 2013-07-07 12:53:33 -04:00
Matthew Flatt
7ef5048961 `filesystem-change-evt' and use repairs 2013-07-07 08:12:43 -06:00
Matthew Flatt
22ab892143 minor Makefile and C fixes 2013-07-07 06:42:00 -06:00
Matthew Flatt
9a3f423c51 redex: "info.rkt" fix for moved documentation 2013-07-07 06:42:00 -06:00
Matthew Flatt
b8e20f5a3e use `filesystem-change-evt' and static roots to speed library search
Use `filesystem-change-evt' (where supported) to detect changes to
collection link files.

Add "static root" as a new kind of collection root directory in links
files. A static root directory is assumed to not change (in terms of
its collection subdirectories) as long as the links file itself does
not change.

Propagate the notion of static roots through `raco link' and `raco pkg
install'.

Change the `pkg-links' makefile target to install static links
instead of plain links.

The result of all of these changes is to cut 25%-33% of the
time for `racket -l racket', bringing it back in line with
the pre-package-reorganization time.
2013-07-07 06:42:00 -06:00
Matthew Flatt
3b0566ea0a add `filesystem-change-evt'
The `filesystem-change-evt' function takes a path to a file
or directory and returns an event that becomes ready when
the file or directory changes (conservatively, so false
positives are possible).

These events are supported on Linux, Mac OS X and other BSD
variants with kqueue(), and Windows.
2013-07-07 06:41:59 -06:00
Matthew Flatt
5d58b2d14d raco setup: fix problem when documentation is not built
Support for pre-rendered documentation could get confused when
the location of source for already-built documentation changes.
2013-07-07 06:41:59 -06:00
Matthew Flatt
580a6cd24a show available snapshots on main page 2013-07-07 06:41:59 -06:00
Eli Barzilay
28fc893c70 Add missing test.
(...which was tested accidentally in the url tests.)
2013-07-06 23:39:23 -04:00
Eli Barzilay
62fc516c24 Avoid duplicating code in test files. 2013-07-06 23:38:33 -04:00
Robby Findler
31fbce7e5a depend on redex-lib instead of all of redex 2013-07-06 14:34:47 -05:00
Robby Findler
5dbc59e8e8 unbreak drracket 2013-07-06 12:43:29 -05:00
Robby Findler
8f539d994b adjust the collection sorting that 'raco setup' so that it works
in our new pkgs world (and has a, hopefully, similar effect)
2013-07-06 11:43:53 -05:00
Matthew Flatt
3afdf8c622 snapshots: access current installers via "current" path 2013-07-06 10:26:18 -06:00
Robby Findler
735c465eff bring down below 102 columns 2013-07-06 10:38:28 -05:00
Robby Findler
c107ad1f77 fix c:c;c:e for empty sequences
closes PR 13905
2013-07-06 10:38:27 -05:00
Robby Findler
50fb71247d get framework tests running again 2013-07-06 10:38:27 -05:00
Robby Findler
1b86794e29 add gui-test pkg 2013-07-06 10:38:26 -05:00
Robby Findler
f56c94b9f5 bring down below 102 columns 2013-07-06 10:38:26 -05:00
Sam Tobin-Hochstadt
5e8a9780e8 Run the net tests under raco test. 2013-07-06 10:26:56 -04:00
Sam Tobin-Hochstadt
d843237512 Update DrDr documentation with the correct command. 2013-07-06 10:16:59 -04:00
Matthew Flatt
4266e606e3 fix GC bug
This is a variant of the bug fixed in
49fbca5b18,
where a GC-notification callback still
could cause problems in a GC during a finalization
callback.

(Bug found by running tests in GC-stress mode.)
2013-07-06 07:21:46 -06:00
Matthew Flatt
d618a8d616 fix an FFI test case 2013-07-06 07:20:44 -06:00
Matthew Flatt
e3eed89b1d fix GC bug in FFI
A foreign procedure's data could get GCed before the procedure
was called, if the procedure is not otherwise reachable.

(Bug found by running tests in GC-stress mode.)
2013-07-06 07:19:42 -06:00
Matthew Flatt
7e27bda44c move configuration-file info from "INSTALL.txt" to "pkgs/distro-build" 2013-07-06 05:53:01 -06:00
Matthew Flatt
888ec4dae8 snapshot management: add "current" link 2013-07-06 05:51:06 -06:00
Asumu Takikawa
4767c58ac3 Fix some INSTALL.txt typos 2013-07-05 22:06:19 -04:00
Eli Barzilay
8d55b892ec Further explain silent acceptance of unencoded characters.
Also highlight the two tests that use that.
2013-07-05 20:20:49 -04:00
Matthew Flatt
91c43fed9d Clean up site configuration module docs and defaults
As a result, `make installers' produces an installer with no further
configuration on a non-Windows platform, even without `git'.
2013-07-05 17:41:06 -06:00
Matthew Flatt
8be8057ff7 raco setup: just core "racket" for initial sequential build 2013-07-05 17:41:06 -06:00
Eli Barzilay
14bb91d427 Indentation fix. 2013-07-05 19:23:05 -04:00
Eli Barzilay
942d014e0c Remove unnecessary line. 2013-07-05 18:16:51 -04:00
Eli Barzilay
f90fe4c598 Get rid of the `#:function' keyword.
These problems are always dealt with via an internal function instead of
making the name argument part of the visible API.
2013-07-05 18:16:51 -04:00
Eli Barzilay
210c71d91c Simplify decoding code into one `cond'.
(It's likely to get written in some better way, for example, avoid the
extra work for simple strings.)
2013-07-05 18:16:51 -04:00
Eli Barzilay
bc00e29602 Simplify + improve unicode testing code.
When the file is not found, use (current-load-relative-directory)
instead of having it end up in the working directory.
2013-07-05 18:16:51 -04:00
Asumu Takikawa
328956e8b5 Fix type error reporting for case-> with * domains
In the case that a case-> type included a case with a *
domain and had additional branches, a use of `apply` with
that type would fail to report a type error. This was
because the type of the applied list was ignored for type
error generation.

Closes PR 13893
2013-07-05 18:08:12 -04:00
Sam Tobin-Hochstadt
6d9dbe5c43 appropriate CPU usage on Travis 2013-07-05 16:26:39 -04:00
Robby Findler
88859d5e78 splitting up redex into multiple pkgs:
- cleaning up info.rkt files
- adjusting relative requires

Also: removed dependency on compatibility-lib (from redex-lib)
2013-07-05 15:05:23 -05:00
Robby Findler
422e0f7fb6 splitting up redex into multiple pkgs: move files around commit 2013-07-05 15:05:22 -05:00
Matthew Flatt
2f637741e2 switch makefile's parallelism control to `JOB_OPTIONS'
Avoid potential collision with `PLT_SETUP_OPTIONS' as an environment
variable.
2013-07-05 12:09:09 -06:00
Matthew Flatt
a8ed2b1546 Add -j'/--jobs' <n> argument to `raco pkg install', etc.
Also, thread `PLT_SETUP_OPTIONS' though server and client build
(so that a `#:j' configuration works as intended).
2013-07-05 11:33:57 -06:00
Matthew Flatt
ddbc8e5f40 Support a CPUS=<n> argument for the `in-place' makefile target
Also, make `distro-build/drive-clients' use `#:j' configuration
for `PLT_SETUP_OPTIONS'.
2013-07-05 10:52:38 -06:00
Sam Tobin-Hochstadt
8e7a5aa7e3 Run the now-working URL tests, since they're not in test. 2013-07-05 11:47:57 -04:00
Sam Tobin-Hochstadt
f5cdee3d53 Improve racket-tests deps. 2013-07-05 11:46:56 -04:00
Sam Tobin-Hochstadt
a4e529a816 Fix wide-character decoding in URLs. 2013-07-05 11:46:56 -04:00
Sam Tobin-Hochstadt
0295d44316 Ignore test-generated file 2013-07-05 11:46:56 -04:00
Matthew Flatt
4d42accf2e fix for distro-build/drive-clients 2013-07-05 09:45:16 -06:00
Matthew Flatt
41399c1f51 add distro-builds/manage-snapshots 2013-07-05 09:18:00 -06:00