@@ -28,47 +28,22 @@ PATCHLEVEL="+maria"
2828LOGSTRING=" MariaDB build"
2929
3030# 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.
31+
3432CODENAME=" $( lsb_release -sc) "
35- case " ${CODENAME} " in
36- lucid) LIBREADLINE_DEV=' libreadline5-dev | libreadline-dev' ;;
37- squeeze) LIBREADLINE_DEV=libreadline5-dev ;;
38- * ) LIBREADLINE_DEV=libreadline-gplv2-dev ;;
39- esac
4033
4134# add libcrack2 (>= 2.9.0) as a build dependency
4235# but only where the distribution can possibly satisfy it
4336if apt-cache madison cracklib2| grep ' cracklib2 *| *2\.[0-8]\.' > /dev/null 2>&1
4437then
45- MAYBE_LIBCRACK=' '
38+ # Anything in MARIADB_OPTIONAL_DEBS is omitted from the resulting
39+ # packages by snipped in rules file
4640 MARIADB_OPTIONAL_DEBS=" ${MARIADB_OPTIONAL_DEBS} cracklib-password-check-10.1"
41+ sed -i -e " /\\\$ {MAYBE_LIBCRACK}/d" debian/control
4742else
4843 MAYBE_LIBCRACK=' libcrack2-dev (>= 2.9.0),'
44+ sed -i -e " s/\\\$ {MAYBE_LIBCRACK}/${MAYBE_LIBCRACK} /g" debian/control
4945fi
5046
51- # Clean up build file symlinks that are distro-specific. First remove all, then set
52- # new links.
53- DISTRODIRS=" $( ls ./debian/dist) "
54- for distrodir in ${DISTRODIRS} ; do
55- DISTROFILES=" $( ls ./debian/dist/${distrodir} ) "
56- for distrofile in ${DISTROFILES} ; do
57- rm -f " ./debian/${distrofile} " ;
58- done ;
59- done ;
60-
61- # Set no symlinks for build files in the debian dir, so we avoid adding AppArmor on Debian.
62- DISTRO=" $( lsb_release -si) "
63- echo " Copying distribution specific build files for ${DISTRO} "
64- DISTROFILES=" $( ls ./debian/dist/${DISTRO} ) "
65- for distrofile in ${DISTROFILES} ; do
66- rm -f " ./debian/${distrofile} "
67- sed -e " s/\\\$ {LIBREADLINE_DEV}/${LIBREADLINE_DEV} /g" \
68- -e " s/\\\$ {MAYBE_LIBCRACK}/${MAYBE_LIBCRACK} /g" \
69- < " ./debian/dist/${DISTRO} /${distrofile} " > " ./debian/${distrofile} "
70- chmod --reference=" ./debian/dist/${DISTRO} /${distrofile} " " ./debian/${distrofile} "
71- done ;
7247
7348# Adjust changelog, add new version.
7449#
0 commit comments