diff options
| -rw-r--r-- | meta-oe/recipes-support/emacs/emacs_30.2.bb (renamed from meta-oe/recipes-support/emacs/emacs_29.1.bb) | 3 | ||||
| -rw-r--r-- | meta-oe/recipes-support/emacs/files/avoid-running-host-binaries-for-sanity.patch | 7 | ||||
| -rw-r--r-- | meta-oe/recipes-support/emacs/files/leim_dont-unexport-EMACSDATA.patch | 19 | ||||
| -rw-r--r-- | meta-oe/recipes-support/emacs/files/use-emacs-native-tools-for-cross-compiling.patch | 19 |
4 files changed, 32 insertions, 16 deletions
diff --git a/meta-oe/recipes-support/emacs/emacs_29.1.bb b/meta-oe/recipes-support/emacs/emacs_30.2.bb index 5cbe4551c0..6f9b8a485c 100644 --- a/meta-oe/recipes-support/emacs/emacs_29.1.bb +++ b/meta-oe/recipes-support/emacs/emacs_30.2.bb | |||
| @@ -9,9 +9,10 @@ SRC_URI = "https://ftp.gnu.org/pub/gnu/emacs/emacs-${PV}.tar.xz \ | |||
| 9 | SRC_URI:append:class-target = " \ | 9 | SRC_URI:append:class-target = " \ |
| 10 | file://use-emacs-native-tools-for-cross-compiling.patch \ | 10 | file://use-emacs-native-tools-for-cross-compiling.patch \ |
| 11 | file://avoid-running-host-binaries-for-sanity.patch \ | 11 | file://avoid-running-host-binaries-for-sanity.patch \ |
| 12 | file://leim_dont-unexport-EMACSDATA.patch \ | ||
| 12 | " | 13 | " |
| 13 | 14 | ||
| 14 | SRC_URI[sha256sum] = "d2f881a5cc231e2f5a03e86f4584b0438f83edd7598a09d24a21bd8d003e2e01" | 15 | SRC_URI[sha256sum] = "b3f36f18a6dd2715713370166257de2fae01f9d38cfe878ced9b1e6ded5befd9" |
| 15 | 16 | ||
| 16 | CVE_STATUS[CVE-2007-6109] = "fixed-version: The CPE in the NVD database doesn't reflect correctly the vulnerable versions." | 17 | CVE_STATUS[CVE-2007-6109] = "fixed-version: The CPE in the NVD database doesn't reflect correctly the vulnerable versions." |
| 17 | 18 | ||
diff --git a/meta-oe/recipes-support/emacs/files/avoid-running-host-binaries-for-sanity.patch b/meta-oe/recipes-support/emacs/files/avoid-running-host-binaries-for-sanity.patch index 719ee4bce9..bd23358f2a 100644 --- a/meta-oe/recipes-support/emacs/files/avoid-running-host-binaries-for-sanity.patch +++ b/meta-oe/recipes-support/emacs/files/avoid-running-host-binaries-for-sanity.patch | |||
| @@ -12,14 +12,14 @@ Index: emacs-29.1/Makefile.in | |||
| 12 | =================================================================== | 12 | =================================================================== |
| 13 | --- emacs-29.1.orig/Makefile.in | 13 | --- emacs-29.1.orig/Makefile.in |
| 14 | +++ emacs-29.1/Makefile.in | 14 | +++ emacs-29.1/Makefile.in |
| 15 | @@ -416,19 +416,10 @@ advice-on-failure: | 15 | @@ -420,19 +420,11 @@ |
| 16 | @exit ${exit-status} | 16 | @exit ${exit-status} |
| 17 | 17 | ||
| 18 | sanity-check: | 18 | sanity-check: |
| 19 | - @[ -f .no-advice-on-failure ] && exit 0; true | 19 | - @[ -f .no-advice-on-failure ] && exit 0; true |
| 20 | - @v=$$(src/emacs${EXEEXT} --batch --eval \ | 20 | - @v=`src/emacs${EXEEXT} --batch -Q --eval \ |
| 21 | - '(progn (defun f (n) (if (= 0 n) 1 (* n (f (- n 1))))) (princ (f 10)))' \ | 21 | - '(progn (defun f (n) (if (= 0 n) 1 (* n (f (- n 1))))) (princ (f 10)))' \ |
| 22 | - 2> /dev/null); \ | 22 | - 2> /dev/null`; \ |
| 23 | - [ "X$$v" = "X3628800" ] && exit 0; \ | 23 | - [ "X$$v" = "X3628800" ] && exit 0; \ |
| 24 | - echo >&2 '***'; \ | 24 | - echo >&2 '***'; \ |
| 25 | - echo >&2 '*** '"\"make ${make-target}\" succeeded, but Emacs is not functional."; \ | 25 | - echo >&2 '*** '"\"make ${make-target}\" succeeded, but Emacs is not functional."; \ |
| @@ -33,6 +33,7 @@ Index: emacs-29.1/Makefile.in | |||
| 33 | +# this is not going to work since it was (probably) built for a different architecture. | 33 | +# this is not going to work since it was (probably) built for a different architecture. |
| 34 | +# Avoid calling target binaries from the host and simply assume our build artifacts work. | 34 | +# Avoid calling target binaries from the host and simply assume our build artifacts work. |
| 35 | + exit 0 | 35 | + exit 0 |
| 36 | + | ||
| 36 | 37 | ||
| 37 | .PHONY: all ${SUBDIR} blessmail epaths-force epaths-force-w32 epaths-force-ns-self-contained etc-emacsver | 38 | .PHONY: all ${SUBDIR} blessmail epaths-force epaths-force-w32 epaths-force-ns-self-contained etc-emacsver |
| 38 | 39 | ||
diff --git a/meta-oe/recipes-support/emacs/files/leim_dont-unexport-EMACSDATA.patch b/meta-oe/recipes-support/emacs/files/leim_dont-unexport-EMACSDATA.patch new file mode 100644 index 0000000000..81dd2bde40 --- /dev/null +++ b/meta-oe/recipes-support/emacs/files/leim_dont-unexport-EMACSDATA.patch | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | Upstream unexports some environment variables to avoid contamination, | ||
| 2 | however OE sets these variables specifically to help the build in the | ||
| 3 | recipe, and they should not be unexported. | ||
| 4 | |||
| 5 | Upstream-Status: Inappropriate [oe-specific] | ||
| 6 | |||
| 7 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 8 | |||
| 9 | --- ./leim/Makefile.in.orig 2025-10-05 20:22:56.062508393 +0200 | ||
| 10 | +++ ./leim/Makefile.in 2025-10-05 20:23:05.581046818 +0200 | ||
| 11 | @@ -42,7 +42,7 @@ | ||
| 12 | -include ${top_builddir}/src/verbose.mk | ||
| 13 | |||
| 14 | # Prevent any settings in the user environment causing problems. | ||
| 15 | -unexport EMACSDATA EMACSDOC EMACSLOADPATH EMACSPATH | ||
| 16 | +# unexport EMACSDATA EMACSDOC EMACSLOADPATH EMACSPATH | ||
| 17 | |||
| 18 | # Which Emacs to use to convert TIT files to Emacs Lisp files, | ||
| 19 | # and generate the file leim-list.el. | ||
diff --git a/meta-oe/recipes-support/emacs/files/use-emacs-native-tools-for-cross-compiling.patch b/meta-oe/recipes-support/emacs/files/use-emacs-native-tools-for-cross-compiling.patch index df5e4bd258..a1b6ea6ddf 100644 --- a/meta-oe/recipes-support/emacs/files/use-emacs-native-tools-for-cross-compiling.patch +++ b/meta-oe/recipes-support/emacs/files/use-emacs-native-tools-for-cross-compiling.patch | |||
| @@ -18,12 +18,7 @@ Index: emacs-29.1/src/Makefile.in | |||
| 18 | =================================================================== | 18 | =================================================================== |
| 19 | --- emacs-29.1.orig/src/Makefile.in | 19 | --- emacs-29.1.orig/src/Makefile.in |
| 20 | +++ emacs-29.1/src/Makefile.in | 20 | +++ emacs-29.1/src/Makefile.in |
| 21 | @@ -1,3 +1,4 @@ | 21 | @@ -542,7 +542,7 @@ ifeq ($(CHECK_STRUCTS),true) |
| 22 | + | ||
| 23 | ### @configure_input@ | ||
| 24 | |||
| 25 | # Copyright (C) 1985, 1987-1988, 1993-1995, 1999-2023 Free Software | ||
| 26 | @@ -508,7 +509,7 @@ ifeq ($(CHECK_STRUCTS),true) | ||
| 27 | pdumper.o: dmpstruct.h | 22 | pdumper.o: dmpstruct.h |
| 28 | endif | 23 | endif |
| 29 | dmpstruct.h: $(srcdir)/dmpstruct.awk | 24 | dmpstruct.h: $(srcdir)/dmpstruct.awk |
| @@ -32,17 +27,17 @@ Index: emacs-29.1/src/Makefile.in | |||
| 32 | $(AM_V_GEN)POSIXLY_CORRECT=1 awk -f $(srcdir)/dmpstruct.awk \ | 27 | $(AM_V_GEN)POSIXLY_CORRECT=1 awk -f $(srcdir)/dmpstruct.awk \ |
| 33 | $(dmpstruct_headers) > $@ | 28 | $(dmpstruct_headers) > $@ |
| 34 | 29 | ||
| 35 | @@ -610,8 +611,7 @@ SYSTEM_TYPE = @SYSTEM_TYPE@ | 30 | @@ -651,8 +651,7 @@ |
| 36 | ## Strictly speaking, emacs does not depend directly on all of $lisp, | 31 | ## Strictly speaking, emacs does not depend directly on all of $lisp, |
| 37 | ## since not all pieces are used on all platforms. But DOC depends | 32 | ## since not all pieces are used on all platforms. But DOC depends |
| 38 | ## on all of $lisp, and emacs depends on DOC, so it is ok to use $lisp here. | 33 | ## on all of $lisp, and emacs depends on DOC, so it is ok to use $lisp here. |
| 39 | -emacs$(EXEEXT): temacs$(EXEEXT) \ | 34 | -emacs$(EXEEXT): temacs$(EXEEXT) \ |
| 40 | - lisp.mk $(etc)/DOC $(lisp) \ | 35 | - $(abs_top_builddir)/src/lisp.mk $(etc)/DOC $(lisp) \ |
| 41 | +emacs$(EXEEXT): lisp.mk $(etc)/DOC $(lisp) \ | 36 | +emacs$(EXEEXT): $(abs_top_builddir)/src/lisp.mk $(etc)/DOC $(lisp) \ |
| 42 | $(lispsource)/international/charprop.el ${charsets} | 37 | $(lispsource)/international/charprop.el ${charsets} |
| 43 | ifeq ($(SYSTEM_TYPE),cygwin) | 38 | ifeq ($(SYSTEM_TYPE),cygwin) |
| 44 | find ${top_builddir} -name '*.eln' | rebase -v -O -T - | 39 | find ${top_builddir} -name '*.eln' | rebase -v -O -T - |
| 45 | @@ -654,7 +654,7 @@ endif | 40 | @@ -695,7 +695,7 @@ endif |
| 46 | $(etc)/DOC: $(libsrc)/make-docfile$(EXEEXT) $(doc_obj) | 41 | $(etc)/DOC: $(libsrc)/make-docfile$(EXEEXT) $(doc_obj) |
| 47 | $(AM_V_GEN)$(MKDIR_P) $(etc) | 42 | $(AM_V_GEN)$(MKDIR_P) $(etc) |
| 48 | $(AM_V_at)rm -f $(etc)/DOC | 43 | $(AM_V_at)rm -f $(etc)/DOC |
| @@ -51,7 +46,7 @@ Index: emacs-29.1/src/Makefile.in | |||
| 51 | $(SOME_MACHINE_OBJECTS) $(doc_obj) > $(etc)/DOC | 46 | $(SOME_MACHINE_OBJECTS) $(doc_obj) > $(etc)/DOC |
| 52 | 47 | ||
| 53 | $(libsrc)/make-docfile$(EXEEXT) $(libsrc)/make-fingerprint$(EXEEXT): \ | 48 | $(libsrc)/make-docfile$(EXEEXT) $(libsrc)/make-fingerprint$(EXEEXT): \ |
| 54 | @@ -671,7 +671,7 @@ buildobj.h: Makefile | 49 | @@ -712,7 +712,7 @@ buildobj.h: Makefile |
| 55 | GLOBAL_SOURCES = $(base_obj:.o=.c) $(NS_OBJC_OBJ:.o=.m) | 50 | GLOBAL_SOURCES = $(base_obj:.o=.c) $(NS_OBJC_OBJ:.o=.m) |
| 56 | 51 | ||
| 57 | gl-stamp: $(libsrc)/make-docfile$(EXEEXT) $(GLOBAL_SOURCES) | 52 | gl-stamp: $(libsrc)/make-docfile$(EXEEXT) $(GLOBAL_SOURCES) |
| @@ -60,7 +55,7 @@ Index: emacs-29.1/src/Makefile.in | |||
| 60 | $(AM_V_at)$(top_srcdir)/build-aux/move-if-change globals.tmp globals.h | 55 | $(AM_V_at)$(top_srcdir)/build-aux/move-if-change globals.tmp globals.h |
| 61 | $(AM_V_at)echo timestamp > $@ | 56 | $(AM_V_at)echo timestamp > $@ |
| 62 | 57 | ||
| 63 | @@ -685,7 +685,7 @@ $(LIBEGNU_ARCHIVE): $(config_h) | 58 | @@ -726,7 +726,7 @@ $(LIBEGNU_ARCHIVE): $(config_h) |
| 64 | $(MAKE) -C $(dir $@) all | 59 | $(MAKE) -C $(dir $@) all |
| 65 | 60 | ||
| 66 | ifeq ($(HAVE_PDUMPER),yes) | 61 | ifeq ($(HAVE_PDUMPER),yes) |
