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
OCaml inappropriately installs binaries in the library directory #6959
Comments
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc. |
I guess this still needs to be fixed.
Will try to provide a fix ASAP.
|
#9523 deals with a similar issue due to the fact that header files are installed in the library dir, maybe one could combine a fix for both. |
Bernhard Schommer (2020/06/04 15:16 +0000):
#9523 deals with a similar issue due to the fact that header files are
installed in the library dir, maybe one could combine a fix for both.
Do you really mena `.h` files?
From what I can see in `runtime/Makefile` those seem to be installed in
`$(INSTALL_INCDIR)`...
|
The Problem is that the If you split the install directories of the binaries and libraries one could additionally change the way the includes are installed, but I'm unsure if that would be a practical solution. On the other hand if the binaries are no longer installed in |
I'll have to investigate whether autoconf provides support for header
directories as it does for library directories. Not sure.
|
I think it does as |
I was about to write exactly the same thing. We could un-recommend this usage in the manual, but a lot of makefiles use it in the wild. I think we can find a different solution for #9523. |
After thinking about this a little more I would argue that if this issue is fixed, i.e. the binaries are no longer installed in |
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc. |
Still relevant, I think.
|
Sorry, I'm getting confused. What's the status of this?
Is the problem solved? Or it doesn't interest people any longer, or
what?
|
As far as I can tell the problem is still there. |
Good lateral thinking!
I thought
It was used in conjunction with a function from the |
I'll submit a PR to stop installing those programs.
|
Just for the reference I thought |
Vincent Laviron (2021/08/12 06:36 -0700):
As far as I can tell the problem is still there.
However the solution might be to stop installing these executables completely.
`expunge` is used to create the toplevel, but doesn't need to be installed (I don't know about other toplevels, but `utop` at least doesn't rely on it).
I don't even know what `extract_crc` is used for. It appears to have
been present since 1995, but I can't find a single use of it anywhere.
I guess it was probably used for debugging before `ocamlobjinfo` was
introduced.
|
Original bug ID: 6959
Reporter: michi
Assigned to: @shindere
Status: assigned (set by @shindere on 2017-02-16T14:16:40Z)
Resolution: open
Priority: normal
Severity: tweak
Version: 4.02.2
Target version: 4.07.0+dev/beta2/rc1/rc2
Category: configure and build/install
Monitored by: @gasche
Bug description
On some UNIX-like systems, the preferred place to install program
utilities run by another program is the libexec folder the lib folder
is reserver for libraries.
The two programs installed under
lib/ocaml/expunge
lib/ocaml/extract_crc
could therefore be installed under
libexec/ocaml/expunge
libexec/ocaml/extract_crc
This practice is standard on BSD and while it is also encouraged by GNU, it does not seem to otherwise have the status of a standard on Linux.
I do not know what these programs do, would it be worth the trouble of moving them? Maybe having shell wrappers in the lib/ocaml directory calling the new tools in libexec/ocaml after having issued a warning for some transition period.
The text was updated successfully, but these errors were encountered: