Skip to content

Commit 6809fdb

Browse files
committed
Update autobake.sh to match control file location. Drop lucid and squeeze support.
1 parent af9509d commit 6809fdb

File tree

2 files changed

+6
-31
lines changed

2 files changed

+6
-31
lines changed

debian/autobake-deb.sh

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -28,47 +28,22 @@ PATCHLEVEL="+maria"
2828
LOGSTRING="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+
3432
CODENAME="$(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
4336
if apt-cache madison cracklib2|grep 'cracklib2 *| *2\.[0-8]\.' >/dev/null 2>&1
4437
then
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
4742
else
4843
MAYBE_LIBCRACK='libcrack2-dev (>= 2.9.0),'
44+
sed -i -e "s/\\\${MAYBE_LIBCRACK}/${MAYBE_LIBCRACK}/g" debian/control
4945
fi
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
#

debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Build-Depends: bison,
2222
procps | hurd,
2323
psmisc,
2424
zlib1g-dev (>= 1:1.1.3-5),
25-
${LIBREADLINE_DEV},
25+
libreadline-gplv2-dev,
2626
${MAYBE_LIBCRACK}
2727
libjemalloc-dev (>= 3.0.0)
2828
Standards-Version: 3.8.2

0 commit comments

Comments
 (0)