Package: bubblewrap
Version: 0.1.0-1
Tags: patch

bubblewrap doesn't build in Ubuntu:

https://launchpad.net/ubuntu/+source/bubblewrap/0.1.0-1/+build/9877262

The below patch works for me. I don't know a lot about SELinux on
Ubuntu except that most Ubuntu users don't use it.

Thanks,
Jeremy Bicha

=== modified file 'debian/rules'
--- debian/rules 2016-06-09 03:36:01 +0000
+++ debian/rules 2016-06-09 04:04:03 +0000
@@ -6,8 +6,14 @@

 PKGDIR=$(CURDIR)/debian/bubblewrap

+configure_flags += --with-priv-mode=setuid
+
+ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes)
+ configure_flags += --disable-selinux
+endif
+
 override_dh_auto_configure:
- dh_auto_configure -- --with-priv-mode=setuid
+ dh_auto_configure -- $(configure_flags)

 override_dh_fixperms:
  chmod a+x $(PKGDIR)/usr/share/bash-completion/completions/bwrap

Reply via email to