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

[24.05] emacs: do not allow webkitgtk on Emacs >= 30 #344740

Merged

Conversation

leungbk
Copy link
Member

@leungbk leungbk commented Sep 26, 2024

An incompatibility with newer versions of webkit2gtk was revealed
upstream (https://lists.gnu.org/archive/html/bug-gnu-emacs/2024-09/msg00695.html).

(cherry picked from commit a755ead)

Backport of #344631

An incompatibility with newer versions of webkit2gtk was revealed
upstream (https://lists.gnu.org/archive/html/bug-gnu-emacs/2024-09/msg00695.html).

(cherry picked from commit a755ead)
@@ -88,7 +88,7 @@
, withWebP ? lib.versionAtLeast version "29"
, withX ? !(stdenv.isDarwin || noGui || withPgtk)
, withXinput2 ? withX && lib.versionAtLeast version "29"
, withXwidgets ? !stdenv.isDarwin && !noGui && (withGTK3 || withPgtk)
, withXwidgets ? !stdenv.hostPlatform.isDarwin && !noGui && (withGTK3 || withPgtk) && (lib.versionOlder version "30") # XXX: upstream bug 66068 precludes newer versions of webkit2gtk (https://lists.gnu.org/archive/html/bug-gnu-emacs/2024-09/msg00695.html)
Copy link
Contributor

Choose a reason for hiding this comment

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

hostPlatform seem not necessary

> nix repl github:nixos/nixpkgs/nixos-24.05                                                                                                                             2:19Nix 2.24.8
Type :? for help.
Loading installable 'github:nixos/nixpkgs/nixos-24.05#'...
Added 5 variables.
nix-repl> legacyPackages.x86_64-linux.stdenv.isDarwin              
false

nix-repl> legacyPackages.x86_64-linux.stdenv.hostPlatform.isDarwin
false

Copy link
Member Author

@leungbk leungbk Sep 27, 2024

Choose a reason for hiding this comment

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

I did hostPlatform since master already had this as hostPlatform (prior to my commit there) and I wanted the two branches to be consistent. Is it OK to have the branches diverge in this way? If so, I'm fine with omitting hostPlatform here to keep the diff clean.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, now I see why you add hostPlatform. I do not have a strong opinion on this.

@jian-lin jian-lin merged commit 9e7360e into NixOS:release-24.05 Sep 27, 2024
24 of 26 checks passed
@leungbk leungbk deleted the backport-344631-to-release-24.05 branch September 27, 2024 04:50
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.

2 participants