tree-wide: Fix the build with old glib (Ubuntu Trusty etc.)
authorColin Walters <walters@verbum.org>
Thu, 3 Aug 2017 14:55:51 +0000 (10:55 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 3 Aug 2017 16:23:41 +0000 (16:23 +0000)
This regressed with <https://github.com/ostreedev/ostree/pull/1040>
but currently the Travis builds aren't gating.

Closes: #1051
Approved by: jlebon

src/libostree/ostree-bootloader.h
src/libostree/ostree-deployment.c
src/libostree/ostree-libarchive-private.h
src/libostree/ostree-mutable-tree.c
src/libostree/ostree-repo-commit.c
src/libostree/ostree-repo-libarchive.c
src/libostree/ostree-repo-private.h
src/libostree/ostree-sysroot-deploy.c
src/libostree/ostree-tls-cert-interaction.h
src/ostree/ot-builtin-export.c

index 92cc521b84a23b2ae62fcdfa11b53aca05053169..de46422dab2e149615839b1f312786bf40a13bec 100644 (file)
@@ -21,6 +21,7 @@
 #pragma once
 
 #include <gio/gio.h>
+#include "otutil.h"
 
 G_BEGIN_DECLS
 
index e3ee0b55fc1b0ca4e18fc8e2eccb6b96bd0ae565..9fb5b028a05e5071498495f0e833f482ff4d4ba0 100644 (file)
@@ -20,9 +20,9 @@
 
 #include "config.h"
 
+#include "otutil.h"
 #include "ostree.h"
 #include "ostree-deployment-private.h"
-#include "libglnx.h"
 
 typedef GObjectClass OstreeDeploymentClass;
 
index dcf86ea3abb22064749e751e774c6b67eb7d1e63..870ddf822c5148f1a61eb48526b145e0a97fa454 100644 (file)
@@ -25,7 +25,7 @@
 #include "config.h"
 
 #include <gio/gio.h>
-#include "libglnx.h"
+#include "otutil.h"
 #ifdef HAVE_LIBARCHIVE
 #include <archive.h>
 #include <archive_entry.h>
index c144cff4b07114ca4afcf109ff3f001491e7217b..5e933acce02924da4de86c7a2072a41927358efd 100644 (file)
@@ -22,8 +22,8 @@
 
 #include "config.h"
 
-#include "ostree.h"
 #include "otutil.h"
+#include "ostree.h"
 
 /**
  * SECTION:ostree-mutable-tree
index 346cbb425b4b08946f585be9881626aa6471f86c..dc52f5e7b7dda1d8100a573c12fbc8a75013e254 100644 (file)
 #include <sys/xattr.h>
 #include <glib/gprintf.h>
 
+#include "otutil.h"
 #include "ostree.h"
 #include "ostree-core-private.h"
 #include "ostree-repo-private.h"
 #include "ostree-repo-file-enumerator.h"
 #include "ostree-checksum-input-stream.h"
 #include "ostree-varint.h"
-#include "otutil.h"
 
 gboolean
 _ostree_repo_ensure_loose_objdir_at (int             dfd,
index f3f4b29e0d3afae09a224a3753b54d55fc7a5705..1839a088182bea3d500b31d169d0b6681e5baf3a 100644 (file)
@@ -22,6 +22,7 @@
 
 #include "config.h"
 
+#include "otutil.h"
 #include "ostree.h"
 #include "ostree-core-private.h"
 #include "ostree-repo-private.h"
index 1596c0db6e9c81fa61e32b0025689c8d808a42c2..9c514766ef18ff59f1fb55f9be6a9a6b2243c7d9 100644 (file)
 #pragma once
 
 #include <sys/statvfs.h>
+#include "otutil.h"
 #include "ostree-ref.h"
 #include "ostree-repo.h"
 #include "ostree-remote-private.h"
-#include "otutil.h"
 
 G_BEGIN_DECLS
 
index d857f0c57e0ce1bed2e36cf122c9f8ff452e8e90..29fcfeed7516b3486c3c79b01804c848152b1914 100644 (file)
 #include <systemd/sd-journal.h>
 #endif
 
+#include "otutil.h"
 #include "ostree.h"
 #include "ostree-sysroot-private.h"
 #include "ostree-sepolicy-private.h"
 #include "ostree-deployment-private.h"
 #include "ostree-core-private.h"
 #include "ostree-linuxfsutil.h"
-#include "otutil.h"
 #include "libglnx.h"
 
 #define OSTREE_VARRELABEL_ID          "da679b08acd34504b789d96f818ea781"
index e62618c5b06db8972c8aa945ed94004e68a9d2b5..09a8ad0def2aebe2ed2109952420265357c70fb6 100644 (file)
@@ -18,6 +18,7 @@
 
 #pragma once
 
+#include "otutil.h"
 #include <gio/gio.h>
 
 G_BEGIN_DECLS
index a7c2e302a8792d40215c23cea3ed1a7a31900b67..14960b12080a360a0f6fb5d1d94c0767cfe5b29b 100644 (file)
 
 #include "config.h"
 
+#include "otutil.h"
 #include "ot-main.h"
 #include "ot-builtins.h"
+#include "ostree-libarchive-private.h"
 #include "ostree.h"
 #include "ostree-repo-file.h"
-#include "ostree-libarchive-private.h"
-#include "otutil.h"
 
 #ifdef HAVE_LIBARCHIVE
 #include <archive.h>
@@ -68,7 +68,9 @@ ostree_builtin_export (int argc, char **argv, GCancellable *cancellable, GError
   g_autoptr(GFile) subtree = NULL;
   g_autofree char *commit = NULL;
   g_autoptr(GVariant) commit_data = NULL;
+#ifdef HAVE_LIBARCHIVE
   g_autoptr(OtAutoArchiveWrite) a = NULL;
+#endif
   OstreeRepoExportArchiveOptions opts = { 0, };
 
   context = g_option_context_new ("COMMIT - Stream COMMIT to stdout in tar format");