mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-20 21:58:11 -05:00
Build bwrap
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -77,3 +77,4 @@ po/.intltool-merge-cache
|
||||
po/Makefile.in.in
|
||||
po/POTFILES
|
||||
system-helper/org.freedesktop.XdgApp.policy
|
||||
bwrap
|
||||
|
||||
16
Makefile.am
16
Makefile.am
@@ -73,6 +73,22 @@ include document-portal/Makefile.am.inc
|
||||
include Makefile.gtester
|
||||
include tests/Makefile.am.inc
|
||||
|
||||
bwrap_PROGRAMS = bwrap
|
||||
bwrapdir = $(libdir)/xdg-app
|
||||
include bubblewrap/Makefile-bwrap.am.inc
|
||||
|
||||
# NOTE: bwrap is install-bwrapPROGS which is run from install-data, not install-exec, this data-hook is used
|
||||
install-data-hook:
|
||||
$(MAKE) $(AM_MAKEFLAGS) install-test-data-hook
|
||||
if PRIV_MODE_SETUID
|
||||
$(SUDO_BIN) chown root $(DESTDIR)$(libdir)/xdg-app/bwrap
|
||||
$(SUDO_BIN) chmod u+s $(DESTDIR)$(libdir)/xdg-app/bwrap
|
||||
else
|
||||
if PRIV_MODE_FILECAPS
|
||||
$(SUDO_BIN) setcap cap_sys_admin,cap_net_admin,cap_sys_chroot+ep $(DESTDIR)$(libdir)/xdg-app/bwrap
|
||||
endif
|
||||
endif
|
||||
|
||||
completiondir = $(datadir)/bash-completion/completions
|
||||
completion_DATA = completion/xdg-app
|
||||
EXTRA_DIST += $(completion_DATA)
|
||||
|
||||
@@ -23,6 +23,7 @@ if ! test -f libglnx/README.md; then
|
||||
fi
|
||||
# Workaround automake bug with subdir-objects and computed paths
|
||||
sed -e 's,$(libglnx_srcpath),'${srcdir}/libglnx,g < libglnx/Makefile-libglnx.am >libglnx/Makefile-libglnx.am.inc
|
||||
sed -e 's,$(bwrap_srcpath),'${srcdir}/bubblewrap,g < bubblewrap/Makefile-bwrap.am >bubblewrap/Makefile-bwrap.am.inc
|
||||
|
||||
GTKDOCIZE=$(which gtkdocize 2>/dev/null)
|
||||
if test -z $GTKDOCIZE; then
|
||||
|
||||
@@ -34,7 +34,7 @@ tests/services/org.freedesktop.XdgApp.service: session-helper/org.freedesktop.Xd
|
||||
|
||||
tests/libtest.sh: tests/services/org.freedesktop.portal.Documents.service tests/services/org.freedesktop.XdgApp.service
|
||||
|
||||
install-data-hook:
|
||||
install-test-data-hook:
|
||||
if ENABLE_INSTALLED_TESTS
|
||||
mkdir -p $(DESTDIR)$(installed_testdir)/services
|
||||
ln -sf $(dbus_servicedir)/org.freedesktop.XdgApp.service $(DESTDIR)$(installed_testdir)/services/
|
||||
|
||||
Reference in New Issue
Block a user