mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-22 17:35:55 +03:00
build: Add --enable-triggers-only
For bootstrapping gnome-ostree, we need to install the triggers early on, before we actually build the real ostree binary.
This commit is contained in:
parent
e2aabce708
commit
c63cca53d7
@ -17,7 +17,9 @@
|
|||||||
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
# Boston, MA 02111-1307, USA.
|
# Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
if !TRIGGERS_ONLY
|
||||||
libexec_PROGRAMS += ostreed
|
libexec_PROGRAMS += ostreed
|
||||||
|
endif
|
||||||
|
|
||||||
ostreed_SOURCES = src/daemon/ostreed.c \
|
ostreed_SOURCES = src/daemon/ostreed.c \
|
||||||
src/daemon/ot-daemon.h \
|
src/daemon/ot-daemon.h \
|
||||||
|
@ -17,7 +17,9 @@
|
|||||||
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
# Boston, MA 02111-1307, USA.
|
# Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
if !TRIGGERS_ONLY
|
||||||
privlib_LTLIBRARIES += libostree.la
|
privlib_LTLIBRARIES += libostree.la
|
||||||
|
endif
|
||||||
|
|
||||||
libostree_la_SOURCES = src/libostree/ostree.h \
|
libostree_la_SOURCES = src/libostree/ostree.h \
|
||||||
src/libostree/ostree-core.c \
|
src/libostree/ostree-core.c \
|
||||||
@ -56,4 +58,4 @@ libostree_la_LIBADD += $(OT_DEP_LIBARCHIVE_LIBS)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
install-data-hook:
|
install-data-hook:
|
||||||
rm $(DESTDIR)$(privlibdir)/libostree.la
|
rm -f $(DESTDIR)$(privlibdir)/libostree.la
|
||||||
|
@ -15,7 +15,9 @@
|
|||||||
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
# Boston, MA 02111-1307, USA.
|
# Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
if !TRIGGERS_ONLY
|
||||||
bin_PROGRAMS += ostadmin
|
bin_PROGRAMS += ostadmin
|
||||||
|
endif
|
||||||
|
|
||||||
ostadmin_SOURCES = src/ostadmin/main.c \
|
ostadmin_SOURCES = src/ostadmin/main.c \
|
||||||
src/ostadmin/ot-admin-builtins.h \
|
src/ostadmin/ot-admin-builtins.h \
|
||||||
|
@ -17,7 +17,9 @@
|
|||||||
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
# Boston, MA 02111-1307, USA.
|
# Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
if !TRIGGERS_ONLY
|
||||||
bin_PROGRAMS += ostree
|
bin_PROGRAMS += ostree
|
||||||
|
endif
|
||||||
|
|
||||||
ostree_SOURCES = src/ostree/main.c \
|
ostree_SOURCES = src/ostree/main.c \
|
||||||
src/ostree/ot-builtins.h \
|
src/ostree/ot-builtins.h \
|
||||||
|
@ -17,7 +17,9 @@
|
|||||||
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
# Boston, MA 02111-1307, USA.
|
# Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
if !TRIGGERS_ONLY
|
||||||
noinst_LTLIBRARIES += libotutil.la
|
noinst_LTLIBRARIES += libotutil.la
|
||||||
|
endif
|
||||||
|
|
||||||
libotutil_la_SOURCES = \
|
libotutil_la_SOURCES = \
|
||||||
src/libotutil/ot-checksum-utils.c \
|
src/libotutil/ot-checksum-utils.c \
|
||||||
|
@ -15,7 +15,9 @@
|
|||||||
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
# Boston, MA 02111-1307, USA.
|
# Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
if !TRIGGERS_ONLY
|
||||||
sbin_PROGRAMS += ostree-switch-root
|
sbin_PROGRAMS += ostree-switch-root
|
||||||
|
endif
|
||||||
|
|
||||||
ostree_switch_root_SOURCES = src/switchroot/ostree-switch-root.c
|
ostree_switch_root_SOURCES = src/switchroot/ostree-switch-root.c
|
||||||
|
|
||||||
|
@ -71,7 +71,9 @@ endif
|
|||||||
libgsystem_srcpath := src/libgsystem
|
libgsystem_srcpath := src/libgsystem
|
||||||
libgsystem_cflags = $(OT_INTERNAL_GIO_UNIX_CFLAGS)
|
libgsystem_cflags = $(OT_INTERNAL_GIO_UNIX_CFLAGS)
|
||||||
libgsystem_libs = $(OT_INTERNAL_GIO_UNIX_LIBS)
|
libgsystem_libs = $(OT_INTERNAL_GIO_UNIX_LIBS)
|
||||||
|
if !TRIGGERS_ONLY
|
||||||
include src/libgsystem/Makefile-libgsystem.am
|
include src/libgsystem/Makefile-libgsystem.am
|
||||||
|
endif
|
||||||
include Makefile-daemon.am
|
include Makefile-daemon.am
|
||||||
include Makefile-otutil.am
|
include Makefile-otutil.am
|
||||||
include Makefile-libostree.am
|
include Makefile-libostree.am
|
||||||
|
21
configure.ac
21
configure.ac
@ -27,6 +27,11 @@ AC_SUBST(WARN_CFLAGS)
|
|||||||
LT_PREREQ([2.2.4])
|
LT_PREREQ([2.2.4])
|
||||||
LT_INIT([disable-static])
|
LT_INIT([disable-static])
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(triggers-only,
|
||||||
|
AS_HELP_STRING([--enable-triggers-only], [Only build and install triggers]),,
|
||||||
|
enable_triggers_only=no)
|
||||||
|
AM_CONDITIONAL(TRIGGERS_ONLY, test x$enable_triggers_only != xno)
|
||||||
|
|
||||||
AC_CHECK_HEADER([attr/xattr.h],,[AC_MSG_ERROR([You must have attr/xattr.h from libattr])])
|
AC_CHECK_HEADER([attr/xattr.h],,[AC_MSG_ERROR([You must have attr/xattr.h from libattr])])
|
||||||
|
|
||||||
PKG_PROG_PKG_CONFIG
|
PKG_PROG_PKG_CONFIG
|
||||||
@ -46,6 +51,9 @@ AS_IF([test x$enable_embedded_dependencies = xyes], [
|
|||||||
AC_ARG_WITH(soup,
|
AC_ARG_WITH(soup,
|
||||||
AS_HELP_STRING([--with-soup], [Use libsoup @<:@default=yes@:>@]),
|
AS_HELP_STRING([--with-soup], [Use libsoup @<:@default=yes@:>@]),
|
||||||
[], [with_soup=check])
|
[], [with_soup=check])
|
||||||
|
if test x$enable_triggers_only != xno; then
|
||||||
|
with_soup=no
|
||||||
|
fi
|
||||||
AS_IF([test x$with_soup != xno ], [
|
AS_IF([test x$with_soup != xno ], [
|
||||||
AC_MSG_CHECKING([for $SOUP_DEPENDENCY])
|
AC_MSG_CHECKING([for $SOUP_DEPENDENCY])
|
||||||
PKG_CHECK_EXISTS($SOUP_DEPENDENCY, have_soup=yes, have_soup=no)
|
PKG_CHECK_EXISTS($SOUP_DEPENDENCY, have_soup=yes, have_soup=no)
|
||||||
@ -59,7 +67,7 @@ AS_IF([test x$enable_embedded_dependencies = xyes], [
|
|||||||
], [
|
], [
|
||||||
with_soup=no
|
with_soup=no
|
||||||
])
|
])
|
||||||
])
|
], [ with_soup=no ])
|
||||||
])
|
])
|
||||||
AM_CONDITIONAL(USE_LIBSOUP, test x$with_soup != xno)
|
AM_CONDITIONAL(USE_LIBSOUP, test x$with_soup != xno)
|
||||||
|
|
||||||
@ -69,6 +77,9 @@ AC_ARG_ENABLE(documentation,
|
|||||||
AC_HELP_STRING([--enable-documentation],
|
AC_HELP_STRING([--enable-documentation],
|
||||||
[build documentation]),,
|
[build documentation]),,
|
||||||
enable_documentation=yes)
|
enable_documentation=yes)
|
||||||
|
if test x$enable_triggers_only != xno; then
|
||||||
|
enable_documentation=no
|
||||||
|
fi
|
||||||
if test x$enable_documentation = xyes; then
|
if test x$enable_documentation = xyes; then
|
||||||
AC_PATH_PROG([XSLTPROC], [xsltproc])
|
AC_PATH_PROG([XSLTPROC], [xsltproc])
|
||||||
if test x$XSLTPROC = x; then
|
if test x$XSLTPROC = x; then
|
||||||
@ -80,7 +91,7 @@ AM_CONDITIONAL(BUILD_DOCUMENTATION, test x$enable_documentation = xyes)
|
|||||||
AC_ARG_WITH(libarchive,
|
AC_ARG_WITH(libarchive,
|
||||||
AS_HELP_STRING([--without-libarchive], [Do not use libarchive]),
|
AS_HELP_STRING([--without-libarchive], [Do not use libarchive]),
|
||||||
:, with_libarchive=maybe)
|
:, with_libarchive=maybe)
|
||||||
AS_IF([ test x$with_libarchive != xno ], [
|
AS_IF([ test x$with_libarchive != xno && test x$enable_triggers_only != xno ], [
|
||||||
AC_MSG_CHECKING([for $LIBARCHIVE_DEPENDENCY])
|
AC_MSG_CHECKING([for $LIBARCHIVE_DEPENDENCY])
|
||||||
PKG_CHECK_EXISTS($LIBARCHIVE_DEPENDENCY, have_libarchive=yes, have_libarchive=no)
|
PKG_CHECK_EXISTS($LIBARCHIVE_DEPENDENCY, have_libarchive=yes, have_libarchive=no)
|
||||||
AC_MSG_RESULT([$have_libarchive])
|
AC_MSG_RESULT([$have_libarchive])
|
||||||
@ -94,10 +105,10 @@ AS_IF([ test x$with_libarchive != xno ], [
|
|||||||
], [
|
], [
|
||||||
with_libarchive=no
|
with_libarchive=no
|
||||||
])
|
])
|
||||||
])
|
], [ with_libarchive=no ])
|
||||||
AM_CONDITIONAL(USE_LIBARCHIVE, test $with_libarchive != no)
|
AM_CONDITIONAL(USE_LIBARCHIVE, test $with_libarchive != no)
|
||||||
|
|
||||||
AS_IF([test x$cross_compiling != xyes && test -d /etc/kernel],
|
AS_IF([test x$cross_compiling != xyes && test -d /etc/kernel && test x$enable_triggers_only != xno ],
|
||||||
[kernel_updates_default=yes],
|
[kernel_updates_default=yes],
|
||||||
[kernel_updates_default=no])
|
[kernel_updates_default=no])
|
||||||
|
|
||||||
@ -119,8 +130,10 @@ echo "
|
|||||||
===============
|
===============
|
||||||
|
|
||||||
|
|
||||||
|
triggers only: $enable_triggers_only
|
||||||
embedded dependencies: $enable_embedded_dependencies
|
embedded dependencies: $enable_embedded_dependencies
|
||||||
libsoup (retrieve remote HTTP repositories): $with_soup
|
libsoup (retrieve remote HTTP repositories): $with_soup
|
||||||
libarchive (parse tar files directly): $with_libarchive
|
libarchive (parse tar files directly): $with_libarchive
|
||||||
|
documentation: $enable_documentation
|
||||||
kernel updates integration: $enable_kernel_updates
|
kernel updates integration: $enable_kernel_updates
|
||||||
"
|
"
|
||||||
|
Loading…
Reference in New Issue
Block a user