Skip to contentSkip to conversation

musl: Update to latest master

PATCH In review Khem Raj 3 participants 30 messages May 22, 2017 – Jun 2, 2017

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/15 musl: Update to latest master

* f9f686b7 have posix_spawnattr_setflags check for supported flags
* 77e895dc add no-op POSIX_SPAWN_USEVFORK to spawn.h
* 55550416 s390x: provide sigcontext struct definition
* bb439bb1 implement new posix_spawn flag POSIX_SPAWN_SETSID
* 58e2396a remove va_arg hacks in printf core with undefined behavior
* e1232f5b make ttyname[_r] return ENODEV rather than ENOENT
* 1a7fa5e5 fix regression in support for resolv.conf attempts option
* 8c44a060 fix scalbn when result is in the subnormal range
* 2577b1bc allow full-range file offsets to mmap on archs with 64-bit syscall args
* b3751c32 fix dl_iterate_phdr in static PIE binaries
* 1ca59755 fix read past end of buffer in getaddrinfo backend

---
 meta/recipes-core/musl/musl_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/musl/musl_git.bb +1 -1
index a88bc4d424..bae072932c 100644
@@ -3,7 +3,7 @@
 
 require musl.inc
 
-SRCREV = "54807d47acecab778498ced88ce8f62bfa16e379"
+SRCREV = "f9f686b7721e2cc35e20fa5c6df6da2dc4ac3f50"
 
 PV = "1.1.16+git${SRCPV}"
 
Signature · 1 line
2.13.0
author
#1 lore raw

PATCH 2/15 libnsl2: Add recipe

NIS functionality has been split out into independent library from glibc

---
 .../0001-include-sys-cdefs.h-explicitly.patch      | 68 ++++++++++++++++++++++
 .../0002-Define-glibc-specific-macros.patch        | 57 ++++++++++++++++++
 meta/recipes-extended/libnsl/libnsl2_git.bb        | 35 +++++++++++
 3 files changed, 160 insertions(+)
 create mode 100644 meta/recipes-extended/libnsl/libnsl2/0001-include-sys-cdefs.h-explicitly.patch
 create mode 100644 meta/recipes-extended/libnsl/libnsl2/0002-Define-glibc-specific-macros.patch
 create mode 100644 meta/recipes-extended/libnsl/libnsl2_git.bb
meta/recipes-extended/libnsl/libnsl2/0001-include-sys-cdefs.h-explicitly.patch new file +68 -0
new file mode 100644
index 0000000000..c6c259adb8
@@ -0,0 +1,68 @@
+From 508a0ff690dfebc17c4f55a5f81824ed549bed66 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Tue, 18 Apr 2017 09:13:33 -0700
+Subject: [PATCH 1/2] include sys/cdefs.h explicitly
+
+glibc includes this header indirectly but not musl
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+Upstream_status: Pending
+
+ src/rpcsvc/nis.h    | 1 +
+ src/rpcsvc/nislib.h | 1 +
+ src/rpcsvc/ypclnt.h | 1 +
+ src/rpcsvc/ypupd.h  | 1 +
+ 4 files changed, 4 insertions(+)
+
+diff --git a/src/rpcsvc/nis.h b/src/rpcsvc/nis.h
+index 933c4d9..88cbca0 100644
+--- a/src/rpcsvc/nis.h
++++ b/src/rpcsvc/nis.h
+@@ -32,6 +32,7 @@
+ #ifndef _RPCSVC_NIS_H
+ #define _RPCSVC_NIS_H 1
+ 
++#include <sys/cdefs.h>
+ #include <features.h>
+ #include <rpc/rpc.h>
+ #include <rpcsvc/nis_tags.h>
+diff --git a/src/rpcsvc/nislib.h b/src/rpcsvc/nislib.h
+index a59c19b..a53fab3 100644
+--- a/src/rpcsvc/nislib.h
++++ b/src/rpcsvc/nislib.h
+@@ -19,6 +19,7 @@
+ #ifndef	__RPCSVC_NISLIB_H__
+ #define	__RPCSVC_NISLIB_H__
+ 
++#include <sys/cdefs.h>
+ #include <features.h>
+ 
+ __BEGIN_DECLS
+diff --git a/src/rpcsvc/ypclnt.h b/src/rpcsvc/ypclnt.h
+index fe43fd4..a686b61 100644
+--- a/src/rpcsvc/ypclnt.h
++++ b/src/rpcsvc/ypclnt.h
+@@ -20,6 +20,7 @@
+ #ifndef	__RPCSVC_YPCLNT_H__
+ #define	__RPCSVC_YPCLNT_H__
+ 
++#include <sys/cdefs.h>
+ #include <features.h>
+ 
+ /* Some defines */
+diff --git a/src/rpcsvc/ypupd.h b/src/rpcsvc/ypupd.h
+index d07fd4d..2c57301 100644
+--- a/src/rpcsvc/ypupd.h
++++ b/src/rpcsvc/ypupd.h
+@@ -33,6 +33,7 @@
+ #ifndef __RPCSVC_YPUPD_H__
+ #define __RPCSVC_YPUPD_H__
+ 
++#include <sys/cdefs.h>
+ #include <features.h>
+ 
+ #include <rpc/rpc.h>
+-- 
+2.12.2
+
meta/recipes-extended/libnsl/libnsl2/0002-Define-glibc-specific-macros.patch new file +57 -0

57 lines not on this page · raw message

meta/recipes-extended/libnsl/libnsl2_git.bb new file +35 -0
new file mode 100644
index 0000000000..1698f69edb
@@ -0,0 +1,35 @@
+# Copyright (C) 2017 Khem Raj <[email protected]>
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SUMMARY = "Library containing NIS functions using TI-RPC (IPv6 enabled)"
+DESCRIPTION = "This library contains the public client interface for NIS(YP) and NIS+\
+               it was part of glibc and now is standalone packages. it also supports IPv6"
+HOMEPAGE = "https://github.com/thkukuk/libnsl"
+LICENSE = "LGPL-2.1"
+LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
+SECTION = "libs"
+DEPENDS = "libtirpc"
+DEPENDS_append_libc-musl = " bsd-headers"
+
+PV = "1.0.5+git${SRCPV}"
+
+SRCREV = "dfa2f313524aff9243c4d8ce1bace73786478356"
+
+SRC_URI = "git://github.com/thkukuk/libnsl \
+           file://0001-include-sys-cdefs.h-explicitly.patch \
+           file://0002-Define-glibc-specific-macros.patch \
+          "
+
+S = "${WORKDIR}/git"
+
+inherit autotools pkgconfig gettext
+
+EXTRA_OECONF += "--libdir=${libdir}/nsl --includedir=${includedir}/nsl"
+
+do_install_append() {
+	install -d ${D}${libdir}
+	mv ${D}${libdir}/nsl/pkgconfig ${D}${libdir}
+}
+
+FILES_${PN} += "${libdir}/nsl/*.so.*"
+FILES_${PN}-dev += "${includedir}/nsl ${libdir}/nsl/*.so"
Signature · 1 line
2.13.0
author
#2 lore raw

PATCH 3/15 grub: Update to 2.02

In reply to Khem Raj

Drop git recipe, add arm bits to 2.02 itself

---
 ...-mfpmath-sse-as-well-when-SSE-is-disabled.patch |   0
 ...nforce-no-pie-if-the-compiler-supports-it.patch |  45 -------
 ...E-2015-8370-Grub2-user-pass-vulnerability.patch |  53 ---------
 ...ct-_llseek-code-and-require-long-filesyst.patch |  81 -------------
 ...Use-AC_HEADER_MAJOR-to-find-device-macros.patch |  92 ---------------
 ...ettext-gettext.c-main_context-secondary_c.patch |  39 ------
 ...ern-efi-mm.c-grub_efi_finish_boot_service.patch |  79 -------------
 ...1-grub.d-10_linux.in-add-oe-s-kernel-name.patch |   0
 ..._dhcp_vendor-Add-missing-const-qualifiers.patch |  33 ------
 ...ern-efi-mm.c-grub_efi_get_memory_map-Neve.patch |  43 -------
 .../{grub => files}/autogen.sh-exclude-pc.patch    |   0
 .../grub/files/check-if-liblzma-is-disabled.patch  |  33 ------
 .../grub/files/fix-endianness-problem.patch        |  44 -------
 .../grub/files/fix-issue-with-flex-2.5.37.patch    |  21 ----
 meta/recipes-bsp/grub/files/fix-texinfo.patch      |  32 -----
 .../grub/files/grub-2.00-add-oe-kernel.patch       |  53 ---------
 .../grub-2.00-fix-enable_execute_stack-check.patch |  27 -----
 .../grub/files/grub-2.00-fpmath-sse-387-fix.patch  |  24 ----
 ...allow-a-compilation-without-mcmodel-large.patch | 131 ---------------------
 .../grub/files/grub-efi-fix-with-glibc-2.20.patch  |  32 -----
 meta/recipes-bsp/grub/files/grub-install.in.patch  |  20 ----
 .../grub/files/grub-no-unused-result.patch         |  19 ---
 .../grub/files/grub2-fix-initrd-size-bug.patch     |  48 --------
 ...rub2-remove-sparc64-setup-from-x86-builds.patch |  44 -------
 meta/recipes-bsp/grub/files/remove-gets.patch      |  20 ----
 .../grub/{grub-efi_2.00.bb => grub-efi_2.02.bb}    |   9 +-
 meta/recipes-bsp/grub/grub2.inc                    |  50 ++++----
 .../grub/{grub_2.00.bb => grub_2.02.bb}            |   6 -
 meta/recipes-bsp/grub/grub_git.bb                  |  45 -------
 29 files changed, 26 insertions(+), 1097 deletions(-)
 rename meta/recipes-bsp/grub/{grub-git => files}/0001-Disable-mfpmath-sse-as-well-when-SSE-is-disabled.patch (100%)
 delete mode 100644 meta/recipes-bsp/grub/files/0001-Enforce-no-pie-if-the-compiler-supports-it.patch
 delete mode 100644 meta/recipes-bsp/grub/files/0001-Fix-CVE-2015-8370-Grub2-user-pass-vulnerability.patch
 delete mode 100644 meta/recipes-bsp/grub/files/0001-Remove-direct-_llseek-code-and-require-long-filesyst.patch
 delete mode 100644 meta/recipes-bsp/grub/files/0001-build-Use-AC_HEADER_MAJOR-to-find-device-macros.patch
 delete mode 100644 meta/recipes-bsp/grub/files/0001-grub-core-gettext-gettext.c-main_context-secondary_c.patch
 delete mode 100644 meta/recipes-bsp/grub/files/0001-grub-core-kern-efi-mm.c-grub_efi_finish_boot_service.patch
 rename meta/recipes-bsp/grub/{grub-git => files}/0001-grub.d-10_linux.in-add-oe-s-kernel-name.patch (100%)
 delete mode 100644 meta/recipes-bsp/grub/files/0001-parse_dhcp_vendor-Add-missing-const-qualifiers.patch
 delete mode 100644 meta/recipes-bsp/grub/files/0002-grub-core-kern-efi-mm.c-grub_efi_get_memory_map-Neve.patch
 rename meta/recipes-bsp/grub/{grub => files}/autogen.sh-exclude-pc.patch (100%)
 delete mode 100644 meta/recipes-bsp/grub/files/check-if-liblzma-is-disabled.patch
 delete mode 100644 meta/recipes-bsp/grub/files/fix-endianness-problem.patch
 delete mode 100644 meta/recipes-bsp/grub/files/fix-issue-with-flex-2.5.37.patch
 delete mode 100644 meta/recipes-bsp/grub/files/fix-texinfo.patch
 delete mode 100644 meta/recipes-bsp/grub/files/grub-2.00-add-oe-kernel.patch
 delete mode 100644 meta/recipes-bsp/grub/files/grub-2.00-fix-enable_execute_stack-check.patch
 delete mode 100644 meta/recipes-bsp/grub/files/grub-2.00-fpmath-sse-387-fix.patch
 delete mode 100644 meta/recipes-bsp/grub/files/grub-efi-allow-a-compilation-without-mcmodel-large.patch
 delete mode 100644 meta/recipes-bsp/grub/files/grub-efi-fix-with-glibc-2.20.patch
 delete mode 100644 meta/recipes-bsp/grub/files/grub-install.in.patch
 delete mode 100644 meta/recipes-bsp/grub/files/grub-no-unused-result.patch
 delete mode 100644 meta/recipes-bsp/grub/files/grub2-fix-initrd-size-bug.patch
 delete mode 100644 meta/recipes-bsp/grub/files/grub2-remove-sparc64-setup-from-x86-builds.patch
 delete mode 100644 meta/recipes-bsp/grub/files/remove-gets.patch
 rename meta/recipes-bsp/grub/{grub-efi_2.00.bb => grub-efi_2.02.bb} (88%)
 rename meta/recipes-bsp/grub/{grub_2.00.bb => grub_2.02.bb} (56%)
 delete mode 100644 meta/recipes-bsp/grub/grub_git.bb
meta/recipes-bsp/grub/files/0001-Disable-mfpmath-sse-as-well-when-SSE-is-disabled.patch renamed from meta/recipes-bsp/grub/grub-git/0001-Disable-mfpmath-sse-as-well-when-SSE-is-disabled.patch +0 -0
similarity index 100%
rename from meta/recipes-bsp/grub/grub-git/0001-Disable-mfpmath-sse-as-well-when-SSE-is-disabled.patch
rename to meta/recipes-bsp/grub/files/0001-Disable-mfpmath-sse-as-well-when-SSE-is-disabled.patch
meta/recipes-bsp/grub/files/0001-Enforce-no-pie-if-the-compiler-supports-it.patch deleted +0 -45

45 lines not on this page · raw message

meta/recipes-bsp/grub/files/0001-Fix-CVE-2015-8370-Grub2-user-pass-vulnerability.patch deleted +0 -53

53 lines not on this page · raw message

meta/recipes-bsp/grub/files/0001-Remove-direct-_llseek-code-and-require-long-filesyst.patch deleted +0 -81

81 lines not on this page · raw message

meta/recipes-bsp/grub/files/0001-build-Use-AC_HEADER_MAJOR-to-find-device-macros.patch deleted +0 -92

92 lines not on this page · raw message

meta/recipes-bsp/grub/files/0001-grub-core-gettext-gettext.c-main_context-secondary_c.patch deleted +0 -39
deleted file mode 100644
index 6ec2363ae3..0000000000
@@ -1,39 +0,0 @@
-From f30c692c1f9ef0e93bee2b408a24baa017f1ca9d Mon Sep 17 00:00:00 2001
-From: Vladimir Serbinenko <[email protected]>
-Date: Thu, 7 Nov 2013 01:01:47 +0100
-Subject: [PATCH] 	* grub-core/gettext/gettext.c (main_context),
- (secondary_context): 	Define after defining type and not before.
-
----
-Signed-off-by: Khem Raj <[email protected]>
-Upstream-Status: Backport
-
- ChangeLog                   | 5 +++++
- grub-core/gettext/gettext.c | 4 ++--
- 2 files changed, 7 insertions(+), 2 deletions(-)
-
-diff --git a/grub-core/gettext/gettext.c b/grub-core/gettext/gettext.c
-index df73570..4880cef 100644
---- a/grub-core/gettext/gettext.c
-+++ b/grub-core/gettext/gettext.c
-@@ -34,8 +34,6 @@ GRUB_MOD_LICENSE ("GPLv3+");
-    http://www.gnu.org/software/autoconf/manual/gettext/MO-Files.html .
- */
- 
--static struct grub_gettext_context main_context, secondary_context;
--
- static const char *(*grub_gettext_original) (const char *s);
- 
- struct grub_gettext_msg
-@@ -69,6 +67,8 @@ struct grub_gettext_context
-   struct grub_gettext_msg *grub_gettext_msg_list;
- };
- 
-+static struct grub_gettext_context main_context, secondary_context;
-+
- #define MO_MAGIC_NUMBER 		0x950412de
- 
- static grub_err_t
--- 
-1.9.1
-
meta/recipes-bsp/grub/files/0001-grub-core-kern-efi-mm.c-grub_efi_finish_boot_service.patch deleted +0 -79

79 lines not on this page · raw message

meta/recipes-bsp/grub/files/0001-grub.d-10_linux.in-add-oe-s-kernel-name.patch renamed from meta/recipes-bsp/grub/grub-git/0001-grub.d-10_linux.in-add-oe-s-kernel-name.patch +0 -0
similarity index 100%
rename from meta/recipes-bsp/grub/grub-git/0001-grub.d-10_linux.in-add-oe-s-kernel-name.patch
rename to meta/recipes-bsp/grub/files/0001-grub.d-10_linux.in-add-oe-s-kernel-name.patch
meta/recipes-bsp/grub/files/0001-parse_dhcp_vendor-Add-missing-const-qualifiers.patch deleted +0 -33
deleted file mode 100644
index 255e3eb7d6..0000000000
@@ -1,33 +0,0 @@
-Upstream-Status: Backport
-
-Original commit: http://git.savannah.gnu.org/cgit/grub.git/commit/grub-core/net/bootp.c?id=f06c2172c0b32052f22e37523445cf8e7affaea3
-
-From 149d2a14f4723778ced23f439487201ccbf1a2c9 Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Thu, 23 Apr 2015 07:03:34 +0000
-Subject: [PATCH] parse_dhcp_vendor: Add missing const qualifiers.
-
-Signed-off-by: Khem Raj <[email protected]>
----
- grub-core/net/bootp.c | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/grub-core/net/bootp.c b/grub-core/net/bootp.c
-index bc07d53..44131ed 100644
---- a/grub-core/net/bootp.c
-+++ b/grub-core/net/bootp.c
-@@ -52,9 +52,9 @@ set_env_limn_ro (const char *intername, const char *suffix,
- }
- 
- static void
--parse_dhcp_vendor (const char *name, void *vend, int limit, int *mask)
-+parse_dhcp_vendor (const char *name, const void *vend, int limit, int *mask)
- {
--  grub_uint8_t *ptr, *ptr0;
-+  const grub_uint8_t *ptr, *ptr0;
- 
-   ptr = ptr0 = vend;
- 
--- 
-2.1.4
-
meta/recipes-bsp/grub/files/0002-grub-core-kern-efi-mm.c-grub_efi_get_memory_map-Neve.patch deleted +0 -43

43 lines not on this page · raw message

meta/recipes-bsp/grub/files/autogen.sh-exclude-pc.patch renamed from meta/recipes-bsp/grub/grub/autogen.sh-exclude-pc.patch +0 -0
similarity index 100%
rename from meta/recipes-bsp/grub/grub/autogen.sh-exclude-pc.patch
rename to meta/recipes-bsp/grub/files/autogen.sh-exclude-pc.patch
meta/recipes-bsp/grub/files/check-if-liblzma-is-disabled.patch deleted +0 -33
deleted file mode 100644
index 0eece082f8..0000000000
@@ -1,33 +0,0 @@
-Disable liblzma if --enable-liblzma=no
-
-Upstream-Status: Inappropriate [configuration]
-
-Signed-off-by: Constantin Musca <[email protected]>
-
---- a/configure.ac
-+++ b/configure.ac
-@@ -1029,10 +1029,20 @@ fi
- 
- AC_SUBST([LIBGEOM])
- 
--AC_CHECK_LIB([lzma], [lzma_code],
--             [LIBLZMA="-llzma"
--              AC_DEFINE([HAVE_LIBLZMA], [1],
--                        [Define to 1 if you have the LZMA library.])],)
-+AC_ARG_ENABLE([liblzma],
-+              [AS_HELP_STRING([--enable-liblzma],
-+                              [enable liblzma integration (default=guessed)])])
-+if test x"$enable_liblzma" = xno ; then
-+  liblzma_excuse="explicitly disabled"
-+fi
-+
-+if test x"$liblzma_excuse" = x ; then
-+  AC_CHECK_LIB([lzma], [lzma_code],
-+               [LIBLZMA="-llzma"
-+                AC_DEFINE([HAVE_LIBLZMA], [1],
-+                          [Define to 1 if you have the LZMA library.])],)
-+fi
-+
- AC_SUBST([LIBLZMA])
- 
- AC_ARG_ENABLE([libzfs],
meta/recipes-bsp/grub/files/fix-endianness-problem.patch deleted +0 -44

44 lines not on this page · raw message

meta/recipes-bsp/grub/files/fix-issue-with-flex-2.5.37.patch deleted +0 -21
deleted file mode 100644
index 61ae2f5372..0000000000
@@ -1,21 +0,0 @@
-Upstream-Status: Backport
-
-This fixes compilation issues when using flex-2.5.37. It was taken from upstream.
-
-Original author is: Vladimir Serbinenko  <[email protected]>
-
-Signed-off-by: Laurentiu Palcu <[email protected]>
-
-Index: grub-2.00/grub-core/script/yylex.l
-===================================================================
---- grub-2.00.orig/grub-core/script/yylex.l	2012-06-08 23:24:15.000000000 +0300
-+++ grub-2.00/grub-core/script/yylex.l	2013-07-31 14:34:40.708100982 +0300
-@@ -29,6 +29,8 @@
- #pragma GCC diagnostic ignored "-Wmissing-prototypes"
- #pragma GCC diagnostic ignored "-Wmissing-declarations"
- #pragma GCC diagnostic ignored "-Wunsafe-loop-optimizations"
-+#pragma GCC diagnostic ignored "-Wunused-function"
-+#pragma GCC diagnostic ignored "-Wsign-compare"
- 
- #define yyfree    grub_lexer_yyfree
- #define yyalloc   grub_lexer_yyalloc
meta/recipes-bsp/grub/files/fix-texinfo.patch deleted +0 -32
deleted file mode 100644
index b911d7370b..0000000000
@@ -1,32 +0,0 @@
-The tarball has a texi file that doesn't parse with current texinfo, so if it's
-being re-generated the build will fail.  Take a patch from upstream to fix the
-texi.
-
-Upstream-Status: Backport
-Signed-off-by: Ross Burton <[email protected]>
-
-From d4c4b8e1a085f92afcec36f6e590c6dfc51d0a1c Mon Sep 17 00:00:00 2001
-From: Bryan Hundven <[email protected]>
-Date: Mon, 08 Apr 2013 13:23:07 +0000
-Subject: 	* docs/grub-dev.texi: Move @itemize after @subsection to satisfy
-
-	texinfo-5.1.
----
-(limited to 'docs/grub-dev.texi')
-
-diff --git a/docs/grub-dev.texi b/docs/grub-dev.texi
-index a4a3820..f74c966 100644
---- a/docs/grub-dev.texi
-+++ b/docs/grub-dev.texi
-@@ -1394,8 +1394,8 @@ grub_video_blit_glyph (&glyph, color, 0, 0);
- 
- @node Bitmap API
- @section Bitmap API
--@itemize
- @subsection grub_video_bitmap_create
-+@itemize
- @item Prototype:
- @example
- grub_err_t grub_video_bitmap_create (struct grub_video_bitmap **bitmap, unsigned int width, unsigned int height, enum grub_video_blit_format blit_format)
---
-cgit v0.9.0.2
meta/recipes-bsp/grub/files/grub-2.00-add-oe-kernel.patch deleted +0 -53

53 lines not on this page · raw message

meta/recipes-bsp/grub/files/grub-2.00-fix-enable_execute_stack-check.patch deleted +0 -27
deleted file mode 100644
index 1ff3c1ca09..0000000000
@@ -1,27 +0,0 @@
-Upstream-Status: Pending
-
-
-This patch avoids this configure failure
-
-configure:20306: checking whether `ccache i586-poky-linux-gcc  -m32    -march=core2 -msse3 -mtune=generic -mfpmath=sse --sysroot=/builddisk/build/build0/tmp/sysroots/emenlow' generates calls to `__enable_execute_stack()'
-configure:20320: ccache i586-poky-linux-gcc  -m32    -march=core2 -msse3 -mtune=generic -mfpmath=sse --sysroot=/builddisk/build/build0/tmp/sysroots/emenlow -O2 -pipe -g -feliminate-unused-debug-types -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -mfpmath=387 -fno-dwarf2-cfi-asm -m32 -fno-stack-protector -mno-stack-arg-probe -Werror -Wno-trampolines -falign-loops=1 -S conftest.c
-conftest.c:308:6: error: no previous prototype for 'g' [-Werror=missing-prototypes]
-cc1: all warnings being treated as errors
-configure:20323: $? = 1
-configure:20327: error: ccache i586-poky-linux-gcc  -m32    -march=core2 -msse3 -mtune=generic -mfpmath=sse --sysroot=/builddisk/build/build0/tmp/sysroots/emenlow failed to produce assembly code
-
-Signed-off-by: Nitin A Kamble <[email protected]>
-2012/04/13
-
-Index: grub-2.00/acinclude.m4
-===================================================================
---- grub-2.00.orig/acinclude.m4
-+++ grub-2.00/acinclude.m4
-@@ -317,6 +317,7 @@ dnl Check if the C compiler generates ca
- AC_DEFUN([grub_CHECK_ENABLE_EXECUTE_STACK],[
- AC_MSG_CHECKING([whether `$CC' generates calls to `__enable_execute_stack()'])
- AC_LANG_CONFTEST([AC_LANG_SOURCE([[
-+void g (int);
- void f (int (*p) (void));
- void g (int i)
- {
meta/recipes-bsp/grub/files/grub-2.00-fpmath-sse-387-fix.patch deleted +0 -24
deleted file mode 100644
index dd30d94b75..0000000000
@@ -1,24 +0,0 @@
-Upstream-Status: pending
-
-This patch fixes this configure issue for grub when -mfpmath=sse is in the gcc parameters.
-
-configure:20574: i586-poky-linux-gcc  -m32    -march=core2 -msse3 -mtune=generic -mfpmath=sse --sysroot=/usr/local/dev/yocto/grubtest2/build/tmp/sysroots/emenlow -o conftest -O2 -pipe -g -feliminate-unused-debug-types -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -fno-dwarf2-cfi-asm -m32 -fno-stack-protector -mno-stack-arg-probe -Werror -nostdlib -Wl,--defsym,___main=0x8100  -Wall -W -I$(top_srcdir)/include -I$(top_builddir)/include  -DGRUB_MACHINE_PCBIOS=1 -DGRUB_MACHINE=I386_PC -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed conftest.c  >&5
-conftest.c:1:0: error: SSE instruction set disabled, using 387 arithmetics [-Werror]
-cc1: all warnings being treated as errors
-
-Signed-off-by: Nitin A Kamble <[email protected]>
-2012/04/13
-
-Index: grub-1.99/configure.ac
-===================================================================
---- grub-1.99.orig/configure.ac
-+++ grub-1.99/configure.ac
-@@ -378,7 +378,7 @@ if test "x$target_cpu" = xi386; then
- 
-   # Some toolchains enable these features by default, but they need
-   # registers that aren't set up properly in GRUB.
--  TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-3dnow"
-+  TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -mfpmath=387"
- fi
- 
- # By default, GCC 4.4 generates .eh_frame sections containing unwind
meta/recipes-bsp/grub/files/grub-efi-allow-a-compilation-without-mcmodel-large.patch deleted +0 -131

131 lines not on this page · raw message

meta/recipes-bsp/grub/files/grub-efi-fix-with-glibc-2.20.patch deleted +0 -32
deleted file mode 100644
index 4f12628a4b..0000000000
@@ -1,32 +0,0 @@
-From eb6368e65f6988eebad26cebdec057f797bceb40 Mon Sep 17 00:00:00 2001
-From: Robert Yang <[email protected]>
-Date: Tue, 9 Sep 2014 00:02:30 -0700
-Subject: [PATCH] Fix build with glibc 2.20
-
-* grub-core/kern/emu/hostfs.c: squahes below warning
-  warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
-
-Upstream-Status: Submitted
-
-Signed-off-by: Khem Raj <[email protected]>
-Signed-off-by: Robert Yang <[email protected]>
----
- grub-core/kern/emu/hostfs.c |    2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/grub-core/kern/emu/hostfs.c b/grub-core/kern/emu/hostfs.c
-index 3cb089c..a51ee32 100644
---- a/grub-core/kern/emu/hostfs.c
-+++ b/grub-core/kern/emu/hostfs.c
-@@ -16,7 +16,7 @@
-  *  You should have received a copy of the GNU General Public License
-  *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
-  */
--#define _BSD_SOURCE
-+#define _DEFAULT_SOURCE
- #include <grub/fs.h>
- #include <grub/file.h>
- #include <grub/disk.h>
--- 
-1.7.9.5
-
meta/recipes-bsp/grub/files/grub-install.in.patch deleted +0 -20
deleted file mode 100644
index 326951df44..0000000000
@@ -1,20 +0,0 @@
-Upstream-Status: Inappropriate [embedded specific]
-
-Our use of grub-install doesn't require the -x option, so we should be
-be able make use of grep versions that don't support it.
-
-Signed-off-by: Tom Zanussi <[email protected]>
-
-Index: grub-1.99/util/grub-install.in
-===================================================================
---- grub-1.99.orig/util/grub-install.in	2011-09-09 22:37:20.093906679 -0500
-+++ grub-1.99/util/grub-install.in	2011-09-09 22:37:30.854737882 -0500
-@@ -510,7 +510,7 @@
- 
- if [ "x${devabstraction_module}" = "x" ] ; then
-     if [ x"${install_device}" != x ]; then
--      if echo "${install_device}" | grep -qx "(.*)" ; then
-+      if echo "${install_device}" | grep -q "(.*)" ; then
-         install_drive="${install_device}"
-       else
-         install_drive="`"$grub_probe" --device-map="${device_map}" --target=drive --device "${install_device}"`" || exit 1
meta/recipes-bsp/grub/files/grub-no-unused-result.patch deleted +0 -19
deleted file mode 100644
index 4cbd0838d1..0000000000
@@ -1,19 +0,0 @@
-Signed-off-by: Radu Moisan <[email protected]>
-Upstream-Status: Pending
-
-I had an error because of an unused return value for read().
-I added -Wno-unused-result.
-
-Index: grub-2.00/configure.ac
-===================================================================
---- grub-2.00.orig/configure.ac	2012-08-13 16:32:33.000000000 +0300
-+++ grub-2.00/configure.ac	2012-08-13 16:38:22.000000000 +0300
-@@ -394,7 +394,7 @@
- LIBS=""
- 
- # debug flags.
--WARN_FLAGS="-Wall -W -Wshadow -Wold-style-definition -Wpointer-arith -Wundef -Wextra -Waddress -Wattributes -Wcast-align -Wchar-subscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wempty-body -Wendif-labels -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmain -Wmissing-braces -Wmissing-field-initializers -Wmissing-format-attribute -Wmissing-noreturn -Wmultichar -Wnonnull -Woverflow -Wparentheses -Wpointer-arith -Wpointer-to-int-cast -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wstrict-aliasing -Wswitch -Wtrigraphs -Wundef -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value  -Wunused-variable -Wvariadic-macros -Wvolatile-register-var -Wwrite-strings -Wnested-externs -Wstrict-prototypes -Wpointer-sign"
-+WARN_FLAGS="-Wall -W -Wshadow -Wold-style-definition -Wpointer-arith -Wundef -Wextra -Waddress -Wattributes -Wcast-align -Wchar-subscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wempty-body -Wendif-labels -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmain -Wmissing-braces -Wmissing-field-initializers -Wmissing-format-attribute -Wmissing-noreturn -Wmultichar -Wnonnull -Woverflow -Wparentheses -Wpointer-arith -Wpointer-to-int-cast -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wstrict-aliasing -Wswitch -Wtrigraphs -Wundef -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value  -Wunused-variable -Wno-unused-result -Wvariadic-macros -Wvolatile-register-var -Wwrite-strings -Wnested-externs -Wstrict-prototypes -Wpointer-sign"
- HOST_CFLAGS="$HOST_CFLAGS $WARN_FLAGS"
- TARGET_CFLAGS="$TARGET_CFLAGS $WARN_FLAGS -g -Wredundant-decls -Wmissing-prototypes -Wmissing-declarations"
- TARGET_CCASFLAGS="$TARGET_CCASFLAGS -g"
meta/recipes-bsp/grub/files/grub2-fix-initrd-size-bug.patch deleted +0 -48

48 lines not on this page · raw message

meta/recipes-bsp/grub/files/grub2-remove-sparc64-setup-from-x86-builds.patch deleted +0 -44

44 lines not on this page · raw message

meta/recipes-bsp/grub/files/remove-gets.patch deleted +0 -20
deleted file mode 100644
index 463f7847ad..0000000000
@@ -1,20 +0,0 @@
-ISO C11 removes the specification of gets() from the C language, eglibc 2.16+ removed it
-
-Signed-off-by: Khem Raj <[email protected]>
-
-Upstream-Status: Pending
-Index: grub-1.99/grub-core/gnulib/stdio.in.h
-===================================================================
---- grub-1.99.orig/grub-core/gnulib/stdio.in.h	2010-12-01 06:45:43.000000000 -0800
-+++ grub-1.99/grub-core/gnulib/stdio.in.h	2012-07-04 12:25:02.057099107 -0700
-@@ -140,8 +140,10 @@
- /* It is very rare that the developer ever has full control of stdin,
-    so any use of gets warrants an unconditional warning.  Assume it is
-    always declared, since it is required by C89.  */
-+#if defined gets
- #undef gets
- _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
-+#endif
- 
- #if @GNULIB_FOPEN@
- # if @REPLACE_FOPEN@
meta/recipes-bsp/grub/grub-efi_2.02.bb renamed from meta/recipes-bsp/grub/grub-efi_2.00.bb +3 -6
similarity index 88%
rename from meta/recipes-bsp/grub/grub-efi_2.00.bb
rename to meta/recipes-bsp/grub/grub-efi_2.02.bb
index e12f1d773f..9d494d5d12 100644
@@ -1,8 +1,9 @@
 require grub2.inc
 
+GRUBPLATFORM = "efi"
+
 DEPENDS_class-target = "grub-efi-native"
 RDEPENDS_${PN}_class-target = "diffutils freetype"
-PR = "r3"
 
 SRC_URI += " \
            file://cfg \
@@ -29,11 +30,7 @@ python __anonymous () {
 inherit deploy
 
 CACHED_CONFIGUREVARS += "ac_cv_path_HELP2MAN="
-EXTRA_OECONF = "--with-platform=efi --disable-grub-mkfont \
-                --enable-efiemu=no --program-prefix='' \
-                --enable-liblzma=no --enable-device-mapper=no --enable-libzfs=no \
-                --enable-largefile \
-"
+EXTRA_OECONF += "--enable-efiemu=no"
 
 # ldm.c:114:7: error: trampoline generated for nested function 'hook' [-Werror=trampolines]
 # and many other places in the grub code when compiled with some native gcc compilers (specifically, gentoo)
meta/recipes-bsp/grub/grub2.inc +23 -27

64 lines not on this page · raw message

meta/recipes-bsp/grub/grub_2.02.bb renamed from meta/recipes-bsp/grub/grub_2.00.bb +0 -6
similarity index 56%
rename from meta/recipes-bsp/grub/grub_2.00.bb
rename to meta/recipes-bsp/grub/grub_2.02.bb
index c3829381ae..57c6559365 100644
@@ -1,12 +1,6 @@
 require grub2.inc
 
 RDEPENDS_${PN} = "diffutils freetype grub-editenv"
-PR = "r1"
-
-EXTRA_OECONF = "--with-platform=pc --disable-grub-mkfont --program-prefix="" \
-                --enable-liblzma=no --enable-device-mapper=no --enable-libzfs=no \
-                --enable-largefile \
-"
 
 PACKAGES =+ "grub-editenv"
 
meta/recipes-bsp/grub/grub_git.bb deleted +0 -45

45 lines not on this page · raw message

Signature · 1 line
2.13.0
author
#3 lore raw

PATCH 4/15 glew: Compile with -D_GNU_SOURCE

In reply to Khem Raj

Required with glibc 2.26
when x11 is not in distro features it errors
out due to mising CLOCK_REALTIME

error: 'CLOCK_REALTIME' undeclared (first use in this function);
did you mean '_XOPEN_REALTIME'?

    if (clock_gettime(CLOCK_REALTIME, &ts) == -1)
                      ^~~~~~~~~~~~~~
                      _XOPEN_REALTIME
---
 meta/recipes-graphics/glew/glew_2.0.0.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-graphics/glew/glew_2.0.0.bb +1 -0
index 1c93ca07b6..f2ab75629c 100644
@@ -24,6 +24,7 @@ PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'opengl', 'egl-
 PACKAGECONFIG[opengl] = "SYSTEM='linux',,virtual/libx11 virtual/libgl libglu libxext libxi libxmu"
 PACKAGECONFIG[egl-gles2] = "SYSTEM='linux-egl' GLEW_NO_GLU='-DGLEW_NO_GLU' LDFLAGS.GL='-lEGL -lGLESv2',,virtual/egl virtual/libgles2"
 
+CFLAGS += "-D_GNU_SOURCE"
 # Override SYSTEM (via PACKAGECONFIG_CONFARGS) to avoid calling config.guess,
 # we're cross-compiling. Pass our CFLAGS via POPT as that's the optimisation
 # variable and safely overwritten.
Signature · 1 line
2.13.0
author
#4 lore raw

PATCH 5/15 libidn: Fix hardened build with musl

In reply to Khem Raj

Re-introduce the patch that was deemed to be not needed but it infact is still needed with musl

---
 .../libidn/0001-idn-format-security-warnings.patch | 181 +++++++++++++++++++++
 meta/recipes-extended/libidn/libidn_1.33.bb        |   1 +
 2 files changed, 182 insertions(+)
 create mode 100644 meta/recipes-extended/libidn/libidn/0001-idn-format-security-warnings.patch
meta/recipes-extended/libidn/libidn/0001-idn-format-security-warnings.patch new file +181 -0
new file mode 100644
index 0000000000..5adc7d9fd9
@@ -0,0 +1,181 @@
+From 82f98dcbc429bbe89a9837c533cbcbc02e77c790 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <[email protected]>
+Date: Tue, 28 Jun 2016 12:43:31 +0100
+Subject: [PATCH] idn: fix printf() format security warnings
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+| ../../libidn-1.32/src/idn.c: In function 'main':
+| ../../libidn-1.32/src/idn.c:172:7: error: format not a string literal and no format arguments [-Werror=format-security]
+|        error (0, 0, _("only one of -s, -e, -d, -a, -u or -n can be specified"));
+|        ^~~~~
+| ../../libidn-1.32/src/idn.c:187:5: error: format not a string literal and no format arguments [-Werror=format-security]
+|      fprintf (stderr, _("Type each input string on a line by itself, "
+|      ^~~~~~~
+| ../../libidn-1.32/src/idn.c:202:4: error: format not a string literal and no format arguments [-Werror=format-security]
+|     error (EXIT_FAILURE, errno, _("input error"));
+|     ^~~~~
+| ../../libidn-1.32/src/idn.c:220:8: error: format not a string literal and no format arguments [-Werror=format-security]
+|         _("could not convert from UTF-8 to UCS-4"));
+|         ^
+| ../../libidn-1.32/src/idn.c:245:8: error: format not a string literal and no format arguments [-Werror=format-security]
+|         _("could not convert from UTF-8 to UCS-4"));
+|         ^
+| ../../libidn-1.32/src/idn.c:281:6: error: format not a string literal and no format arguments [-Werror=format-security]
+|       _("could not convert from UTF-8 to UCS-4"));
+|       ^
+| ../../libidn-1.32/src/idn.c:340:6: error: format not a string literal and no format arguments [-Werror=format-security]
+|       _("could not convert from UCS-4 to UTF-8"));
+|       ^
+| ../../libidn-1.32/src/idn.c:364:6: error: format not a string literal and no format arguments [-Werror=format-security]
+|       _("could not convert from UCS-4 to UTF-8"));
+|       ^
+| ../../libidn-1.32/src/idn.c:442:8: error: format not a string literal and no format arguments [-Werror=format-security]
+|         _("could not convert from UCS-4 to UTF-8"));
+|         ^
+| ../../libidn-1.32/src/idn.c:498:6: error: format not a string literal and no format arguments [-Werror=format-security]
+|       _("could not convert from UTF-8 to UCS-4"));
+|       ^
+| ../../libidn-1.32/src/idn.c:527:5: error: format not a string literal and no format arguments [-Werror=format-security]
+|      _("could not convert from UTF-8 to UCS-4"));
+|      ^
+| ../../libidn-1.32/src/idn.c:540:6: error: format not a string literal and no format arguments [-Werror=format-security]
+|       error (EXIT_FAILURE, 0, _("could not do NFKC normalization"));
+|       ^~~~~
+| ../../libidn-1.32/src/idn.c:551:5: error: format not a string literal and no format arguments [-Werror=format-security]
+|      _("could not convert from UTF-8 to UCS-4"));
+|      ^
+
+Signed-off-by: André Draszik <[email protected]>
+---
+Upstream-Status: Pending
+
+ src/idn.c | 27 ++++++++++++++-------------
+ 1 file changed, 14 insertions(+), 13 deletions(-)
+
+diff --git a/src/idn.c b/src/idn.c
+index be1c7d1..68e4291 100644
+--- a/src/idn.c
++++ b/src/idn.c
+@@ -170,7 +170,7 @@ main (int argc, char *argv[])
+       (args_info.idna_to_unicode_given ? 1 : 0) +
+       (args_info.nfkc_given ? 1 : 0) != 1)
+     {
+-      error (0, 0, _("only one of -s, -e, -d, -a, -u or -n can be specified"));
++      error (0, 0, "%s", _("only one of -s, -e, -d, -a, -u or -n can be specified"));
+       usage (EXIT_FAILURE);
+     }
+ 
+@@ -185,7 +185,7 @@ main (int argc, char *argv[])
+   if (!args_info.quiet_given
+       && args_info.inputs_num == 0
+       && isatty (fileno (stdin)))
+-    fprintf (stderr, _("Type each input string on a line by itself, "
++    fprintf (stderr, "%s", _("Type each input string on a line by itself, "
+ 		       "terminated by a newline character.\n"));
+ 
+   do
+@@ -197,7 +197,7 @@ main (int argc, char *argv[])
+ 	  if (feof (stdin))
+ 	    break;
+ 
+-	  error (EXIT_FAILURE, errno, _("input error"));
++	  error (EXIT_FAILURE, errno, "%s", _("input error"));
+ 	}
+ 
+       if (strlen (line) > 0)
+@@ -215,7 +215,7 @@ main (int argc, char *argv[])
+ 	  if (!q)
+ 	    {
+ 	      free (p);
+-	      error (EXIT_FAILURE, 0,
++	      error (EXIT_FAILURE, 0, "%s",
+ 		     _("could not convert from UTF-8 to UCS-4"));
+ 	    }
+ 
+@@ -240,7 +240,7 @@ main (int argc, char *argv[])
+ 	  if (!q)
+ 	    {
+ 	      free (r);
+-	      error (EXIT_FAILURE, 0,
++	      error (EXIT_FAILURE, 0, "%s",
+ 		     _("could not convert from UTF-8 to UCS-4"));
+ 	    }
+ 
+@@ -277,7 +277,7 @@ main (int argc, char *argv[])
+ 	  q = stringprep_utf8_to_ucs4 (p, -1, &len);
+ 	  free (p);
+ 	  if (!q)
+-	    error (EXIT_FAILURE, 0,
++	    error (EXIT_FAILURE, 0, "%s",
+ 		   _("could not convert from UTF-8 to UCS-4"));
+ 
+ 	  if (args_info.debug_given)
+@@ -336,7 +336,7 @@ main (int argc, char *argv[])
+ 	  r = stringprep_ucs4_to_utf8 (q, -1, NULL, NULL);
+ 	  free (q);
+ 	  if (!r)
+-	    error (EXIT_FAILURE, 0,
++	    error (EXIT_FAILURE, 0, "%s",
+ 		   _("could not convert from UCS-4 to UTF-8"));
+ 
+ 	  p = stringprep_utf8_to_locale (r);
+@@ -360,7 +360,7 @@ main (int argc, char *argv[])
+ 	  q = stringprep_utf8_to_ucs4 (p, -1, NULL);
+ 	  free (p);
+ 	  if (!q)
+-	    error (EXIT_FAILURE, 0,
++	    error (EXIT_FAILURE, 0, "%s",
+ 		   _("could not convert from UCS-4 to UTF-8"));
+ 
+ 	  if (args_info.debug_given)
+@@ -438,7 +438,7 @@ main (int argc, char *argv[])
+ 	  if (!q)
+ 	    {
+ 	      free (p);
+-	      error (EXIT_FAILURE, 0,
++	      error (EXIT_FAILURE, 0, "%s",
+ 		     _("could not convert from UCS-4 to UTF-8"));
+ 	    }
+ 
+@@ -494,7 +494,7 @@ main (int argc, char *argv[])
+ 	  r = stringprep_ucs4_to_utf8 (q, -1, NULL, NULL);
+ 	  free (q);
+ 	  if (!r)
+-	    error (EXIT_FAILURE, 0,
++	    error (EXIT_FAILURE, 0, "%s",
+ 		   _("could not convert from UTF-8 to UCS-4"));
+ 
+ 	  p = stringprep_utf8_to_locale (r);
+@@ -523,7 +523,7 @@ main (int argc, char *argv[])
+ 	      if (!q)
+ 		{
+ 		  free (p);
+-		  error (EXIT_FAILURE, 0,
++		  error (EXIT_FAILURE, 0, "%s",
+ 			 _("could not convert from UTF-8 to UCS-4"));
+ 		}
+ 
+@@ -537,7 +537,8 @@ main (int argc, char *argv[])
+ 	  r = stringprep_utf8_nfkc_normalize (p, -1);
+ 	  free (p);
+ 	  if (!r)
+-	    error (EXIT_FAILURE, 0, _("could not do NFKC normalization"));
++	    error (EXIT_FAILURE, 0, "%s",
++		   _("could not do NFKC normalization"));
+ 
+ 	  if (args_info.debug_given)
+ 	    {
+@@ -547,7 +548,7 @@ main (int argc, char *argv[])
+ 	      if (!q)
+ 		{
+ 		  free (r);
+-		  error (EXIT_FAILURE, 0,
++		  error (EXIT_FAILURE, 0, "%s",
+ 			 _("could not convert from UTF-8 to UCS-4"));
+ 		}
+ 
+-- 
+2.8.1
+
meta/recipes-extended/libidn/libidn_1.33.bb +1 -0
index 109cc7f3f5..9e8bdbae18 100644
@@ -20,6 +20,7 @@ SRC_URI = "${GNU_MIRROR}/libidn/${BPN}-${PV}.tar.gz \
            file://dont-depend-on-help2man.patch \
            file://0001-idn-fix-printf-format-security-warnings.patch \
            file://gcc7-compatibility.patch \
+           file://0001-idn-format-security-warnings.patch \
 "
 
 SRC_URI[md5sum] = "a9aa7e003665de9c82bd3f9fc6ccf308"
Signature · 1 line
2.13.0
author
#5 lore raw

Re: [PATCH 05/15] libidn: Fix hardened build with musl

Armin

Please backport this patch to pyro as well.

Quoted 212 lines · Khem Raj

Re-introduce the patch that was deemed to be not needed but it infact is still needed with musl

---
 .../libidn/0001-idn-format-security-warnings.patch | 181 +++++++++++++++++++++
 meta/recipes-extended/libidn/libidn_1.33.bb        |   1 +
 2 files changed, 182 insertions(+)
 create mode 100644 meta/recipes-extended/libidn/libidn/0001-idn-format-security-warnings.patch
meta/recipes-extended/libidn/libidn/0001-idn-format-security-warnings.patch new file +181 -0
new file mode 100644
index 0000000000..5adc7d9fd9
@@ -0,0 +1,181 @@
+From 82f98dcbc429bbe89a9837c533cbcbc02e77c790 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <[email protected]>
+Date: Tue, 28 Jun 2016 12:43:31 +0100
+Subject: [PATCH] idn: fix printf() format security warnings
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+| ../../libidn-1.32/src/idn.c: In function 'main':
+| ../../libidn-1.32/src/idn.c:172:7: error: format not a string literal and no format arguments [-Werror=format-security]
+|        error (0, 0, _("only one of -s, -e, -d, -a, -u or -n can be specified"));
+|        ^~~~~
+| ../../libidn-1.32/src/idn.c:187:5: error: format not a string literal and no format arguments [-Werror=format-security]
+|      fprintf (stderr, _("Type each input string on a line by itself, "
+|      ^~~~~~~
+| ../../libidn-1.32/src/idn.c:202:4: error: format not a string literal and no format arguments [-Werror=format-security]
+|     error (EXIT_FAILURE, errno, _("input error"));
+|     ^~~~~
+| ../../libidn-1.32/src/idn.c:220:8: error: format not a string literal and no format arguments [-Werror=format-security]
+|         _("could not convert from UTF-8 to UCS-4"));
+|         ^
+| ../../libidn-1.32/src/idn.c:245:8: error: format not a string literal and no format arguments [-Werror=format-security]
+|         _("could not convert from UTF-8 to UCS-4"));
+|         ^
+| ../../libidn-1.32/src/idn.c:281:6: error: format not a string literal and no format arguments [-Werror=format-security]
+|       _("could not convert from UTF-8 to UCS-4"));
+|       ^
+| ../../libidn-1.32/src/idn.c:340:6: error: format not a string literal and no format arguments [-Werror=format-security]
+|       _("could not convert from UCS-4 to UTF-8"));
+|       ^
+| ../../libidn-1.32/src/idn.c:364:6: error: format not a string literal and no format arguments [-Werror=format-security]
+|       _("could not convert from UCS-4 to UTF-8"));
+|       ^
+| ../../libidn-1.32/src/idn.c:442:8: error: format not a string literal and no format arguments [-Werror=format-security]
+|         _("could not convert from UCS-4 to UTF-8"));
+|         ^
+| ../../libidn-1.32/src/idn.c:498:6: error: format not a string literal and no format arguments [-Werror=format-security]
+|       _("could not convert from UTF-8 to UCS-4"));
+|       ^
+| ../../libidn-1.32/src/idn.c:527:5: error: format not a string literal and no format arguments [-Werror=format-security]
+|      _("could not convert from UTF-8 to UCS-4"));
+|      ^
+| ../../libidn-1.32/src/idn.c:540:6: error: format not a string literal and no format arguments [-Werror=format-security]
+|       error (EXIT_FAILURE, 0, _("could not do NFKC normalization"));
+|       ^~~~~
+| ../../libidn-1.32/src/idn.c:551:5: error: format not a string literal and no format arguments [-Werror=format-security]
+|      _("could not convert from UTF-8 to UCS-4"));
+|      ^
+
+Signed-off-by: André Draszik <[email protected]>
+---
+Upstream-Status: Pending
+
+ src/idn.c | 27 ++++++++++++++-------------
+ 1 file changed, 14 insertions(+), 13 deletions(-)
+
+diff --git a/src/idn.c b/src/idn.c
+index be1c7d1..68e4291 100644
+--- a/src/idn.c
++++ b/src/idn.c
+@@ -170,7 +170,7 @@ main (int argc, char *argv[])
+       (args_info.idna_to_unicode_given ? 1 : 0) +
+       (args_info.nfkc_given ? 1 : 0) != 1)
+     {
+-      error (0, 0, _("only one of -s, -e, -d, -a, -u or -n can be specified"));
++      error (0, 0, "%s", _("only one of -s, -e, -d, -a, -u or -n can be specified"));
+       usage (EXIT_FAILURE);
+     }
+
+@@ -185,7 +185,7 @@ main (int argc, char *argv[])
+   if (!args_info.quiet_given
+       && args_info.inputs_num == 0
+       && isatty (fileno (stdin)))
+-    fprintf (stderr, _("Type each input string on a line by itself, "
++    fprintf (stderr, "%s", _("Type each input string on a line by itself, "
+                      "terminated by a newline character.\n"));
+
+   do
+@@ -197,7 +197,7 @@ main (int argc, char *argv[])
+         if (feof (stdin))
+           break;
+
+-        error (EXIT_FAILURE, errno, _("input error"));
++        error (EXIT_FAILURE, errno, "%s", _("input error"));
+       }
+
+       if (strlen (line) > 0)
+@@ -215,7 +215,7 @@ main (int argc, char *argv[])
+         if (!q)
+           {
+             free (p);
+-            error (EXIT_FAILURE, 0,
++            error (EXIT_FAILURE, 0, "%s",
+                    _("could not convert from UTF-8 to UCS-4"));
+           }
+
+@@ -240,7 +240,7 @@ main (int argc, char *argv[])
+         if (!q)
+           {
+             free (r);
+-            error (EXIT_FAILURE, 0,
++            error (EXIT_FAILURE, 0, "%s",
+                    _("could not convert from UTF-8 to UCS-4"));
+           }
+
+@@ -277,7 +277,7 @@ main (int argc, char *argv[])
+         q = stringprep_utf8_to_ucs4 (p, -1, &len);
+         free (p);
+         if (!q)
+-          error (EXIT_FAILURE, 0,
++          error (EXIT_FAILURE, 0, "%s",
+                  _("could not convert from UTF-8 to UCS-4"));
+
+         if (args_info.debug_given)
+@@ -336,7 +336,7 @@ main (int argc, char *argv[])
+         r = stringprep_ucs4_to_utf8 (q, -1, NULL, NULL);
+         free (q);
+         if (!r)
+-          error (EXIT_FAILURE, 0,
++          error (EXIT_FAILURE, 0, "%s",
+                  _("could not convert from UCS-4 to UTF-8"));
+
+         p = stringprep_utf8_to_locale (r);
+@@ -360,7 +360,7 @@ main (int argc, char *argv[])
+         q = stringprep_utf8_to_ucs4 (p, -1, NULL);
+         free (p);
+         if (!q)
+-          error (EXIT_FAILURE, 0,
++          error (EXIT_FAILURE, 0, "%s",
+                  _("could not convert from UCS-4 to UTF-8"));
+
+         if (args_info.debug_given)
+@@ -438,7 +438,7 @@ main (int argc, char *argv[])
+         if (!q)
+           {
+             free (p);
+-            error (EXIT_FAILURE, 0,
++            error (EXIT_FAILURE, 0, "%s",
+                    _("could not convert from UCS-4 to UTF-8"));
+           }
+
+@@ -494,7 +494,7 @@ main (int argc, char *argv[])
+         r = stringprep_ucs4_to_utf8 (q, -1, NULL, NULL);
+         free (q);
+         if (!r)
+-          error (EXIT_FAILURE, 0,
++          error (EXIT_FAILURE, 0, "%s",
+                  _("could not convert from UTF-8 to UCS-4"));
+
+         p = stringprep_utf8_to_locale (r);
+@@ -523,7 +523,7 @@ main (int argc, char *argv[])
+             if (!q)
+               {
+                 free (p);
+-                error (EXIT_FAILURE, 0,
++                error (EXIT_FAILURE, 0, "%s",
+                        _("could not convert from UTF-8 to UCS-4"));
+               }
+
+@@ -537,7 +537,8 @@ main (int argc, char *argv[])
+         r = stringprep_utf8_nfkc_normalize (p, -1);
+         free (p);
+         if (!r)
+-          error (EXIT_FAILURE, 0, _("could not do NFKC normalization"));
++          error (EXIT_FAILURE, 0, "%s",
++                 _("could not do NFKC normalization"));
+
+         if (args_info.debug_given)
+           {
+@@ -547,7 +548,7 @@ main (int argc, char *argv[])
+             if (!q)
+               {
+                 free (r);
+-                error (EXIT_FAILURE, 0,
++                error (EXIT_FAILURE, 0, "%s",
+                        _("could not convert from UTF-8 to UCS-4"));
+               }
+
+--
+2.8.1
+
meta/recipes-extended/libidn/libidn_1.33.bb +1 -1
index 109cc7f3f5..9e8bdbae18 100644
@@ -20,6 +20,7 @@ SRC_URI = "${GNU_MIRROR}/libidn/${BPN}-${PV}.tar.gz \
            file://dont-depend-on-help2man.patch \
            file://0001-idn-fix-printf-format-security-warnings.patch \
            file://gcc7-compatibility.patch \
+           file://0001-idn-format-security-warnings.patch \
 "
 
 SRC_URI[md5sum] = "a9aa7e003665de9c82bd3f9fc6ccf308"
--

2.13.0

author
#6 lore raw

PATCH 6/15 libgcrypt: Do not restrict to ARM ISA

In reply to Khem Raj

This works ok with thumb2 as well now a days
It was added in 2006
http://git.openembedded.org/openembedded/commit/?id=037b00e3d629962e8d2bc4fcc944c9ecf9a240be

---
 meta/recipes-support/libgcrypt/libgcrypt.inc | 2 --
 1 file changed, 2 deletions(-)
meta/recipes-support/libgcrypt/libgcrypt.inc +0 -2
index 84c1cc018b..3c7e89aa92 100644
@@ -47,6 +47,4 @@ PACKAGES =+ "dumpsexp-dev"
 FILES_${PN}-dev += "${bindir}/hmac256"
 FILES_dumpsexp-dev += "${bindir}/dumpsexp"
 
-ARM_INSTRUCTION_SET = "arm"
-
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.13.0
author
#7 lore raw

PATCH 7/15 webkitgtk: Fix build for armv5

In reply to Khem Raj

Detect atomics during configure

---
 .../detect-atomics-during-configure.patch          | 34 ++++++++++++++++++++++
 meta/recipes-sato/webkit/webkitgtk_2.16.1.bb       |  1 +
 2 files changed, 35 insertions(+)
 create mode 100644 meta/recipes-sato/webkit/webkitgtk/detect-atomics-during-configure.patch
meta/recipes-sato/webkit/webkitgtk/detect-atomics-during-configure.patch new file +34 -0
new file mode 100644
index 0000000000..12836f28f2
@@ -0,0 +1,34 @@
+Taken from
+https://bugs.webkit.org/show_bug.cgi?id=161900
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <[email protected]>
+
+Index: webkitgtk-2.16.1/Source/WTF/wtf/CMakeLists.txt
+===================================================================
+--- webkitgtk-2.16.1.orig/Source/WTF/wtf/CMakeLists.txt
++++ webkitgtk-2.16.1/Source/WTF/wtf/CMakeLists.txt
+@@ -182,7 +182,6 @@ set(WTF_HEADERS
+ 
+ set(WTF_SOURCES
+     Assertions.cpp
+-    Atomics.cpp
+     AutomaticThread.cpp
+     BitVector.cpp
+     ClockType.cpp
+@@ -301,6 +300,15 @@ if (NOT USE_SYSTEM_MALLOC)
+     list(APPEND WTF_LIBRARIES bmalloc)
+ endif ()
+ 
++file(WRITE ${CMAKE_BINARY_DIR}/test_atomics.cpp
++     "int main(void)\n"
++     "{ long long x = 1; return (int) __sync_add_and_fetch_8(&x, 1); }\n")
++try_compile(ATOMICS_BUILD_SUCCEEDED ${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}/test_atomics.cpp)
++if (NOT ATOMICS_BUILD_SUCCEEDED)
++    list(APPEND WTF_SOURCES Atomics.cpp)
++endif ()
++file(REMOVE ${CMAKE_BINARY_DIR}/test_atomics.cpp)
++
+ list(APPEND WTF_SOURCES
+     unicode/icu/CollatorICU.cpp
+ )
meta/recipes-sato/webkit/webkitgtk_2.16.1.bb +1 -0
index 0931a50636..a52d93cfbe 100644
@@ -20,6 +20,7 @@ SRC_URI = "http://www.webkitgtk.org/releases/${BPN}-${PV}.tar.xz \
            file://x32_support.patch \
            file://cross-compile.patch \
            file://gcc7.patch \
+           file://detect-atomics-during-configure.patch \
            "
 SRC_URI[md5sum] = "d3bcf995a667fd9febb9ab991acf0ca7"
 SRC_URI[sha256sum] = "eb92383232328ce655b703c64370ed3795662479719ad1b4a869ed46769d2945"
Signature · 1 line
2.13.0
author
#8 lore raw

PATCH 8/15 xkeyboard-config: Enable nls support explicitly

In reply to Khem Raj

Helps compile when distros disable NLS

---
 meta/recipes-graphics/xorg-lib/xkeyboard-config_2.20.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-graphics/xorg-lib/xkeyboard-config_2.20.bb +2 -0
index d00904df21..d308e9b07b 100644
@@ -19,6 +19,8 @@ SRC_URI[sha256sum] = "d1bfc72553c4e3ef1cd6f13eec0488cf940498b612ab8a0b362e7090c9
 SECTION = "x11/libs"
 DEPENDS = "intltool-native virtual/gettext util-macros libxslt-native"
 
+USE_NLS = "yes"
+
 EXTRA_OECONF = "--with-xkb-rules-symlink=xorg --disable-runtime-deps"
 
 FILES_${PN} += "${datadir}/X11/xkb"
Signature · 1 line
2.13.0
author
#9 lore raw

Re: [PATCH 08/15] xkeyboard-config: Enable nls support explicitly

Drop this one, I have sent a v2

Quoted 23 lines · Khem Raj

Helps compile when distros disable NLS

---
 meta/recipes-graphics/xorg-lib/xkeyboard-config_2.20.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-graphics/xorg-lib/xkeyboard-config_2.20.bb +2 -1
index d00904df21..d308e9b07b 100644
@@ -19,6 +19,8 @@ SRC_URI[sha256sum] = "d1bfc72553c4e3ef1cd6f13eec0488cf940498b612ab8a0b362e7090c9
 SECTION = "x11/libs"
 DEPENDS = "intltool-native virtual/gettext util-macros libxslt-native"
 
+USE_NLS = "yes"
+
 EXTRA_OECONF = "--with-xkb-rules-symlink=xorg --disable-runtime-deps"
 
 FILES_${PN} += "${datadir}/X11/xkb"
--

2.13.0

author
#10 lore raw

PATCH 9/15 systemd: Make knobs for compiler specific nn, ar, ranlib

In reply to Khem Raj

These are used with LTO enabled so it has to be
compiler specific, making it weak default, makes
clang to override them when enabled.

---
 meta/recipes-core/systemd/systemd_232.bb | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
meta/recipes-core/systemd/systemd_232.bb +7 -3
index 398cb46f0d..8c778ae778 100644
@@ -160,10 +160,14 @@ CFLAGS .= "${@bb.utils.contains('PACKAGECONFIG', 'valgrind', ' -DVALGRIND=1', ''
 # disable problematic GCC 5.2 optimizations [YOCTO #8291]
 FULL_OPTIMIZATION_append_arm = " -fno-schedule-insns -fno-schedule-insns2"
 
+COMPILER_NM ?= "${HOST_PREFIX}gcc-nm"
+COMPILER_AR ?= "${HOST_PREFIX}gcc-ar"
+COMPILER_RANLIB ?= "${HOST_PREFIX}gcc-ranlib"
+
 do_configure_prepend() {
-	export NM="${HOST_PREFIX}gcc-nm"
-	export AR="${HOST_PREFIX}gcc-ar"
-	export RANLIB="${HOST_PREFIX}gcc-ranlib"
+	export NM="${COMPILER_NM}"
+	export AR="${COMPILER_AR}"
+	export RANLIB="${COMPILER_RANLIB}"
 	export KMOD="${base_bindir}/kmod"
 	if [ -d ${S}/units.pre_sed ] ; then
 		cp -r ${S}/units.pre_sed ${S}/units
Signature · 1 line
2.13.0
author
#11 lore raw

PATCH 10/15 db: Add --tag=CC to cross libtool invocation

In reply to Khem Raj

Fixes errors like

libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'

---
 meta/recipes-support/db/db_5.3.28.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-support/db/db_5.3.28.bb +1 -1
index 26065bbb0b..bbf52605f8 100644
@@ -72,7 +72,7 @@ MUTEX = ""
 MUTEX_arm = "${ARM_MUTEX}"
 MUTEX_armeb = "${ARM_MUTEX}"
 EXTRA_OECONF += "${MUTEX} STRIP=true"
-EXTRA_OEMAKE_append_class-target = " LIBTOOL=${STAGING_BINDIR_CROSS}/${HOST_SYS}-libtool"
+EXTRA_OEMAKE_append_class-target = " LIBTOOL='${STAGING_BINDIR_CROSS}/${HOST_SYS}-libtool --tag=CC'"
 
 AUTOTOOLS_SCRIPT_PATH = "${S}/dist"
 
Signature · 1 line
2.13.0
#12 lore raw

Re: [PATCH 10/15] db: Add --tag=CC to cross libtool invocation

Quoted 3 lines · Khem Raj

+EXTRA_OEMAKE_append_class-target = " LIBTOOL='${STAGING_BINDIR_CROSS}/${HOST_SYS}-libtool --tag=CC'"

packages/corei7-64-poky-linux/db/db-cxx: RDEPENDS: removed all items "libstdc++ (['>= 6.3.0'])"

This doesn't seem right (happy to be told otherwise).

Ross

author
#13 lore raw

Re: [PATCH 10/15] db: Add --tag=CC to cross libtool invocation

Quoted 12 lines · Ross
Quoted 3 lines · Khem Raj

+EXTRA_OEMAKE_append_class-target = " LIBTOOL='${STAGING_BINDIR_CROSS}/${HOST_SYS}-libtool --tag=CC'"

packages/corei7-64-poky-linux/db/db-cxx: RDEPENDS: removed all items "libstdc++ (['>= 6.3.0'])"

This doesn't seem right (happy to be told otherwise).

I think you are right we have c++ here can you try with --tag=CXX

Quoted 3 lines

Ross

#14 lore raw

Re: [PATCH 10/15] db: Add --tag=CC to cross libtool invocation

Quoted 3 lines · Khem Raj

I think you are right we have c++ here can you try with --tag=CXX

Quoted 1 line

packages/corei7-64-poky-linux/db/db: RDEPENDS: added "libgcc (['>= 6.3.0']) libstdc++ (['>= 6.3.0'])"

That's worse! :)

Ross

author
#15 lore raw

Re: [PATCH 10/15] db: Add --tag=CC to cross libtool invocation

Quoted 4 lines · Ross

packages/corei7-64-poky-linux/db/db: RDEPENDS: added "libgcc (['>= 6.3.0']) libstdc++ (['>= 6.3.0'])"

That's worse! :)

no its better, it reintroduced the deps and this time also on libgcc which probably was latent. it worked because someone else pulled libgcc into image. can you check readelf -d | grep DT_NEEDED output from bins/solibs in db package. ?

#16 lore raw

Re: [PATCH 10/15] db: Add --tag=CC to cross libtool invocation

Quoted 5 lines · Khem Raj

no its better, it reintroduced the deps and this time also on libgcc which probably was latent. it worked because someone else pulled libgcc into image. can you check readelf -d | grep DT_NEEDED output from bins/solibs in db package. ?

Well, and libstdc++ to the not-C++ bit.

I'll do the readelf shortly.

Ross

#17 lore raw

Re: [PATCH 10/15] db: Add --tag=CC to cross libtool invocation

In reply to Khem Raj
Quoted 5 lines · Khem Raj

no its better, it reintroduced the deps and this time also on libgcc which probably was latent. it worked because someone else pulled libgcc into image. can you check readelf -d | grep DT_NEEDED output from bins/solibs in db package. ?

Using --tag=CC:

$ readelf -d libdb.so |grep NEEDED
 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
$ readelf -d libdb_cxx.so |grep NEEDED
 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]

Using --tag=CXX:

$ readelf -d libdb.so |grep NEEDED
 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libstdc++.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
$ readelf -d libdb_cxx.so |grep NEEDED
 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libstdc++.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]

Ross

author
#18 lore raw

Re: [PATCH 10/15] db: Add --tag=CC to cross libtool invocation

Quoted 21 lines · Ross
Quoted 5 lines · Khem Raj

no its better, it reintroduced the deps and this time also on libgcc which probably was latent. it worked because someone else pulled libgcc into image. can you check readelf -d | grep DT_NEEDED output from bins/solibs in db package. ?

Using --tag=CC:

$ readelf -d libdb.so |grep NEEDED
 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
$ readelf -d libdb_cxx.so |grep NEEDED
 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]

Using --tag=CXX:

Quoted 11 lines
$ readelf -d libdb.so |grep NEEDED
 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libstdc++.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
$ readelf -d libdb_cxx.so |grep NEEDED
 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libstdc++.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]

So I think we need to add the --tag inside the component configuration itself

Quoted 1 line

Ross

author
#19 lore raw

PATCH 11/15 linux-yocto: Enable drm by default

In reply to Khem Raj

Helps in running XFCE on virtualbox with HD

---
 meta/recipes-kernel/linux/linux-yocto/drm.cfg | 10 ++++++++++
 meta/recipes-kernel/linux/linux-yocto_4.9.bb  |  2 ++
 2 files changed, 12 insertions(+)
 create mode 100644 meta/recipes-kernel/linux/linux-yocto/drm.cfg
meta/recipes-kernel/linux/linux-yocto/drm.cfg new file +10 -0
new file mode 100644
index 0000000000..5c694ccc57
@@ -0,0 +1,10 @@
+CONFIG_DRM=y
+CONFIG_DRM_TTM=y
+CONFIG_DRM_VMWGFX=y
+CONFIG_DRM_VMWGFX_FBCON=y
+CONFIG_FB=y
+CONFIG_FB_CFB_FILLRECT=y
+CONFIG_FB_CFB_COPYAREA=y
+CONFIG_FB_CFB_IMAGEBLIT=y
+CONFIG_FB_DEFERRED_IO=y
+CONFIG_FB_MODE_HELPERS=y
meta/recipes-kernel/linux/linux-yocto_4.9.bb +2 -0
index 309d4a7a4f..011ba3bbe6 100644
@@ -26,6 +26,8 @@ SRC_URI = "git://git.yoctoproject.org/linux-yocto-4.9.git;name=machine;branch=${
 
 LINUX_VERSION ?= "4.9.27"
 
+SRC_URI += "file://drm.cfg"
+
 PV = "${LINUX_VERSION}+git${SRCPV}"
 
 KMETA = "kernel-meta"
Signature · 1 line
2.13.0
#20 lore raw

Re: [PATCH 11/15] linux-yocto: Enable drm by default

Quoted 32 lines · Khem Raj

Helps in running XFCE on virtualbox with HD

---
 meta/recipes-kernel/linux/linux-yocto/drm.cfg | 10 ++++++++++
 meta/recipes-kernel/linux/linux-yocto_4.9.bb  |  2 ++
 2 files changed, 12 insertions(+)
 create mode 100644 meta/recipes-kernel/linux/linux-yocto/drm.cfg
meta/recipes-kernel/linux/linux-yocto/drm.cfg new file +10 -0
new file mode 100644
index 0000000000..5c694ccc57
@@ -0,0 +1,10 @@
+CONFIG_DRM=y
+CONFIG_DRM_TTM=y
+CONFIG_DRM_VMWGFX=y
+CONFIG_DRM_VMWGFX_FBCON=y
+CONFIG_FB=y
+CONFIG_FB_CFB_FILLRECT=y
+CONFIG_FB_CFB_COPYAREA=y
+CONFIG_FB_CFB_IMAGEBLIT=y
+CONFIG_FB_DEFERRED_IO=y
+CONFIG_FB_MODE_HELPERS=y
meta/recipes-kernel/linux/linux-yocto_4.9.bb +0 -0
index 309d4a7a4f..011ba3bbe6 100644

meta/recipes-kernel/linux/linux-yocto_4.9.bb SRC_URI = "git://git.yoctoproject.org/ · line 31

Quoted 6 lines
meta/recipes-kernel/linux/linux-yocto_4.9.bb +1 -0
@@ -26,6 +26,8 @@ SRC_URI = "git://git.yoctoproject.org/
 linux-yocto-4.9.git;name=machine;branch=${
 
 LINUX_VERSION ?= "4.9.27"
 
+SRC_URI += "file://drm.cfg"
 

If anything gets added to the default configurations, they need to go into the kernel-cache
and then be included by the relevant kernel types there.

If you want, I can take care of switching things to that format.

Bruce

Quoted 13 lines
meta/recipes-kernel/linux/linux-yocto_4.9.bb +1 -0
+
 PV = "${LINUX_VERSION}+git${SRCPV}"

KMETA = "kernel-meta"
--
2.13.0

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
author
#21 lore raw

Re: [PATCH 11/15] linux-yocto: Enable drm by default

Quoted 10 lines
Quoted 1 line

+SRC_URI += "file://drm.cfg"

If anything gets added to the default configurations, they need to go into the kernel-cache
and then be included by the relevant kernel types there.

If you want, I can take care of switching things to that format.

yes please.

#22 lore raw

Re: [PATCH 11/15] linux-yocto: Enable drm by default

Quoted 5 lines · Khem Raj
Quoted 5 lines
Quoted 1 line

+SRC_URI += "file://drm.cfg"

If anything gets added to the default configurations, they need to go

Quoted 9 lines

into

Quoted 5 lines

the kernel-cache
and then be included by the relevant kernel types there.

If you want, I can take care of switching things to that format.

yes please.

Will do. I'll make it available to all active kernel versions + future ones.

Cheers,

Bruce

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
#23 lore raw

Re: [PATCH 11/15] linux-yocto: Enable drm by default

Quoted 13 lines · Bruce Ashfield
Quoted 9 lines · Khem Raj
Quoted 5 lines
Quoted 1 line

+SRC_URI += "file://drm.cfg"

If anything gets added to the default configurations, they need to go

into

Quoted 3 lines

the kernel-cache
and then be included by the relevant kernel types there.

Quoted 9 lines
Quoted 5 lines
Quoted 2 lines

If you want, I can take care of switching things to that format.

yes please.

Will do. I'll make it available to all active kernel versions + future ones.

As it turns out, we already have a similar fragment for vmware guests:

cfg/vmware-guest.cfg

--------------------

CONFIG_VMWARE_BALLOON=m

CONFIG_VMWARE_PVSCSI=y

CONFIG_VMWARE_VMCI=m

CONFIG_VSOCKETS=m

CONFIG_VMWARE_VMCI_VSOCKETS=m

CONFIG_VMXNET3=y

CONFIG_DRM_VMWGFX=m

CONFIG_DRM_VMWGFX_FBCON=y

CONFIG_FUSION=y

CONFIG_FUSION_SPI=y

CONFIG_FUSION_FC=y

CONFIG_FUSION_SAS=y

CONFIG_FUSION_MAX_SGE=128

CONFIG_FUSION_CTL=y

CONFIG_FUSION_LAN=y

CONFIG_FUSION_LOGGING=y

CONFIG_SCSI_MPT2SAS=y

CONFIG_SCSI_MPT2SAS_MAX_SGE=128

CONFIG_SCSI_MPT2SAS_LOGGING=y

CONFIG_SCSI_MPT3SAS=y

CONFIG_SCSI_MPT3SAS_MAX_SGE=128

CONFIG_SCSI_MPT3SAS_LOGGING=y
-------------

To stay consistent with that naming, I'll call this virtual-box-guest.cfg, and it can be enabled
via KERNEL_FEATURES when needed.

I'm hesitant to globally enable it, since we don't need those modules on all linux-yocto
kernels, just ones that are going to run on virtual box.

I could enable them for qemux86*, since those already have virtio configs enabled by
default and these have a similar goal.

Thoughts ? I'd like to make sure that sounds reasonable, before spending the time to
make the changes and test.

Bruce

Quoted 10 lines

Cheers,

Bruce

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
author
#24 lore raw

Re: [PATCH 11/15] linux-yocto: Enable drm by default

Quoted 88 lines · Bruce Ashfield
Quoted 14 lines · Bruce Ashfield
Quoted 10 lines · Khem Raj
Quoted 10 lines
Quoted 2 lines

+SRC_URI += "file://drm.cfg"

If anything gets added to the default configurations, they need to go into
the kernel-cache
and then be included by the relevant kernel types there.

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

If you want, I can take care of switching things to that format.

yes please.

Will do. I'll make it available to all active kernel versions + future ones.

As it turns out, we already have a similar fragment for vmware guests:

cfg/vmware-guest.cfg

--------------------

CONFIG_VMWARE_BALLOON=m

CONFIG_VMWARE_PVSCSI=y

CONFIG_VMWARE_VMCI=m

CONFIG_VSOCKETS=m

CONFIG_VMWARE_VMCI_VSOCKETS=m

CONFIG_VMXNET3=y

CONFIG_DRM_VMWGFX=m

CONFIG_DRM_VMWGFX_FBCON=y

CONFIG_FUSION=y

CONFIG_FUSION_SPI=y

CONFIG_FUSION_FC=y

CONFIG_FUSION_SAS=y

CONFIG_FUSION_MAX_SGE=128

CONFIG_FUSION_CTL=y

CONFIG_FUSION_LAN=y

CONFIG_FUSION_LOGGING=y

CONFIG_SCSI_MPT2SAS=y

CONFIG_SCSI_MPT2SAS_MAX_SGE=128

CONFIG_SCSI_MPT2SAS_LOGGING=y

CONFIG_SCSI_MPT3SAS=y

CONFIG_SCSI_MPT3SAS_MAX_SGE=128

CONFIG_SCSI_MPT3SAS_LOGGING=y

-------------

To stay consistent with that naming, I'll call this virtual-box-guest.cfg, and it can be enabled
via KERNEL_FEATURES when needed.

I'm hesitant to globally enable it, since we don't need those modules on all linux-yocto
kernels, just ones that are going to run on virtual box.

Quoted 8 lines

I could enable them for qemux86*, since those already have virtio configs enabled by
default and these have a similar goal.

Thoughts ? I'd like to make sure that sounds reasonable, before spending the time to
make the changes and test.

I would suggest to enable them by default since these are modules they dont impact the size of kernel itself. Then we can use recommends to choose them in machine configs.

Quoted 19 lines

Bruce

Quoted 10 lines

Cheers,

Bruce

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

#25 lore raw

Re: [PATCH 11/15] linux-yocto: Enable drm by default

Quoted 98 lines · Khem Raj
Quoted 3 lines · Bruce Ashfield

On Tue, May 23, 2017 at 3:36 PM, Bruce Ashfield <

[email protected]>

Quoted 71 lines
Quoted 14 lines · wrote:
Quoted 10 lines · Khem Raj
Quoted 10 lines
Quoted 2 lines

+SRC_URI += "file://drm.cfg"

If anything gets added to the default configurations, they need to go into
the kernel-cache
and then be included by the relevant kernel types there.

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

If you want, I can take care of switching things to that format.

yes please.

Will do. I'll make it available to all active kernel versions + future ones.

As it turns out, we already have a similar fragment for vmware guests:

cfg/vmware-guest.cfg

--------------------

CONFIG_VMWARE_BALLOON=m

CONFIG_VMWARE_PVSCSI=y

CONFIG_VMWARE_VMCI=m

CONFIG_VSOCKETS=m

CONFIG_VMWARE_VMCI_VSOCKETS=m

CONFIG_VMXNET3=y

CONFIG_DRM_VMWGFX=m

CONFIG_DRM_VMWGFX_FBCON=y

CONFIG_FUSION=y

CONFIG_FUSION_SPI=y

CONFIG_FUSION_FC=y

CONFIG_FUSION_SAS=y

CONFIG_FUSION_MAX_SGE=128

CONFIG_FUSION_CTL=y

CONFIG_FUSION_LAN=y

CONFIG_FUSION_LOGGING=y

CONFIG_SCSI_MPT2SAS=y

CONFIG_SCSI_MPT2SAS_MAX_SGE=128

CONFIG_SCSI_MPT2SAS_LOGGING=y

CONFIG_SCSI_MPT3SAS=y

Quoted 7 lines

CONFIG_SCSI_MPT3SAS_MAX_SGE=128

CONFIG_SCSI_MPT3SAS_LOGGING=y

-------------

To stay consistent with that naming, I'll call this

virtual-box-guest.cfg,

Quoted 4 lines

and it can be enabled
via KERNEL_FEATURES when needed.

I'm hesitant to globally enable it, since we don't need those modules on

all

Quoted 8 lines

linux-yocto
kernels, just ones that are going to run on virtual box.

I could enable them for qemux86*, since those already have virtio configs enabled by
default and these have a similar goal.

Thoughts ? I'd like to make sure that sounds reasonable, before spending

Quoted 9 lines

the

Quoted 3 lines

time to
make the changes and test.

I would suggest to enable them by default since these are modules they dont impact the size of kernel itself. Then we can use recommends to choose them in machine configs.

We've never done that before, there's hundreds of modules we could turn on just in case, but instead only enable them for machines that can actually use
them.

Many users use the meta package for modules and expect the build to be as minimal as possible.

So I'm balancing both those use cases.

I'll complete the fragment and we can enable it in a second commit to keep the
options open.

Bruce

Quoted 23 lines
Quoted 12 lines

Bruce

Quoted 9 lines

Cheers,

Bruce

--
"Thou shalt not follow the NULL pointer, for chaos and madness await

thee

Quoted 7 lines
Quoted 1 line

at its end"

--
"Thou shalt not follow the NULL pointer, for chaos and madness await

thee at

Quoted 1 line

its end"

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
author
#26 lore raw

PATCH 12/15 iproute2: Fix build error due to missing stdint.h> include

In reply to Khem Raj
---
 ...nclude-stdint.h-explicitly-for-UINT16_MAX.patch | 32 ++++++++++++++++++++++
 .../iproute2/iproute2_4.10.0.bb                    |  1 +
 2 files changed, 33 insertions(+)
 create mode 100644 meta/recipes-connectivity/iproute2/iproute2/0001-include-stdint.h-explicitly-for-UINT16_MAX.patch
meta/recipes-connectivity/iproute2/iproute2/0001-include-stdint.h-explicitly-for-UINT16_MAX.patch new file +32 -0
new file mode 100644
index 0000000000..eb0c0abbab
@@ -0,0 +1,32 @@
+From 3c885d87befc706bb923933b9819de6fe2de897e Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Sat, 20 May 2017 14:03:19 -0700
+Subject: [PATCH] include stdint.h explicitly for UINT16_MAX)
+
+Fixes
+| tc_core.c:190:29: error: 'UINT16_MAX' undeclared (first use in this function); did you mean '__INT16_MAX__'?
+|    if ((sz >> s->size_log) > UINT16_MAX) {
+|                              ^~~~~~~~~~
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+Upstream-Status: Pending
+
+ tc/tc_core.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tc/tc_core.c b/tc/tc_core.c
+index 7bbe0d7..821b741 100644
+--- a/tc/tc_core.c
++++ b/tc/tc_core.c
+@@ -12,6 +12,7 @@
+ 
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <stdint.h>
+ #include <unistd.h>
+ #include <syslog.h>
+ #include <fcntl.h>
+-- 
+2.13.0
+
meta/recipes-connectivity/iproute2/iproute2_4.10.0.bb +1 -0
index a050e8737e..063d467440 100644
@@ -4,6 +4,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/net/${BPN}/${BP}.tar.xz \
            file://configure-cross.patch \
            file://0001-iproute2-de-bash-scripts.patch \
            file://0001-libc-compat.h-add-musl-workaround.patch \
+           file://0001-include-stdint.h-explicitly-for-UINT16_MAX.patch \
           "
 
 SRC_URI[md5sum] = "b94a2b0edefaeac124dc8f5d006931b9"
Signature · 1 line
2.13.0
author
#27 lore raw

PATCH 13/15 nfs-utils: Fix build error due to missing stdint.h> include

In reply to Khem Raj
---
 ...nclude-stdint.h-for-UINT16_MAX-definition.patch | 27 ++++++++++++++++++++++
 .../nfs-utils/nfs-utils_1.3.4.bb                   |  1 +
 2 files changed, 28 insertions(+)
 create mode 100644 meta/recipes-connectivity/nfs-utils/nfs-utils/0001-include-stdint.h-for-UINT16_MAX-definition.patch
meta/recipes-connectivity/nfs-utils/nfs-utils/0001-include-stdint.h-for-UINT16_MAX-definition.patch new file +27 -0
new file mode 100644
index 0000000000..235a2c76fc
@@ -0,0 +1,27 @@
+From 36b48057bce76dced335d67a2894a420967811c9 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Sat, 20 May 2017 14:07:53 -0700
+Subject: [PATCH] include stdint.h for UINT16_MAX definition
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+Upstream-Status: Pending
+
+ support/nsm/rpc.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/support/nsm/rpc.c b/support/nsm/rpc.c
+index 4e5f40e..d91c6ea 100644
+--- a/support/nsm/rpc.c
++++ b/support/nsm/rpc.c
+@@ -40,6 +40,7 @@
+ 
+ #include <time.h>
+ #include <stdbool.h>
++#include <stdint.h>
+ #include <string.h>
+ #include <unistd.h>
+ #include <fcntl.h>
+-- 
+2.13.0
+
meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.4.bb +1 -0
index 4ca9ab2a3d..344695212c 100644
@@ -31,6 +31,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.x
            file://nfs-utils-Do-not-pass-CFLAGS-to-gcc-while-building.patch \
            file://nfs-utils-debianize-start-statd.patch \
            file://bugfix-adjust-statd-service-name.patch \
+           file://0001-include-stdint.h-for-UINT16_MAX-definition.patch \
 "
 
 SRC_URI[md5sum] = "54e4119043ec8507a2a0e054cf2889a4"
Signature · 1 line
2.13.0
author
#28 lore raw

PATCH 14/15 libtirpc: Fix build error due to missing stdint.h> include

In reply to Khem Raj
---
 .../0001-include-stdint.h-for-uintptr_t.patch      | 32 ++++++++++++++++++++++
 meta/recipes-extended/libtirpc/libtirpc_1.0.1.bb   |  1 +
 2 files changed, 33 insertions(+)
 create mode 100644 meta/recipes-extended/libtirpc/libtirpc/0001-include-stdint.h-for-uintptr_t.patch
meta/recipes-extended/libtirpc/libtirpc/0001-include-stdint.h-for-uintptr_t.patch new file +32 -0
new file mode 100644
index 0000000000..1fe9833afe
@@ -0,0 +1,32 @@
+From b80d3b573c1dade2b29b22f8acc3b9e2c7ddefd7 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Sat, 20 May 2017 13:36:43 -0700
+Subject: [PATCH] include stdint.h for uintptr_t
+
+Fixes
+| ../../libtirpc-1.0.1/src/xdr_sizeof.c:93:13: error: 'uintptr_t' undeclared (first use in this function); did you mean '__intptr_t'?
+|   if (len < (uintptr_t)xdrs->x_base) {
+|              ^~~~~~~~~
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+Upstream-Status: Pending
+
+ src/xdr_sizeof.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/xdr_sizeof.c b/src/xdr_sizeof.c
+index d23fbd1..79d6707 100644
+--- a/src/xdr_sizeof.c
++++ b/src/xdr_sizeof.c
+@@ -39,6 +39,7 @@
+ #include <rpc/xdr.h>
+ #include <sys/types.h>
+ #include <stdlib.h>
++#include <stdint.h>
+ #include "un-namespace.h"
+ 
+ /* ARGSUSED */
+-- 
+2.13.0
+
meta/recipes-extended/libtirpc/libtirpc_1.0.1.bb +1 -0
index 662c8999c2..5518fb3c78 100644
@@ -15,6 +15,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.bz2;name=libtirpc \
            file://libtirpc-0.2.1-fortify.patch \
            file://export_key_secretkey_is_set.patch \
            file://0001-replace-__bzero-with-memset-API.patch \
+           file://0001-include-stdint.h-for-uintptr_t.patch \
            "
 
 SRC_URI_append_libc-uclibc = " file://remove-des-functionality.patch \
Signature · 1 line
2.13.0
author
#29 lore raw

PATCH 15/15 nspr: Fix build error due to missing stdint.h> include

In reply to Khem Raj
---
 ...int.h-for-SSIZE_MAX-and-SIZE_MAX-definiti.patch | 30 ++++++++++++++++++++++
 meta/recipes-support/nspr/nspr_4.14.bb             |  1 +
 2 files changed, 31 insertions(+)
 create mode 100644 meta/recipes-support/nspr/nspr/0001-include-stdint.h-for-SSIZE_MAX-and-SIZE_MAX-definiti.patch
meta/recipes-support/nspr/nspr/0001-include-stdint.h-for-SSIZE_MAX-and-SIZE_MAX-definiti.patch new file +30 -0
new file mode 100644
index 0000000000..b3bdd8e08d
@@ -0,0 +1,30 @@
+From f7551ec58e2f0a892295e0c2a650083101e12c54 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Sat, 20 May 2017 13:24:26 -0700
+Subject: [PATCH] include stdint.h for SSIZE_MAX and SIZE_MAX definitions
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+Upstream-Status: Pending
+
+ pr/tests/prfz.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/pr/tests/prfz.c b/pr/tests/prfz.c
+index 0c5a432..9c17590 100644
+--- a/pr/tests/prfz.c
++++ b/pr/tests/prfz.c
+@@ -10,7 +10,9 @@
+ #include <sys/types.h>
+ #include <limits.h>
+ #include <string.h>
+-
++#ifdef XP_UNIX
++#include <stdint.h>
++#endif
+ int
+ main(int argc, char **argv)
+ {
+-- 
+2.13.0
+
meta/recipes-support/nspr/nspr_4.14.bb +1 -0
index f5ce91c754..6b47820c06 100644
@@ -10,6 +10,7 @@ SRC_URI = "http://ftp.mozilla.org/pub/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz
            file://fix-build-on-x86_64.patch \
            file://remove-srcdir-from-configure-in.patch \
            file://0002-Add-nios2-support.patch \
+           file://0001-include-stdint.h-for-SSIZE_MAX-and-SIZE_MAX-definiti.patch \
            file://nspr.pc.in \
 "
 
Signature · 1 line
2.13.0