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

emacsPackages: fix build for a few hundred packages #343925

Merged
merged 14 commits into from
Sep 24, 2024

Conversation

jian-lin
Copy link
Contributor

@jian-lin jian-lin commented Sep 23, 2024

Description of changes

This PR fixes almost all build failures introduced by #343388.

The only remaining build failure is org-xlatex, which fails for good reason: Error: error ("Your Emacs was not built with Xwidget support").

It is better to review this PR one commit at a time.

Future work:

  • resolve TODOs
  • work with upstreams to solve compilation errors hidden by ignoreCompilationError

This PR is the final part of #335442. Closes #335442.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@jian-lin jian-lin force-pushed the pr/fix-elisp-packages branch from ce20c25 to 207d89c Compare September 24, 2024 02:52
@jian-lin jian-lin merged commit 8e8484c into NixOS:staging-next Sep 24, 2024
25 of 26 checks passed
@jian-lin jian-lin deleted the pr/fix-elisp-packages branch September 24, 2024 06:45
# missing optional dependencies
suggest = addPackageRequires super.suggest [ self.shut-up ];

symex = ignoreCompilationError super.symex; # elisp error
Copy link
Contributor

@MatrixManAtYrService MatrixManAtYrService Oct 23, 2024

Choose a reason for hiding this comment

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

I reported a bug to the symex maintainer, but it turns out that they couldn't replicate it. We managed to fix it anyhow.

I'm not saying that this particular commit is problematic, I just needed something symex-specific to link to. My theory is that the underlying error--which this ignores--was recently fixed. If I'm right about this, then the next time we update these packages this error might no longer show up. 🤞

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My theory is that the underlying error--which this ignores--was recently fixed.

I do not think so. Many errors reported in drym-org/symex.el#130 are in the build log. Those errors are not specific to nix and should be fixed upstream.

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.

3 participants