Commit Graph

14 Commits

Author SHA1 Message Date
Matthew Flatt
5affb68478 raco exe: fix handling of unwritable source executable
Make the executable writable while it's patched for new content.

Closes PR 15008

Merge to v6.2
2015-04-28 15:32:52 -06:00
Matthew Flatt
16a9f86f90 raco exe: preserve lib form of runtime submodule references
Otherwise, executable creation can fail because a module is referenced
both through a `lib` path and through a filesystem path.
2015-02-27 12:27:27 -07:00
Matthew Flatt
42e0d69746 racket/runtime-path: fix problems with 'so paths
Search for versions within a library directory, instead of searching
across library directories for a version. That way, user-specific libraries
can take precedence generally.

Fix the construction of library names with versions to match `ffi-lib`.
Specifically, put the version after the suffix on platforms other than
Mac OS X.

Put the code to resolve 'so specs in one place.
2014-06-11 09:23:04 +01:00
Matthew Flatt
f02d9268ec adjust some collection-file-path calls to work with binary packages
In a few cases, sources should be preserved in binary mode.
2014-06-02 20:13:00 +01:00
Matthew Flatt
0c9685d136 raco exe: normalize runtime-file paths
Normalization is needed to ensure that `raco dist` doesn't generate
longer paths (by converting a "/" to "\\", for example) in its
path manipulations.
2014-04-30 14:23:46 -06:00
Matthew Flatt
07e390302c raco exe: attempt to fix problem with room made for runtime-paths table 2014-04-29 06:18:55 -06:00
Matthew Flatt
8253994434 create-embedding-executable: fix namespace and module-declaration problem 2014-03-09 08:44:53 -06:00
Matthew Flatt
33b7d49b2e raco exe: add --config-path option, default to "etc"
Make executables created by `raco exe` not refer to the original
configuration directory by default, but add an option for setting
the directory.

For Unix ELF executables, fix `raco exe` to set/preserve the
configuration directory.

Merge to v6.0
2013-11-29 13:13:25 -07:00
Matthew Flatt
c7d4b7d388 define-runtime-path: add support for version search to 'so form
Merge to v6.0
2013-11-22 07:26:43 -07:00
Matthew Flatt
846c247aa3 raco exe: fix problem with dynamically resolved relative submodules 2013-11-08 18:13:43 -07:00
Matthew Flatt
23f4a8e56e racket/runtime-path: fix ".ss" vs. ".rkt" search for lib paths
The package split exposed another place where searching
is needed, because the fallback in `collection-file-path`
to `collection-path` didn't work after the split.
2013-10-11 13:11:13 -06:00
Sam Tobin-Hochstadt
9f2755116d Remove units in parts of compiler, dynext, setup and create the cext-lib package.
`cext-lib` contains much of the contents of `dynext`, which
is no longer very widely used.

Also moved the implementation of the `mzc` executable
to a more appropriate package.

Also, used `lazy-require` consistently for dynamically
loading implementations.
2013-09-26 14:53:51 -04:00
Matthew Flatt
d175c3949c move "scheme" collection to a "scheme-lib" package
Also, move remaining "srfi" libraries to "srfi-lite-lib".

In principle, "base" should depend on "scheme-lib" and
"srfi-lite-lib", and a new "base2" package would represent the new,
smaller base. But I don't think the window has yet closed on
determining the initial "base" package.

The "srfi" libraries moved to "srfi-lite-lib", instead of "srfi-lib",
to avoid creating many extra dependencies on "srfi-lib" and all of its
dependencies. The SRFIs in "srfi-lite-lib" depend only on "base",
and they are used relatively widely.
2013-08-27 15:19:24 -06:00
Matthew Flatt
67a9889ef7 add "share", move "collects" back out of "lib", move "pkgs"
The "share" directory holds platform-independent files, while
"lib" holds platform-specific files.

In principle, the "collects" directory belongs in "share",
as does "doc". Those directories are put into "share"
by a Unix-style install, but left at top level for an
in-place install.

Packages in installation scope are put in "share" instead
of "lib", and the top-level Makefile puts development links
in "share/devel-pkgs".

The `configure' script now supports `--docdir' and `--collectsdir'.

Changed the version to 5.90.0.1.
2013-07-19 11:52:02 -06:00