From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chip Coldwell Newsgroups: gmane.emacs.devel Subject: emacs-22.2 patch for Linux/SPARC Date: Thu, 24 Apr 2008 16:17:50 -0400 (EDT) Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: ger.gmane.org 1209068292 25499 80.91.229.12 (24 Apr 2008 20:18:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Apr 2008 20:18:12 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 24 22:18:46 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jp7u2-00013x-9p for ged-emacs-devel@m.gmane.org; Thu, 24 Apr 2008 22:18:46 +0200 Original-Received: from localhost ([127.0.0.1]:48049 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jp7tM-0007IW-EO for ged-emacs-devel@m.gmane.org; Thu, 24 Apr 2008 16:18:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jp7tI-0007G4-Ih for emacs-devel@gnu.org; Thu, 24 Apr 2008 16:18:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jp7tI-0007FS-3g for emacs-devel@gnu.org; Thu, 24 Apr 2008 16:18:00 -0400 Original-Received: from [199.232.76.173] (port=59821 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jp7tI-0007FL-0J for emacs-devel@gnu.org; Thu, 24 Apr 2008 16:18:00 -0400 Original-Received: from mx1.redhat.com ([66.187.233.31]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jp7tH-0008VR-AO for emacs-devel@gnu.org; Thu, 24 Apr 2008 16:17:59 -0400 Original-Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m3OKHqgP007384 for ; Thu, 24 Apr 2008 16:17:52 -0400 Original-Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m3OKHppn030906 for ; Thu, 24 Apr 2008 16:17:51 -0400 Original-Received: from dhcp83-59.boston.redhat.com (dhcp83-59.boston.redhat.com [172.16.83.59]) by mail.boston.redhat.com (8.13.1/8.13.1) with ESMTP id m3OKHoCI024908 for ; Thu, 24 Apr 2008 16:17:50 -0400 User-Agent: Alpine 1.10 (LFD 962 2008-03-14) X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:95910 Archived-At: The following patch was required to get emacs-22.2 to build on Linux/SPARC. Please consider this for inclusion in emacs-23 and future releases of emacs-22. --- emacs-22.1.50/src/m/sparc.h.old 2008-02-11 01:26:36.000000000 -0600 +++ emacs-22.1.50/src/m/sparc.h 2008-02-11 09:12:09.000000000 -0600 @@ -93,6 +93,19 @@ #ifdef __arch64__ /* GCC, 64-bit ABI. */ #define BITS_PER_LONG 64 +#ifdef __linux__ +#undef START_FILES +#define START_FILES pre-crt0.o /usr/lib64/crt1.o /usr/lib64/crti.o + +/* The duplicate -lgcc is intentional in the definition of LIB_STANDARD. + The reason is that some functions in libgcc.a call functions from libc.a, + and some libc.a functions need functions from libgcc.a. Since most + versions of ld are one-pass linkers, we need to mention -lgcc twice, + or else we risk getting unresolved externals. */ +#undef LIB_STANDARD +#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib64/crtn.o +#endif + #ifndef _LP64 #define _LP64 /* Done on Alpha -- not sure if it should be here. -- fx */ Chip -- Charles M. "Chip" Coldwell Senior Software Engineer Red Hat, Inc 978-392-2426 GPG ID: 852E052F GPG FPR: 77E5 2B51 4907 F08A 7E92 DE80 AFA9 9A8F 852E 052F ---------- Forwarded message ---------- Date: Thu, 24 Apr 2008 18:18:28 GMT From: Dennis Gilmore To: cvsextras@fedora.redhat.com, coldwell@redhat.com Subject: rpms/emacs/F-9 emacs-22.1.50-sparc64.patch, NONE, 1.1 emacs.spec, 1.110, 1.111 Author: ausil Update of /cvs/pkgs/rpms/emacs/F-9 In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22416 Modified Files: emacs.spec Added Files: emacs-22.1.50-sparc64.patch Log Message: add patch fixing build on sparc64 emacs-22.1.50-sparc64.patch: --- NEW FILE emacs-22.1.50-sparc64.patch --- Index: emacs.spec =================================================================== RCS file: /cvs/pkgs/rpms/emacs/F-9/emacs.spec,v retrieving revision 1.110 retrieving revision 1.111 diff -u -r1.110 -r1.111 --- emacs.spec 23 Apr 2008 17:12:32 -0000 1.110 +++ emacs.spec 24 Apr 2008 18:17:52 -0000 1.111 @@ -3,7 +3,7 @@ Summary: GNU Emacs text editor Name: emacs Version: 22.2 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv3+ URL: http://www.gnu.org/software/emacs/ Group: Applications/Editors @@ -26,6 +26,7 @@ Patch0: glibc-open-macro.patch Patch1: rpm-spec-mode.patch Patch2: po-mode-auto-replace-date-71264.patch +Patch3: emacs-22.1.50-sparc64.patch Buildroot: %{_tmppath}/%{name}-%{version}-root BuildRequires: atk-devel, cairo-devel, freetype-devel, fontconfig-devel, giflib-devel, glibc-devel, gtk2-devel, libpng-devel BuildRequires: libjpeg-devel, libtiff-devel, libX11-devel, libXau-devel, libXdmcp-devel, libXrender-devel, libXt-devel @@ -102,6 +103,7 @@ %prep %setup -q %patch0 -p1 -b .glibc-open-macro +%patch3 -p1 -b .sparc64-libdir # install rest of site-lisp files ( cd site-lisp @@ -308,6 +310,9 @@ %dir %{_datadir}/emacs/%{version} %changelog +* Thu Apr 24 2008 Dennis Gilmore 22.2-2 +- add patch fixing libdir on sparc64 + * Tue Apr 22 2008 Chip Coldwell 22.2-1 - revert back to emacs-22.2 (bz443639) - update to php-mode-1.4.0