[OE-core] ✗ patchtest: failure for "musl: Update to latest master..." and 6 more
== Series Details == Series: "musl: Update to latest master..." and 6 more Revision: 1 URL : https://patchwork.openembedded.org/series/6707/ State : failure == Summary == Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on the proposed series by patchtest resulting in the following failures: * Issue Added patch file is missing Upstream-Status in the header [test_upstream_status_presence] Suggested fixAdd Upstream-Status: to the header of meta/recipes-extended/libnsl/libnsl2/0001-include-sys-cdefs.h-explicitly.patch (possible values: Pending, Submitted, Accepted, Backport, Denied, Inappropriate) If you believe any of these test results are incorrect, please reply to the mailing list (openembedded-core@lists.openembedded.org) raising your concerns. Otherwise we would appreciate you correcting the issues and submitting a new version of the patchset if applicable. Please ensure you add/increment the version number when sending the new version (i.e. [PATCH] -> [PATCH v2] -> [PATCH v3] -> ...). --- Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH 6/7] libidn: Fix hardened build with musl
Re-introduce the patch that was deemed to be not needed but it infact is still needed with musl Signed-off-by: Khem Raj --- .../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 diff --git a/meta/recipes-extended/libidn/libidn/0001-idn-format-security-warnings.patch b/meta/recipes-extended/libidn/libidn/0001-idn-format-security-warnings.patch new file mode 100644 index 00..5adc7d9fd9 --- /dev/null +++ b/meta/recipes-extended/libidn/libidn/0001-idn-format-security-warnings.patch @@ -0,0 +1,181 @@ +From 82f98dcbc429bbe89a9837c533cbcbc02e77c790 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andr=C3=A9=20Draszik?= +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 +--- +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) +
[OE-core] [PATCH 3/7] grub: Update to 2.02
Drop git recipe, add arm bits to 2.02 itself Signed-off-by: Khem Raj --- ...-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 diff --git a/meta/recipes-bsp/grub/grub-git/0001-Disable-mfpmath-sse-as-well-when-SSE-is-disabled.patch b/meta/recipes-bsp/grub/files/0001-Disable-mfpmath-sse-as-well-when-SSE-is-disabled.patch 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 diff --git a/meta/recip
[OE-core] [PATCH 7/7] linux-yocto_4.1.bb: Fix build with gcc7
Signed-off-by: Khem Raj --- ...ve-up-on-gcc-ilog2-constant-optimizations.patch | 134 + meta/recipes-kernel/linux/linux-yocto_4.1.bb | 2 + 2 files changed, 136 insertions(+) create mode 100644 meta/recipes-kernel/linux/linux-yocto/0001-give-up-on-gcc-ilog2-constant-optimizations.patch diff --git a/meta/recipes-kernel/linux/linux-yocto/0001-give-up-on-gcc-ilog2-constant-optimizations.patch b/meta/recipes-kernel/linux/linux-yocto/0001-give-up-on-gcc-ilog2-constant-optimizations.patch new file mode 100644 index 00..35c4484f20 --- /dev/null +++ b/meta/recipes-kernel/linux/linux-yocto/0001-give-up-on-gcc-ilog2-constant-optimizations.patch @@ -0,0 +1,134 @@ +From 273bf720b7acb5f808337fe57c5f400422a30051 Mon Sep 17 00:00:00 2001 +From: Linus Torvalds +Date: Thu, 2 Mar 2017 12:17:22 -0800 +Subject: [PATCH] give up on gcc ilog2() constant optimizations + +commit 474c90156c8dcc2fa815e6716cc9394d7930cb9c upstream. + +gcc-7 has an "optimization" pass that completely screws up, and +generates the code expansion for the (impossible) case of calling +ilog2() with a zero constant, even when the code gcc compiles does not +actually have a zero constant. + +And we try to generate a compile-time error for anybody doing ilog2() on +a constant where that doesn't make sense (be it zero or negative). So +now gcc7 will fail the build due to our sanity checking, because it +created that constant-zero case that didn't actually exist in the source +code. + +There's a whole long discussion on the kernel mailing about how to work +around this gcc bug. The gcc people themselevs have discussed their +"feature" in + + https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72785 + +but it's all water under the bridge, because while it looked at one +point like it would be solved by the time gcc7 was released, that was +not to be. + +So now we have to deal with this compiler braindamage. + +And the only simple approach seems to be to just delete the code that +tries to warn about bad uses of ilog2(). + +So now "ilog2()" will just return 0 not just for the value 1, but for +any non-positive value too. + +It's not like I can recall anybody having ever actually tried to use +this function on any invalid value, but maybe the sanity check just +meant that such code never made it out in public. + +Reported-by: Laura Abbott +Cc: John Stultz , +Cc: Thomas Gleixner +Cc: Ard Biesheuvel +Signed-off-by: Linus Torvalds +Cc: Jiri Slaby +Signed-off-by: Greg Kroah-Hartman +Signed-off-by: Khem Raj +--- +Upstream-Status: Backport + + include/linux/log2.h | 13 ++--- + tools/include/linux/log2.h | 13 ++--- + 2 files changed, 4 insertions(+), 22 deletions(-) + +diff --git a/include/linux/log2.h b/include/linux/log2.h +index fd7ff3d91e6a..f38fae23bdac 100644 +--- a/include/linux/log2.h b/include/linux/log2.h +@@ -16,12 +16,6 @@ + #include + + /* +- * deal with unrepresentable constant logarithms +- */ +-extern __attribute__((const, noreturn)) +-int ilog2_NaN(void); +- +-/* + * non-constant log of base 2 calculators + * - the arch may override these in asm/bitops.h if they can be implemented + * more efficiently than using fls() and fls64() +@@ -85,7 +79,7 @@ unsigned long __rounddown_pow_of_two(unsigned long n) + #define ilog2(n) \ + ( \ + __builtin_constant_p(n) ? ( \ +- (n) < 1 ? ilog2_NaN() : \ ++ (n) < 2 ? 0 : \ + (n) & (1ULL << 63) ? 63 : \ + (n) & (1ULL << 62) ? 62 : \ + (n) & (1ULL << 61) ? 61 : \ +@@ -148,10 +142,7 @@ unsigned long __rounddown_pow_of_two(unsigned long n) + (n) & (1ULL << 4) ? 4 : \ + (n) & (1ULL << 3) ? 3 : \ + (n) & (1ULL << 2) ? 2 : \ +- (n) & (1ULL << 1) ? 1 : \ +- (n) & (1ULL << 0) ? 0 : \ +- ilog2_NaN() \ +- ) : \ ++ 1 ) : \ + (sizeof(n) <= 4) ? \ + __ilog2_u32(n) :\ + __ilog2_u64(n) \ +diff --git a/tools/include/linux/log2.h b/tools/include/linux/log2.h +index 41446668ccce..d5677d39c1e4 100644 +--- a/tools/include/linux/log2.h b/tools/include/linux/log2.h +@@ -13,12 +13,6 @@ + #define _TOOLS_LINUX_LOG2_H + + /* +- * deal with unrepresentable constant logarithms +- */ +-extern __attribute__((const, noreturn)) +-int ilog2_NaN(void); +- +-/* + * non-constant log of base 2 calculators + * - the arch may override these in asm/bitops.h if they can be implemented + * more efficiently than using fls() and fls64() +@@ -78,7 +72,7 @@ unsigned long __rounddown_pow_of_two(unsigned long n) + #define ilog2(n) \ + (
[OE-core] [PATCH 4/7] glew: Compile with -D_GNU_SOURCE
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 Signed-off-by: Khem Raj --- meta/recipes-graphics/glew/glew_2.0.0.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-graphics/glew/glew_2.0.0.bb b/meta/recipes-graphics/glew/glew_2.0.0.bb index 1c93ca07b6..f2ab75629c 100644 --- a/meta/recipes-graphics/glew/glew_2.0.0.bb +++ b/meta/recipes-graphics/glew/glew_2.0.0.bb @@ -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. -- 2.13.0 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH 5/7] vala: Upgrade to 0.36.3 release
Signed-off-by: Khem Raj --- meta/recipes-devtools/vala/{vala_0.34.4.bb => vala_0.36.3.bb} | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) rename meta/recipes-devtools/vala/{vala_0.34.4.bb => vala_0.36.3.bb} (55%) diff --git a/meta/recipes-devtools/vala/vala_0.34.4.bb b/meta/recipes-devtools/vala/vala_0.36.3.bb similarity index 55% rename from meta/recipes-devtools/vala/vala_0.34.4.bb rename to meta/recipes-devtools/vala/vala_0.36.3.bb index d1b49aea7d..7f54f2beb9 100644 --- a/meta/recipes-devtools/vala/vala_0.34.4.bb +++ b/meta/recipes-devtools/vala/vala_0.36.3.bb @@ -3,6 +3,5 @@ require ${BPN}.inc SRC_URI += " file://0001-git-version-gen-don-t-append-dirty-if-we-re-not-in-g.patch \ file://0001-vapigen.m4-use-PKG_CONFIG_SYSROOT_DIR.patch \ " - -SRC_URI[md5sum] = "a856989d749fc5e472a3592b96f9ca48" -SRC_URI[sha256sum] = "6b17bd339414563ebc51f64b0b837919ea7552d8a8ffa71cdc837d25c9696b83" +SRC_URI[md5sum] = "ff093f46e1d2e0b179543ec43cf27d76" +SRC_URI[sha256sum] = "ac8a4ecd01f62d0c5f62ba50b7290d8c5a1edb308eec772a65b8e79be68f061c" -- 2.13.0 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH 2/7] libnsl2: Add recipe
NIS functionality has been split out into independent library from glibc Signed-off-by: Khem Raj --- .../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 diff --git a/meta/recipes-extended/libnsl/libnsl2/0001-include-sys-cdefs.h-explicitly.patch b/meta/recipes-extended/libnsl/libnsl2/0001-include-sys-cdefs.h-explicitly.patch new file mode 100644 index 00..c6c259adb8 --- /dev/null +++ b/meta/recipes-extended/libnsl/libnsl2/0001-include-sys-cdefs.h-explicitly.patch @@ -0,0 +1,68 @@ +From 508a0ff690dfebc17c4f55a5f81824ed549bed66 Mon Sep 17 00:00:00 2001 +From: Khem Raj +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 +--- +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 + #include + #include + #include +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 + #include + + __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 + #include + + /* 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 + #include + + #include +-- +2.12.2 + diff --git a/meta/recipes-extended/libnsl/libnsl2/0002-Define-glibc-specific-macros.patch b/meta/recipes-extended/libnsl/libnsl2/0002-Define-glibc-specific-macros.patch new file mode 100644 index 00..68d819c42c --- /dev/null +++ b/meta/recipes-extended/libnsl/libnsl2/0002-Define-glibc-specific-macros.patch @@ -0,0 +1,57 @@ +From 60282514ea01af004d7f9e66dd3929223b7d2e7b Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 18 Apr 2017 09:16:12 -0700 +Subject: [PATCH 2/2] Define glibc specific macros + +Check and define +rawmemchr, __asprintf, __mempcpy, __strtok_r +__always_inline, TEMP_FAILURE_RETRY + +if not existing. Helps compiling with musl + +Signed-off-by: Khem Raj +--- +Upstream_status: Pending + +diff --git a/src/rpcsvc/nis.h b/src/rpcsvc/nis.h +index 88cbca0..23fc20c 100644 +--- a/src/rpcsvc/nis.h b/src/rpcsvc/nis.h +@@ -57,6 +57,34 @@ __BEGIN_DECLS + * + */ + ++#ifndef rawmemchr ++#define rawmemchr(s,c) memchr((s),(size_t)-1,(c)) ++#endif ++ ++#ifndef __asprintf ++#define __asprintf asprintf ++#endif ++ ++#ifndef __mempcpy ++#define __mempcpy mempcpy ++#endif ++ ++#ifndef __strtok_r ++#define __strtok_r strtok_r ++#endif ++ ++#ifndef __always_inline ++#define __always_inline __attribute__((__always_inline__)) ++#endif ++ ++#ifndef TEMP_FAILURE_RETRY ++#define TEMP_FAILURE_RETRY(exp) ({ \ ++typeof (exp) _rc; \ ++ do { \ ++ _rc = (exp); \ ++ } while (_rc == -1 && errno == EINTR); \ ++ _rc; }) ++#endif + + #ifndef __nis_object_h + #define __nis_object_h +-- +2.12.2 + diff --git a/meta/recipes-extended/libnsl/libnsl2_git.bb b/meta/recipes-extended/libnsl/libnsl2_git.bb new file mode 100644 index 00..1698f69edb --- /dev/null +++ b/meta/recipes-extended/libnsl/libnsl2_git.bb @@ -0,0 +1,35 @@ +# Copyright (C) 2017 Khem Raj +# 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/th
[OE-core] [PATCH 1/7] musl: Update to latest master
* f9f686b7 have posix_spawnattr_setflags check for supported flags * 77e895dc add no-op POSIX_SPAWN_USEVFORK to spawn.h * 0416 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 Signed-off-by: Khem Raj --- meta/recipes-core/musl/musl_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/musl/musl_git.bb b/meta/recipes-core/musl/musl_git.bb index a88bc4d424..bae072932c 100644 --- a/meta/recipes-core/musl/musl_git.bb +++ b/meta/recipes-core/musl/musl_git.bb @@ -3,7 +3,7 @@ require musl.inc -SRCREV = "54807d47acecab778498ced88ce8f62bfa16e379" +SRCREV = "f9f686b7721e2cc35e20fa5c6df6da2dc4ac3f50" PV = "1.1.16+git${SRCPV}" -- 2.13.0 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [RFC PATCH 00/10] Add openssl 1.1
On 05/11/2017 12:44 AM, Alexander Kanavin wrote: On 05/11/2017 12:08 AM, Khem Raj wrote: On Wed, May 10, 2017 at 1:48 PM, Davis, Michael wrote: I think most of the major distros have either switched or are in the process this year. are there some info on the policy decisions of other distros ? we should try to follow the suite then Both Fedora and Debian default to 1.1 in their upcoming versions. 1.0 is provided only as a legacy package. So same as here. I recommend members of the Yocto project to chime in as most are commercial entities and may have reasons they want Poky to stay on an LTS openssl version. OE can decide to do something different. That should be possible. Is this an OE TSC issue?? - armin Alex -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH v2] create-pull-request: add "-t in-reply-to" option
Looks like the earlier version of this with the wrong -z vs -n got merged, please submit a follow-up patch to fix it. On Wed, Apr 5, 2017 at 12:38 PM, Jose Lamego wrote: > The create-pull-request script creates patches as replies to a cover > letter, in the form of an email thread. If further revisions are sent to > the mailing list without referencing to the first revision, these new > revisions are not identified at the mailing list as part of the original > thread, but as a new thread instead. > > This change adds the "[-t in_reply_to]" option, where "in_reply_to" is > the original cover letter's Message-Id, so this reference is added > to the new cover letter to ensure the thread continuity. > > [YOCTO #11294] > > Signed-off-by: Jose Lamego > --- > scripts/create-pull-request | 17 + > 1 file changed, 13 insertions(+), 4 deletions(-) > > diff --git a/scripts/create-pull-request b/scripts/create-pull-request > index e82858b..8f0be99 100755 > --- a/scripts/create-pull-request > +++ b/scripts/create-pull-request > @@ -34,7 +34,7 @@ RFC=0 > usage() { > CMD=$(basename $0) > cat < -Usage: $CMD [-h] [-o output_dir] [-m msg_body_file] [-s subject] [-r > relative_to] [-i commit_id] [-d relative_dir] -u remote [-b branch] > +Usage: $CMD [-h] [-o output_dir] [-m msg_body_file] [-s subject] [-r > relative_to] [-i commit_id] [-d relative_dir] -u remote [-b branch] [-t > in_reply_to] >-b branch Branch name in the specified remote (default: > current branch) >-l local branch Local branch name (default: HEAD) >-c Create an RFC (Request for Comment) patch series > @@ -49,6 +49,7 @@ Usage: $CMD [-h] [-o output_dir] [-m msg_body_file] [-s > subject] [-r relative_to >-s subject The subject to be inserted into the summary email >-u remote The git remote where the branch is located, or set > CPR_CONTRIB_REMOTE in env >-d relative_dir Generate patches relative to directory > + -t in_reply_to Make mails appear as replies to the given > Message-Id, to continue patch/series threads > > Examples: > $CMD -u contrib -b nitin/basic > @@ -57,12 +58,13 @@ Usage: $CMD [-h] [-o output_dir] [-m msg_body_file] > [-s subject] [-r relative_to > $CMD -u contrib -r master -i misc -b nitin/misc -o pull-misc > $CMD -u contrib -p "RFC PATCH" -b nitin/experimental > $CMD -u contrib -i misc -b nitin/misc -d ./bitbake > + $CMD -u contrib -p "OE-core][PATCH v2" -t " example.com>" > EOM > } > > REMOTE="$CPR_CONTRIB_REMOTE" > # Parse and validate arguments > -while getopts "b:acd:hi:m:o:p:r:s:u:l:" OPT; do > +while getopts "b:acd:hi:m:o:p:r:s:u:l:t:" OPT; do > case $OPT in > b) > BRANCH="$OPTARG" > @@ -108,7 +110,10 @@ while getopts "b:acd:hi:m:o:p:r:s:u:l:" OPT; do > a) > CPR_CONTRIB_AUTO_PUSH="1" > ;; > - esac > +t) > +IN_REPLY_TO="$OPTARG" > +;; > +esac > done > > if [ -z "$REMOTE" ]; then > @@ -205,7 +210,11 @@ if [ -n "$RELDIR" ]; then > fi > > # Generate the patches and cover letter > -git format-patch $extraopts -M40 --subject-prefix="$PREFIX" -n -o $ODIR > --thread=shallow --cover-letter $RELATIVE_TO..$COMMIT_ID > /dev/null > +if [ -n "$IN_REPLY_TO" ]; then > +git format-patch $extraopts -M40 --subject-prefix="$PREFIX" -n -o > $ODIR --thread=shallow --in-reply-to="$IN_REPLY_TO" --cover-letter > $RELATIVE_TO..$COMMIT_ID > /dev/null > +else > +git format-patch $extraopts -M40 --subject-prefix="$PREFIX" -n -o > $ODIR --thread=shallow --cover-letter $RELATIVE_TO..$COMMIT_ID > /dev/null > +fi > > if [ -z "$(ls -A $ODIR 2> /dev/null)" ]; then > echo "ERROR: $ODIR is empty, no cover letter and patches was > generated!" > -- > 2.7.4 > > -- > ___ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core > -- Christopher Larson kergoth at gmail dot com Founder - BitBake, OpenEmbedded, OpenZaurus Senior Software Engineer, Mentor Graphics -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [RFC PATCH 00/10] Add openssl 1.1
On Fri, May 12, 2017 at 11:15 AM, Denys Dmytriyenko wrote: > On Wed, May 10, 2017 at 02:08:26PM -0700, Khem Raj wrote: >> On Wed, May 10, 2017 at 1:48 PM, Davis, Michael >> wrote: >> > I think most of the major distros have either switched or are in the >> > process >> > this year. >> > >> >> are there some info on the policy decisions of other distros ? >> we should try to follow the suite then > > Khem, > > https://wiki.debian.org/OpenSSL-1.1 > > Binary packages have X.Y version in the package name: > libssl1.1_1.1.0c-2~bpo8+1_amd64.deb > libssl1.0.0_1.0.2k-1~bpo8+1_amd64.deb > > As of OE, we've handled such updates with incompatible API in the past > similarly - gstreamer vs. gstreamer010 yes we have, my point was if were flying against the headwind or not, -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH 1/2] pciutils: upgrade 3.5.2 -> 3.5.4
On Fri, May 12, 2017 at 2:00 PM, Denys Dmytriyenko wrote: > Can this be generated as a diff between versions? You may need to use "git > mv" > and/or pass -M to "git format-patch"... > oops, I did forgot to specify -M, v2 coming up... -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [RFC PATCH 00/10] Add openssl 1.1
On Wed, May 10, 2017 at 02:08:26PM -0700, Khem Raj wrote: > On Wed, May 10, 2017 at 1:48 PM, Davis, Michael > wrote: > > I think most of the major distros have either switched or are in the process > > this year. > > > > are there some info on the policy decisions of other distros ? > we should try to follow the suite then Khem, https://wiki.debian.org/OpenSSL-1.1 Binary packages have X.Y version in the package name: libssl1.1_1.1.0c-2~bpo8+1_amd64.deb libssl1.0.0_1.0.2k-1~bpo8+1_amd64.deb As of OE, we've handled such updates with incompatible API in the past similarly - gstreamer vs. gstreamer010 -- Denys > > From: openembedded-core-boun...@lists.openembedded.org > > [mailto:openembedded-core-boun...@lists.openembedded.org] On Behalf Of Khem > > Raj > > Sent: Wednesday, May 10, 2017 3:36 PM > > To: Alexander Kanavin; Gary Thomas; openembedded-core@lists.openembedded.org > > Subject: Re: [OE-core] [RFC PATCH 00/10] Add openssl 1.1 > > > > > > > > > > > > On Wed, May 10, 2017 at 12:34 PM Alexander Kanavin > > wrote: > > > > On 05/10/2017 09:56 PM, Gary Thomas wrote: > >> Why not do this in a "softer" way - make the new 1.1 package have the > >> obscured name (and not be preferred by default)? That way existing > >> uses of the older 1.0 package can continue but users can migrate to > >> 1.1 as they see fit? > > > > I have an answer which you might not particularly like. But here goes: > > > > What will actually happen is that no one will do anything to port their > > stuff until it's time to remove 1.0 because upstream has EOLd it. And > > then there'll still be complaints that more time is needed for the > > transition. I'd like to gently push people to plan this transition > > already now - and it's as gentle as it can be: if you pull from master > > and your things no longer build, make one simple change and they will. > > It's part and parcel of being on the bleeding edge, or rebasing to the > > new yocto release: not everything works exactly as before, and most > > components are newer and different and not always fully compatible. > > > > > > > > > > > > It is a cross distro item really we should find out what other Linux > > distributions are doing about it moving forward unless major distros also > > have same policy there won't be much momentum this would gain among the > > packages ecosystems this could also help in sharing the porting burden > > > > > > > > The other reason is that it's more work for me: I would have to update > > everything in oe-core to use the new recipe, instead of fixing just a > > few recipes that need to stay with 1.0. And then again the same thing > > will happen when 1.2 is out. > > > > Alex > > -- > > ___ > > Openembedded-core mailing list > > Openembedded-core@lists.openembedded.org > > http://lists.openembedded.org/mailman/listinfo/openembedded-core > -- > ___ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCHv2 2/2] nasm: upgrade 2.12.02 -> 2.13.01
Signed-off-by: Marc Ferland --- meta/recipes-devtools/nasm/{nasm_2.12.02.bb => nasm_2.13.01.bb} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename meta/recipes-devtools/nasm/{nasm_2.12.02.bb => nasm_2.13.01.bb} (77%) diff --git a/meta/recipes-devtools/nasm/nasm_2.12.02.bb b/meta/recipes-devtools/nasm/nasm_2.13.01.bb similarity index 77% rename from meta/recipes-devtools/nasm/nasm_2.12.02.bb rename to meta/recipes-devtools/nasm/nasm_2.13.01.bb index 3280b84..b17bb53 100644 --- a/meta/recipes-devtools/nasm/nasm_2.12.02.bb +++ b/meta/recipes-devtools/nasm/nasm_2.13.01.bb @@ -3,10 +3,10 @@ SECTION = "devel" LICENSE = "BSD-2-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=90904486f8fbf1861cf42752e1a39efe" -SRC_URI = "http://www.nasm.us/pub/nasm/releasebuilds/${PV}/nasm-${PV}.tar.bz2 " +SRC_URI = "http://www.nasm.us/pub/nasm/releasebuilds/${PV}/nasm-${PV}.tar.xz"; -SRC_URI[md5sum] = "d15843c3fb7db39af80571ee27ec6fad" -SRC_URI[sha256sum] = "00b0891c678c065446ca59bcee64719d0096d54d6886e6e472aeee2e170ae324" +SRC_URI[md5sum] = "b3ae134bd1b5ead73d659286f568da95" +SRC_URI[sha256sum] = "aa0213008f0433ecbe07bb628506a5c4be8079be20fc3532a5031fd639db9a5e" inherit autotools-brokensep -- 2.7.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCHv2 1/2] pciutils: upgrade 3.5.2 -> 3.5.4
Upgrade to 3.5.4 and fix libkmod detection (was missing pkgconfig bbclass). Signed-off-by: Marc Ferland --- .../pciutils/{pciutils_3.5.2.bb => pciutils_3.5.4.bb} | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) rename meta/recipes-bsp/pciutils/{pciutils_3.5.2.bb => pciutils_3.5.4.bb} (86%) diff --git a/meta/recipes-bsp/pciutils/pciutils_3.5.2.bb b/meta/recipes-bsp/pciutils/pciutils_3.5.4.bb similarity index 86% rename from meta/recipes-bsp/pciutils/pciutils_3.5.2.bb rename to meta/recipes-bsp/pciutils/pciutils_3.5.4.bb index 9a7297e..0faa501 100644 --- a/meta/recipes-bsp/pciutils/pciutils_3.5.2.bb +++ b/meta/recipes-bsp/pciutils/pciutils_3.5.4.bb @@ -1,6 +1,6 @@ SUMMARY = "PCI utilities" -DESCRIPTION = 'The PCI Utilities package contains a library for portable access \ -to PCI bus configuration space and several utilities based on this library.' +DESCRIPTION = "The PCI Utilities package contains a library for portable access \ +to PCI bus configuration space and several utilities based on this library." HOMEPAGE = "http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml"; SECTION = "console/utils" @@ -13,10 +13,10 @@ SRC_URI = "${KERNELORG_MIRROR}/software/utils/pciutils/pciutils-${PV}.tar.xz \ file://guess-fix.patch \ file://makefile.patch" -SRC_URI[md5sum] = "1bf5b068bd9f7512e8c68b060b25a1b2" -SRC_URI[sha256sum] = "3a99141a9f40528d0a0035665a06dc37ddb1ae341658e51b50a76ecf86235efc" +SRC_URI[md5sum] = "e82537cd2194111c45fa7e684b52252e" +SRC_URI[sha256sum] = "64293c6ab9318c40ef262b76d87bd9097531759752bac556e50979b1e63cfe66" -inherit multilib_header +inherit multilib_header pkgconfig PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'hwdb', '', d)}" PACKAGECONFIG[hwdb] = "HWDB=yes,HWDB=no,udev" -- 2.7.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH 1/2] pciutils: upgrade 3.5.2 -> 3.5.4
Can this be generated as a diff between versions? You may need to use "git mv" and/or pass -M to "git format-patch"... On Fri, May 12, 2017 at 01:42:39PM -0400, Marc Ferland wrote: > Upgrade to 3.5.4 and fix libkmod detection (was missing pkgconfig > bbclass). > > Signed-off-by: Marc Ferland > --- > meta/recipes-bsp/pciutils/pciutils_3.5.2.bb | 60 > - > meta/recipes-bsp/pciutils/pciutils_3.5.4.bb | 60 > + > 2 files changed, 60 insertions(+), 60 deletions(-) > delete mode 100644 meta/recipes-bsp/pciutils/pciutils_3.5.2.bb > create mode 100644 meta/recipes-bsp/pciutils/pciutils_3.5.4.bb > > diff --git a/meta/recipes-bsp/pciutils/pciutils_3.5.2.bb > b/meta/recipes-bsp/pciutils/pciutils_3.5.2.bb > deleted file mode 100644 > index 9a7297e..000 > --- a/meta/recipes-bsp/pciutils/pciutils_3.5.2.bb > +++ /dev/null > @@ -1,60 +0,0 @@ > -SUMMARY = "PCI utilities" > -DESCRIPTION = 'The PCI Utilities package contains a library for portable > access \ > -to PCI bus configuration space and several utilities based on this library.' > -HOMEPAGE = "http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml"; > -SECTION = "console/utils" > - > -LICENSE = "GPLv2+" > -LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" > -DEPENDS = "zlib kmod" > - > -SRC_URI = "${KERNELORG_MIRROR}/software/utils/pciutils/pciutils-${PV}.tar.xz > \ > - file://configure.patch \ > - file://guess-fix.patch \ > - file://makefile.patch" > - > -SRC_URI[md5sum] = "1bf5b068bd9f7512e8c68b060b25a1b2" > -SRC_URI[sha256sum] = > "3a99141a9f40528d0a0035665a06dc37ddb1ae341658e51b50a76ecf86235efc" > - > -inherit multilib_header > - > -PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', > 'hwdb', '', d)}" > -PACKAGECONFIG[hwdb] = "HWDB=yes,HWDB=no,udev" > - > -PCI_CONF_FLAG = "ZLIB=yes DNS=yes SHARED=yes" > - > -# see configure.patch > -do_configure () { > - ( > - cd lib && \ > - # PACKAGECONFIG_CONFARGS for this recipe could only possibly contain > 'HWDB=yes/no', > - # so we put it before ./configure > - ${PCI_CONF_FLAG} ${PACKAGECONFIG_CONFARGS} ./configure ${PV} > ${datadir} ${TARGET_OS} ${TARGET_ARCH} > - ) > -} > - > -export PREFIX = "${prefix}" > -export SBINDIR = "${sbindir}" > -export SHAREDIR = "${datadir}" > -export MANDIR = "${mandir}" > - > -EXTRA_OEMAKE = "-e MAKEFLAGS= ${PCI_CONF_FLAG}" > - > -# The configure script breaks if the HOST variable is set > -HOST[unexport] = "1" > - > -do_install () { > - oe_runmake DESTDIR=${D} install install-lib > - > - install -d ${D}${bindir} > - ln -s ../sbin/lspci ${D}${bindir}/lspci > - > - oe_multilib_header pci/config.h > -} > - > -PACKAGES =+ "${PN}-ids libpci" > -FILES_${PN}-ids = "${datadir}/pci.ids*" > -FILES_libpci = "${libdir}/libpci.so.*" > -SUMMARY_${PN}-ids = "PCI utilities - device ID database" > -DESCRIPTION_${PN}-ids = "Package providing the PCI device ID database for > pciutils." > -RDEPENDS_${PN} += "${PN}-ids" > diff --git a/meta/recipes-bsp/pciutils/pciutils_3.5.4.bb > b/meta/recipes-bsp/pciutils/pciutils_3.5.4.bb > new file mode 100644 > index 000..0faa501 > --- /dev/null > +++ b/meta/recipes-bsp/pciutils/pciutils_3.5.4.bb > @@ -0,0 +1,60 @@ > +SUMMARY = "PCI utilities" > +DESCRIPTION = "The PCI Utilities package contains a library for portable > access \ > +to PCI bus configuration space and several utilities based on this library." > +HOMEPAGE = "http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml"; > +SECTION = "console/utils" > + > +LICENSE = "GPLv2+" > +LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" > +DEPENDS = "zlib kmod" > + > +SRC_URI = "${KERNELORG_MIRROR}/software/utils/pciutils/pciutils-${PV}.tar.xz > \ > + file://configure.patch \ > + file://guess-fix.patch \ > + file://makefile.patch" > + > +SRC_URI[md5sum] = "e82537cd2194111c45fa7e684b52252e" > +SRC_URI[sha256sum] = > "64293c6ab9318c40ef262b76d87bd9097531759752bac556e50979b1e63cfe66" > + > +inherit multilib_header pkgconfig > + > +PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', > 'hwdb', '', d)}" > +PACKAGECONFIG[hwdb] = "HWDB=yes,HWDB=no,udev" > + > +PCI_CONF_FLAG = "ZLIB=yes DNS=yes SHARED=yes" > + > +# see configure.patch > +do_configure () { > + ( > + cd lib && \ > + # PACKAGECONFIG_CONFARGS for this recipe could only possibly contain > 'HWDB=yes/no', > + # so we put it before ./configure > + ${PCI_CONF_FLAG} ${PACKAGECONFIG_CONFARGS} ./configure ${PV} > ${datadir} ${TARGET_OS} ${TARGET_ARCH} > + ) > +} > + > +export PREFIX = "${prefix}" > +export SBINDIR = "${sbindir}" > +export SHAREDIR = "${datadir}" > +export MANDIR = "${mandir}" > + > +EXTRA_OEMAKE = "-e MAKEFLAGS= ${PCI_CONF_FLAG}" > + > +# The configure script breaks if the HOST variable is set > +HOST[unexport] = "1" > + > +do_install () { > + oe_runmake DEST
[OE-core] [PATCH 2/2] nasm: upgrade 2.12.02 -> 2.13.01
Signed-off-by: Marc Ferland --- meta/recipes-devtools/nasm/nasm_2.12.02.bb | 28 meta/recipes-devtools/nasm/nasm_2.13.01.bb | 28 2 files changed, 28 insertions(+), 28 deletions(-) delete mode 100644 meta/recipes-devtools/nasm/nasm_2.12.02.bb create mode 100644 meta/recipes-devtools/nasm/nasm_2.13.01.bb diff --git a/meta/recipes-devtools/nasm/nasm_2.12.02.bb b/meta/recipes-devtools/nasm/nasm_2.12.02.bb deleted file mode 100644 index 3280b84..000 --- a/meta/recipes-devtools/nasm/nasm_2.12.02.bb +++ /dev/null @@ -1,28 +0,0 @@ -SUMMARY = "General-purpose x86 assembler" -SECTION = "devel" -LICENSE = "BSD-2-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=90904486f8fbf1861cf42752e1a39efe" - -SRC_URI = "http://www.nasm.us/pub/nasm/releasebuilds/${PV}/nasm-${PV}.tar.bz2 " - -SRC_URI[md5sum] = "d15843c3fb7db39af80571ee27ec6fad" -SRC_URI[sha256sum] = "00b0891c678c065446ca59bcee64719d0096d54d6886e6e472aeee2e170ae324" - -inherit autotools-brokensep - -do_configure_prepend () { - if [ -f ${S}/aclocal.m4 ] && [ ! -f ${S}/acinclude.m4 ]; then - mv ${S}/aclocal.m4 ${S}/acinclude.m4 - fi -} - -do_install() { - install -d ${D}${bindir} - install -d ${D}${mandir}/man1 - - oe_runmake 'INSTALLROOT=${D}' install -} - -BBCLASSEXTEND = "native" - -DEPENDS = "groff-native" diff --git a/meta/recipes-devtools/nasm/nasm_2.13.01.bb b/meta/recipes-devtools/nasm/nasm_2.13.01.bb new file mode 100644 index 000..b17bb53 --- /dev/null +++ b/meta/recipes-devtools/nasm/nasm_2.13.01.bb @@ -0,0 +1,28 @@ +SUMMARY = "General-purpose x86 assembler" +SECTION = "devel" +LICENSE = "BSD-2-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=90904486f8fbf1861cf42752e1a39efe" + +SRC_URI = "http://www.nasm.us/pub/nasm/releasebuilds/${PV}/nasm-${PV}.tar.xz"; + +SRC_URI[md5sum] = "b3ae134bd1b5ead73d659286f568da95" +SRC_URI[sha256sum] = "aa0213008f0433ecbe07bb628506a5c4be8079be20fc3532a5031fd639db9a5e" + +inherit autotools-brokensep + +do_configure_prepend () { + if [ -f ${S}/aclocal.m4 ] && [ ! -f ${S}/acinclude.m4 ]; then + mv ${S}/aclocal.m4 ${S}/acinclude.m4 + fi +} + +do_install() { + install -d ${D}${bindir} + install -d ${D}${mandir}/man1 + + oe_runmake 'INSTALLROOT=${D}' install +} + +BBCLASSEXTEND = "native" + +DEPENDS = "groff-native" -- 2.7.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH 1/2] pciutils: upgrade 3.5.2 -> 3.5.4
Upgrade to 3.5.4 and fix libkmod detection (was missing pkgconfig bbclass). Signed-off-by: Marc Ferland --- meta/recipes-bsp/pciutils/pciutils_3.5.2.bb | 60 - meta/recipes-bsp/pciutils/pciutils_3.5.4.bb | 60 + 2 files changed, 60 insertions(+), 60 deletions(-) delete mode 100644 meta/recipes-bsp/pciutils/pciutils_3.5.2.bb create mode 100644 meta/recipes-bsp/pciutils/pciutils_3.5.4.bb diff --git a/meta/recipes-bsp/pciutils/pciutils_3.5.2.bb b/meta/recipes-bsp/pciutils/pciutils_3.5.2.bb deleted file mode 100644 index 9a7297e..000 --- a/meta/recipes-bsp/pciutils/pciutils_3.5.2.bb +++ /dev/null @@ -1,60 +0,0 @@ -SUMMARY = "PCI utilities" -DESCRIPTION = 'The PCI Utilities package contains a library for portable access \ -to PCI bus configuration space and several utilities based on this library.' -HOMEPAGE = "http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml"; -SECTION = "console/utils" - -LICENSE = "GPLv2+" -LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" -DEPENDS = "zlib kmod" - -SRC_URI = "${KERNELORG_MIRROR}/software/utils/pciutils/pciutils-${PV}.tar.xz \ - file://configure.patch \ - file://guess-fix.patch \ - file://makefile.patch" - -SRC_URI[md5sum] = "1bf5b068bd9f7512e8c68b060b25a1b2" -SRC_URI[sha256sum] = "3a99141a9f40528d0a0035665a06dc37ddb1ae341658e51b50a76ecf86235efc" - -inherit multilib_header - -PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'hwdb', '', d)}" -PACKAGECONFIG[hwdb] = "HWDB=yes,HWDB=no,udev" - -PCI_CONF_FLAG = "ZLIB=yes DNS=yes SHARED=yes" - -# see configure.patch -do_configure () { - ( - cd lib && \ - # PACKAGECONFIG_CONFARGS for this recipe could only possibly contain 'HWDB=yes/no', - # so we put it before ./configure - ${PCI_CONF_FLAG} ${PACKAGECONFIG_CONFARGS} ./configure ${PV} ${datadir} ${TARGET_OS} ${TARGET_ARCH} - ) -} - -export PREFIX = "${prefix}" -export SBINDIR = "${sbindir}" -export SHAREDIR = "${datadir}" -export MANDIR = "${mandir}" - -EXTRA_OEMAKE = "-e MAKEFLAGS= ${PCI_CONF_FLAG}" - -# The configure script breaks if the HOST variable is set -HOST[unexport] = "1" - -do_install () { - oe_runmake DESTDIR=${D} install install-lib - - install -d ${D}${bindir} - ln -s ../sbin/lspci ${D}${bindir}/lspci - - oe_multilib_header pci/config.h -} - -PACKAGES =+ "${PN}-ids libpci" -FILES_${PN}-ids = "${datadir}/pci.ids*" -FILES_libpci = "${libdir}/libpci.so.*" -SUMMARY_${PN}-ids = "PCI utilities - device ID database" -DESCRIPTION_${PN}-ids = "Package providing the PCI device ID database for pciutils." -RDEPENDS_${PN} += "${PN}-ids" diff --git a/meta/recipes-bsp/pciutils/pciutils_3.5.4.bb b/meta/recipes-bsp/pciutils/pciutils_3.5.4.bb new file mode 100644 index 000..0faa501 --- /dev/null +++ b/meta/recipes-bsp/pciutils/pciutils_3.5.4.bb @@ -0,0 +1,60 @@ +SUMMARY = "PCI utilities" +DESCRIPTION = "The PCI Utilities package contains a library for portable access \ +to PCI bus configuration space and several utilities based on this library." +HOMEPAGE = "http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml"; +SECTION = "console/utils" + +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" +DEPENDS = "zlib kmod" + +SRC_URI = "${KERNELORG_MIRROR}/software/utils/pciutils/pciutils-${PV}.tar.xz \ + file://configure.patch \ + file://guess-fix.patch \ + file://makefile.patch" + +SRC_URI[md5sum] = "e82537cd2194111c45fa7e684b52252e" +SRC_URI[sha256sum] = "64293c6ab9318c40ef262b76d87bd9097531759752bac556e50979b1e63cfe66" + +inherit multilib_header pkgconfig + +PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'hwdb', '', d)}" +PACKAGECONFIG[hwdb] = "HWDB=yes,HWDB=no,udev" + +PCI_CONF_FLAG = "ZLIB=yes DNS=yes SHARED=yes" + +# see configure.patch +do_configure () { + ( + cd lib && \ + # PACKAGECONFIG_CONFARGS for this recipe could only possibly contain 'HWDB=yes/no', + # so we put it before ./configure + ${PCI_CONF_FLAG} ${PACKAGECONFIG_CONFARGS} ./configure ${PV} ${datadir} ${TARGET_OS} ${TARGET_ARCH} + ) +} + +export PREFIX = "${prefix}" +export SBINDIR = "${sbindir}" +export SHAREDIR = "${datadir}" +export MANDIR = "${mandir}" + +EXTRA_OEMAKE = "-e MAKEFLAGS= ${PCI_CONF_FLAG}" + +# The configure script breaks if the HOST variable is set +HOST[unexport] = "1" + +do_install () { + oe_runmake DESTDIR=${D} install install-lib + + install -d ${D}${bindir} + ln -s ../sbin/lspci ${D}${bindir}/lspci + + oe_multilib_header pci/config.h +} + +PACKAGES =+ "${PN}-ids libpci" +FILES_${PN}-ids = "${datadir}/pci.ids*" +FILES_libpci = "${libdir}/libpci.so.*" +SUMMARY_${PN}-ids = "PCI utilities - device ID database" +DESCRIPTION_${PN}-ids = "Package providing the PCI device ID database for pciutils." +RDEPENDS_${PN} += "${PN}-ids"
[OE-core] [PATCH] qemu: Upgrade to 2.8.1.1
Removed patch target-ppc-fix-user-mode.patch [1] already on upstream. [1] http://git.qemu.org/?p=qemu.git;a=history;f=linux-user/main.c; h=65a769cf797254a86a7cf589d69e67595a9e1adb;hb=refs/heads/stable-2.8 Signed-off-by: Aníbal Limón --- .../qemu/qemu/target-ppc-fix-user-mode.patch | 48 -- .../qemu/{qemu_2.8.0.bb => qemu_2.8.1.1.bb}| 5 +-- 2 files changed, 2 insertions(+), 51 deletions(-) delete mode 100644 meta/recipes-devtools/qemu/qemu/target-ppc-fix-user-mode.patch rename meta/recipes-devtools/qemu/{qemu_2.8.0.bb => qemu_2.8.1.1.bb} (91%) diff --git a/meta/recipes-devtools/qemu/qemu/target-ppc-fix-user-mode.patch b/meta/recipes-devtools/qemu/qemu/target-ppc-fix-user-mode.patch deleted file mode 100644 index ba21e71..000 --- a/meta/recipes-devtools/qemu/qemu/target-ppc-fix-user-mode.patch +++ /dev/null @@ -1,48 +0,0 @@ -[Qemu-ppc] [PATCH 1/1] target-ppc, tcg: fix usermode segfault with pthread - -From: Sam Bobroff -Subject: [Qemu-ppc] [PATCH 1/1] target-ppc, tcg: fix usermode segfault with pthread_create() -Date: Mon, 30 Jan 2017 16:08:07 +1100 -Programs run under qemu-ppc64 on an x86_64 host currently segfault -if they use pthread_create() due to the adjustment made to the NIP in -commit bd6fefe71cec5a0c7d2be4ac96307f25db56abf9. - -This patch changes cpu_loop() to set the NIP back to the -pre-incremented value before calling do_syscall(), which causes the -correct address to be used for the new thread and corrects the fault. - -Signed-off-by: Sam Bobroff - -Upstream-Status: Backport - - -linux-user/main.c | 4 +++- -1 file changed, 3 insertions(+), 1 deletion(-) - -diff --git a/linux-user/main.c b/linux-user/main.c -index 30049581ef..b5dee01541 100644 a/linux-user/main.c -+++ b/linux-user/main.c -@@ -1712,18 +1712,20 @@ void cpu_loop(CPUPPCState *env) - * in syscalls. - */ - env->crf[0] &= ~0x1; -+env->nip += 4; - ret = do_syscall(env, env->gpr[0], env->gpr[3], env->gpr[4], - env->gpr[5], env->gpr[6], env->gpr[7], - env->gpr[8], 0, 0); - if (ret == -TARGET_ERESTARTSYS) { -+env->nip -= 4; - break; - } - if (ret == (target_ulong)(-TARGET_QEMU_ESIGRETURN)) { -+env->nip -= 4; - /* Returning from a successful sigreturn syscall. -Avoid corrupting register state. */ - break; - } --env->nip += 4; - if (ret > (target_ulong)(-515)) { - env->crf[0] |= 0x1; - ret = -ret; diff --git a/meta/recipes-devtools/qemu/qemu_2.8.0.bb b/meta/recipes-devtools/qemu/qemu_2.8.1.1.bb similarity index 91% rename from meta/recipes-devtools/qemu/qemu_2.8.0.bb rename to meta/recipes-devtools/qemu/qemu_2.8.1.1.bb index 19d7e8f..d37dd49 100644 --- a/meta/recipes-devtools/qemu/qemu_2.8.0.bb +++ b/meta/recipes-devtools/qemu/qemu_2.8.1.1.bb @@ -19,7 +19,6 @@ SRC_URI += " \ file://no-valgrind.patch \ file://pathlimit.patch \ file://qemu-2.5.0-cflags.patch \ -file://target-ppc-fix-user-mode.patch \ file://glibc-2.25.patch \ " @@ -39,8 +38,8 @@ SRC_URI_append_class-native = " \ SRC_URI =+ "http://wiki.qemu-project.org/download/${BP}.tar.bz2"; -SRC_URI[md5sum] = "17940dce063b6ce450a12e719a6c9c43" -SRC_URI[sha256sum] = "dafd5d7f649907b6b617b822692f4c82e60cf29bc0fc58bc2036219b591e5e62" +SRC_URI[md5sum] = "a6a23a0c59fd0f8ec564b0fb89a79954" +SRC_URI[sha256sum] = "f62ab18a1fb9ff5b4c81ed44becc945b11581eff777618141bdb787da55d3638" COMPATIBLE_HOST_mipsarchn32 = "null" COMPATIBLE_HOST_mipsarchn64 = "null" -- 2.1.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [RFC PATCH 05/10] bind: update to 9.10.5
On 10 May 2017 at 15:13, Alexander Kanavin < alexander.kana...@linux.intel.com> wrote: > -LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=0a95f52a0ab6c5f52dedc9a45e7abb > 3f" > +LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=dba46507446198119bcde32a4feaab > 43" > No explanation for this change. Ross -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH] recipes-support: Add recipe for libgpiod
On 11/05/17 23:28, Denys Dmytriyenko wrote: > On Thu, May 11, 2017 at 08:50:09PM +0200, Belisko Marek wrote: >> On Thu, May 11, 2017 at 8:19 PM, Denys Dmytriyenko wrote: >>> Not to derail your enthusiasm, but since this is being proposed for OE-Core, >>> how is it better than libsoc by Jack Mitchell? >> libsoc is fine but libgpiod will implement correctly gpio handling in >> userspace as gpio sysfs is deprecated. >> What is the problem to have libgpiod available for other potential >> users? Thanks. > As far as I know, libsoc is still being actively supported and if there's an > API change, it should be fixed in no time. That's why I'm copying Jack here, > who is an active OE developer here. > > As of having an alternative for other potential users - there's nothing wrong > with it. But, acceptance criteria into OE-Core is quite high, especially when > there are alternative solutions already available. That's why I'm asking if > it's any better than the other solution. In other words, why libgpiod should > be accepted to OE-Core, but not libsoc? Maybe it should be submitted to > meta-openembedded layer instead? I would agree that this should go in meta-oe. I haven't implemented the new ioctl interface yet in libsoc and there is no reason why there can't be two libraries with similar functionallity. Cheers, Jack. > > >> More here: >> https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1392949.html >>> >>> On Thu, May 11, 2017 at 07:43:00PM +0200, Marek Belisko wrote: libgpiod - C library and tools for interacting with the linux GPIO character device Since linux 4.8 the GPIO sysfs interface is deprecated. User space should use the character device instead. This library encapsulates the ioctl calls and data structures behind a straightforward API. Signed-off-by: Marek Belisko --- meta/recipes-support/libgpiod/libgpiod_0.2.bb | 25 + 1 file changed, 25 insertions(+) create mode 100644 meta/recipes-support/libgpiod/libgpiod_0.2.bb diff --git a/meta/recipes-support/libgpiod/libgpiod_0.2.bb b/meta/recipes-support/libgpiod/libgpiod_0.2.bb new file mode 100644 index 000..fe2cd80 --- /dev/null +++ b/meta/recipes-support/libgpiod/libgpiod_0.2.bb @@ -0,0 +1,25 @@ +SUMMARY = "C library and tools for interacting with the linux GPIO character device" +HOMEPAGE = "https://github.com/brgl/libgpiod"; + +LICENSE = "LGPLv2.1+" +LIC_FILES_CHKSUM = "file://COPYING;md5=2caced0b25dfefd4c601d92bd15116de" + +UPSTREAM_CHECK_URI = "https://github.com/brgl/libgpiod/releases"; + +SRC_URI = "https://github.com/brgl/libgpiod/archive/v${PV}.tar.gz"; + +SRC_URI[md5sum] = "e3430f35b6efa842693d659c0bfb7ad5" +SRC_URI[sha256sum] = "de1947f3cb2cc4174364af430309fe6238976658575655bdbd76c60cffa7df92" + +inherit autotools pkgconfig + +# enable tools +PACKAGECONFIG ?= "tools" + +PACKAGECONFIG[tests] = "--enable-tests,--disable-tests,kmod udev" +PACKAGECONFIG[tools] = "--enable-tools,--disable-tools," + +PACKAGES += " ${PN}-tools" + +FILES_${PN} = "${libdir}/*" +FILES_${PN}-tools = "${bindir}/*" -- 2.7.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core >> BR, >> >> marek >> >> -- >> as simple and primitive as possible >> - >> Marek Belisko - OPEN-NANDRA >> Freelance Developer >> >> Ruska Nova Ves 219 | Presov, 08005 Slovak Republic >> Tel: +421 915 052 184 >> skype: marekwhite >> twitter: #opennandra >> web: http://open-nandra.com >> -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH 3/3] kernel-fitimage: fix KERNEL_DEVICETREE includes subdirectory issue
On Wed, May 10, 2017 at 04:47:13PM +0800, Chunrong Guo wrote: > From: Chunrong Guo > > * For example: > KERNEL_DEVICETREE ?= "freescale/fsl-ls1046a-rdb.dtb" > > ${DTB}= "freescale/fsl-ls1046a-rdb.dtb" > > but only fsl-ls1046a-rdb.dtb should be used in fit-image.its > > Signed-off-by: Chunrong Guo > --- > meta/classes/kernel-fitimage.bbclass | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/meta/classes/kernel-fitimage.bbclass > b/meta/classes/kernel-fitimage.bbclass > index 9fa836f..3171d10 100644 > --- a/meta/classes/kernel-fitimage.bbclass > +++ b/meta/classes/kernel-fitimage.bbclass > @@ -346,7 +346,10 @@ fitimage_assemble() { > bbwarn "${DTB} contains the full path to the > the dts file, but only the dtb name should be used." > DTB=`basename ${DTB} | sed 's,\.dts$,.dtb,g'` > fi > - DTB_PATH="arch/${ARCH}/boot/dts/${DTB}" > + > + DTB=`basename ${DTB}` > +DTB_PATH=`find arch/${ARCH}/boot -name "${DTB}"` Any way to not use "find" here? Shouldn't KERNEL_DEVICETREE and DTB_PATH already give you the full path? > + > if [ ! -e "${DTB_PATH}" ]; then > DTB_PATH="arch/${ARCH}/boot/${DTB}" > fi > -- > 1.8.3.2 > > -- > ___ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH] recipes-support: Add recipe for libgpiod
On 11 May 2017 at 23:28, Denys Dmytriyenko wrote: > As of having an alternative for other potential users - there's nothing > wrong > with it. But, acceptance criteria into OE-Core is quite high, especially > when > there are alternative solutions already available. That's why I'm asking if > it's any better than the other solution. In other words, why libgpiod > should > be accepted to OE-Core, but not libsoc? Maybe it should be submitted to > meta-openembedded layer instead? > Agreed, the barrier for oe-core is high on purpose and I don't think this is general purpose enough. meta-oe is a perfect fit though. Ross -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH] autogen: fix autoopts script generation to handle shebang
On 05/12/2017 04:59 PM, Awais Belal wrote: +-*perl ) echo '#!/usr/bin/env perl' ++*perl ) PERL=`which perl` ++ PERL=`readlink -f ${PERL}` ++ echo '#!' ${PERL} Isn't this backwards? And why is PERL set twice in a row? Alex -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH] autogen: fix autoopts script generation to handle shebang
With deep directory hierarchy of the build dir the shenbang generated for the autoopts scripts fail due to shebang length crossing 128 characters. This patch handles such scenarios for most cases by following the symlink in HOSTTOOLS to the actual host executable so the problem is resolved in most cases. Signed-off-by: Awais Belal --- .../autogen/autogen-native_5.18.12.bb | 1 + ...oopts-mk-tpl-config.sh-fix-shebang-length.patch | 49 ++ 2 files changed, 50 insertions(+) create mode 100644 meta/recipes-devtools/autogen/autogen/0001-autoopts-mk-tpl-config.sh-fix-shebang-length.patch diff --git a/meta/recipes-devtools/autogen/autogen-native_5.18.12.bb b/meta/recipes-devtools/autogen/autogen-native_5.18.12.bb index 853477cf7c..1d76810fd7 100644 --- a/meta/recipes-devtools/autogen/autogen-native_5.18.12.bb +++ b/meta/recipes-devtools/autogen/autogen-native_5.18.12.bb @@ -14,6 +14,7 @@ SRC_URI = "${GNU_MIRROR}/autogen/rel${PV}/autogen-${PV}.tar.gz \ file://fix-script-err-when-processing-libguile.patch \ file://0001-config-libopts.m4-regenerate-it-from-config-libopts..patch \ file://0002-autoopts-mk-tpl-config.sh-fix-perl-path.patch \ + file://0001-autoopts-mk-tpl-config.sh-fix-shebang-length.patch \ " SRC_URI[md5sum] = "551d15ccbf5b5fc5658da375d5003389" diff --git a/meta/recipes-devtools/autogen/autogen/0001-autoopts-mk-tpl-config.sh-fix-shebang-length.patch b/meta/recipes-devtools/autogen/autogen/0001-autoopts-mk-tpl-config.sh-fix-shebang-length.patch new file mode 100644 index 00..453ecb28d6 --- /dev/null +++ b/meta/recipes-devtools/autogen/autogen/0001-autoopts-mk-tpl-config.sh-fix-shebang-length.patch @@ -0,0 +1,49 @@ +From 2648a4064aff7ae82e74b8de6ade93dc9c04ce3b Mon Sep 17 00:00:00 2001 +From: Awais Belal +Date: Fri, 12 May 2017 18:22:02 +0500 +Subject: [PATCH] autoopts/mk-tpl-config.sh: fix shebang length + +The shebang length cannot be more than 128 charaters +and the change +http://cgit.openembedded.org/openembedded-core/commit/meta/classes/base.bbclass?id=fa764a403da34bb0ca9fa3767a9e9dba8d685965 +requires that a user needs to make sure the HOSTTOOLS +directory is under 128 characters in order to get +the build through otherwise this causes +bad interpreter: Permission denied +when the builddir path is too long. +This change now follows the path to actual host +executable to be put in the final scripts that +are generated so the shebang remains correct in +most situations. + +Upstream-Status: Inappropriate + +Signed-off-by: Awais Belal +--- + autoopts/mk-tpl-config.sh | 7 +-- + 1 file changed, 5 insertions(+), 2 deletions(-) + +diff --git a/autoopts/mk-tpl-config.sh b/autoopts/mk-tpl-config.sh +index c4708a2..7de546b 100755 +--- a/autoopts/mk-tpl-config.sh b/autoopts/mk-tpl-config.sh +@@ -98,11 +98,14 @@ fix_scripts() { + st=`sed 1q $f` + + case "$st" in +-*perl ) echo '#!/usr/bin/env perl' ++*perl ) PERL=`which perl` ++ PERL=`readlink -f ${PERL}` ++ echo '#!' ${PERL} + sed 1d $f + ;; + +-*/sh ) echo '#!' ${POSIX_SHELL} ++*/sh ) SH=`readlink -f ${POSIX_SHELL}` ++ echo '#!' ${SH} + sed 1d $f + ;; + +-- +2.11.1 + -- 2.11.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] ✗ patchtest: failure for useradd: Create lib/oe/useradd function library (rev2)
== Series Details == Series: useradd: Create lib/oe/useradd function library (rev2) Revision: 2 URL : https://patchwork.openembedded.org/series/6697/ State : failure == Summary == Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on the proposed series by patchtest resulting in the following failures: * Patch[v2] useradd: Create lib/oe/useradd function library Issue Patch is missing Signed-off-by [test_signed_off_by_presence] Suggested fixSign off the patch (either manually or with "git commit --amend -s") If you believe any of these test results are incorrect, please reply to the mailing list (openembedded-core@lists.openembedded.org) raising your concerns. Otherwise we would appreciate you correcting the issues and submitting a new version of the patchset if applicable. Please ensure you add/increment the version number when sending the new version (i.e. [PATCH] -> [PATCH v2] -> [PATCH v3] -> ...). --- Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCHv2] useradd: Create lib/oe/useradd function library
From: Richard Purdie The code in useradd-staticids is generally useful for user addition functionality but is not reusable in its current form. Refactor the code into a set of library functions. Signed-off-by: Peter Kjellerstedt --- And a third version to add the missing Signed-off-by line... meta/classes/useradd-staticids.bbclass | 72 -- meta/lib/oe/useradd.py | 68 2 files changed, 76 insertions(+), 64 deletions(-) create mode 100644 meta/lib/oe/useradd.py diff --git a/meta/classes/useradd-staticids.bbclass b/meta/classes/useradd-staticids.bbclass index 2d282c0d71..ce4ac62ab5 100644 --- a/meta/classes/useradd-staticids.bbclass +++ b/meta/classes/useradd-staticids.bbclass @@ -1,22 +1,10 @@ # In order to support a deterministic set of 'dynamic' users/groups, # we need a function to reformat the params based on a static file def update_useradd_static_config(d): -import argparse import itertools import re import errno - -class myArgumentParser( argparse.ArgumentParser ): -def _print_message(self, message, file=None): -bb.warn("%s - %s: %s" % (d.getVar('PN'), pkg, message)) - -# This should never be called... -def exit(self, status=0, message=None): -message = message or ("%s - %s: useradd.bbclass: Argument parsing exited" % (d.getVar('PN'), pkg)) -error(message) - -def error(self, message): -bb.fatal(message) +import oe.useradd def list_extend(iterable, length, obj = None): """Ensure that iterable is the specified length by extending with obj @@ -59,31 +47,7 @@ def update_useradd_static_config(d): # We parse and rewrite the useradd components def rewrite_useradd(params, is_pkg): -# The following comes from --help on useradd from shadow -parser = myArgumentParser(prog='useradd') -parser.add_argument("-b", "--base-dir", metavar="BASE_DIR", help="base directory for the home directory of the new account") -parser.add_argument("-c", "--comment", metavar="COMMENT", help="GECOS field of the new account") -parser.add_argument("-d", "--home-dir", metavar="HOME_DIR", help="home directory of the new account") -parser.add_argument("-D", "--defaults", help="print or change default useradd configuration", action="store_true") -parser.add_argument("-e", "--expiredate", metavar="EXPIRE_DATE", help="expiration date of the new account") -parser.add_argument("-f", "--inactive", metavar="INACTIVE", help="password inactivity period of the new account") -parser.add_argument("-g", "--gid", metavar="GROUP", help="name or ID of the primary group of the new account") -parser.add_argument("-G", "--groups", metavar="GROUPS", help="list of supplementary groups of the new account") -parser.add_argument("-k", "--skel", metavar="SKEL_DIR", help="use this alternative skeleton directory") -parser.add_argument("-K", "--key", metavar="KEY=VALUE", help="override /etc/login.defs defaults") -parser.add_argument("-l", "--no-log-init", help="do not add the user to the lastlog and faillog databases", action="store_true") -parser.add_argument("-m", "--create-home", help="create the user's home directory", action="store_const", const=True) -parser.add_argument("-M", "--no-create-home", dest="create_home", help="do not create the user's home directory", action="store_const", const=False) -parser.add_argument("-N", "--no-user-group", dest="user_group", help="do not create a group with the same name as the user", action="store_const", const=False) -parser.add_argument("-o", "--non-unique", help="allow to create users with duplicate (non-unique UID)", action="store_true") -parser.add_argument("-p", "--password", metavar="PASSWORD", help="encrypted password of the new account") -parser.add_argument("-P", "--clear-password", metavar="CLEAR_PASSWORD", help="use this clear password for the new account") -parser.add_argument("-R", "--root", metavar="CHROOT_DIR", help="directory to chroot into") -parser.add_argument("-r", "--system", help="create a system account", action="store_true") -parser.add_argument("-s", "--shell", metavar="SHELL", help="login shell of the new account") -parser.add_argument("-u", "--uid", metavar="UID", help="user ID of the new account") -parser.add_argument("-U", "--user-group", help="create a group with the same name as the user", action="store_const", const=True) -parser.add_argument("LOGIN", help="Login name of the new user") +parser = oe.useradd.build_useradd_parser() # Return a list of configuration files based on either the default # files/passwd or the contents of USERADD_UID_TABLES @@ -100,12 +64,9 @@ def update_useradd_static_config(d): newp
[OE-core] [PATCHv2] useradd: Create lib/oe/useradd function library
From: Richard Purdie The code in useradd-staticids is generally useful for user addition functionality but is not reusable in its current form. Refactor the code into a set of library functions. --- Needed to re-add an import of oe.useradd in useradd-staticids.bbclass that I had removed when I synchronized my and Richard's versions. meta/classes/useradd-staticids.bbclass | 72 -- meta/lib/oe/useradd.py | 68 2 files changed, 76 insertions(+), 64 deletions(-) create mode 100644 meta/lib/oe/useradd.py diff --git a/meta/classes/useradd-staticids.bbclass b/meta/classes/useradd-staticids.bbclass index 2d282c0d71..ce4ac62ab5 100644 --- a/meta/classes/useradd-staticids.bbclass +++ b/meta/classes/useradd-staticids.bbclass @@ -1,22 +1,10 @@ # In order to support a deterministic set of 'dynamic' users/groups, # we need a function to reformat the params based on a static file def update_useradd_static_config(d): -import argparse import itertools import re import errno - -class myArgumentParser( argparse.ArgumentParser ): -def _print_message(self, message, file=None): -bb.warn("%s - %s: %s" % (d.getVar('PN'), pkg, message)) - -# This should never be called... -def exit(self, status=0, message=None): -message = message or ("%s - %s: useradd.bbclass: Argument parsing exited" % (d.getVar('PN'), pkg)) -error(message) - -def error(self, message): -bb.fatal(message) +import oe.useradd def list_extend(iterable, length, obj = None): """Ensure that iterable is the specified length by extending with obj @@ -59,31 +47,7 @@ def update_useradd_static_config(d): # We parse and rewrite the useradd components def rewrite_useradd(params, is_pkg): -# The following comes from --help on useradd from shadow -parser = myArgumentParser(prog='useradd') -parser.add_argument("-b", "--base-dir", metavar="BASE_DIR", help="base directory for the home directory of the new account") -parser.add_argument("-c", "--comment", metavar="COMMENT", help="GECOS field of the new account") -parser.add_argument("-d", "--home-dir", metavar="HOME_DIR", help="home directory of the new account") -parser.add_argument("-D", "--defaults", help="print or change default useradd configuration", action="store_true") -parser.add_argument("-e", "--expiredate", metavar="EXPIRE_DATE", help="expiration date of the new account") -parser.add_argument("-f", "--inactive", metavar="INACTIVE", help="password inactivity period of the new account") -parser.add_argument("-g", "--gid", metavar="GROUP", help="name or ID of the primary group of the new account") -parser.add_argument("-G", "--groups", metavar="GROUPS", help="list of supplementary groups of the new account") -parser.add_argument("-k", "--skel", metavar="SKEL_DIR", help="use this alternative skeleton directory") -parser.add_argument("-K", "--key", metavar="KEY=VALUE", help="override /etc/login.defs defaults") -parser.add_argument("-l", "--no-log-init", help="do not add the user to the lastlog and faillog databases", action="store_true") -parser.add_argument("-m", "--create-home", help="create the user's home directory", action="store_const", const=True) -parser.add_argument("-M", "--no-create-home", dest="create_home", help="do not create the user's home directory", action="store_const", const=False) -parser.add_argument("-N", "--no-user-group", dest="user_group", help="do not create a group with the same name as the user", action="store_const", const=False) -parser.add_argument("-o", "--non-unique", help="allow to create users with duplicate (non-unique UID)", action="store_true") -parser.add_argument("-p", "--password", metavar="PASSWORD", help="encrypted password of the new account") -parser.add_argument("-P", "--clear-password", metavar="CLEAR_PASSWORD", help="use this clear password for the new account") -parser.add_argument("-R", "--root", metavar="CHROOT_DIR", help="directory to chroot into") -parser.add_argument("-r", "--system", help="create a system account", action="store_true") -parser.add_argument("-s", "--shell", metavar="SHELL", help="login shell of the new account") -parser.add_argument("-u", "--uid", metavar="UID", help="user ID of the new account") -parser.add_argument("-U", "--user-group", help="create a group with the same name as the user", action="store_const", const=True) -parser.add_argument("LOGIN", help="Login name of the new user") +parser = oe.useradd.build_useradd_parser() # Return a list of configuration files based on either the default # files/passwd or the contents of USERADD_UID_TABLES @@ -100,12 +64,9 @@ def update_use
[OE-core] ✗ patchtest: failure for useradd: Create lib/oe/useradd function library
== Series Details == Series: useradd: Create lib/oe/useradd function library Revision: 1 URL : https://patchwork.openembedded.org/series/6697/ State : failure == Summary == Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on the proposed series by patchtest resulting in the following failures: * Patchuseradd: Create lib/oe/useradd function library Issue Patch is missing Signed-off-by [test_signed_off_by_presence] Suggested fixSign off the patch (either manually or with "git commit --amend -s") If you believe any of these test results are incorrect, please reply to the mailing list (openembedded-core@lists.openembedded.org) raising your concerns. Otherwise we would appreciate you correcting the issues and submitting a new version of the patchset if applicable. Please ensure you add/increment the version number when sending the new version (i.e. [PATCH] -> [PATCH v2] -> [PATCH v3] -> ...). --- Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH] useradd: Create lib/oe/useradd function library
From: Richard Purdie The code in useradd-staticids is generally useful for user addition functionality but is not reusable in its current form. Refactor the code into a set of library functions. --- meta/classes/useradd-staticids.bbclass | 71 -- meta/lib/oe/useradd.py | 68 2 files changed, 75 insertions(+), 64 deletions(-) create mode 100644 meta/lib/oe/useradd.py diff --git a/meta/classes/useradd-staticids.bbclass b/meta/classes/useradd-staticids.bbclass index 2d282c0d71..1e75ce44e5 100644 --- a/meta/classes/useradd-staticids.bbclass +++ b/meta/classes/useradd-staticids.bbclass @@ -1,23 +1,10 @@ # In order to support a deterministic set of 'dynamic' users/groups, # we need a function to reformat the params based on a static file def update_useradd_static_config(d): -import argparse import itertools import re import errno -class myArgumentParser( argparse.ArgumentParser ): -def _print_message(self, message, file=None): -bb.warn("%s - %s: %s" % (d.getVar('PN'), pkg, message)) - -# This should never be called... -def exit(self, status=0, message=None): -message = message or ("%s - %s: useradd.bbclass: Argument parsing exited" % (d.getVar('PN'), pkg)) -error(message) - -def error(self, message): -bb.fatal(message) - def list_extend(iterable, length, obj = None): """Ensure that iterable is the specified length by extending with obj and return it as a list""" @@ -59,31 +46,7 @@ def update_useradd_static_config(d): # We parse and rewrite the useradd components def rewrite_useradd(params, is_pkg): -# The following comes from --help on useradd from shadow -parser = myArgumentParser(prog='useradd') -parser.add_argument("-b", "--base-dir", metavar="BASE_DIR", help="base directory for the home directory of the new account") -parser.add_argument("-c", "--comment", metavar="COMMENT", help="GECOS field of the new account") -parser.add_argument("-d", "--home-dir", metavar="HOME_DIR", help="home directory of the new account") -parser.add_argument("-D", "--defaults", help="print or change default useradd configuration", action="store_true") -parser.add_argument("-e", "--expiredate", metavar="EXPIRE_DATE", help="expiration date of the new account") -parser.add_argument("-f", "--inactive", metavar="INACTIVE", help="password inactivity period of the new account") -parser.add_argument("-g", "--gid", metavar="GROUP", help="name or ID of the primary group of the new account") -parser.add_argument("-G", "--groups", metavar="GROUPS", help="list of supplementary groups of the new account") -parser.add_argument("-k", "--skel", metavar="SKEL_DIR", help="use this alternative skeleton directory") -parser.add_argument("-K", "--key", metavar="KEY=VALUE", help="override /etc/login.defs defaults") -parser.add_argument("-l", "--no-log-init", help="do not add the user to the lastlog and faillog databases", action="store_true") -parser.add_argument("-m", "--create-home", help="create the user's home directory", action="store_const", const=True) -parser.add_argument("-M", "--no-create-home", dest="create_home", help="do not create the user's home directory", action="store_const", const=False) -parser.add_argument("-N", "--no-user-group", dest="user_group", help="do not create a group with the same name as the user", action="store_const", const=False) -parser.add_argument("-o", "--non-unique", help="allow to create users with duplicate (non-unique UID)", action="store_true") -parser.add_argument("-p", "--password", metavar="PASSWORD", help="encrypted password of the new account") -parser.add_argument("-P", "--clear-password", metavar="CLEAR_PASSWORD", help="use this clear password for the new account") -parser.add_argument("-R", "--root", metavar="CHROOT_DIR", help="directory to chroot into") -parser.add_argument("-r", "--system", help="create a system account", action="store_true") -parser.add_argument("-s", "--shell", metavar="SHELL", help="login shell of the new account") -parser.add_argument("-u", "--uid", metavar="UID", help="user ID of the new account") -parser.add_argument("-U", "--user-group", help="create a group with the same name as the user", action="store_const", const=True) -parser.add_argument("LOGIN", help="Login name of the new user") +parser = oe.useradd.build_useradd_parser() # Return a list of configuration files based on either the default # files/passwd or the contents of USERADD_UID_TABLES @@ -100,12 +63,9 @@ def update_useradd_static_config(d): newparams = [] users = None -for param in re.split('''[ \t]*;[ \t]*(?=(?:
Re: [OE-core] [PATCH 4/4] useradd: Create lib/oe/useradd function library
> -Original Message- > From: openembedded-core-boun...@lists.openembedded.org > [mailto:openembedded-core-boun...@lists.openembedded.org] On Behalf Of > Richard Purdie > Sent: den 12 maj 2017 10:16 > To: openembedded-core@lists.openembedded.org > Subject: [OE-core] [PATCH 4/4] useradd: Create lib/oe/useradd function > library > > The code in useradd-staticids is generally useful for user addition > functionality but is not reusable in its current form. Refactor the > code into a set of library functions. > > Signed-off-by: Richard Purdie > --- > meta/classes/useradd-staticids.bbclass | 47 +++ > meta/lib/oe/useradd.py | 70 > ++ > 2 files changed, 76 insertions(+), 41 deletions(-) > create mode 100644 meta/lib/oe/useradd.py > > diff --git a/meta/classes/useradd-staticids.bbclass > b/meta/classes/useradd-staticids.bbclass > index 2d282c0..615136c 100644 > --- a/meta/classes/useradd-staticids.bbclass > +++ b/meta/classes/useradd-staticids.bbclass > @@ -1,7 +1,6 @@ > # In order to support a deterministic set of 'dynamic' users/groups, > # we need a function to reformat the params based on a static file > def update_useradd_static_config(d): > -import argparse > import itertools > import re > import errno > @@ -59,31 +58,7 @@ def update_useradd_static_config(d): > > # We parse and rewrite the useradd components > def rewrite_useradd(params, is_pkg): > -# The following comes from --help on useradd from shadow > -parser = myArgumentParser(prog='useradd') > -parser.add_argument("-b", "--base-dir", metavar="BASE_DIR", > help="base directory for the home directory of the new account") > -parser.add_argument("-c", "--comment", metavar="COMMENT", > help="GECOS field of the new account") > -parser.add_argument("-d", "--home-dir", metavar="HOME_DIR", > help="home directory of the new account") > -parser.add_argument("-D", "--defaults", help="print or change > default useradd configuration", action="store_true") > -parser.add_argument("-e", "--expiredate", > metavar="EXPIRE_DATE", help="expiration date of the new account") > -parser.add_argument("-f", "--inactive", metavar="INACTIVE", > help="password inactivity period of the new account") > -parser.add_argument("-g", "--gid", metavar="GROUP", help="name > or ID of the primary group of the new account") > -parser.add_argument("-G", "--groups", metavar="GROUPS", > help="list of supplementary groups of the new account") > -parser.add_argument("-k", "--skel", metavar="SKEL_DIR", > help="use this alternative skeleton directory") > -parser.add_argument("-K", "--key", metavar="KEY=VALUE", > help="override /etc/login.defs defaults") > -parser.add_argument("-l", "--no-log-init", help="do not add > the user to the lastlog and faillog databases", action="store_true") > -parser.add_argument("-m", "--create-home", help="create the > user's home directory", action="store_const", const=True) > -parser.add_argument("-M", "--no-create-home", > dest="create_home", help="do not create the user's home directory", > action="store_const", const=False) > -parser.add_argument("-N", "--no-user-group", > dest="user_group", help="do not create a group with the same name as > the user", action="store_const", const=False) > -parser.add_argument("-o", "--non-unique", help="allow to > create users with duplicate (non-unique UID)", action="store_true") > -parser.add_argument("-p", "--password", metavar="PASSWORD", > help="encrypted password of the new account") > -parser.add_argument("-P", "--clear-password", > metavar="CLEAR_PASSWORD", help="use this clear password for the new > account") > -parser.add_argument("-R", "--root", metavar="CHROOT_DIR", > help="directory to chroot into") > -parser.add_argument("-r", "--system", help="create a system > account", action="store_true") > -parser.add_argument("-s", "--shell", metavar="SHELL", > help="login shell of the new account") > -parser.add_argument("-u", "--uid", metavar="UID", help="user > ID of the new account") > -parser.add_argument("-U", "--user-group", help="create a group > with the same name as the user", action="store_const", const=True) > -parser.add_argument("LOGIN", help="Login name of the new > user") > +parser = oe.useradd.build_useradd_parser() > > # Return a list of configuration files based on either the > default > # files/passwd or the contents of USERADD_UID_TABLES > @@ -100,12 +75,12 @@ def update_useradd_static_config(d): > > newparams = [] > users = None > -for param in re.split('''[ \t]*;[ > \t]*(?=(?:[^'"]|'[^']*'|"[^"]*")*$)''', params): > +for param in oe.useradd.useradd_splitargs2(params): > param = param.strip() > if not param:
[OE-core] [PATCH 1/4] glibc: Avoid errors if you accidentally create a git symlink in the glibc source dir
If you accidentally create symlinks in the glibc sources directory, it fails in very hard to understand ways. Whilst most people don't do this, since I debugged it, specifify the list of plugins we use to avoid this biting anyone else. Signed-off-by: Richard Purdie --- meta/recipes-core/glibc/glibc_2.25.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/glibc/glibc_2.25.bb b/meta/recipes-core/glibc/glibc_2.25.bb index cf9c4f7..ab6fbbe 100644 --- a/meta/recipes-core/glibc/glibc_2.25.bb +++ b/meta/recipes-core/glibc/glibc_2.25.bb @@ -73,7 +73,7 @@ EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \ --without-cvs --disable-profile \ --disable-debug --without-gd \ --enable-clocale=gnu \ ---enable-add-ons \ +--enable-add-ons=libidn \ --with-headers=${STAGING_INCDIR} \ --without-selinux \ --enable-obsolete-rpc \ -- 2.7.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH 4/4] useradd: Create lib/oe/useradd function library
The code in useradd-staticids is generally useful for user addition functionality but is not reusable in its current form. Refactor the code into a set of library functions. Signed-off-by: Richard Purdie --- meta/classes/useradd-staticids.bbclass | 47 +++ meta/lib/oe/useradd.py | 70 ++ 2 files changed, 76 insertions(+), 41 deletions(-) create mode 100644 meta/lib/oe/useradd.py diff --git a/meta/classes/useradd-staticids.bbclass b/meta/classes/useradd-staticids.bbclass index 2d282c0..615136c 100644 --- a/meta/classes/useradd-staticids.bbclass +++ b/meta/classes/useradd-staticids.bbclass @@ -1,7 +1,6 @@ # In order to support a deterministic set of 'dynamic' users/groups, # we need a function to reformat the params based on a static file def update_useradd_static_config(d): -import argparse import itertools import re import errno @@ -59,31 +58,7 @@ def update_useradd_static_config(d): # We parse and rewrite the useradd components def rewrite_useradd(params, is_pkg): -# The following comes from --help on useradd from shadow -parser = myArgumentParser(prog='useradd') -parser.add_argument("-b", "--base-dir", metavar="BASE_DIR", help="base directory for the home directory of the new account") -parser.add_argument("-c", "--comment", metavar="COMMENT", help="GECOS field of the new account") -parser.add_argument("-d", "--home-dir", metavar="HOME_DIR", help="home directory of the new account") -parser.add_argument("-D", "--defaults", help="print or change default useradd configuration", action="store_true") -parser.add_argument("-e", "--expiredate", metavar="EXPIRE_DATE", help="expiration date of the new account") -parser.add_argument("-f", "--inactive", metavar="INACTIVE", help="password inactivity period of the new account") -parser.add_argument("-g", "--gid", metavar="GROUP", help="name or ID of the primary group of the new account") -parser.add_argument("-G", "--groups", metavar="GROUPS", help="list of supplementary groups of the new account") -parser.add_argument("-k", "--skel", metavar="SKEL_DIR", help="use this alternative skeleton directory") -parser.add_argument("-K", "--key", metavar="KEY=VALUE", help="override /etc/login.defs defaults") -parser.add_argument("-l", "--no-log-init", help="do not add the user to the lastlog and faillog databases", action="store_true") -parser.add_argument("-m", "--create-home", help="create the user's home directory", action="store_const", const=True) -parser.add_argument("-M", "--no-create-home", dest="create_home", help="do not create the user's home directory", action="store_const", const=False) -parser.add_argument("-N", "--no-user-group", dest="user_group", help="do not create a group with the same name as the user", action="store_const", const=False) -parser.add_argument("-o", "--non-unique", help="allow to create users with duplicate (non-unique UID)", action="store_true") -parser.add_argument("-p", "--password", metavar="PASSWORD", help="encrypted password of the new account") -parser.add_argument("-P", "--clear-password", metavar="CLEAR_PASSWORD", help="use this clear password for the new account") -parser.add_argument("-R", "--root", metavar="CHROOT_DIR", help="directory to chroot into") -parser.add_argument("-r", "--system", help="create a system account", action="store_true") -parser.add_argument("-s", "--shell", metavar="SHELL", help="login shell of the new account") -parser.add_argument("-u", "--uid", metavar="UID", help="user ID of the new account") -parser.add_argument("-U", "--user-group", help="create a group with the same name as the user", action="store_const", const=True) -parser.add_argument("LOGIN", help="Login name of the new user") +parser = oe.useradd.build_useradd_parser() # Return a list of configuration files based on either the default # files/passwd or the contents of USERADD_UID_TABLES @@ -100,12 +75,12 @@ def update_useradd_static_config(d): newparams = [] users = None -for param in re.split('''[ \t]*;[ \t]*(?=(?:[^'"]|'[^']*'|"[^"]*")*$)''', params): +for param in oe.useradd.useradd_splitargs2(params): param = param.strip() if not param: continue try: -uaargs = parser.parse_args(re.split('''[ \t]+(?=(?:[^'"]|'[^']*'|"[^"]*")*$)''', param)) +uaargs = parser.parse_args(oe.useradd.useradd_splitargs(param)) except: bb.fatal("%s: Unable to parse arguments for USERADD_PARAM_%s: '%s'" % (d.getVar('PN'), pkg, param)) @@ -213,17 +188,7 @@ def update_useradd_static_config(d): # We parse and rewrite the groupadd components def rewr
[OE-core] [PATCH 3/4] populate_sdk_ext: Avoid build failures where sstate was used
If sstate was used to populate the build and one of the universal-4.8 or universal-4.9 mirror urls was used, the sstate checks during eSDK construction could fail as it would zero out the SSTATE_MIRRORs variable. Use the same mirrors variable setting as the eSDK would end up using to perform the checks to avoid this. Signed-off-by: Richard Purdie --- meta/classes/populate_sdk_ext.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass index 4dfb94c..69bc1d9 100644 --- a/meta/classes/populate_sdk_ext.bbclass +++ b/meta/classes/populate_sdk_ext.bbclass @@ -111,7 +111,7 @@ def create_filtered_tasklist(d, sdkbasepath, tasklistfile, conf_initpath): with open(sdkbasepath + '/conf/local.conf', 'a') as f: # Force the use of sstate from the build system f.write('\nSSTATE_DIR_forcevariable = "%s"\n' % d.getVar('SSTATE_DIR')) -f.write('SSTATE_MIRRORS_forcevariable = ""\n') +f.write('SSTATE_MIRRORS_forcevariable = "file://universal/(.*) file://universal-4.9/\\1 file://universal-4.9/(.*) file://universal-4.8/\\1"\n') # Ensure TMPDIR is the default so that clean_esdk_builddir() can delete it f.write('TMPDIR_forcevariable = "${TOPDIR}/tmp"\n') f.write('TCLIBCAPPEND_forcevariable = ""\n') -- 2.7.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH 2/4] gcc-configure/gcc-target: Move arm6/7 config to target only
We only build one gcc-cross per architecture and having target specific flags means gcc-cross would rebuild. These flags are really for the on target case, so they should be set in gcc-target only. Signed-off-by: Richard Purdie --- meta/recipes-devtools/gcc/gcc-configure-common.inc | 8 meta/recipes-devtools/gcc/gcc-target.inc | 8 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/meta/recipes-devtools/gcc/gcc-configure-common.inc b/meta/recipes-devtools/gcc/gcc-configure-common.inc index 00ef89e..0865259 100644 --- a/meta/recipes-devtools/gcc/gcc-configure-common.inc +++ b/meta/recipes-devtools/gcc/gcc-configure-common.inc @@ -66,14 +66,6 @@ EXTRA_OECONF_append_mipsisa32r6 = " --with-abi=32 --with-arch=mips32r6" EXTRA_OECONF_append_mipsisa64r6el = " --with-abi=64 --with-arch-64=mips64r6" EXTRA_OECONF_append_mipsisa64r6 = " --with-abi=64 --with-arch-64=mips64r6" -# ARMv6+ adds atomic instructions that affect the ABI in libraries built -# with TUNE_CCARGS in gcc-runtime. Make the compiler default to a -# compatible architecture. armv6 and armv7a cover the minimum tune -# features used in OE. -EXTRA_OECONF_append_armv6 = " --with-arch=armv6" -EXTRA_OECONF_append_armv7a = " --with-arch=armv7-a" -EXTRA_OECONF_append_armv7ve = " --with-arch=armv7-a" - EXTRA_OECONF_GCC_FLOAT ??= "" CPPFLAGS = "" diff --git a/meta/recipes-devtools/gcc/gcc-target.inc b/meta/recipes-devtools/gcc/gcc-target.inc index eef4434..b6e31f5 100644 --- a/meta/recipes-devtools/gcc/gcc-target.inc +++ b/meta/recipes-devtools/gcc/gcc-target.inc @@ -9,6 +9,14 @@ EXTRA_OECONF_PATHS = "\ EXTRA_OECONF_append_linuxstdbase = " --enable-clocale=gnu" +# ARMv6+ adds atomic instructions that affect the ABI in libraries built +# with TUNE_CCARGS in gcc-runtime. Make the compiler default to a +# compatible architecture. armv6 and armv7a cover the minimum tune +# features used in OE. +EXTRA_OECONF_append_armv6 = " --with-arch=armv6" +EXTRA_OECONF_append_armv7a = " --with-arch=armv7-a" +EXTRA_OECONF_append_armv7ve = " --with-arch=armv7-a" + # libcc1 requres gcc_cv_objdump when cross build, but gcc_cv_objdump is # set in subdir gcc, so subdir libcc1 can't use it, export it here to # fix the problem. -- 2.7.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH] base: Simplify BASEDEPENDS construction
This code dates from distant times before we had class overrides. The comments are also rather stale. Rewrite this code using class overrides which makes it safer, more modern and more easily understandable. Signed-off-by: Richard Purdie --- meta/classes/base.bbclass| 21 +++-- meta/classes/gettext.bbclass | 2 +- 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index d95afb7..7892665 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -61,22 +61,15 @@ oe_runmake() { def base_dep_prepend(d): -# -# Ideally this will check a flag so we will operate properly in -# the case where host == build == target, for now we don't work in -# that case though. -# +if d.getVar('INHIBIT_DEFAULT_DEPS', False): +return "" +return "${BASE_DEFAULT_DEPS}" -deps = "" -# INHIBIT_DEFAULT_DEPS doesn't apply to the patch command. Whether or not -# we need that built is the responsibility of the patch function / class, not -# the application. -if not d.getVar('INHIBIT_DEFAULT_DEPS', False): -if (d.getVar('HOST_SYS') != d.getVar('BUILD_SYS')): -deps += " virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}compilerlibs virtual/libc " -return deps +BASE_DEFAULT_DEPS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}compilerlibs virtual/libc" -BASEDEPENDS = "${@base_dep_prepend(d)}" +BASEDEPENDS = "" +BASEDEPENDS_class-target = "${@base_dep_prepend(d)}" +BASEDEPENDS_class-nativesdk = "${@base_dep_prepend(d)}" DEPENDS_prepend="${BASEDEPENDS} " diff --git a/meta/classes/gettext.bbclass b/meta/classes/gettext.bbclass index 0be1424..d60a0c1 100644 --- a/meta/classes/gettext.bbclass +++ b/meta/classes/gettext.bbclass @@ -15,5 +15,5 @@ def gettext_oeconf(d): DEPENDS_GETTEXT ??= "virtual/gettext gettext-native" -BASEDEPENDS =+ "${@gettext_dependencies(d)}" +BASEDEPENDS_append = " ${@gettext_dependencies(d)}" EXTRA_OECONF_append = " ${@gettext_oeconf(d)}" -- 2.7.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH v2 2/5] image_types_wic: add do_populate_bootfs task
Hi Ed, On 11/05/17 15:21, Ed Bartosh wrote: +d.setVar("APPEND", "root=PARTUUID=%s" % partuuid) +bb.build.exec_func('build_efi_cfg', d) The rootfs wic allows you to build multiple rootfs'es in the image. With that, it'd be good to be able to set PARTUUIDs for each of the rootfs partitions and so that the bootloader LABELs give the options to boot from those. +} + +addtask do_populate_bootfs after do_image before do_image_wic What if user needed the artifacts on rootfs too. For example IMAGE_ROOTFS could be used as is to prepare sw updates (meta-swupd or ostree). -- Mikko -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH 3/3] kernel-fitimage: fix KERNEL_DEVICETREE includes subdirectory issue
* C.R. Guo [170511 06:08]: > Hello Anders Darander, > Thanks for your comments. > dtb inherit Linux-dtb > (http://git.yoctoproject.org/cgit.cgi/poky/tree/meta/recipes-kernel/linux/linux-dtb.inc). > From: openembedded-core-boun...@lists.openembedded.org > [mailto:openembedded-core-boun...@lists.openembedded.org] On Behalf Of Anders > Darander > Sent: Wednesday, May 10, 2017 9:21 PM > To: openembedded-core@lists.openembedded.org > Subject: Re: [OE-core] [PATCH 3/3] kernel-fitimage: fix KERNEL_DEVICETREE > includes subdirectory issue > * Chunrong Guo [170510 11:02]: > > From: Chunrong Guo > > * For example: > > KERNEL_DEVICETREE ?= "freescale/fsl-ls1046a-rdb.dtb" > > ${DTB}= "freescale/fsl-ls1046a-rdb.dtb" Ah, what I didn't know, is that the dts-files in arch/arm64/boot/dts are located in subdirectories, as compared to arch/arm/boot/dts, which directly holds all the dts-files... That explains your problems. Cheers, Anders -- Anders Darander, Senior System Architect ChargeStorm AB / eStorm AB -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core