emacs-macport: use a different hammer for the CF_NOESCAPE bug#435148
emacs-macport: use a different hammer for the CF_NOESCAPE bug#435148emilazy merged 2 commits intoNixOS:masterfrom
CF_NOESCAPE bug#435148Conversation
|
I’m pretty sure it works, FWIW. As in, I read the whole (wonderful) investigation by @tnytown, tried a bunch of less hacky things, and they all reproduced the original bug with both the old and new LLVM, but this keeps it fixed under LLVM 14 and keeps it fixed under the new LLVM. (I believe @Atemu no longer uses macOS.) But certainly it would be good for someone who actually uses |
|
No idea why I did it the more complicated way, this looks more reasonable! |
|
Most probably something like "compiler said X, so let's fix it" and "use #define guards to not break on Linux" iterated six times? But I digress. Maybe this file should be sent to Mitsuharu-san? |
|
It was the result of a long investigation in #127902 (comment) and #127902 (comment). I believe that the |
|
@emilazy I'm getting this, when trying to build this: |
I don’t love how this is separated from the actual declaration of the source, but it seems to be what we have to do. Fixes: 4a2ad81
The header was breaking compilation with modern versions of Clang, seemingly due to the `limits.h` stuff. Wrapping the header directly is simpler and fixes it.
9eea464 to
cb0db57
Compare
|
Hmm, I’m not getting that exact failure, but #437637 did regress the build. I’ve pushed a fix for that. |
|
My test build passed. @kfiz, could you try it again and let me know exactly how you were testing? I’ll let @jian-lin have another look given the new commit too. Incidentally, I see that nobody has reported that |
@emilazy my strong assumption is that most of the |
jian-lin
left a comment
There was a problem hiding this comment.
The new commit "emacs-macport: fix build" looks good.
I don’t love how this is separated from the actual declaration of
the source
srcRepo is separated to let downstream users be able to change it.
@emilazy agree. I think in the meantime we should switch to the fork that is already mentioned there https://github.com/jdtsmith/emacs-mac until it is clear what happens to the original package. I've been test driving it and it seems quite stable to me. I can send a new PR that is based on #393512. |
The header was breaking compilation with modern versions of Clang, seemingly due to the
limits.hstuff. Wrapping the header directly is simpler and fixes it.Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.