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

emacs: slash-terminate comp-eln-load-path #107551

Closed
wants to merge 1 commit into from

Conversation

collares
Copy link
Member

@collares collares commented Dec 24, 2020

Motivation for this change

Emacs just concatenates the version and hash to the string provided in comp-eln-load-path (see https://github.com/emacs-mirror/emacs/blob/feature/native-comp/src/comp.c#L4088), so directories must end with a slash (@AndreaCorallo, is this intended?). Otherwise, we get paths like "/nix/store/akx3lh6h8vyj63xgi396mylbhn3lmc4p-emacs-gcc-20201217.0/share/emacs/native-lisp28.0.50-x86_64-pc-linux-gnu-c50f2f5ede36309a94931f324ed27b53".

See nix-community/emacs-overlay#74

Things done
  • Built on platform(s)
    • NixOS
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Fits CONTRIBUTING.md.

@tadfisher
Copy link
Contributor

I would consider this a bug to report upstream; comp-eln-load-path entries should always be treated as directory paths, so the routine to generate the absolute ELN path should append a directory separator if necessary. @collares if you would like me to file a bug report, let me know.

@collares
Copy link
Member Author

collares commented Dec 27, 2020

Filed http://debbugs.gnu.org/cgi/bugreport.cgi?bug=45462 upstream (with the embarrassing typo of saying "backslashes" instead of "slashes", oh well)

@collares
Copy link
Member Author

Closing since this was fixed upstream.

@collares collares closed this Dec 27, 2020
@collares collares deleted the comp-eln-slash branch December 28, 2020 14:59
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

2 participants