~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to bootstrap.conf

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Bootstrap configuration.
2
2
 
3
 
# Copyright (C) 2006-2011 Free Software Foundation, Inc.
 
3
# Copyright (C) 2006-2012 Free Software Foundation, Inc.
4
4
 
5
5
# This program is free software: you can redistribute it and/or modify
6
6
# it under the terms of the GNU General Public License as published by
36
36
  autobuild
37
37
  backupfile
38
38
  base64
 
39
  buffer-lcm
39
40
  c-strcase
40
41
  c-strtod
41
42
  c-strtold
70
71
  faccessat
71
72
  fadvise
72
73
  fchdir
 
74
  fchmodat
 
75
  fchownat
73
76
  fclose
74
77
  fcntl
75
78
  fcntl-safer
 
79
  fd-reopen
 
80
  fdatasync
76
81
  fdl
 
82
  fdopen
77
83
  fdutimensat
78
84
  file-type
79
85
  fileblocks
86
92
  freopen
87
93
  freopen-safer
88
94
  fseeko
 
95
  fstatat
89
96
  fsusage
90
97
  fsync
91
98
  ftello
92
99
  ftoastr
 
100
  ftruncate
93
101
  fts
94
102
  full-read
95
103
  full-write
97
105
  gethrxtime
98
106
  getline
99
107
  getloadavg
 
108
  getlogin
100
109
  getndelim2
101
110
  getopt-gnu
102
111
  getpagesize
103
112
  getpass-gnu
104
 
  gettext
 
113
  gettext-h
105
114
  gettime
106
115
  gettimeofday
107
116
  getugroups
124
133
  inttostr
125
134
  inttypes
126
135
  isapipe
 
136
  isatty
127
137
  isblank
128
138
  largefile
129
139
  lchmod
152
162
  mkancesdirs
153
163
  mkdir
154
164
  mkdir-p
 
165
  mkfifo
 
166
  mknod
155
167
  mkstemp
156
168
  mktime
157
169
  modechange
158
170
  mountlist
159
171
  mpsort
160
172
  netinet_in
 
173
  non-recursive-gnulib-prefix-hack
161
174
  nproc
162
175
  obstack
163
176
  parse-datetime
 
177
  pathmax
164
178
  perl
165
179
  physmem
 
180
  pipe
166
181
  posix-shell
167
182
  posixtm
168
183
  posixver
206
221
  stpncpy
207
222
  strdup-posix
208
223
  strftime
 
224
  strncat
 
225
  strnumcmp
 
226
  strpbrk
209
227
  strsignal
210
228
  strtod
211
229
  strtoimax
212
230
  strtoumax
213
231
  symlink
214
232
  sys_ioctl
 
233
  sys_resource
215
234
  sys_stat
216
235
  sys_wait
217
236
  termios
222
241
  unicodeio
223
242
  unistd-safer
224
243
  unlink-busy
 
244
  unlinkat
225
245
  unlocked-io
226
246
  unsetenv
227
247
  update-copyright
235
255
  verify
236
256
  verror
237
257
  version-etc-fsf
 
258
  wcswidth
238
259
  wcwidth
239
 
  wcswidth
240
260
  winsz-ioctl
241
261
  winsz-termios
242
262
  write-any-file
243
263
  xalloc
244
264
  xfreopen
 
265
  xfts
245
266
  xgetcwd
246
267
  xgetgroups
247
268
  xgethostname
286
307
 --keyword=proper_name_utf8:1,'"$see_manual"'\\\
287
308
'
288
309
 
289
 
gnulib_tool_option_extras="--tests-base=$bt/gnulib-tests --with-tests"
 
310
gnulib_tool_option_extras="--tests-base=gnulib-tests --with-tests --symlink\
 
311
 --makefile-name=gnulib.mk
 
312
"
290
313
 
291
314
# Build prerequisites
292
315
buildreq="\
293
 
autoconf   2.62
294
 
automake   1.11.1
 
316
autoconf   2.64
 
317
automake   1.11.2
295
318
autopoint  -
296
319
bison      -
297
 
gettext    0.17
 
320
gettext    0.18.1
298
321
git        1.4.4
299
322
gperf      -
300
323
gzip       -
306
329
xz         -
307
330
"
308
331
 
309
 
# Automake requires that ChangeLog exist.
310
 
touch ChangeLog || exit 1
 
332
bootstrap_post_import_hook ()
 
333
{
 
334
  # Automake requires that ChangeLog exist.
 
335
  touch ChangeLog || return 1
 
336
  # List of coreutils programs.  See heading comments in the invoked
 
337
  # script for more info.  Keep this in sync with the rules in
 
338
  (m4f=m4/cu-progs.m4 mkf=src/cu-progs.mk tmp=cu-progs.tmp \
 
339
    && rm -f $m4f $mkf $tmp-1 $tmp-2 \
 
340
    && build-aux/gen-lists-of-programs.sh --autoconf >$tmp-1 \
 
341
    && build-aux/gen-lists-of-programs.sh --automake >$tmp-2 \
 
342
    && chmod a-w $tmp-1 $tmp-2 \
 
343
    && mv -f $tmp-1 $m4f && mv -f $tmp-2 $mkf)
 
344
 
 
345
  # Massage lib/gnulib.mk before using it later in the bootstrapping process.
 
346
  build-aux/prefix-gnulib-mk --lib-name=$gnulib_name lib/$gnulib_mk
 
347
}
 
348
 
311
349
 
312
350
bootstrap_epilogue()
313
351
{
314
 
  # Change paths in gnulib-tests/gnulib.mk from "../.." to "..".
315
 
  m=gnulib-tests/gnulib.mk
316
 
  sed 's,\.\./\.\.,..,g' $m > $m-t
317
 
  mv -f $m-t $m
318
 
 
319
352
  # Since this is a "GNU" package, replace this line
320
353
  #   if LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null \
321
354
  #      | grep -v 'libtool:' >/dev/null; then
326
359
  # first grep may well run out of memory.
327
360
  perl -pi -e 's/if LC_ALL=C grep .GNU .PACKAGE.*; then/if true; then/' \
328
361
    po/Makefile.in.in
 
362
 
 
363
  # Install our git hooks, as long as "cp" accepts the --backup option,
 
364
  # so that we can back up any existing files.
 
365
  case $(cp --help) in *--backup*) backup=1;; *) backup=0;; esac
 
366
  if test $backup = 1; then
 
367
    hooks=$(cd scripts/git-hooks && git ls-files)
 
368
    for f in $hooks; do
 
369
      # If it is identical, skip it.
 
370
      cmp scripts/git-hooks/$f .git/hooks/$f > /dev/null \
 
371
        && continue
 
372
      cp --backup=numbered scripts/git-hooks/$f .git/hooks
 
373
      chmod a-w .git/hooks/$f
 
374
    done
 
375
  fi
329
376
}