Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On Macintosh/MPW, please don't put a full-path in camlheader #2700

Closed
vicuna opened this issue Mar 5, 2001 · 1 comment
Closed

On Macintosh/MPW, please don't put a full-path in camlheader #2700

vicuna opened this issue Mar 5, 2001 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Mar 5, 2001

Original bug ID: 303
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Hao-yang Wang
Version: 3.00
OS: MacOS/MPW
Submission from: 95x16.filemaker.com (17.184.16.95)

The file camlheader contains a full directory path to ocamlrun . While this
might be a good practice on a multi-user environment (especially UNIX), on
Macintosh (under MPW) this causes some problems:

  1. It creates nightmares in distribution, as every Macintosh users tend to name
    their harddisks differently and put their MPW folders in different places.
  2. Whenever somebody moves the MPW folder, rename the harddisk, etc., ocaml is
    broken.

Here is my patch to remove the full-path from camlheader:

diff -cr ocaml-3.00~/stdlib/Makefile.Mac ocaml-3.00/stdlib/Makefile.Mac
*** ocaml-3.00~/stdlib/Makefile.Mac Tue Apr 18 04:01:40 2000
--- ocaml-3.00/stdlib/Makefile.Mac Fri Jul 21 18:24:08 2000


*** 36,42 ****

camlheader ƒ
begin
! quote -n "{BINDIR}ocamlrun"; echo ' "{command}" {"Parameters"}'
echo 'exit {status}'
echo
end > camlheader
--- 36,42 ----

camlheader ƒ
begin
! quote -n "ocamlrun"; echo ' "{command}" {"Parameters"}'
echo 'exit {status}'
echo
end > camlheader

@vicuna
Copy link
Author

vicuna commented Mar 6, 2001

Comment author: administrator

From: hywang@pobox.com

The file camlheader contains a full directory path to ocamlrun . While this
might be a good practice on a multi-user environment (especially UNIX), on
Macintosh (under MPW) this causes some problems:

  1. It creates nightmares in distribution, as every Macintosh users tend to
    name
    their harddisks differently and put their MPW folders in different places.
  2. Whenever somebody moves the MPW folder, rename the harddisk, etc., ocaml is
    broken.

The advantage is that ocamlrun doesn't need to be in the command
path. But I agree the problems are more important, so I'll make the
change.

-- Damien

@vicuna vicuna closed this as completed Mar 6, 2001
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant