Package: emacs22 Version: 22.3+1-1.1 Severity: wishlist Tags: patch User: debian-...@superh.org Usertags: sh4
Hi, I am now trying to run Debian on Renesas SH CPU(sh4). But emacs22 FTBFS on sh4. ----- /share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs22:/etc/emacs:/usr/local/share/emacs/22.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.3/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.3/leim --with-x=yes --with-x-toolkit=athena --with-toolkit-scroll-bars checking build system type... sh4-unknown-linux-gnu checking host system type... sh4-unknown-linux-gnu configure: error: Emacs hasn't been ported to `sh4-unknown-linux-gnu' systems. Check `etc/MACHINES' for recognized configuration names. make: *** [debian/stamp/configure] Error 1 dpkg-buildpackage: error: debian/rules build gave error exit status 2 ----- Current emacs22 package doesn't support sh4. I made a patch to revise to be able to build. Would you apply it? Best regards, Nobuhiro
--- a/configure.in 2009-10-07 13:19:15.000000000 +0900 +++ b/configure.in 2009-10-07 13:23:48.000000000 +0900 @@ -1192,6 +1192,16 @@ machine=mips opsys=gnu-linux ;; + ## Renesas SuperH (little endian) Linux-based GNU system + sh[34]-*-linux-gnu* ) + machine=sh3el opsys=gnu-linux + ;; + + ## Renesas SuperH (big endian) Linux-based GNU system + sh[34]eb-*-linux-gnu* ) + machine=sh3eb opsys=gnu-linux + ;; + ## UXP/DS sparc-fujitsu-sysv4* ) machine=sparc opsys=uxpds --- a/src/m/sh3eb.h 1970-01-01 01:00:00.000000000 +0000 +++ b/src/m/sh3eb.h 2009-10-07 13:28:12.000000000 +0900 @@ -0,0 +1,4 @@ + /* machine description file for sh3eb + Copyright (C) 1985, 1986, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. */ +#include "sh3el.h" +#define WORDS_BIG_ENDIAN --- a/configure 2009-10-07 15:51:34.000000000 +0900 +++ b/configure 2009-10-07 15:53:38.000000000 +0900 @@ -2782,6 +2782,14 @@ s390x-*-linux-gnu* ) machine=ibms390x opsys=gnu-linux ;; + ## Renesas SuperH (little endian) Linux-based GNU system + sh[34]-*-linux-gnu* ) + machine=sh3el opsys=gnu-linux + ;; + ## Renesas SuperH (big endian) Linux-based GNU system + sh[34]eb-*-linux-gnu* ) + machine=sh3eb opsys=gnu-linux + ;; rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) machine=ibmrs6000 opsys=aix3-1 ;;