Commit 98785703 authored by Simon McVittie's avatar Simon McVittie
Browse files

Remove the last vestiges of support for dbus 1.6 and Ubuntu 14.04

Signed-off-by: Simon McVittie's avatarSimon McVittie <>
parent 0bce4d18
......@@ -66,14 +66,4 @@ build:xenial:
ci_suite: "xenial"
script: *script
stage: build
image: "ubuntu:trusty"
ci_distro: "ubuntu"
ci_suite: "trusty"
- chown -R user .
- sudo -u user -H ./tools/
# vim:set sw=2 sts=2 et:
......@@ -11,6 +11,12 @@ for more details.
• dbus 1.8 was already required, but is more strongly required now:
the workarounds that were used to run continuous integration with dbus
1.6 on Ubuntu 14.04 'trusty' have been removed. (Note that dbus 1.8
has already reached end-of-life for security support, and newer dbus
stable branches are strongly recommended.)
• pkg-config 0.28 is required when building from git
......@@ -85,39 +85,6 @@ maybe_fail_tests () {
# We require dbus-run-session, but it isn't in the version of dbus in
# Ubuntu 14.04. Take the version from dbus-1.10.0 and alter it to be
# standalone.
if ! command -v dbus-run-session >/dev/null; then
drsdir="$(mktemp -d -t "d-r-s.XXXXXX")"
wget -O "$drsdir/dbus-run-session.c" \
sed -e 's/^ //' > "$drsdir/config.h" <<EOF
#include <stdlib.h>
#define VERSION "1.10.0~local"
#define dbus_setenv my_dbus_setenv
static inline int
my_dbus_setenv (const char *name, const char *value)
if (value)
return !setenv (name, value, 1);
return !unsetenv (name);
cc -I"${drsdir}" -o"${drsdir}/dbus-run-session" \
"${drsdir}/dbus-run-session.c" \
$(pkg-config --cflags --libs dbus-1) \
export PATH="${drsdir}:$PATH"
# Force the build to be run even though dbus is less than version 1.8.
export DBUS_CFLAGS="$(pkg-config --cflags dbus-1)"
export DBUS_LIBS="$(pkg-config --libs dbus-1)"
......@@ -52,7 +52,7 @@ NULL=
# OS suite (release, branch) in which we are testing.
# Typical values for ci_distro=debian: sid, jessie
# Typical values for ci_distro=fedora might be 25, rawhide
: "${ci_suite:=trusty}"
: "${ci_suite:=xenial}"
if [ $(id -u) = 0 ]; then
......@@ -79,9 +79,6 @@ case "$ci_distro" in
$sudo sed -i -e 's/httpredir\.debian\.org/' \
# travis-ci has a sources list for Chrome which doesn't support i386
: | $sudo tee /etc/apt/sources.list.d/google-chrome.list
$sudo apt-get -qq -y update
$sudo apt-get -qq -y install \
......@@ -110,10 +107,9 @@ case "$ci_distro" in
case "$ci_suite" in
# Ubuntu 14.04's autoconf-archive is too old, and older
# gnome-common has files in common with it. These are
# from Debian 9 'stretch'.
# Debian 9's autoconf-archive is too old, and older
# gnome-common has files in common with it.
$sudo dpkg -i --auto-deconfigure gnome-common_*_all.deb autoconf-archive_*_all.deb
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment