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

Fix building of emacsWithPackages not findind subdirs.el #89351

Merged
merged 1 commit into from Jun 11, 2020

Conversation

dwarfmaster
Copy link
Contributor

Motivation for this change

When building emacs, it complains of not finding subdirs.el in emacs-packages-deps/share/emacs/site-lisp. Turns out that it is present as a broken sublink to the same file in emacs-with-packages, where the share subdirectory is full of links to the share subdirectory of emacs, which included the desired file.

I'm not sure if this fix is actually what we want, since the other file in emacs-packages-deps/share/emacs/site-lisp is shipped with nixpkgs, so maybe something similar should be done for subdirs. But adding the missing link step made it build, and emacs seems to work.

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.

@matthewbauer
Copy link
Member

It shouldn't hurt since we put the site-lisp in $deps, not $emacs.

@matthewbauer matthewbauer merged commit f5c1ab0 into NixOS:master Jun 11, 2020
jian-lin added a commit to linj-fork/nixpkgs that referenced this pull request Aug 26, 2023
I see no reason to symlink this dir.

Doing so may shadow unwanted libraries since the site-start.el of
Emacs adds paths under NIX_PROFILES to load-path.

It is added in [1] to fix "building emacs".  However, I have no issue
in building and using Emacs after removing it.

[1]: NixOS#89351
AndersonTorres pushed a commit that referenced this pull request Aug 28, 2023
I see no reason to symlink this dir.

Doing so may shadow unwanted libraries since the site-start.el of
Emacs adds paths under NIX_PROFILES to load-path.

It is added in [1] to fix "building emacs".  However, I have no issue
in building and using Emacs after removing it.

[1]: #89351
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