blob: 95b4281836706f1bc6fc7d6cd9f131fe6d5b00b9 [file] [log] [blame]
Andrew Geisslerd688a012020-09-18 13:36:00 -05001Upstream-Status: Inappropriate [OE-Specific]
2
3When building emacs, it builds some tools for the HOST
4that are then used to build for target, such as
5make-fingerprint and make-docfile, this needs to be
6adapted to be used by bitbake, otherwise the compiled
7executables arent compatible with the HOST.
8
9Use the above mentioned tools provided by the native
10version of the recipe instead.
11
12Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
13
Andrew Geissler87f5cff2022-09-30 13:13:31 -050014Index: emacs-28.2/src/Makefile.in
Andrew Geisslerd688a012020-09-18 13:36:00 -050015===================================================================
Andrew Geissler87f5cff2022-09-30 13:13:31 -050016--- emacs-28.2.orig/src/Makefile.in
17+++ emacs-28.2/src/Makefile.in
18@@ -462,7 +462,7 @@ ifeq ($(CHECK_STRUCTS),true)
Andrew Geisslerd688a012020-09-18 13:36:00 -050019 pdumper.o: dmpstruct.h
20 endif
21 dmpstruct.h: $(srcdir)/dmpstruct.awk
22-dmpstruct.h: $(libsrc)/make-fingerprint$(EXEEXT) $(dmpstruct_headers)
23+dmpstruct.h: $(dmpstruct_headers)
24 $(AM_V_GEN)POSIXLY_CORRECT=1 awk -f $(srcdir)/dmpstruct.awk \
25 $(dmpstruct_headers) > $@
26
Andrew Geissler87f5cff2022-09-30 13:13:31 -050027@@ -563,8 +563,7 @@ SYSTEM_TYPE = @SYSTEM_TYPE@
Andrew Geisslerd688a012020-09-18 13:36:00 -050028 ## Strictly speaking, emacs does not depend directly on all of $lisp,
29 ## since not all pieces are used on all platforms. But DOC depends
30 ## on all of $lisp, and emacs depends on DOC, so it is ok to use $lisp here.
31-emacs$(EXEEXT): temacs$(EXEEXT) \
32- lisp.mk $(etc)/DOC $(lisp) \
33+emacs$(EXEEXT): lisp.mk $(etc)/DOC $(lisp) \
34 $(lispsource)/international/charprop.el ${charsets}
Andrew Geissler87f5cff2022-09-30 13:13:31 -050035 ifeq ($(SYSTEM_TYPE),cygwin)
36 find ${top_builddir} -name '*.eln' | rebase -v -O -T -
37@@ -597,15 +596,15 @@ endif
Andrew Geisslerd688a012020-09-18 13:36:00 -050038 ## for the first time, this prevents any variation between configurations
39 ## in the contents of the DOC file.
40 ##
41-$(etc)/DOC: lisp.mk $(libsrc)/make-docfile$(EXEEXT) $(obj) $(lisp)
42+$(etc)/DOC: lisp.mk $(obj) $(lisp)
43 $(AM_V_GEN)$(MKDIR_P) $(etc)
44 $(AM_V_at)rm -f $(etc)/DOC
45- $(AM_V_at)$(libsrc)/make-docfile -d $(srcdir) \
46+ make-docfile -d $(srcdir) \
47 $(SOME_MACHINE_OBJECTS) $(obj) > $(etc)/DOC
48- $(AM_V_at)$(libsrc)/make-docfile -a $(etc)/DOC -d $(lispsource) \
49+ make-docfile -a $(etc)/DOC -d $(lispsource) \
50 $(shortlisp)
51
52-$(libsrc)/make-docfile$(EXEEXT) $(libsrc)/make-fingerprint$(EXEEXT): \
53+$(libsrc)/make-fingerprint$(EXEEXT): \
54 $(lib)/libgnu.a
55 $(MAKE) -C $(dir $@) $(notdir $@)
56
Andrew Geissler87f5cff2022-09-30 13:13:31 -050057@@ -618,8 +617,8 @@ buildobj.h: Makefile
58
59 GLOBAL_SOURCES = $(base_obj:.o=.c) $(NS_OBJC_OBJ:.o=.m)
Andrew Geisslerd688a012020-09-18 13:36:00 -050060
61-gl-stamp: $(libsrc)/make-docfile$(EXEEXT) $(GLOBAL_SOURCES)
62- $(AM_V_GLOBALS)$(libsrc)/make-docfile -d $(srcdir) -g $(obj) > globals.tmp
63+gl-stamp: $(GLOBAL_SOURCES)
64+ make-docfile -d $(srcdir) -g $(obj) > globals.tmp
65 $(AM_V_at)$(top_srcdir)/build-aux/move-if-change globals.tmp globals.h
66 $(AM_V_at)echo timestamp > $@
67
Andrew Geissler87f5cff2022-09-30 13:13:31 -050068@@ -633,7 +632,7 @@ $(LIBEGNU_ARCHIVE): $(config_h)
Andrew Geisslerd688a012020-09-18 13:36:00 -050069 $(MAKE) -C $(dir $@) all
70
71 ifeq ($(HAVE_PDUMPER),yes)
72- MAKE_PDUMPER_FINGERPRINT = $(libsrc)/make-fingerprint$(EXEEXT)
73+ MAKE_PDUMPER_FINGERPRINT = make-fingerprint
74 else
75 MAKE_PDUMPER_FINGERPRINT =
76 endif
Andrew Geissler87f5cff2022-09-30 13:13:31 -050077@@ -643,7 +642,7 @@ endif
Andrew Geisslerd688a012020-09-18 13:36:00 -050078 ## This goes on to affect various things, and the emacs binary fails
79 ## to start if Vinstallation_directory has the wrong value.
80 temacs$(EXEEXT): $(LIBXMENU) $(ALLOBJS) $(LIBEGNU_ARCHIVE) $(EMACSRES) \
Andrew Geissler87f5cff2022-09-30 13:13:31 -050081- $(charsets) $(charscript) ${emoji-zwj} $(MAKE_PDUMPER_FINGERPRINT)
82+ $(charsets) $(charscript) ${emoji-zwj}
Andrew Geisslerd688a012020-09-18 13:36:00 -050083 $(AM_V_CCLD)$(CC) -o $@.tmp \
84 $(ALL_CFLAGS) $(TEMACS_LDFLAGS) $(LDFLAGS) \
85 $(ALLOBJS) $(LIBEGNU_ARCHIVE) $(W32_RES_LINK) $(LIBES)