SHA256
1
0
forked from pool/emacs

Accepting request 98678 from home:dirkmueller:branches:editors

- rebuild for ppc64 and ia64 (bnc#726769)

OBS-URL: https://build.opensuse.org/request/show/98678
OBS-URL: https://build.opensuse.org/package/show/editors/emacs?expand=0&rev=68
This commit is contained in:
Pascal Bleser 2012-01-03 23:03:35 +00:00 committed by Git OBS Bridge
parent cd46b2e94c
commit 6fff25e3bf
3 changed files with 38 additions and 21 deletions

View File

@ -1,21 +1,20 @@
#!/bin/bash
#
# Avoid SLES10 systems using kernel 2.6.16
#
case "$(uname -i)" in
*ppc*)
read -t 10 name dummy version rest < /proc/version
if test -z "$version" ; then
echo "FATAL: can not read /proc/version" 1>&2
exit 1
fi
OIFS="$IFS"
IFS='.-'
version=($version)
IFS="$OIFS"
if test ${version[0]} -lt 2 -o ${version[1]} -lt 6 -o ${version[2]} -lt 32 ; then
echo "FATAL: kernel too old, need kernel >= 2.6.32 for this package" 1>&2
exit 1
fi
case $BUILD_BASENAME in
*ppc*)
if test $(getconf PAGESIZE) -ne 65536; then
echo "Error: wrong build host, PAGESIZE must be 65536"
exit 1
fi
;;
*ia64*)
if test $(getconf PAGESIZE) -ne 65536; then
echo "Error: wrong build host, PAGESIZE must be 65536"
exit 1
fi
;;
*)
;;
esac
exit 0

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jan 3 18:01:19 CET 2012 - dmueller@suse.de
- rebuild for ppc64 and ia64 (bnc#726769)
-------------------------------------------------------------------
Tue Dec 20 20:30:48 UTC 2011 - coolo@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package emacs
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -15,7 +15,6 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: emacs
BuildRequires: alsa-devel
BuildRequires: autoconf
@ -110,6 +109,7 @@ Obsoletes: emac_nox
Requires: emacs = %{version}-%{release}
Provides: emacs_program = %{version}-%{release}, emac_nox
Summary: GNU Emacs-nox: An Emacs Binary without X Window System Support
Group: Productivity/Editors/Emacs
%description -n emacs-nox
Eight Megabytes And Constantly Swapping. Call it
@ -126,6 +126,7 @@ Enhances: xorg-x11-libs
Provides: emacs_program = %{version}-%{release} emacsbin
Provides: emacs:/usr/bin/emacs ge_exec:/usr/bin/emacs
Summary: GNU Emacs: Emacs binary with X Window System Support
Group: Productivity/Editors/Emacs
%description -n emacs-x11
Call it
@ -140,6 +141,7 @@ Obsoletes: ge_lisp
Requires: emacs = %{version}-%{release}
Provides: ge_lisp
Summary: Several Lisp Files for GNU Emacs
Group: Productivity/Editors/Emacs
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
@ -152,6 +154,7 @@ files are pre-byte compiled and therefore not necessary.
Obsoletes: ge_info elispman elisp-manual elispint emacs-lisp-intro
Provides: elispman elisp-manual elispint emacs-lisp-intro ge_info
Summary: Info files for GNU Emacs
Group: Productivity/Editors/Emacs
PreReq: %install_info_prereq
%if 0%{?suse_version} >= 1120
BuildArch: noarch
@ -186,6 +189,16 @@ if test ! -e $HOME/.mh_profile && type -p install-mh > /dev/null 2>&1; then
fi
%patch22
# make sure that the binaries work (pagesize on build must be the same as on target, bnc#726769)
%if %suse_version >= 1110
%ifarch ppc ppc64 ia64
%if %(getconf PAGESIZE) != 65536
%error "Error: wrong build host, PAGESIZE must be 65536"
exit 1
%endif
%endif
%endif
%build
cflags ()
{