forked from pool/glibc
1959442717
Remove/Disable old patches. OBS-URL: https://build.opensuse.org/request/show/71745 OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=55
26 lines
549 B
Bash
26 lines
549 B
Bash
#!/bin/bash
|
|
# Copyright (c) 2003, 2004 SuSE Linux AG, Germany. All rights reserved.
|
|
#
|
|
# Authors: Thorsten Kukuk <kukuk@suse.de>
|
|
#
|
|
# this script use the following variable(s):
|
|
#
|
|
# - $BUILD_BASENAME
|
|
#
|
|
|
|
if [ `nice` -gt '9' ] ; then
|
|
echo "Don't modify nice for building glibc!"
|
|
exit 1
|
|
fi
|
|
|
|
# get kernel version
|
|
OFS="$IFS" ; IFS=".-" ; version=(`uname -r`) ; 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
|
|
|
|
|
|
exit 0
|
|
|