diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-08-06 22:38:42 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-08-07 16:08:15 +0100 |
| commit | e93572cda749c43cf4ec79870cb4335e03d4ab55 (patch) | |
| tree | 7310768eb44d4feb29b88809bef24ed63548a3ed | |
| parent | 88c6be81a5fbed098999fbef5576c5e0bb90cc21 (diff) | |
| download | poky-e93572cda749c43cf4ec79870cb4335e03d4ab55.tar.gz | |
gstreamer: Add fix for glibc 2.30
Fix a header overlap/redefinition issue with glibc 2.30.
(From OE-Core rev: 11422465e187b096d06c0eaf0a66dbac5b9e8710)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/headerfix.patch | 43 | ||||
| -rw-r--r-- | meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.16.0.bb | 1 |
2 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/headerfix.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/headerfix.patch new file mode 100644 index 0000000000..34d25a0a49 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/headerfix.patch | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | Things break with overlapping defines between glib and gstreamer with glibc 2.30. | ||
| 2 | |||
| 3 | Discussion in the link below, basically internal __ prefixed variables | ||
| 4 | shouldn't be redefined. | ||
| 5 | |||
| 6 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/635] | ||
| 7 | RP 2019/8/6 | ||
| 8 | |||
| 9 | Index: gst-plugins-good-1.16.0/sys/v4l2/ext/types-compat.h | ||
| 10 | =================================================================== | ||
| 11 | --- gst-plugins-good-1.16.0.orig/sys/v4l2/ext/types-compat.h | ||
| 12 | +++ gst-plugins-good-1.16.0/sys/v4l2/ext/types-compat.h | ||
| 13 | @@ -24,29 +24,6 @@ | ||
| 14 | #ifndef __TYPES_COMPAT_H__ | ||
| 15 | #define __TYPES_COMPAT_H__ | ||
| 16 | |||
| 17 | -/* From linux/types.h */ | ||
| 18 | -#ifndef __bitwise__ | ||
| 19 | -# ifdef __CHECKER__ | ||
| 20 | -# define __bitwise__ __attribute__((bitwise)) | ||
| 21 | -# else | ||
| 22 | -# define __bitwise__ | ||
| 23 | -# endif | ||
| 24 | -#endif | ||
| 25 | - | ||
| 26 | -#ifndef __bitwise | ||
| 27 | -# ifdef __CHECK_ENDIAN__ | ||
| 28 | -# define __bitwise __bitwise__ | ||
| 29 | -# else | ||
| 30 | -# define __bitwise | ||
| 31 | -# endif | ||
| 32 | -#endif | ||
| 33 | - | ||
| 34 | -#define __u64 guint64 | ||
| 35 | -#define __u32 guint32 | ||
| 36 | -#define __u16 guint16 | ||
| 37 | -#define __u8 guint8 | ||
| 38 | -#define __s64 gint64 | ||
| 39 | -#define __s32 gint32 | ||
| 40 | -#define __le32 guint32 __bitwise | ||
| 41 | +#include <linux/types.h> | ||
| 42 | |||
| 43 | #endif /* __TYPES_COMPAT_H__ */ | ||
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.16.0.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.16.0.bb index ad831ed25c..5751467db1 100644 --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.16.0.bb +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.16.0.bb | |||
| @@ -4,6 +4,7 @@ SRC_URI = " \ | |||
| 4 | http://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-${PV}.tar.xz \ | 4 | http://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-${PV}.tar.xz \ |
| 5 | file://0001-scaletempo-Advertise-interleaved-layout-in-caps-temp.patch \ | 5 | file://0001-scaletempo-Advertise-interleaved-layout-in-caps-temp.patch \ |
| 6 | file://0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch \ | 6 | file://0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch \ |
| 7 | file://headerfix.patch \ | ||
| 7 | " | 8 | " |
| 8 | 9 | ||
| 9 | SRC_URI[md5sum] = "d1a7b442994d9522418de4af4330e034" | 10 | SRC_URI[md5sum] = "d1a7b442994d9522418de4af4330e034" |
