From 358fda74d29420cfcd457c2ccc1abeb3826d29354ec18d7eeb4bbc3a9587e35b Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Thu, 24 Nov 2011 15:03:15 +0000 Subject: [PATCH] . OBS-URL: https://build.opensuse.org/package/show/editors/emacs?expand=0&rev=62 --- check-build.sh | 21 +++++++++++++++++++++ emacs.changes | 5 +++++ 2 files changed, 26 insertions(+) create mode 100644 check-build.sh diff --git a/check-build.sh b/check-build.sh new file mode 100644 index 0000000..385555f --- /dev/null +++ b/check-build.sh @@ -0,0 +1,21 @@ +#!/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 +esac diff --git a/emacs.changes b/emacs.changes index c8c6862..8440dec 100644 --- a/emacs.changes +++ b/emacs.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 24 14:01:22 UTC 2011 - werner@suse.de + +- Avoid SLES10 systems using kernel 2.6.16 + ------------------------------------------------------------------- Tue Nov 22 14:40:45 UTC 2011 - werner@suse.de