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

racket: use --enable-useprefix configure flag. #85385

Merged
merged 1 commit into from Apr 17, 2020

Conversation

takikawa
Copy link
Contributor

@takikawa takikawa commented Apr 16, 2020

This PR has a workaround for a regression in upstream Racket packaging, the upstream bug tracking this is here:

racket/racket#3046

Some relevant discussion of this issue can be found here:

https://discourse.nixos.org/t/racket-does-not-find-documentation-after-update/6712/6

Motivation for this change

The upstream regression causes install locations in the package to be inconsistent with expectations (e.g., docs).

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

This is to fix a regression in upstream Racket packaging, the upstream
bug tracking this is here:

  racket/racket#3046

When the bug is fixed this workaround will be unnecessary.
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/racket-does-not-find-documentation-after-update/6712/9

@scolobb
Copy link
Contributor

scolobb commented Apr 17, 2020

As I told @NinjaTrappeur on Discourse, I tested the change in this pull request in my local checkout of Nixpkgs and it fixed the problems I had with Racket finding docs.

For the reference, the call (help map) with Racket from master cannot find the docs, even though they are installed. This PR fixes it.

Copy link
Member

@picnoir picnoir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. I think this is the way to go for now. (see https://discourse.nixos.org/t/racket-does-not-find-documentation-after-update/6712/6?u=ninjatrappeur for more info)

Tested locally, LGTM

@flokli flokli merged commit 357be5c into NixOS:master Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants