Update Buildroot to 2019.02.3 (#415)
* Update Buildroot to 2019-02.3 * Fix enter script * Update ova_defconfig * Fix network manager * Remove runc patches * Use same docker version * Fix build * Fix vmtools * Fix depens * Fix handling with tempfiles * Fix permission handling * Fix cp * Cleanup * Fix mounts
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
From 79492bb914e419c54298ba6324e3d595e51c16c3 Mon Sep 17 00:00:00 2001
|
||||
From: Ernestas Kulik <ekulik@redhat.com>
|
||||
Date: Tue, 29 Jan 2019 09:50:46 +0100
|
||||
Subject: [PATCH] gdbus: Avoid printing null strings
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
This mostly affects the 2.56 branch, but, given that GCC 9 is being
|
||||
stricter about passing null string pointers to printf-like functions, it
|
||||
might make sense to proactively fix such calls.
|
||||
|
||||
gdbusauth.c: In function '_g_dbus_auth_run_server':
|
||||
gdbusauth.c:1302:11: error: '%s' directive argument is null
|
||||
[-Werror=format-overflow=]
|
||||
1302 | debug_print ("SERVER: WaitingForBegin, read '%s'",
|
||||
line);
|
||||
|
|
||||
|
||||
gdbusmessage.c: In function ‘g_dbus_message_to_blob’:
|
||||
gdbusmessage.c:2730:30: error: ‘%s’ directive argument is null [-Werror=format-overflow=]
|
||||
2730 | tupled_signature_str = g_strdup_printf ("(%s)", signature_str);
|
||||
|
|
||||
|
||||
Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
|
||||
---
|
||||
gio/gdbusauth.c | 2 +-
|
||||
gio/gdbusmessage.c | 5 ++---
|
||||
2 files changed, 3 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/gio/gdbusauth.c b/gio/gdbusauth.c
|
||||
index 1f8ea8057..752ec23fc 100644
|
||||
--- a/gio/gdbusauth.c
|
||||
+++ b/gio/gdbusauth.c
|
||||
@@ -1272,9 +1272,9 @@ _g_dbus_auth_run_server (GDBusAuth *auth,
|
||||
&line_length,
|
||||
cancellable,
|
||||
error);
|
||||
- debug_print ("SERVER: WaitingForBegin, read '%s'", line);
|
||||
if (line == NULL)
|
||||
goto out;
|
||||
+ debug_print ("SERVER: WaitingForBegin, read '%s'", line);
|
||||
if (g_strcmp0 (line, "BEGIN") == 0)
|
||||
{
|
||||
/* YAY, done! */
|
||||
diff --git a/gio/gdbusmessage.c b/gio/gdbusmessage.c
|
||||
index 3221b925d..3a1a1f9e9 100644
|
||||
--- a/gio/gdbusmessage.c
|
||||
+++ b/gio/gdbusmessage.c
|
||||
@@ -2731,7 +2731,6 @@ g_dbus_message_to_blob (GDBusMessage *message,
|
||||
if (message->body != NULL)
|
||||
{
|
||||
gchar *tupled_signature_str;
|
||||
- tupled_signature_str = g_strdup_printf ("(%s)", signature_str);
|
||||
if (signature == NULL)
|
||||
{
|
||||
g_set_error (error,
|
||||
@@ -2739,10 +2738,10 @@ g_dbus_message_to_blob (GDBusMessage *message,
|
||||
G_IO_ERROR_INVALID_ARGUMENT,
|
||||
_("Message body has signature “%s” but there is no signature header"),
|
||||
signature_str);
|
||||
- g_free (tupled_signature_str);
|
||||
goto out;
|
||||
}
|
||||
- else if (g_strcmp0 (tupled_signature_str, g_variant_get_type_string (message->body)) != 0)
|
||||
+ tupled_signature_str = g_strdup_printf ("(%s)", signature_str);
|
||||
+ if (g_strcmp0 (tupled_signature_str, g_variant_get_type_string (message->body)) != 0)
|
||||
{
|
||||
g_set_error (error,
|
||||
G_IO_ERROR,
|
||||
--
|
||||
2.21.0
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
From a2b27c0d038ad76cc8016999f8788245da97e946 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Tue, 10 Apr 2018 19:18:57 +0200
|
||||
Subject: [PATCH] gobject: fix compilation with gcc <= 4.7
|
||||
|
||||
On gcc 4.7, we got the following error:
|
||||
|
||||
i686-nptl-linux-gnu-gcc --version
|
||||
> i686-nptl-linux-gnu-gcc (crosstool-NG 1.20.0) 4.7.4
|
||||
> $ echo '#include <glib-object.h>' | i686-nptl-linux-gnu-gcc -x c -I
|
||||
staging/usr/include/glib-2.0 -I staging/usr/lib/glib-2.0/include -Wall
|
||||
-Werror -c - -o /tmp/foo.o
|
||||
> In file included from
|
||||
staging/usr/include/glib-2.0/gobject/gbinding.h:29:0,
|
||||
> from staging/usr/include/glib-2.0/glib-object.h:23,
|
||||
> from <stdin>:1:
|
||||
> staging/usr/include/glib-2.0/gobject/gobject.h: In function
|
||||
'g_set_object':
|
||||
> staging/usr/include/glib-2.0/gobject/gobject.h:725:5: error: value
|
||||
computed is not used [-Werror=unused-value]
|
||||
> cc1: all warnings being treated as errors
|
||||
|
||||
This error has been added by commit 3fae39a5d742afe73741f5fd7aa24e3ae8182f06
|
||||
So enable the new g_set_object definition only if gcc >= 4.8
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.net/results/b29a2f868438a2210873ea72f491db63175848be
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Upstream-status: https://bugzilla.gnome.org/show_bug.cgi?id=795138
|
||||
---
|
||||
gobject/gobject.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/gobject/gobject.h b/gobject/gobject.h
|
||||
index 9830663ce..838046fe0 100644
|
||||
--- a/gobject/gobject.h
|
||||
+++ b/gobject/gobject.h
|
||||
@@ -507,7 +507,7 @@ GLIB_AVAILABLE_IN_ALL
|
||||
void g_object_remove_weak_pointer (GObject *object,
|
||||
gpointer *weak_pointer_location);
|
||||
|
||||
-#if defined(__GNUC__) && !defined(__cplusplus) && GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_56
|
||||
+#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)) && !defined(__cplusplus) && GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_56
|
||||
/* Make reference APIs type safe with macros */
|
||||
#define g_object_ref(Obj) ((__typeof__(Obj)) (g_object_ref) (Obj))
|
||||
#define g_object_ref_sink(Obj) ((__typeof__(Obj)) (g_object_ref_sink) (Obj))
|
||||
--
|
||||
2.14.1
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
From 0beb62f564072f3585762c9c55fe894485993b62 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Tue, 10 Apr 2018 18:55:11 +0200
|
||||
Subject: [PATCH] gio: fix compilation without F_{S,G}ETPIPE_SZ
|
||||
|
||||
Commit a5778ef7c51044147fe470ea1707dd297f44f880 broke compilation on
|
||||
architectures without F_SETPIPE_SZ and F_GETPIPE_SZ such as or1k.
|
||||
If those variables are undefined, put back previous behavior, buffer
|
||||
size set to 1024 * 64
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.net/results/398490e07343a931b25ca6ab5c90a75d7a073e9f
|
||||
|
||||
(Modified by Philip Withnall <withnall@endlessm.com> to add an
|
||||
explanatory comment.)
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
|
||||
https://bugzilla.gnome.org/show_bug.cgi?id=795133
|
||||
---
|
||||
gio/gfile.c | 8 ++++++++
|
||||
1 file changed, 8 insertions(+)
|
||||
|
||||
diff --git a/gio/gfile.c b/gio/gfile.c
|
||||
index 334ad8ec3..a67aad383 100644
|
||||
--- a/gio/gfile.c
|
||||
+++ b/gio/gfile.c
|
||||
@@ -3012,6 +3012,7 @@ splice_stream_with_progress (GInputStream *in,
|
||||
if (!g_unix_open_pipe (buffer, FD_CLOEXEC, error))
|
||||
return FALSE;
|
||||
|
||||
+#if defined(F_SETPIPE_SZ) && defined(F_GETPIPE_SZ)
|
||||
/* Try a 1MiB buffer for improved throughput. If that fails, use the default
|
||||
* pipe size. See: https://bugzilla.gnome.org/791457 */
|
||||
buffer_size = fcntl (buffer[1], F_SETPIPE_SZ, 1024 * 1024);
|
||||
@@ -3029,6 +3030,13 @@ splice_stream_with_progress (GInputStream *in,
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
+#else
|
||||
+ /* If #F_GETPIPE_SZ isn’t available, assume we’re on Linux < 2.6.35,
|
||||
+ * but ≥ 2.6.11, meaning the pipe capacity is 64KiB. Ignore the possibility of
|
||||
+ * running on Linux < 2.6.11 (where the capacity was the system page size,
|
||||
+ * typically 4KiB) because it’s ancient. See pipe(7). */
|
||||
+ buffer_size = 1024 * 64;
|
||||
+#endif
|
||||
|
||||
g_assert (buffer_size > 0);
|
||||
|
||||
--
|
||||
2.13.0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# https://download.gnome.org/sources/glib/2.56/glib-2.56.1.sha256sum
|
||||
sha256 40ef3f44f2c651c7a31aedee44259809b6f03d3d20be44545cd7d177221c0b8d glib-2.56.1.tar.xz
|
||||
# https://download.gnome.org/sources/glib/2.56/glib-2.56.4.sha256sum
|
||||
sha256 27f703d125efb07f8a743666b580df0b4095c59fc8750e8890132c91d437504c glib-2.56.4.tar.xz
|
||||
# License files, locally calculated
|
||||
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
################################################################################
|
||||
|
||||
LIBGLIB2_VERSION_MAJOR = 2.56
|
||||
LIBGLIB2_VERSION = $(LIBGLIB2_VERSION_MAJOR).1
|
||||
LIBGLIB2_VERSION = $(LIBGLIB2_VERSION_MAJOR).4
|
||||
LIBGLIB2_SOURCE = glib-$(LIBGLIB2_VERSION).tar.xz
|
||||
LIBGLIB2_SITE = http://ftp.gnome.org/pub/gnome/sources/glib/$(LIBGLIB2_VERSION_MAJOR)
|
||||
LIBGLIB2_LICENSE = LGPL-2.1+
|
||||
@@ -112,9 +112,14 @@ HOST_LIBGLIB2_DEPENDENCIES = \
|
||||
host-util-linux \
|
||||
host-zlib
|
||||
|
||||
# We explicitly specify a giomodule-dir to avoid having a value
|
||||
# containing ${libdir} in gio-2.0.pc. Indeed, a value depending on
|
||||
# ${libdir} would be prefixed by the sysroot by pkg-config, causing a
|
||||
# bogus installation path once combined with $(DESTDIR).
|
||||
LIBGLIB2_CONF_OPTS = \
|
||||
--with-pcre=system \
|
||||
--disable-compile-warnings
|
||||
--disable-compile-warnings \
|
||||
--with-gio-module-dir=/usr/lib/gio/modules
|
||||
|
||||
ifneq ($(BR2_ENABLE_LOCALE),y)
|
||||
LIBGLIB2_DEPENDENCIES += libiconv
|
||||
@@ -132,6 +137,13 @@ LIBGLIB2_CONF_OPTS += --with-libiconv=gnu
|
||||
LIBGLIB2_DEPENDENCIES += libiconv
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
|
||||
LIBGLIB2_CONF_OPTS += --enable-selinux
|
||||
LIBGLIB2_DEPENDENCIES += libselinux
|
||||
else
|
||||
LIBGLIB2_CONF_OPTS += --disable-selinux
|
||||
endif
|
||||
|
||||
# Purge gdb-related files
|
||||
ifneq ($(BR2_PACKAGE_GDB),y)
|
||||
define LIBGLIB2_REMOVE_GDB_FILES
|
||||
|
||||
Reference in New Issue
Block a user