~ubuntu-branches/debian/squeeze/ntp/squeeze-201010051545

« back to all changes in this revision

Viewing changes to build

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2009-11-26 22:16:37 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20091126221637-lbtdp0ax1yg9t0bx
Tags: 1:4.2.4p7+dfsg-4
* Use uname -s instead of dpkg-architecture to found the kernel we're
  running on.  dpkg-architecture is part of dpkg-dev. (Closes: #558145)
* Make the package fail to build on hurd since it does not provided
  the needed system calls for ntpd to work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
LOGF=make.log
4
4
IAM=`hostname || uname -n`
 
5
MYNAME=`IFS=. ; set $IAM ; echo $1`
 
6
SIG=
5
7
 
6
8
case "$1" in
7
9
 0.*)
8
10
    SIG=$1
9
11
    shift
10
12
    CONFIG_ARGS="$@"
11
 
    KEY=`sed -e q < .buildkey`
 
13
    KEY=`sed -e q < .buildkey-$MYNAME`
12
14
    case "$SIG" in
13
15
     $KEY) ;;
14
16
     *)
36
38
    ;;
37
39
esac
38
40
 
39
 
MYNAME=`IFS=. ; set $IAM ; echo $1`
40
 
 
41
41
case "$IAM" in
42
42
 *.udel.edu)
43
43
    BDIR=A.$MYNAME
90
90
[ -f "$BDIR/.buildcvo" ] || echo $CVO > $BDIR/.buildcvo
91
91
[ -f "$BDIR/.buildhost" ] || echo $IAM > $BDIR/.buildhost
92
92
 
 
93
 
93
94
cd $BDIR
94
95
 
 
96
#
 
97
# make sure we have a nice that works,
 
98
#
 
99
nice true && NICEB=nice
 
100
nice true || NICEB=./.nicebuild-$MYNAME-$SIG && (
 
101
    cat > .nicebuild-$MYNAME-$SIG <<UNLYKUHLY
 
102
#! /bin/sh
 
103
shift
 
104
\$*
 
105
UNLYKUHLY
 
106
    chmod +x .nicebuild-$MYNAME-$SIG
 
107
)
 
108
 
 
109
 
95
110
(
96
 
[ -f config.status ] || ../configure $CONFIG_ARGS
 
111
[ -f config.status ] || $NICEB -7 ../configure --config-cache \
 
112
                                $CONFIG_ARGS
97
113
 
98
 
./config.status
 
114
$NICEB -5 ./config.status
99
115
 
100
116
case "$MAKE" in
101
 
 '') make && make check
 
117
 '') $NICEB -14 make && $NICEB -10 make check
102
118
     ;;
103
 
 *)  $MAKE && $MAKE check
 
119
 *)  $NICEB -14 $MAKE && $NICEB -10 $MAKE check
104
120
     ;;
105
121
esac
106
122
) > $LOGF 2>&1