Skip to content

emacsPackages: fix build for a few hundred packages#343925

Merged
jian-lin merged 14 commits intoNixOS:staging-nextfrom
linj-fork:pr/fix-elisp-packages
Sep 24, 2024
Merged

emacsPackages: fix build for a few hundred packages#343925
jian-lin merged 14 commits intoNixOS:staging-nextfrom
linj-fork:pr/fix-elisp-packages

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.

@github-actions github-actions bot added the 6.topic: emacs Text editor label Sep 23, 2024
@ofborg ofborg bot added 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. labels Sep 23, 2024
@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
@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

Labels

6.topic: emacs Text editor 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants