Skip to content

Commit e3e2bbe

Browse files
committed
MDEV-6284 Merge downstream Debian/Ubuntu packaging into upstream MariaDB
Merge branch 'ottok-ok-debpkg-10.1' into 10.1
2 parents aaf6334 + f8754d6 commit e3e2bbe

38 files changed

+568
-1777
lines changed

debian/README.Maintainer

Lines changed: 0 additions & 111 deletions
This file was deleted.

debian/additions/mysql-server.lintian-overrides

Lines changed: 0 additions & 2 deletions
This file was deleted.
File renamed without changes.

debian/autobake-deb.sh

Lines changed: 8 additions & 32 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
#
@@ -79,8 +54,9 @@ dch -b -D ${CODENAME} -v "${UPSTREAM}${PATCHLEVEL}-${RELEASE_NAME}${RELEASE_EXTR
7954
echo "Creating package version ${UPSTREAM}${PATCHLEVEL}-${RELEASE_NAME}${RELEASE_EXTRA:+-${RELEASE_EXTRA}}1~${CODENAME} ... "
8055

8156
# Build the package.
82-
#
83-
fakeroot dpkg-buildpackage -us -uc
57+
# Pass -I so that .git and other unnecessary temporary and source control files
58+
# will be ignored by dpkg-source when createing the tar.gz source package
59+
fakeroot dpkg-buildpackage -us -uc -I
8460

8561
[ -e debian/autorm-file ] && rm -vf `cat debian/autorm-file`
8662

0 commit comments

Comments
 (0)