Skip to content

Commit cd0ef8b

Browse files
authored
emacs{28,29}: remove (#386593)
2 parents 6fdd277 + 36bdbdf commit cd0ef8b

File tree

4 files changed

+8
-79
lines changed

4 files changed

+8
-79
lines changed

pkgs/applications/editors/emacs/default.nix

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -32,32 +32,6 @@ lib.makeScope pkgs.newScope (
3232
;
3333
};
3434

35-
emacs28 = callPackage (self.sources.emacs28) inheritedArgs;
36-
37-
emacs28-gtk3 = self.emacs28.override {
38-
withGTK3 = true;
39-
};
40-
41-
emacs28-nox = pkgs.lowPrio (
42-
self.emacs28.override {
43-
noGui = true;
44-
}
45-
);
46-
47-
emacs29 = callPackage (self.sources.emacs29) inheritedArgs;
48-
49-
emacs29-gtk3 = self.emacs29.override {
50-
withGTK3 = true;
51-
};
52-
53-
emacs29-nox = self.emacs29.override {
54-
noGui = true;
55-
};
56-
57-
emacs29-pgtk = self.emacs29.override {
58-
withPgtk = true;
59-
};
60-
6135
emacs30 = callPackage (self.sources.emacs30) inheritedArgs;
6236

6337
emacs30-gtk3 = self.emacs30.override {

pkgs/applications/editors/emacs/sources.nix

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -101,49 +101,6 @@ let
101101
};
102102
in
103103
{
104-
emacs28 = import ./make-emacs.nix (mkArgs {
105-
pname = "emacs";
106-
version = "28.2";
107-
variant = "mainline";
108-
rev = "28.2";
109-
hash = "sha256-4oSLcUDR0MOEt53QOiZSVU8kPJ67GwugmBxdX3F15Ag=";
110-
patches = fetchpatch: [
111-
# CVE-2022-45939
112-
(fetchpatch {
113-
url = "https://git.savannah.gnu.org/cgit/emacs.git/patch/?id=d48bb4874bc6cd3e69c7a15fc3c91cc141025c51";
114-
hash = "sha256-TiBQkexn/eb6+IqJNDqR/Rn7S7LVdHmL/21A5tGsyJs=";
115-
})
116-
117-
# https://lists.gnu.org/archive/html/emacs-devel/2024-03/msg00611.html
118-
(fetchpatch {
119-
url = "https://gitweb.gentoo.org/proj/emacs-patches.git/plain/emacs/28.2/10_all_org-macro-eval.patch?id=af40e12cb742510e5d40a06ffc6dfca97e340dd6";
120-
hash = "sha256-OdGt4e9JGjWJPkfJhbYsmQQc6jart4BH5aIKPIbWKFs=";
121-
})
122-
(fetchpatch {
123-
url = "https://gitweb.gentoo.org/proj/emacs-patches.git/plain/emacs/28.2/11_all_untrusted-content.patch?id=af40e12cb742510e5d40a06ffc6dfca97e340dd6";
124-
hash = "sha256-wa2bsnCt5yFx0+RAFZGBPI+OoKkbrfkkMer/KBEc/wA=";
125-
})
126-
(fetchpatch {
127-
url = "https://gitweb.gentoo.org/proj/emacs-patches.git/plain/emacs/28.2/12_all_org-remote-unsafe.patch?id=af40e12cb742510e5d40a06ffc6dfca97e340dd6";
128-
hash = "sha256-b6WU1o3PfDV/6BTPfPNUFny6oERJCNsDrvflxX3Yvek=";
129-
})
130-
131-
# security fix from Emacs 29.4
132-
(fetchpatch {
133-
url = "https://git.savannah.gnu.org/cgit/emacs.git/patch/?id=c645e1d8205f0f0663ec4a2d27575b238c646c7c";
134-
hash = "sha256-G+gGQx5w3KuWMotR1n/sYYL8WyAABYW3fUPeffMMs38=";
135-
})
136-
];
137-
});
138-
139-
emacs29 = import ./make-emacs.nix (mkArgs {
140-
pname = "emacs";
141-
version = "29.4";
142-
variant = "mainline";
143-
rev = "29.4";
144-
hash = "sha256-FCP6ySkN9mAdp2T09n6foS2OciqZXc/54guRZ0B4Z2s=";
145-
});
146-
147104
emacs30 = import ./make-emacs.nix (mkArgs {
148105
pname = "emacs";
149106
version = "30.1";

pkgs/top-level/aliases.nix

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,12 +414,19 @@ mapAliases {
414414
elixir_ls = elixir-ls; # Added 2023-03-20
415415

416416
# Emacs
417+
emacs28 = throw "Emacs 28 is removed due to CVEs which are fixed in Emacs 30"; # Added 2025-03-03
417418
emacs28-gtk2 = throw "emacs28-gtk2 was removed because GTK2 is EOL; migrate to emacs28{,-gtk3,-nox} or to more recent versions of Emacs."; # Added 2024-09-20
419+
emacs28-gtk3 = throw "Emacs 28 is removed due to CVEs which are fixed in Emacs 30"; # Added 2025-03-03
420+
emacs28-nox = throw "Emacs 28 is removed due to CVEs which are fixed in Emacs 30"; # Added 2025-03-03
418421
emacs28NativeComp = emacs28; # Added 2022-06-08
419422
emacs28Packages = throw "'emacs28Packages' has been renamed to/replaced by 'emacs28.pkgs'"; # Converted to throw 2024-10-17
420423
emacs28WithPackages = throw "'emacs28WithPackages' has been renamed to/replaced by 'emacs28.pkgs.withPackages'"; # Converted to throw 2024-10-17
424+
emacs29 = throw "Emacs 29 is removed due to CVEs which are fixed in Emacs 30"; # Added 2025-03-03
425+
emacs29-gtk3 = throw "Emacs 29 is removed due to CVEs which are fixed in Emacs 30"; # Added 2025-03-03
426+
emacs29-nox = throw "Emacs 29 is removed due to CVEs which are fixed in Emacs 30"; # Added 2025-03-03
427+
emacs29-pgtk = throw "Emacs 29 is removed due to CVEs which are fixed in Emacs 30"; # Added 2025-03-03
421428
emacsMacport = emacs-macport; # Added 2023-08-10
422-
emacsNativeComp = emacs28NativeComp; # Added 2022-06-08
429+
emacsNativeComp = emacs; # Added 2022-06-08
423430
emacsWithPackages = throw "'emacsWithPackages' has been renamed to/replaced by 'emacs.pkgs.withPackages'"; # Converted to throw 2024-10-17
424431
emacsPackages = emacs.pkgs; # Added 2025-03-02
425432

pkgs/top-level/all-packages.nix

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13141,15 +13141,6 @@ with pkgs;
1314113141
};
1314213142

1314313143
inherit (recurseIntoAttrs (callPackage ../applications/editors/emacs { }))
13144-
emacs28
13145-
emacs28-gtk3
13146-
emacs28-nox
13147-
13148-
emacs29
13149-
emacs29-gtk3
13150-
emacs29-nox
13151-
emacs29-pgtk
13152-
1315313144
emacs30
1315413145
emacs30-gtk3
1315513146
emacs30-nox

0 commit comments

Comments
 (0)