~ubuntu-branches/ubuntu/utopic/mariadb-5.5/utopic-security

« back to all changes in this revision

Viewing changes to debian/autobake-deb.sh

  • Committer: Package Import Robot
  • Author(s): Otto Kekäläinen
  • Date: 2014-04-17 20:55:22 UTC
  • mfrom: (2.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20140417205522-wof4l36nxhlkn89m
* New upstream release, fixing the following security issues:
  * Corresponding MariaDB CVEs for Oracle SPU April 2014 (Closes: #745330)
    - CVE-2014-0384 
    - CVE-2014-2419 
    - CVE-2014-2430 
    - CVE-2014-2431 
    - CVE-2014-2432 
    - CVE-2014-2436 
    - CVE-2014-2438 
    - CVE-2014-2440
* Re-enabled TokuDB with "if arch amd64" in d/rules
* Applied patch to log init output better
  (Closes https://mariadb.atlassian.net/browse/MDEV-5957)

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
PATCHLEVEL="+maria"
28
28
LOGSTRING="MariaDB build"
29
29
 
30
 
# Look up distro-version specific stuff.
31
 
#
32
 
# Libreadline changed to GPLv3. Old GPLv2 version is available, but it
33
 
# is called different things on different versions.
34
30
CODENAME="$(lsb_release -sc)"
35
 
case "${CODENAME}" in
36
 
  etch)  LIBREADLINE_DEV=libreadline-dev ;;
37
 
  lenny|hardy|intrepid|jaunty|karmic|lucid)  LIBREADLINE_DEV='libreadline5-dev | libreadline-dev' ;;
38
 
  squeeze|maverick|natty)  LIBREADLINE_DEV=libreadline5-dev ;;
39
 
  *)  LIBREADLINE_DEV=libreadline-gplv2-dev ;;
40
 
esac
41
 
 
42
 
case "${CODENAME}" in
43
 
  etch|lenny|hardy|intrepid|jaunty|karmic) CMAKE_DEP='' ;;
44
 
  *) CMAKE_DEP='cmake (>= 2.7), ' ;;
45
 
esac
46
 
 
47
 
# Clean up build file symlinks that are distro-specific. First remove all, then set
48
 
# new links.
49
 
DISTRODIRS="$(ls ./debian/dist)"
50
 
for distrodir in ${DISTRODIRS}; do
51
 
  DISTROFILES="$(ls ./debian/dist/${distrodir})"
52
 
  for distrofile in ${DISTROFILES}; do
53
 
    rm -f "./debian/${distrofile}";
54
 
  done;
55
 
done;
56
 
 
57
 
# Set no symlinks for build files in the debian dir, so we avoid adding AppArmor on Debian.
58
 
DISTRO="$(lsb_release -si)"
59
 
echo "Copying distribution specific build files for ${DISTRO}"
60
 
DISTROFILES="$(ls ./debian/dist/${DISTRO})"
61
 
for distrofile in ${DISTROFILES}; do
62
 
  rm -f "./debian/${distrofile}"
63
 
  sed -e "s/\\\${LIBREADLINE_DEV}/${LIBREADLINE_DEV}/g" \
64
 
      -e "s/\\\${CMAKE_DEP}/${CMAKE_DEP}/g"             \
65
 
    < "./debian/dist/${DISTRO}/${distrofile}" > "./debian/${distrofile}"
66
 
  chmod --reference="./debian/dist/${DISTRO}/${distrofile}" "./debian/${distrofile}"
67
 
done;
68
31
 
69
32
# Adjust changelog, add new version.
70
33
#