mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
Update autobake.sh to match control file location. Drop lucid and squeeze support.
This commit is contained in:
parent
af9509d0d8
commit
6809fdb741
2 changed files with 6 additions and 31 deletions
35
debian/autobake-deb.sh
vendored
35
debian/autobake-deb.sh
vendored
|
@ -28,47 +28,22 @@ PATCHLEVEL="+maria"
|
|||
LOGSTRING="MariaDB build"
|
||||
|
||||
# Look up distro-version specific stuff.
|
||||
#
|
||||
# Libreadline changed to GPLv3. Old GPLv2 version is available, but it
|
||||
# is called different things on different versions.
|
||||
|
||||
CODENAME="$(lsb_release -sc)"
|
||||
case "${CODENAME}" in
|
||||
lucid) LIBREADLINE_DEV='libreadline5-dev | libreadline-dev' ;;
|
||||
squeeze) LIBREADLINE_DEV=libreadline5-dev ;;
|
||||
*) LIBREADLINE_DEV=libreadline-gplv2-dev ;;
|
||||
esac
|
||||
|
||||
# add libcrack2 (>= 2.9.0) as a build dependency
|
||||
# but only where the distribution can possibly satisfy it
|
||||
if apt-cache madison cracklib2|grep 'cracklib2 *| *2\.[0-8]\.' >/dev/null 2>&1
|
||||
then
|
||||
MAYBE_LIBCRACK=''
|
||||
# Anything in MARIADB_OPTIONAL_DEBS is omitted from the resulting
|
||||
# packages by snipped in rules file
|
||||
MARIADB_OPTIONAL_DEBS="${MARIADB_OPTIONAL_DEBS} cracklib-password-check-10.1"
|
||||
sed -i -e "/\\\${MAYBE_LIBCRACK}/d" debian/control
|
||||
else
|
||||
MAYBE_LIBCRACK='libcrack2-dev (>= 2.9.0),'
|
||||
sed -i -e "s/\\\${MAYBE_LIBCRACK}/${MAYBE_LIBCRACK}/g" debian/control
|
||||
fi
|
||||
|
||||
# Clean up build file symlinks that are distro-specific. First remove all, then set
|
||||
# new links.
|
||||
DISTRODIRS="$(ls ./debian/dist)"
|
||||
for distrodir in ${DISTRODIRS}; do
|
||||
DISTROFILES="$(ls ./debian/dist/${distrodir})"
|
||||
for distrofile in ${DISTROFILES}; do
|
||||
rm -f "./debian/${distrofile}";
|
||||
done;
|
||||
done;
|
||||
|
||||
# Set no symlinks for build files in the debian dir, so we avoid adding AppArmor on Debian.
|
||||
DISTRO="$(lsb_release -si)"
|
||||
echo "Copying distribution specific build files for ${DISTRO}"
|
||||
DISTROFILES="$(ls ./debian/dist/${DISTRO})"
|
||||
for distrofile in ${DISTROFILES}; do
|
||||
rm -f "./debian/${distrofile}"
|
||||
sed -e "s/\\\${LIBREADLINE_DEV}/${LIBREADLINE_DEV}/g" \
|
||||
-e "s/\\\${MAYBE_LIBCRACK}/${MAYBE_LIBCRACK}/g" \
|
||||
< "./debian/dist/${DISTRO}/${distrofile}" > "./debian/${distrofile}"
|
||||
chmod --reference="./debian/dist/${DISTRO}/${distrofile}" "./debian/${distrofile}"
|
||||
done;
|
||||
|
||||
# Adjust changelog, add new version.
|
||||
#
|
||||
|
|
2
debian/control
vendored
2
debian/control
vendored
|
@ -22,7 +22,7 @@ Build-Depends: bison,
|
|||
procps | hurd,
|
||||
psmisc,
|
||||
zlib1g-dev (>= 1:1.1.3-5),
|
||||
${LIBREADLINE_DEV},
|
||||
libreadline-gplv2-dev,
|
||||
${MAYBE_LIBCRACK}
|
||||
libjemalloc-dev (>= 3.0.0)
|
||||
Standards-Version: 3.8.2
|
||||
|
|
Loading…
Add table
Reference in a new issue