diff -pruN 0.50-1/debian/changelog 0.50-1ubuntu2/debian/changelog
--- 0.50-1/debian/changelog	2022-04-22 10:05:21.000000000 +0000
+++ 0.50-1ubuntu2/debian/changelog	2022-05-19 18:12:07.000000000 +0000
@@ -1,3 +1,15 @@
+ell (0.50-1ubuntu2) kinetic; urgency=medium
+
+  * Fix the autopkgtest build test by depending on libell-dev
+
+ -- Sebastien Bacher <seb128@ubuntu.com>  Thu, 19 May 2022 20:12:07 +0200
+
+ell (0.50-1ubuntu1) kinetic; urgency=medium
+
+  * debian/tests: add a trivial build autopkgtest
+
+ -- Sebastien Bacher <seb128@debian.org>  Thu, 19 May 2022 15:28:07 +0200
+
 ell (0.50-1) unstable; urgency=medium
 
   [ upstream ]
diff -pruN 0.50-1/debian/tests/build 0.50-1ubuntu2/debian/tests/build
--- 0.50-1/debian/tests/build	1970-01-01 00:00:00.000000000 +0000
+++ 0.50-1ubuntu2/debian/tests/build	2022-05-19 18:12:07.000000000 +0000
@@ -0,0 +1,35 @@
+#!/bin/sh
+# Copyright 2020 Collabora Ltd.
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+set -eux
+
+if [ -n "${DEB_HOST_GNU_TYPE:-}" ]; then
+    CROSS_COMPILE="$DEB_HOST_GNU_TYPE-"
+else
+    CROSS_COMPILE=
+fi
+
+cd "$AUTOPKGTEST_TMP"
+
+cat > trivial.c <<EOF
+#include <ell/ell.h>
+
+int main(void)
+{
+	l_log_set_stderr();
+
+	if (!l_main_init())
+		return -1;
+		
+	l_info("Trivial");
+	return 0;
+}
+EOF
+
+# Deliberately word-splitting pkg-config's output:
+# shellcheck disable=SC2046
+"${CROSS_COMPILE}gcc" -otrivial trivial.c $("${CROSS_COMPILE}pkg-config" --cflags --libs ell)
+echo "build: OK"
+./trivial
+echo "run: OK"
diff -pruN 0.50-1/debian/tests/control 0.50-1ubuntu2/debian/tests/control
--- 0.50-1/debian/tests/control	1970-01-01 00:00:00.000000000 +0000
+++ 0.50-1ubuntu2/debian/tests/control	2022-05-19 18:12:07.000000000 +0000
@@ -0,0 +1,3 @@
+Tests: build
+Depends: libglib2.0-dev, build-essential, libell-dev
+Restrictions: allow-stderr, superficial
