Skip to content

Commit

Permalink
[debian] Fix disabling Mir EGL on Ubuntu 18.04 and beyond
Browse files Browse the repository at this point in the history
  • Loading branch information
Saviq authored and AlanGriffiths committed Mar 19, 2018
1 parent 580b387 commit bd2a6a2
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ ifeq ($(DEB_HOST_ARCH),s390x)
COMMON_CONFIGURE_OPTIONS += -DMIR_LINK_TIME_OPTIMIZATION=OFF
endif

# Disable Mir EGL on Ubuntu 18.04 even if mesa has "Mir EGL" patch
ifneq ($(filter buster/sid,$(call dpkg_late_eval,DEBIAN_VERSION,cat /etc/debian_version)),)
# Disable Mir EGL outside of Ubuntu 16.04 and 17.10
ifneq ($(filter-out xenial artful,$(DEB_DISTRIBUTION)),)
COMMON_CONFIGURE_OPTIONS += -DMIR_EGL_SUPPORTED=OFF
endif

Expand Down Expand Up @@ -82,12 +82,14 @@ override_dh_install:
# Delete the symlink so that --fail-missing doesn't think we've missed it
# accidentally.
-rm debian/tmp/usr/lib/*/libmirprotobuf.so
ifneq ($(filter xenial artful,$(DEB_DISTRIBUTION)),)
dh_install -pmir-utils usr/bin/mirvanity
-rm -f debian/tmp/usr/bin/mirvanity
-dh_install -pmir-utils usr/bin/mirvanity

ifeq ($(filter xenial yakkety zesty,$(DEB_DISTRIBUTION)),)
dh_install
else
dh_install
# xenial, yakkety & zesty predate dh_missing
rm debian/tmp/usr/bin/mirvanity
dh_install --fail-missing
endif

# Don't try to strip libraries used as test data
Expand Down

0 comments on commit bd2a6a2

Please sign in to comment.