forked from Mirrors/flatpak-builder
bwrap: Move to under libexecdir
According to the FHS, applications which place internal libraries in /usr/libexec should not also use /usr/lib for this purpose: http://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s07.html As several flatpak helpers are already installed in libexecdir, move the bwrap helper to /usr/libexec/flatpak-bwrap.tingping/wmclass
parent
8533f06dc0
commit
fc6282e865
15
Makefile.am
15
Makefile.am
|
@ -40,7 +40,7 @@ AM_CPPFLAGS = \
|
|||
-DFLATPAK_BASEDIR=\"$(pkgdatadir)\" \
|
||||
-DFLATPAK_TRIGGERDIR=\"$(pkgdatadir)/triggers\" \
|
||||
-DSYSTEM_FONTS_DIR=\"$(SYSTEM_FONTS_DIR)\" \
|
||||
-DHELPER=\"$(libdir)/flatpak/bwrap\" \
|
||||
-DHELPER=\"$(libexecdir)/flatpak-bwrap\" \
|
||||
-DDBUSPROXY=\"$(libexecdir)/flatpak-dbus-proxy\" \
|
||||
-DG_LOG_DOMAIN=\"flatpak\" \
|
||||
-I$(srcdir)/libglnx \
|
||||
|
@ -78,19 +78,22 @@ include permission-store/Makefile.am.inc
|
|||
include document-portal/Makefile.am.inc
|
||||
include tests/Makefile.am.inc
|
||||
|
||||
bwrap_PROGRAMS = bwrap
|
||||
bwrapdir = $(libdir)/flatpak
|
||||
bwrap_PROGRAMS = flatpak-bwrap
|
||||
flatpak_bwrap_SOURCES = $(bwrap_SOURCES)
|
||||
flatpak_bwrap_CFLAGS = $(bwrap_CFLAGS)
|
||||
flatpak_bwrap_LDFLAGS = $(bwrap_LDFLAGS)
|
||||
bwrapdir = $(libexecdir)
|
||||
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)/flatpak/bwrap
|
||||
$(SUDO_BIN) chmod u+s $(DESTDIR)$(libdir)/flatpak/bwrap
|
||||
$(SUDO_BIN) chown root $(DESTDIR)$(libexecdir)/flatpak-bwrap
|
||||
$(SUDO_BIN) chmod u+s $(DESTDIR)$(libexecdir)/flatpak-bwrap
|
||||
else
|
||||
if PRIV_MODE_FILECAPS
|
||||
$(SUDO_BIN) setcap cap_sys_admin,cap_net_admin,cap_sys_chroot,cap_setuid,cap_setgid+ep $(DESTDIR)$(libdir)/flatpak/bwrap
|
||||
$(SUDO_BIN) setcap cap_sys_admin,cap_net_admin,cap_sys_chroot,cap_setuid,cap_setgid+ep $(DESTDIR)$(libexecdir)/flatpak-bwrap
|
||||
endif
|
||||
endif
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
TESTS_ENVIRONMENT += OT_TESTS_DEBUG=1 \
|
||||
FLATPAK_TRIGGERSDIR=$$(cd $(top_srcdir) && pwd)/triggers \
|
||||
FLATPAK_BWRAP=$$(cd $(top_builddir) && pwd)/bwrap \
|
||||
FLATPAK_BWRAP=$$(cd $(top_builddir) && pwd)/flatpak-bwrap \
|
||||
FLATPAK_DBUSPROXY=$$(cd $(top_builddir) && pwd)/flatpak-dbus-proxy \
|
||||
GI_TYPELIB_PATH=$$(cd $(top_builddir) && pwd) \
|
||||
LD_LIBRARY_PATH=$$(cd $(top_builddir)/.libs && pwd) \
|
||||
|
|
Loading…
Reference in New Issue