midipix / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

Blame patches/emacs-26.1.local.patch

Lucio Andrés Illanes Albornoz af4dc6
diff -ru emacs-26.1.orig/configure emacs-26.1/configure
Lucio Andrés Illanes Albornoz af4dc6
--- emacs-26.1.orig/configure	2018-05-25 17:30:58.000000000 +0200
Lucio Andrés Illanes Albornoz af4dc6
+++ emacs-26.1/configure	2018-11-28 19:48:51.524844347 +0100
Lucio Andrés Illanes Albornoz 254e22
@@ -4766,6 +4766,11 @@
Lucio Andrés Illanes Albornoz 254e22
     opsys=gnu-linux
Lucio Andrés Illanes Albornoz 254e22
   ;;
Lucio Andrés Illanes Albornoz 254e22
 
Lucio Andrés Illanes Albornoz 254e22
+  ## Midipix ports
Lucio Andrés Illanes Albornoz 254e22
+  *-*-midipix* )
Lucio Andrés Illanes Albornoz 254e22
+    opsys=midipix
Lucio Andrés Illanes Albornoz 254e22
+  ;;
Lucio Andrés Illanes Albornoz 254e22
+
Lucio Andrés Illanes Albornoz 254e22
   ## FreeBSD ports
Lucio Andrés Illanes Albornoz 254e22
   *-*-freebsd* )
Lucio Andrés Illanes Albornoz 254e22
     opsys=freebsd
Lucio Andrés Illanes Albornoz af4dc6
@@ -9158,6 +9163,7 @@
Lucio Andrés Illanes Albornoz af4dc6
 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
Lucio Andrés Illanes Albornoz af4dc6
 case "$opsys" in
Lucio Andrés Illanes Albornoz af4dc6
   nacl) CANNOT_DUMP=yes ;;
Lucio Andrés Illanes Albornoz af4dc6
+  midipix) CANNOT_DUMP=yes ;;
Lucio Andrés Illanes Albornoz af4dc6
 esac
Lucio Andrés Illanes Albornoz af4dc6
 
Lucio Andrés Illanes Albornoz af4dc6
 if test "$CANNOT_DUMP" = "yes"; then
Lucio Andrés Illanes Albornoz af4dc6
@@ -9768,7 +9774,7 @@
Lucio Andrés Illanes Albornoz af4dc6
   fi
Lucio Andrés Illanes Albornoz af4dc6
             if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
Lucio Andrés Illanes Albornoz af4dc6
      case "$opsys" in
Lucio Andrés Illanes Albornoz af4dc6
-                     gnu-linux|freebsd|netbsd|mingw32|cygwin)
Lucio Andrés Illanes Albornoz af4dc6
+                     gnu-linux|freebsd|netbsd|mingw32|cygwin|midipix)
Lucio Andrés Illanes Albornoz af4dc6
 
Lucio Andrés Illanes Albornoz af4dc6
 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
Lucio Andrés Illanes Albornoz af4dc6
 
Lucio Andrés Illanes Albornoz af4dc6
@@ -11412,7 +11418,7 @@
Lucio Andrés Illanes Albornoz af4dc6
   ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
Lucio Andrés Illanes Albornoz af4dc6
   ## Does the AC_FUNC_MMAP test below make this check unnecessary?
Lucio Andrés Illanes Albornoz af4dc6
   case "$opsys" in
Lucio Andrés Illanes Albornoz af4dc6
-    mingw32|gnu*) REL_ALLOC=no ;;
Lucio Andrés Illanes Albornoz af4dc6
+    mingw32|midipix|gnu*) REL_ALLOC=no ;;
Lucio Andrés Illanes Albornoz af4dc6
   esac
Lucio Andrés Illanes Albornoz af4dc6
 fi
Lucio Andrés Illanes Albornoz af4dc6
 
Lucio Andrés Illanes Albornoz af4dc6
@@ -11422,7 +11428,7 @@
Lucio Andrés Illanes Albornoz af4dc6
 
Lucio Andrés Illanes Albornoz af4dc6
 use_mmap_for_buffers=no
Lucio Andrés Illanes Albornoz af4dc6
 case "$opsys" in
Lucio Andrés Illanes Albornoz af4dc6
-  mingw32) use_mmap_for_buffers=yes ;;
Lucio Andrés Illanes Albornoz af4dc6
+  mingw32|midipix) use_mmap_for_buffers=yes ;;
Lucio Andrés Illanes Albornoz af4dc6
 esac
Lucio Andrés Illanes Albornoz af4dc6
 
Lucio Andrés Illanes Albornoz af4dc6
 
Lucio Andrés Illanes Albornoz af4dc6
@@ -15365,7 +15371,7 @@
Lucio Andrés Illanes Albornoz af4dc6
 esac
Lucio Andrés Illanes Albornoz af4dc6
 if test "${with_modules}" != "no"; then
Lucio Andrés Illanes Albornoz af4dc6
   case $opsys in
Lucio Andrés Illanes Albornoz af4dc6
-    gnu|gnu-linux)
Lucio Andrés Illanes Albornoz af4dc6
+    gnu|gnu-linux|midipix)
Lucio Andrés Illanes Albornoz af4dc6
       LIBMODULES="-ldl"
Lucio Andrés Illanes Albornoz af4dc6
       HAVE_MODULES=yes
Lucio Andrés Illanes Albornoz af4dc6
       ;;
Lucio Andrés Illanes Albornoz af4dc6
@@ -16764,7 +16770,7 @@
Lucio Andrés Illanes Albornoz af4dc6
   case $opsys in
Lucio Andrés Illanes Albornoz af4dc6
     aix4-2) mail_lock="lockf" ;;
Lucio Andrés Illanes Albornoz af4dc6
 
Lucio Andrés Illanes Albornoz af4dc6
-    gnu|freebsd|dragonfly|netbsd|openbsd|darwin) mail_lock="flock" ;;
Lucio Andrés Illanes Albornoz af4dc6
+    gnu|midipix|freebsd|dragonfly|netbsd|openbsd|darwin) mail_lock="flock" ;;
Lucio Andrés Illanes Albornoz af4dc6
 
Lucio Andrés Illanes Albornoz af4dc6
     ## On GNU/Linux systems, both methods are used by various mail programs.
Lucio Andrés Illanes Albornoz af4dc6
     ## I assume most people are using newer mailers that have heard of flock.
Lucio Andrés Illanes Albornoz af4dc6
@@ -18510,7 +18516,7 @@
Lucio Andrés Illanes Albornoz af4dc6
 
Lucio Andrés Illanes Albornoz af4dc6
 
Lucio Andrés Illanes Albornoz af4dc6
 case $opsys in
Lucio Andrés Illanes Albornoz af4dc6
-  cygwin|gnu|gnu-linux|gnu-kfreebsd|freebsd|netbsd|openbsd)
Lucio Andrés Illanes Albornoz af4dc6
+  cygwin|midipix|gnu|gnu-linux|gnu-kfreebsd|freebsd|netbsd|openbsd)
Lucio Andrés Illanes Albornoz af4dc6
 
Lucio Andrés Illanes Albornoz af4dc6
 $as_echo "#define NARROWPROTO 1" >>confdefs.h
Lucio Andrés Illanes Albornoz af4dc6
 
Lucio Andrés Illanes Albornoz af4dc6
@@ -18550,7 +18556,7 @@
Lucio Andrés Illanes Albornoz af4dc6
 
Lucio Andrés Illanes Albornoz af4dc6
     ;;
Lucio Andrés Illanes Albornoz af4dc6
 
Lucio Andrés Illanes Albornoz af4dc6
-  gnu-linux | gnu-kfreebsd | dragonfly | freebsd | netbsd | darwin | nacl )
Lucio Andrés Illanes Albornoz af4dc6
+  gnu-linux | midipix | gnu-kfreebsd | dragonfly | freebsd | netbsd | darwin | nacl )
Lucio Andrés Illanes Albornoz af4dc6
         if test "x$ac_cv_func_grantpt" = xyes; then
Lucio Andrés Illanes Albornoz af4dc6
 
Lucio Andrés Illanes Albornoz af4dc6
 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
Lucio Andrés Illanes Albornoz af4dc6
@@ -18620,7 +18626,7 @@
Lucio Andrés Illanes Albornoz af4dc6
 
Lucio Andrés Illanes Albornoz af4dc6
 
Lucio Andrés Illanes Albornoz af4dc6
 case $opsys in
Lucio Andrés Illanes Albornoz af4dc6
-    aix4-2 | cygwin | gnu | dragonfly | freebsd | netbsd | openbsd | darwin )
Lucio Andrés Illanes Albornoz af4dc6
+    aix4-2 | cygwin | midipix | gnu | dragonfly | freebsd | netbsd | openbsd | darwin )
Lucio Andrés Illanes Albornoz af4dc6
     $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
Lucio Andrés Illanes Albornoz af4dc6
 
Lucio Andrés Illanes Albornoz af4dc6
     ;;
Lucio Andrés Illanes Albornoz af4dc6
Only in emacs-26.1/lib: .binary-io.h.swp
Lucio Andrés Illanes Albornoz af4dc6
diff -ru emacs-26.1.orig/lib-src/Makefile.in emacs-26.1/lib-src/Makefile.in
Lucio Andrés Illanes Albornoz af4dc6
--- emacs-26.1.orig/lib-src/Makefile.in	2018-04-23 16:17:42.000000000 +0200
Lucio Andrés Illanes Albornoz af4dc6
+++ emacs-26.1/lib-src/Makefile.in	2018-11-28 19:25:21.901162314 +0100
c98bfa
@@ -388,8 +388,12 @@ profile${EXEEXT}: ${srcdir}/profile.c $(NTLIB) $(config_h)
c98bfa
 	$(AM_V_CCLD)$(CC) ${ALL_CFLAGS} $< \
Lucio Andrés Illanes Albornoz 254e22
 	  $(NTLIB) $(LOADLIBES) $(LIB_CLOCK_GETTIME) -o $@
Lucio Andrés Illanes Albornoz 254e22
 
c98bfa
-make-docfile${EXEEXT}: ${srcdir}/make-docfile.c $(NTLIB) $(config_h)
Lucio Andrés Illanes Albornoz 254e22
-	$(AM_V_CCLD)$(CC) ${ALL_CFLAGS} $< $(NTLIB) $(LOADLIBES) -o $@
c98bfa
+make-docfile${EXEEXT}: CFLAGS_FOR_BUILD += -std=gnu99
c98bfa
+make-docfile${EXEEXT}: CFLAGS_FOR_BUILD += -I../src
c98bfa
+make-docfile${EXEEXT}: CFLAGS_FOR_BUILD += -I${srcdir}/../src -I${srcdir}/../lib
c98bfa
+make-docfile${EXEEXT}: CFLAGS_FOR_BUILD += -D_BINARY_H -Dset_binary_mode\(x\,y\)
c98bfa
+make-docfile${EXEEXT}: ${srcdir}/make-docfile.c $(config_h)
c98bfa
+	$(AM_V_CCLD)$(BUILDCC) $< -o $@ $(CFLAGS_FOR_BUILD)
Lucio Andrés Illanes Albornoz 254e22
 
Lucio Andrés Illanes Albornoz 254e22
 movemail${EXEEXT}: ${srcdir}/movemail.c pop.o $(NTLIB) $(config_h)
Lucio Andrés Illanes Albornoz 254e22
 	$(AM_V_CCLD)$(CC) ${ALL_CFLAGS} ${MOVE_FLAGS} $< pop.o \