diff options
author | Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org> | 2022-09-22 02:35:22 -0600 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-09-22 03:51:38 -0700 |
commit | 2239a3063cadbdf7f9deb41d2842c06c2ad2bce1 (patch) | |
tree | 8f272ac593cbe28d3b188573f52e733d4d53f9b9 /meta-oe/recipes-support/emacs/emacs_27.2.bb | |
parent | 03a565a7bfa7e7358df22d4e5bfaadd2cfbbbbff (diff) | |
download | meta-openembedded-2239a3063cadbdf7f9deb41d2842c06c2ad2bce1.tar.gz |
emacs: Update to version 28.2
- Remove upstreamed patch emacs-glibc-2.34.patch
- Rebase usemake-docfile-native.patch
- Emacs isnt aware we are cross compiling, detects host arch, e.g. x86
and tries to build seccomp-filter using cross-compiler even though
it wont work for the target arch, explicitly disable seccomp to avoid
configure script from wronfully enabling it for target.
- Fix emacs-minimal package runtime issue.
- Fix target pollution (buildpaths) reference to TMPDIR.
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/emacs/emacs_27.2.bb')
-rw-r--r-- | meta-oe/recipes-support/emacs/emacs_27.2.bb | 266 |
1 files changed, 0 insertions, 266 deletions
diff --git a/meta-oe/recipes-support/emacs/emacs_27.2.bb b/meta-oe/recipes-support/emacs/emacs_27.2.bb deleted file mode 100644 index 4a7e7aba5..000000000 --- a/meta-oe/recipes-support/emacs/emacs_27.2.bb +++ /dev/null | |||
@@ -1,266 +0,0 @@ | |||
1 | SUMMARY = "Emacs is the extensible, customizable, self-documenting real-time display editor" | ||
2 | HOMEPAGE = "https://www.gnu.org/software/emacs/" | ||
3 | |||
4 | LICENSE = "GPL-3.0-only" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464" | ||
6 | |||
7 | SRC_URI = "https://ftp.gnu.org/pub/gnu/emacs/emacs-${PV}.tar.xz \ | ||
8 | file://emacs-glibc-2.34.patch \ | ||
9 | " | ||
10 | SRC_URI:append:class-target = " file://usemake-docfile-native.patch" | ||
11 | |||
12 | SRC_URI[sha256sum] = "b4a7cc4e78e63f378624e0919215b910af5bb2a0afc819fad298272e9f40c1b9" | ||
13 | |||
14 | CVE_CHECK_IGNORE = "\ | ||
15 | CVE-2007-6109 \ | ||
16 | " | ||
17 | |||
18 | PACKAGECONFIG[gnutls] = "--with-gnutls=yes,--with-gnutls=no,gnutls" | ||
19 | PACKAGECONFIG[kerberos] = "--with-kerberos=yes,--with-kerberos=no,krb5" | ||
20 | PACKAGECONFIG[libgmp] = "--with-libgmp=yes,--with-libgmp=no,gmp" | ||
21 | |||
22 | PACKAGECONFIG ??= "gnutls kerberos libgmp" | ||
23 | |||
24 | # We could use --without-all but its better to | ||
25 | # split it into several packages (size of minimal doesnt change) | ||
26 | EXTRA_OECONF = " --with-x=no --with-dumping=none" | ||
27 | |||
28 | DEPENDS = "ncurses" | ||
29 | DEPENDS:append:class-target = " emacs-native" | ||
30 | |||
31 | inherit autotools mime-xdg pkgconfig | ||
32 | |||
33 | do_compile:class-native (){ | ||
34 | cd ${B}/lib-src | ||
35 | oe_runmake make-docfile | ||
36 | oe_runmake make-fingerprint | ||
37 | } | ||
38 | do_install:class-native(){ | ||
39 | install -d ${D}${bindir} | ||
40 | install -m 755 ${B}/lib-src/make-docfile ${D}/${bindir}/ | ||
41 | install -m 755 ${B}/lib-src/make-fingerprint ${D}/${bindir}/ | ||
42 | } | ||
43 | |||
44 | |||
45 | do_install:append(){ | ||
46 | # Delete systemd stuff, extend using DISTRO_FEATURES? | ||
47 | rm -rf ${D}/${libdir} | ||
48 | # Extra stuff which isnt needed | ||
49 | rm -rf ${D}/${datadir}/metainfo | ||
50 | rm -rf ${D}/${datadir}/info | ||
51 | # Emacs copies files to ${D} while building, which were unpacked | ||
52 | # by a different user, we need to restore those | ||
53 | chown -R root:root ${D}${datadir} | ||
54 | } | ||
55 | |||
56 | |||
57 | # Use a similar strategy to how we build python: | ||
58 | # Create three packages | ||
59 | # minimal - A working lisp based text editor | ||
60 | # base - What would probably work for most | ||
61 | # full - A fully working emacs | ||
62 | # The lists of files are long but are worth it | ||
63 | # Installing "emacs" installs the base package | ||
64 | PACKAGE_BEFORE_PN = "${PN}-minimal ${PN}-base ${PN}-full" | ||
65 | RPROVIDES:${PN}-base = "${PN}" | ||
66 | RDEPENDS:${PN}-base:class-target = "${PN}-minimal" | ||
67 | RDEPENDS:${PN}-full:class-target = "${PN}" | ||
68 | |||
69 | |||
70 | # A minimal version of emacs that works | ||
71 | FILES:${PN}-minimal = " \ | ||
72 | ${datadir}/${BPN}/${PV}/lisp/loadup.el \ | ||
73 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/byte-run.elc \ | ||
74 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/backquote.elc \ | ||
75 | ${datadir}/${BPN}/${PV}/lisp/subr.elc \ | ||
76 | ${datadir}/${BPN}/${PV}/lisp/version.elc \ | ||
77 | ${datadir}/${BPN}/${PV}/lisp/widget.elc \ | ||
78 | ${datadir}/${BPN}/${PV}/lisp/custom.elc \ | ||
79 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/map-ynp.elc \ | ||
80 | ${datadir}/${BPN}/${PV}/lisp/international/mule.elc \ | ||
81 | ${datadir}/${BPN}/${PV}/lisp/international/mule-conf.elc \ | ||
82 | ${datadir}/${BPN}/${PV}/lisp/env.elc \ | ||
83 | ${datadir}/${BPN}/${PV}/lisp/format.elc \ | ||
84 | ${datadir}/${BPN}/${PV}/lisp/bindings.elc \ | ||
85 | ${datadir}/${BPN}/${PV}/lisp/window.elc \ | ||
86 | ${datadir}/${BPN}/${PV}/lisp/files.elc \ | ||
87 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/macroexp.elc \ | ||
88 | ${datadir}/${BPN}/${PV}/lisp/cus-face.elc \ | ||
89 | ${datadir}/${BPN}/${PV}/lisp/faces.elc \ | ||
90 | ${datadir}/${BPN}/${PV}/lisp/button.elc \ | ||
91 | ${datadir}/${BPN}/${PV}/lisp/loaddefs.el \ | ||
92 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/nadvice.elc \ | ||
93 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/cl-preloaded.elc \ | ||
94 | ${datadir}/${BPN}/${PV}/lisp/obarray.elc \ | ||
95 | ${datadir}/${BPN}/${PV}/lisp/abbrev.elc \ | ||
96 | ${datadir}/${BPN}/${PV}/lisp/simple.elc \ | ||
97 | ${datadir}/${BPN}/${PV}/lisp/jka-cmpr-hook.elc \ | ||
98 | ${datadir}/${BPN}/${PV}/lisp/epa-hook.elc \ | ||
99 | ${datadir}/${BPN}/${PV}/lisp/international/mule-cmds.elc \ | ||
100 | ${datadir}/${BPN}/${PV}/lisp/case-table.elc \ | ||
101 | ${datadir}/${BPN}/${PV}/lisp/international/charprop.el \ | ||
102 | ${datadir}/${BPN}/${PV}/lisp/international/characters.elc \ | ||
103 | ${datadir}/${BPN}/${PV}/lisp/international/charscript.elc \ | ||
104 | ${datadir}/${BPN}/${PV}/lisp/composite.elc \ | ||
105 | ${datadir}/${BPN}/${PV}/lisp/language/chinese.elc \ | ||
106 | ${datadir}/${BPN}/${PV}/lisp/language/cyrillic.elc \ | ||
107 | ${datadir}/${BPN}/${PV}/lisp/language/indian.elc \ | ||
108 | ${datadir}/${BPN}/${PV}/lisp/language/sinhala.elc \ | ||
109 | ${datadir}/${BPN}/${PV}/lisp/language/english.elc \ | ||
110 | ${datadir}/${BPN}/${PV}/lisp/language/ethiopic.elc \ | ||
111 | ${datadir}/${BPN}/${PV}/lisp/language/european.elc \ | ||
112 | ${datadir}/${BPN}/${PV}/lisp/language/czech.elc \ | ||
113 | ${datadir}/${BPN}/${PV}/lisp/language/slovak.elc \ | ||
114 | ${datadir}/${BPN}/${PV}/lisp/language/romanian.elc \ | ||
115 | ${datadir}/${BPN}/${PV}/lisp/language/greek.elc \ | ||
116 | ${datadir}/${BPN}/${PV}/lisp/language/hebrew.elc \ | ||
117 | ${datadir}/${BPN}/${PV}/lisp/international/cp51932.elc \ | ||
118 | ${datadir}/${BPN}/${PV}/lisp/international/eucjp-ms.elc \ | ||
119 | ${datadir}/${BPN}/${PV}/lisp/language/japanese.elc \ | ||
120 | ${datadir}/${BPN}/${PV}/lisp/language/korean.elc \ | ||
121 | ${datadir}/${BPN}/${PV}/lisp/language/lao.elc \ | ||
122 | ${datadir}/${BPN}/${PV}/lisp/language/tai-viet.elc \ | ||
123 | ${datadir}/${BPN}/${PV}/lisp/language/thai.elc \ | ||
124 | ${datadir}/${BPN}/${PV}/lisp/language/tibetan.elc \ | ||
125 | ${datadir}/${BPN}/${PV}/lisp/language/vietnamese.elc \ | ||
126 | ${datadir}/${BPN}/${PV}/lisp/language/misc-lang.elc \ | ||
127 | ${datadir}/${BPN}/${PV}/lisp/language/utf-8-lang.elc \ | ||
128 | ${datadir}/${BPN}/${PV}/lisp/language/georgian.elc \ | ||
129 | ${datadir}/${BPN}/${PV}/lisp/language/khmer.elc \ | ||
130 | ${datadir}/${BPN}/${PV}/lisp/language/burmese.elc \ | ||
131 | ${datadir}/${BPN}/${PV}/lisp/language/cham.elc \ | ||
132 | ${datadir}/${BPN}/${PV}/lisp/indent.elc \ | ||
133 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/cl-generic.elc \ | ||
134 | ${datadir}/${BPN}/${PV}/lisp/minibuffer.elc \ | ||
135 | ${datadir}/${BPN}/${PV}/lisp/frame.elc \ | ||
136 | ${datadir}/${BPN}/${PV}/lisp/startup.elc \ | ||
137 | ${datadir}/${BPN}/${PV}/lisp/term/tty-colors.elc \ | ||
138 | ${datadir}/${BPN}/${PV}/lisp/font-core.elc \ | ||
139 | ${datadir}/${BPN}/${PV}/lisp/facemenu.elc \ | ||
140 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/syntax.elc \ | ||
141 | ${datadir}/${BPN}/${PV}/lisp/font-lock.elc \ | ||
142 | ${datadir}/${BPN}/${PV}/lisp/jit-lock.elc \ | ||
143 | ${datadir}/${BPN}/${PV}/lisp/mouse.elc \ | ||
144 | ${datadir}/${BPN}/${PV}/lisp/select.elc \ | ||
145 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/timer.elc \ | ||
146 | ${datadir}/${BPN}/${PV}/lisp/isearch.elc \ | ||
147 | ${datadir}/${BPN}/${PV}/lisp/rfn-eshadow.elc \ | ||
148 | ${datadir}/${BPN}/${PV}/lisp/menu-bar.elc \ | ||
149 | ${datadir}/${BPN}/${PV}/lisp/tab-bar.elc \ | ||
150 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/lisp.elc \ | ||
151 | ${datadir}/${BPN}/${PV}/lisp/textmodes/page.elc \ | ||
152 | ${datadir}/${BPN}/${PV}/lisp/register.elc \ | ||
153 | ${datadir}/${BPN}/${PV}/lisp/textmodes/paragraphs.elc \ | ||
154 | ${datadir}/${BPN}/${PV}/lisp/progmodes/prog-mode.elc \ | ||
155 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/lisp-mode.elc \ | ||
156 | ${datadir}/${BPN}/${PV}/lisp/progmodes/elisp-mode.elc \ | ||
157 | ${datadir}/${BPN}/${PV}/lisp/textmodes/text-mode.elc \ | ||
158 | ${datadir}/${BPN}/${PV}/lisp/textmodes/fill.elc \ | ||
159 | ${datadir}/${BPN}/${PV}/lisp/newcomment.elc \ | ||
160 | ${datadir}/${BPN}/${PV}/lisp/replace.elc \ | ||
161 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/tabulated-list.elc \ | ||
162 | ${datadir}/${BPN}/${PV}/lisp/buff-menu.elc \ | ||
163 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/float-sup.elc \ | ||
164 | ${datadir}/${BPN}/${PV}/lisp/vc/vc-hooks.elc \ | ||
165 | ${datadir}/${BPN}/${PV}/lisp/vc/ediff-hook.elc \ | ||
166 | ${datadir}/${BPN}/${PV}/lisp/uniquify.elc \ | ||
167 | ${datadir}/${BPN}/${PV}/lisp/electric.elc \ | ||
168 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/eldoc.elc \ | ||
169 | ${datadir}/${BPN}/${PV}/lisp/cus-start.elc \ | ||
170 | ${datadir}/${BPN}/${PV}/lisp/tooltip.elc \ | ||
171 | ${datadir}/${BPN}/${PV}/lisp/simple.elc \ | ||
172 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/regexp-opt.elc \ | ||
173 | ${datadir}/${BPN}/${PV}/lisp/term/xterm.elc \ | ||
174 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/bytecomp.elc \ | ||
175 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/cconv.elc \ | ||
176 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/gv.elc \ | ||
177 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/byte-opt.elc \ | ||
178 | ${datadir}/${BPN}/${PV}/lisp/image.elc \ | ||
179 | ${datadir}/${BPN}/${PV}/lisp/ldefs-boot.el \ | ||
180 | ${datadir}/${BPN}/${PV}/lisp/help.elc \ | ||
181 | ${datadir}/${BPN}/${PV}/lisp/international/uni*.el \ | ||
182 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/vc/warnings.elc \ | ||
183 | ${datadir}/${BPN}/${PV}/etc/charsets/ \ | ||
184 | ${datadir}/${BPN}/${PV}/lisp/disp-table.elc \ | ||
185 | ${bindir}/emacs* \ | ||
186 | ${prefix}/libexec \ | ||
187 | " | ||
188 | |||
189 | |||
190 | # What works for "most" is relative, but this can be easily extended if needed | ||
191 | FILES:${PN}-base = " \ | ||
192 | ${datadir}/${BPN}/${PV}/etc/srecode \ | ||
193 | ${datadir}/${BPN}/${PV}/etc/e \ | ||
194 | ${datadir}/${BPN}/${PV}/etc/forms \ | ||
195 | ${datadir}/${BPN}/${PV}/lisp/cedet \ | ||
196 | ${datadir}/${BPN}/${PV}/site-lisp/ \ | ||
197 | ${datadir}/${BPN}/${PV}/lisp/subdirs.el \ | ||
198 | ${datadir}/${BPN}/${PV}/lisp/progmodes/cc-mode.elc \ | ||
199 | ${datadir}/${BPN}/${PV}/lisp/progmodes/cc-defs.elc \ | ||
200 | ${datadir}/${BPN}/${PV}/lisp/progmodes/cc-vars.elc \ | ||
201 | ${datadir}/${BPN}/${PV}/lisp/progmodes/cc-engine.elc \ | ||
202 | ${datadir}/${BPN}/${PV}/lisp/progmodes/cc-styles.elc \ | ||
203 | ${datadir}/${BPN}/${PV}/lisp/progmodes/cc-fonts.elc \ | ||
204 | ${datadir}/${BPN}/${PV}/lisp/progmodes/cc-cmds.elc \ | ||
205 | ${datadir}/${BPN}/${PV}/lisp/progmodes/cc-align.elc \ | ||
206 | ${datadir}/${BPN}/${PV}/lisp/progmodes/cc-menus.elc \ | ||
207 | ${datadir}/${BPN}/${PV}/lisp/progmodes/cc-guess.elc \ | ||
208 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/cl-lib.elc \ | ||
209 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/cl-macs.elc \ | ||
210 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/pcase.elc \ | ||
211 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/inline.elc \ | ||
212 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/cl-seq.elc \ | ||
213 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/easymenu.elc \ | ||
214 | ${datadir}/${BPN}/${PV}/lisp/progmodes/python* \ | ||
215 | ${datadir}/${BPN}/${PV}/lisp/ansi-color.elc \ | ||
216 | ${datadir}/${BPN}/${PV}/lisp/comint.elc \ | ||
217 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/ring.elc \ | ||
218 | ${datadir}/${BPN}/${PV}/lisp/json.elc \ | ||
219 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/map.elc \ | ||
220 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/seq.elc \ | ||
221 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/subr-x.elc \ | ||
222 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/seq.elc \ | ||
223 | ${datadir}/${BPN}/${PV}/lisp/net/tramp-sh.elc \ | ||
224 | ${datadir}/${BPN}/${PV}/lisp/net/tramp.elc \ | ||
225 | ${datadir}/${BPN}/${PV}/lisp/net/tramp-compat.elc \ | ||
226 | ${datadir}/${BPN}/${PV}/lisp/auth-source.elc \ | ||
227 | ${datadir}/${BPN}/${PV}/lisp/password-cache.elc \ | ||
228 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/eieio.elc \ | ||
229 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/eieio-core.elc \ | ||
230 | ${datadir}/${BPN}/${PV}/lisp/format-spec.elc \ | ||
231 | ${datadir}/${BPN}/${PV}/lisp/ls-lisp.elc \ | ||
232 | ${datadir}/${BPN}/${PV}/lisp/calendar/parse-time.elc \ | ||
233 | ${datadir}/${BPN}/${PV}/lisp/calendar/iso8601.elc \ | ||
234 | ${datadir}/${BPN}/${PV}/lisp/calendar/time-date.elc \ | ||
235 | ${datadir}/${BPN}/${PV}/lisp/shell.elc \ | ||
236 | ${datadir}/${BPN}/${PV}/lisp/pcomplete.elc \ | ||
237 | ${datadir}/${BPN}/${PV}/lisp/net/tramp-integration.elc \ | ||
238 | ${datadir}/${BPN}/${PV}/lisp/files-x.elc \ | ||
239 | ${datadir}/${BPN}/${PV}/lisp/net/trampver.elc \ | ||
240 | ${datadir}/${BPN}/${PV}/lisp/net/tramp-loaddefs.el \ | ||
241 | ${datadir}/${BPN}/${PV}/lisp/progmodes/*perl* \ | ||
242 | ${datadir}/${BPN}/${PV}/lisp/emacs-lisp/smie.elc \ | ||
243 | ${datadir}/${BPN}/${PV}/lisp/progmodes/*asm* \ | ||
244 | ${datadir}/${BPN}/${PV}/lisp/progmodes/cpp* \ | ||
245 | ${datadir}/${BPN}/${PV}/lisp/progmodes/make* \ | ||
246 | ${datadir}/${BPN}/${PV}/lisp/progmodes/sh-script* \ | ||
247 | ${datadir}/${BPN}/${PV}/etc/themes/adwaita-theme.el \ | ||
248 | ${datadir}/${BPN}/${PV}/etc/themes/wheatgrass-theme.el \ | ||
249 | ${datadir}/${BPN}/${PV}/etc/themes/deeper-blue-theme.el \ | ||
250 | ${datadir}/${BPN}/${PV}/etc/themes/light-blue-theme.el \ | ||
251 | ${datadir}/${BPN}/${PV}/etc/themes/misterioso-theme.el \ | ||
252 | ${datadir}/${BPN}/${PV}/etc/themes/tango-theme.el \ | ||
253 | ${datadir}/${BPN}/${PV}/etc/themes/wombat-theme.el \ | ||
254 | ${datadir}/${BPN}/${PV}/lisp/progmodes/prog* \ | ||
255 | ${datadir}/${BPN}/${PV}/lisp/progmodes/executable* \ | ||
256 | " | ||
257 | |||
258 | # Restore FILES for the full package to catch everything left | ||
259 | FILES:${PN}-full = "${FILES:${PN}}" | ||
260 | FILES:${PN}-full:append = " ${datadir}/icons" | ||
261 | |||
262 | |||
263 | # The following does NOT build a native emacs. | ||
264 | # It only builds some parts of it that are | ||
265 | # required to by the build for target emacs. | ||
266 | BBCLASSEXTEND = "native" | ||