-
Notifications
You must be signed in to change notification settings - Fork 412
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
man dir does not change as specified by --mandir #10229
Comments
Instead of having
I got.
I think there's an override somewhere using |
Sorry edited #10229 (comment). |
On my end, the process fails without PREFIX, asking me to enter a prefix another way (
|
I have got what's happening. In your case you don't have.
Could means there's no opam in that environment. The rest of installation have to go somewhere. I know this is not ideal, just to notice. |
The problem is cumming from here, the Lines 37 to 46 in 1f80426
Could solve the issue before a fix:
A PR will be opened sooner :) |
Signed-off-by: Alpha DIALLO <moyodiallo@gmail.com>
Signed-off-by: Alpha DIALLO <moyodiallo@gmail.com>
Signed-off-by: Alpha DIALLO <moyodiallo@gmail.com>
Signed-off-by: Alpha DIALLO <moyodiallo@gmail.com>
Signed-off-by: Alpha DIALLO <moyodiallo@gmail.com>
Would you like to confirm if this PR #10240, fixes your issue @jyssh . You can find the branch here https://github.com/moyodiallo/dune/tree/fix-setup-configure. |
@moyodiallo I am still new at using I will ask for help on pkgsrc channel. But it might take a while - pkgsrc for me is only a backup package manager. |
I drafted the PR opened to fix the issue. It turns out not to be a suitable fix. I'll keep noticing any progress that is made. |
Your issue could be solve by just doing: $ ./dune.exe install --prefix fake_root --mandir /home/.../dune/fake_root/share/man dune And you could add |
I'm a pkgsrc committer, and this issue has come to my attention as I try to fix some breakage on Darwin. Any luck figuring out how to make the build system respect I could try to hack the pkgsrc package to override the install command, but that would be ugly. |
Build system does not respect "configure --mandir" Added patch to control mandir during install ocaml/dune#10229
Could you describe the issue more thoroughly? The workaround in NetBSD/pkgsrc@26f445c For reference, you can see the build commands we use for opam in dune.opam. Note that we don't need an install command because opam automatically installs everything in dune.install. |
In symmetric with --prefix in the install command. Fix #10229 Signed-off-by: Rudi Grinberg <me@rgrinberg.com> <!-- ps-id: 0a9b3e1e-91d9-4ccf-8780-2210fe3d656c -->
Reading this issue again, I think we're just missing a |
Perhaps something like this would be helpful to future users?
|
Actually, I'm not seeing how those changes would help. The issue was exposed when changing mandir to "PREFIX/share/man", instead of just "PREFIX/man" (i.e. PKGMANDIR from "man" to "share/man"). The patches in this pull don't seem to provide any new control over mandir. |
In symmetric with --prefix in the install command. Fix #10229 Signed-off-by: Rudi Grinberg <me@rgrinberg.com> <!-- ps-id: 0a9b3e1e-91d9-4ccf-8780-2210fe3d656c --> Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
In symmetric with --prefix in the install command. Fix #10229 Signed-off-by: Rudi Grinberg <me@rgrinberg.com> <!-- ps-id: 0a9b3e1e-91d9-4ccf-8780-2210fe3d656c --> Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
In symmetric with --prefix in the install command. Fix #10229 Signed-off-by: Rudi Grinberg <me@rgrinberg.com> <!-- ps-id: 0a9b3e1e-91d9-4ccf-8780-2210fe3d656c --> Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
In symmetric with --prefix in the install command. Fix #10229 Signed-off-by: Rudi Grinberg <me@rgrinberg.com> <!-- ps-id: 0a9b3e1e-91d9-4ccf-8780-2210fe3d656c --> Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
In symmetric with --prefix in the install command. Fix #10229 Signed-off-by: Rudi Grinberg <me@rgrinberg.com> <!-- ps-id: 0a9b3e1e-91d9-4ccf-8780-2210fe3d656c --> Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
In symmetric with --prefix in the install command. Fix #10229 Signed-off-by: Rudi Grinberg <me@rgrinberg.com> <!-- ps-id: 0a9b3e1e-91d9-4ccf-8780-2210fe3d656c --> Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
In symmetry with --prefix in the install command. Fix #10229 Signed-off-by: Rudi Grinberg <me@rgrinberg.com> <!-- ps-id: 0a9b3e1e-91d9-4ccf-8780-2210fe3d656c --> Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
Problem
dune has been failing to build from source on pkgsrc because they can't get dune to put the man pages in a different location (
share/man/*
) from dune's defaultman/*
(https://us-central.manta.mnx.io/pkgsrc/public/reports/upstream-trunk/20240305.1526/ocaml-dune-3.11.1/install.log).As an experiment, I cloned dune from github to build it the make way. I executed the following sequence, from what I understood through various conversations on the github repo:
configure.ml
seems to be doing what it is intended to - it creates/modifiessrc/dune_rules/setup.ml
:Expected Behavior
man pages should be installed at
fake_root/share/man/*
.Actual Behavior
man pages are still installed at
man/*
instead ofshare/man/*
.Reproduction
Specifications
dune
(output ofdune --version
):main
branchocaml
(output ofocamlc --version
): 4.14.1The text was updated successfully, but these errors were encountered: