~ubuntu-branches/debian/sid/subversion/sid

« back to all changes in this revision

Viewing changes to get-deps.sh

  • Committer: Package Import Robot
  • Author(s): James McCoy, Peter Samuelson, James McCoy
  • Date: 2014-01-12 19:48:33 UTC
  • mfrom: (0.2.10)
  • Revision ID: package-import@ubuntu.com-20140112194833-w3axfwksn296jn5x
Tags: 1.8.5-1
[ Peter Samuelson ]
* New upstream release.  (Closes: #725787) Rediff patches:
  - Remove apr-abi1 (applied upstream), rename apr-abi2 to apr-abi
  - Remove loosen-sqlite-version-check (shouldn't be needed)
  - Remove java-osgi-metadata (applied upstream)
  - svnmucc prompts for a changelog if none is provided. (Closes: #507430)
  - Remove fix-bdb-version-detection, upstream uses "apu-config --dbm-libs"
  - Remove ruby-test-wc (applied upstream)
  - Fix “svn diff -r N file” when file has svn:mime-type set.
    (Closes: #734163)
  - Support specifying an encoding for mod_dav_svn's environment in which
    hooks are run.  (Closes: #601544)
  - Fix ordering of “svnadmin dump” paths with certain APR versions.
    (Closes: #687291)
  - Provide a better error message when authentication fails with an
    svn+ssh:// URL.  (Closes: #273874)
  - Updated Polish translations.  (Closes: #690815)

[ James McCoy ]
* Remove all traces of libneon, replaced by libserf.
* patches/sqlite_3.8.x_workaround: Upstream fix for wc-queries-test test
  failurse.
* Run configure with --with-apache-libexecdir, which allows removing part of
  patches/rpath.
* Re-enable auth-test as upstream has fixed the problem of picking up
  libraries from the environment rather than the build tree.
  (Closes: #654172)
* Point LD_LIBRARY_PATH at the built auth libraries when running the svn
  command during the build.  (Closes: #678224)
* Add a NEWS entry describing how to configure mod_dav_svn to understand
  UTF-8.  (Closes: #566148)
* Remove ancient transitional package, libsvn-ruby.
* Enable compatibility with Sqlite3 versions back to Wheezy.
* Enable hardening flags.  (Closes: #734918)
* patches/build-fixes: Enable verbose build logs.
* Build against the default ruby version.  (Closes: #722393)

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
# get-deps.sh -- download the dependencies useful for building Subversion
24
24
#
25
25
 
26
 
APR=apr-1.4.5
27
 
APR_UTIL=apr-util-1.3.12
28
 
NEON=neon-0.29.6
29
 
SERF=serf-0.7.2
30
 
ZLIB=zlib-1.2.8
31
 
SQLITE_VERSION=3.7.6.3
 
26
# If changing this file please take care to try to make your changes as
 
27
# portable as possible.  That means at a minimum only use POSIX supported
 
28
# features and functions.  However, it may be desirable to use an even
 
29
# more narrow set of features than POSIX, e.g. Solaris /bin/sh only has
 
30
# a subset of the POSIX shell features.  If in doubt, limit yourself to
 
31
# features already used in the file.  Reviewing the history of changes
 
32
# may be useful as well.
 
33
 
 
34
APR_VERSION=${APR_VERSION:-"1.4.6"}
 
35
APU_VERSION=${APU_VERSION:-"1.5.1"}
 
36
SERF_VERSION=${SERF_VERSION:-"1.2.1"}
 
37
ZLIB_VERSION=${ZLIB_VERSION:-"1.2.8"}
 
38
SQLITE_VERSION=${SQLITE_VERSION:-"3.7.15.1"}
 
39
GTEST_VERSION=${GTEST_VERSION:-"1.6.0"}
 
40
HTTPD_VERSION=${HTTPD_VERSION:-"2.4.6"}
 
41
APR_ICONV_VERSION=${APR_ICONV_VERSION:-"1.2.1"}
 
42
 
 
43
APR=apr-${APR_VERSION}
 
44
APR_UTIL=apr-util-${APU_VERSION}
 
45
SERF=serf-${SERF_VERSION}
 
46
ZLIB=zlib-${ZLIB_VERSION}
32
47
SQLITE_VERSION_LIST=`echo $SQLITE_VERSION | sed -e 's/\./ /g'`
33
48
SQLITE=sqlite-amalgamation-`printf %d%02d%02d%02d $SQLITE_VERSION_LIST`
34
 
 
35
 
 
36
 
HTTPD=httpd-2.2.25
37
 
APR_ICONV=apr-iconv-1.2.1
 
49
GTEST=gtest-${GTEST_VERSION}
 
50
GTEST_URL=http://googletest.googlecode.com/files/
 
51
 
 
52
HTTPD=httpd-${HTTPD_VERSION}
 
53
APR_ICONV=apr-iconv-${APR_ICONV_VERSION}
38
54
 
39
55
BASEDIR=`pwd`
40
56
TEMPDIR=$BASEDIR/temp
41
57
 
42
58
HTTP_FETCH=
43
 
[ -z "$HTTP_FETCH" ] && type wget  >/dev/null 2>&1 && HTTP_FETCH="wget -nc"
44
 
[ -z "$HTTP_FETCH" ] && type curl  >/dev/null 2>&1 && HTTP_FETCH="curl -O"
45
 
[ -z "$HTTP_FETCH" ] && type fetch >/dev/null 2>&1 && HTTP_FETCH="fetch"
 
59
[ -z "$HTTP_FETCH" ] && type wget  >/dev/null 2>&1 && HTTP_FETCH="wget -q -nc"
 
60
[ -z "$HTTP_FETCH" ] && type curl  >/dev/null 2>&1 && HTTP_FETCH="curl -sO"
 
61
[ -z "$HTTP_FETCH" ] && type fetch >/dev/null 2>&1 && HTTP_FETCH="fetch -q"
46
62
 
47
63
# Need this uncommented if any of the specific versions of the ASF tarballs to
48
64
# be downloaded are no longer available on the general mirrors.
51
67
# helpers
52
68
usage() {
53
69
    echo "Usage: $0"
54
 
    echo "Usage: $0 [ apr | neon | serf | zlib | sqlite ] ..."
 
70
    echo "Usage: $0 [ apr | serf | zlib | sqlite | gtest ] ..."
55
71
    exit $1
56
72
}
57
73
 
58
74
# getters
59
75
get_apr() {
60
76
    cd $TEMPDIR
61
 
    $HTTP_FETCH $APACHE_MIRROR/apr/$APR.tar.bz2
62
 
    $HTTP_FETCH $APACHE_MIRROR/apr/$APR_UTIL.tar.bz2
63
 
    cd $BASEDIR
64
 
 
65
 
    bzip2 -dc $TEMPDIR/$APR.tar.bz2 | tar -xf -
66
 
    bzip2 -dc $TEMPDIR/$APR_UTIL.tar.bz2 | tar -xf -
67
 
 
68
 
    mv $APR apr
69
 
    mv $APR_UTIL apr-util
70
 
}
71
 
 
72
 
get_neon() {
73
 
    cd $TEMPDIR
74
 
    $HTTP_FETCH http://webdav.org/neon/$NEON.tar.gz
75
 
    cd $BASEDIR
76
 
 
77
 
    gzip  -dc $TEMPDIR/$NEON.tar.gz | tar -xf -
78
 
 
79
 
    mv $NEON neon
 
77
    test -d $BASEDIR/apr      || $HTTP_FETCH $APACHE_MIRROR/apr/$APR.tar.bz2
 
78
    test -d $BASEDIR/apr-util || $HTTP_FETCH $APACHE_MIRROR/apr/$APR_UTIL.tar.bz2
 
79
    cd $BASEDIR
 
80
 
 
81
    test -d $BASEDIR/apr      || bzip2 -dc $TEMPDIR/$APR.tar.bz2 | tar -xf -
 
82
    test -d $BASEDIR/apr-util || bzip2 -dc $TEMPDIR/$APR_UTIL.tar.bz2 | tar -xf -
 
83
 
 
84
    test -d $BASEDIR/apr      || mv $APR apr
 
85
    test -d $BASEDIR/apr-util || mv $APR_UTIL apr-util
80
86
}
81
87
 
82
88
get_serf() {
 
89
    test -d $BASEDIR/serf && return
 
90
 
83
91
    cd $TEMPDIR
84
92
    $HTTP_FETCH http://serf.googlecode.com/files/$SERF.tar.bz2
85
93
    cd $BASEDIR
90
98
}
91
99
 
92
100
get_zlib() {
 
101
    test -d $BASEDIR/zlib && return
 
102
 
93
103
    cd $TEMPDIR
94
104
    $HTTP_FETCH http://www.zlib.net/$ZLIB.tar.gz
95
105
    cd $BASEDIR
100
110
}
101
111
 
102
112
get_sqlite() {
 
113
    test -d $BASEDIR/sqlite-amalgamation && return
 
114
 
103
115
    cd $TEMPDIR
104
116
    $HTTP_FETCH http://www.sqlite.org/$SQLITE.zip
105
117
    cd $BASEDIR
110
122
 
111
123
}
112
124
 
 
125
get_gtest() {
 
126
    test -d $BASEDIR/gtest && return
 
127
 
 
128
    cd $TEMPDIR
 
129
    $HTTP_FETCH ${GTEST_URL}/${GTEST}.zip
 
130
    cd $BASEDIR
 
131
 
 
132
    unzip -q $TEMPDIR/$GTEST.zip
 
133
 
 
134
    mv $GTEST gtest
 
135
}
 
136
 
113
137
# main()
114
138
get_deps() {
115
139
    mkdir -p $TEMPDIR
116
140
 
117
 
    for i in neon zlib serf sqlite-amalgamation apr apr-util; do
 
141
    for i in zlib serf sqlite-amalgamation apr apr-util gtest; do
118
142
      if [ -d $i ]; then
119
143
        echo "Local directory '$i' already exists; the downloaded copy won't be used" >&2
120
144
      fi
130
154
      done
131
155
    else
132
156
      get_apr
133
 
      get_neon
134
157
      get_serf
135
158
      get_zlib
136
159
      get_sqlite