Upgrade packages and fix failure of atftp with gcc 5.2
cover Upgrade packages and fix failure of atftp with gcc 5.2
From: Kai Kang <[email protected]>
Kai Kang (4):
autofs: 5.1.0 -> 5.1.1
atftp: build with gcc 5.2
ltrace: 7.2 -> 7.3
libvpx: 1.3.0 -> 1.4.0
meta-networking/recipes-daemons/atftp/atftp_git.bb | 2 + ...emd-allow-with-systemd-to-take-a-path-arg.patch | 47 -------- .../autofs/autofs-5.1.0/Makefile.rules-cross.patch | 23 ---- .../autofs-5.1.0/add-the-needed-stdarg.h.patch | 24 ----- .../autofs-5.0.7-do-not-check-for-modprobe.patch | 75 ------------- .../autofs-5.1.0/autofs-5.0.7-fix-lib-deps.patch | 28 ----- ...7-include-linux-nfs.h-directly-in-rpc_sub.patch | 32 ------ .../autofs-5.1.0/autofs-additional-distros.patch | 12 --- .../autofs/autofs-5.1.0/cross.patch | 44 -------- ...x-the-YACC-rule-to-fix-a-building-failure.patch | 62 ----------- .../autofs/autofs-5.1.0/fix_disable_ldap.patch | 42 -------- .../autofs/autofs-5.1.0/force-STRIP-to-emtpy.patch | 25 ----- .../autofs-5.1.0/libtirpc-name-clash-backout.patch | 28 ----- .../autofs/autofs-5.1.0/libtirpc.patch | 26 ----- .../autofs/autofs-5.1.0/no-bash.patch | 20 ---- .../autofs/autofs-5.1.0/remove-bashism.patch | 120 --------------------- ...-pkg-config-to-detect-libxml-2.0-and-krb5.patch | 39 ------- ...emd-allow-with-systemd-to-take-a-path-arg.patch | 47 ++++++++ .../autofs/autofs/Makefile.rules-cross.patch | 23 ++++ .../autofs/autofs/add-the-needed-stdarg.h.patch | 24 +++++ .../autofs-5.0.7-do-not-check-for-modprobe.patch | 75 +++++++++++++ .../autofs/autofs/autofs-5.0.7-fix-lib-deps.patch | 28 +++++ ...7-include-linux-nfs.h-directly-in-rpc_sub.patch | 32 ++++++ .../autofs/autofs/autofs-additional-distros.patch | 12 +++ .../recipes-daemons/autofs/autofs/cross.patch | 44 ++++++++ ...x-the-YACC-rule-to-fix-a-building-failure.patch | 62 +++++++++++ .../autofs/autofs/fix_disable_ldap.patch | 42 ++++++++ .../autofs/autofs/force-STRIP-to-emtpy.patch | 25 +++++ .../autofs/libtirpc-name-clash-backout.patch | 28 +++++ .../recipes-daemons/autofs/autofs/libtirpc.patch | 26 +++++ .../recipes-daemons/autofs/autofs/no-bash.patch | 20 ++++ .../autofs/autofs/remove-bashism.patch | 120 +++++++++++++++++++++ ...-pkg-config-to-detect-libxml-2.0-and-krb5.patch | 39 +++++++ .../recipes-daemons/autofs/autofs_5.1.0.bb | 72 ------------- .../recipes-daemons/autofs/autofs_5.1.1.bb | 72 +++++++++++++ ...n-Linux-backend-initialize-linkmap-struct.patch | 31 ------ ...-ltrace-fix-gcc-5-logical-not-parentheses.patch | 37 +++++++ meta-oe/recipes-devtools/ltrace/ltrace_git.bb | 8 +- .../0001-configure.sh-quote-local-variables.patch | 40 ------- .../libvpx-configure-support-blank-prefix.patch | 42 ++++---- meta-oe/recipes-multimedia/webm/libvpx_1.3.0.bb | 55 ---------- meta-oe/recipes-multimedia/webm/libvpx_1.4.0.bb | 53 +++++++++ 42 files changed, 836 insertions(+), 870 deletions(-) delete mode 100644 meta-networking/recipes-daemons/autofs/autofs-5.1.0/0001-systemd-allow-with-systemd-to-take-a-path-arg.patch delete mode 100644 meta-networking/recipes-daemons/autofs/autofs-5.1.0/Makefile.rules-cross.patch delete mode 100644 meta-networking/recipes-daemons/autofs/autofs-5.1.0/add-the-needed-stdarg.h.patch delete mode 100644 meta-networking/recipes-daemons/autofs/autofs-5.1.0/autofs-5.0.7-do-not-check-for-modprobe.patch delete mode 100644 meta-networking/recipes-daemons/autofs/autofs-5.1.0/autofs-5.0.7-fix-lib-deps.patch delete mode 100644 meta-networking/recipes-daemons/autofs/autofs-5.1.0/autofs-5.0.7-include-linux-nfs.h-directly-in-rpc_sub.patch delete mode 100644 meta-networking/recipes-daemons/autofs/autofs-5.1.0/autofs-additional-distros.patch delete mode 100644 meta-networking/recipes-daemons/autofs/autofs-5.1.0/cross.patch delete mode 100644 meta-networking/recipes-daemons/autofs/autofs-5.1.0/fix-the-YACC-rule-to-fix-a-building-failure.patch delete mode 100644 meta-networking/recipes-daemons/autofs/autofs-5.1.0/fix_disable_ldap.patch delete mode 100644 meta-networking/recipes-daemons/autofs/autofs-5.1.0/force-STRIP-to-emtpy.patch delete mode 100644 meta-networking/recipes-daemons/autofs/autofs-5.1.0/libtirpc-name-clash-backout.patch delete mode 100644 meta-networking/recipes-daemons/autofs/autofs-5.1.0/libtirpc.patch delete mode 100644 meta-networking/recipes-daemons/autofs/autofs-5.1.0/no-bash.patch delete mode 100644 meta-networking/recipes-daemons/autofs/autofs-5.1.0/remove-bashism.patch delete mode 100644 meta-networking/recipes-daemons/autofs/autofs-5.1.0/using-pkg-config-to-detect-libxml-2.0-and-krb5.patch create mode 100644 meta-networking/recipes-daemons/autofs/autofs/0001-systemd-allow-with-systemd-to-take-a-path-arg.patch create mode 100644 meta-networking/recipes-daemons/autofs/autofs/Makefile.rules-cross.patch create mode 100644 meta-networking/recipes-daemons/autofs/autofs/add-the-needed-stdarg.h.patch create mode 100644 meta-networking/recipes-daemons/autofs/autofs/autofs-5.0.7-do-not-check-for-modprobe.patch create mode 100644 meta-networking/recipes-daemons/autofs/autofs/autofs-5.0.7-fix-lib-deps.patch create mode 100644 meta-networking/recipes-daemons/autofs/autofs/autofs-5.0.7-include-linux-nfs.h-directly-in-rpc_sub.patch create mode 100644 meta-networking/recipes-daemons/autofs/autofs/autofs-additional-distros.patch create mode 100644 meta-networking/recipes-daemons/autofs/autofs/cross.patch create mode 100644 meta-networking/recipes-daemons/autofs/autofs/fix-the-YACC-rule-to-fix-a-building-failure.patch create mode 100644 meta-networking/recipes-daemons/autofs/autofs/fix_disable_ldap.patch create mode 100644 meta-networking/recipes-daemons/autofs/autofs/force-STRIP-to-emtpy.patch create mode 100644 meta-networking/recipes-daemons/autofs/autofs/libtirpc-name-clash-backout.patch create mode 100644 meta-networking/recipes-daemons/autofs/autofs/libtirpc.patch create mode 100644 meta-networking/recipes-daemons/autofs/autofs/no-bash.patch create mode 100644 meta-networking/recipes-daemons/autofs/autofs/remove-bashism.patch create mode 100644 meta-networking/recipes-daemons/autofs/autofs/using-pkg-config-to-detect-libxml-2.0-and-krb5.patch delete mode 100644 meta-networking/recipes-daemons/autofs/autofs_5.1.0.bb create mode 100644 meta-networking/recipes-daemons/autofs/autofs_5.1.1.bb delete mode 100644 meta-oe/recipes-devtools/ltrace/ltrace/0001-In-Linux-backend-initialize-linkmap-struct.patch create mode 100644 meta-oe/recipes-devtools/ltrace/ltrace/0001-ltrace-fix-gcc-5-logical-not-parentheses.patch delete mode 100644 meta-oe/recipes-multimedia/webm/libvpx/0001-configure.sh-quote-local-variables.patch delete mode 100644 meta-oe/recipes-multimedia/webm/libvpx_1.3.0.bb create mode 100644 meta-oe/recipes-multimedia/webm/libvpx_1.4.0.bb
Signature · 1 line
1.9.1
PATCH 1/4 autofs: 5.1.0 -> 5.1.1
From: Kai Kang <[email protected]>
---
.../0001-systemd-allow-with-systemd-to-take-a-path-arg.patch | 0
.../autofs/{autofs-5.1.0 => autofs}/Makefile.rules-cross.patch | 0
.../autofs/{autofs-5.1.0 => autofs}/add-the-needed-stdarg.h.patch | 0
.../autofs-5.0.7-do-not-check-for-modprobe.patch | 0
.../autofs/{autofs-5.1.0 => autofs}/autofs-5.0.7-fix-lib-deps.patch | 0
.../autofs-5.0.7-include-linux-nfs.h-directly-in-rpc_sub.patch | 0
.../autofs/{autofs-5.1.0 => autofs}/autofs-additional-distros.patch | 0
.../recipes-daemons/autofs/{autofs-5.1.0 => autofs}/cross.patch | 0
.../fix-the-YACC-rule-to-fix-a-building-failure.patch | 0
.../autofs/{autofs-5.1.0 => autofs}/fix_disable_ldap.patch | 0
.../autofs/{autofs-5.1.0 => autofs}/force-STRIP-to-emtpy.patch | 0
.../autofs/{autofs-5.1.0 => autofs}/libtirpc-name-clash-backout.patch | 0
.../recipes-daemons/autofs/{autofs-5.1.0 => autofs}/libtirpc.patch | 0
.../recipes-daemons/autofs/{autofs-5.1.0 => autofs}/no-bash.patch | 0
.../autofs/{autofs-5.1.0 => autofs}/remove-bashism.patch | 0
.../using-pkg-config-to-detect-libxml-2.0-and-krb5.patch | 0
.../recipes-daemons/autofs/{autofs_5.1.0.bb => autofs_5.1.1.bb} | 4 ++--
17 files changed, 2 insertions(+), 2 deletions(-)
rename meta-networking/recipes-daemons/autofs/{autofs-5.1.0 => autofs}/0001-systemd-allow-with-systemd-to-take-a-path-arg.patch (100%)
rename meta-networking/recipes-daemons/autofs/{autofs-5.1.0 => autofs}/Makefile.rules-cross.patch (100%)
rename meta-networking/recipes-daemons/autofs/{autofs-5.1.0 => autofs}/add-the-needed-stdarg.h.patch (100%)
rename meta-networking/recipes-daemons/autofs/{autofs-5.1.0 => autofs}/autofs-5.0.7-do-not-check-for-modprobe.patch (100%)
rename meta-networking/recipes-daemons/autofs/{autofs-5.1.0 => autofs}/autofs-5.0.7-fix-lib-deps.patch (100%)
rename meta-networking/recipes-daemons/autofs/{autofs-5.1.0 => autofs}/autofs-5.0.7-include-linux-nfs.h-directly-in-rpc_sub.patch (100%)
rename meta-networking/recipes-daemons/autofs/{autofs-5.1.0 => autofs}/autofs-additional-distros.patch (100%)
rename meta-networking/recipes-daemons/autofs/{autofs-5.1.0 => autofs}/cross.patch (100%)
rename meta-networking/recipes-daemons/autofs/{autofs-5.1.0 => autofs}/fix-the-YACC-rule-to-fix-a-building-failure.patch (100%)
rename meta-networking/recipes-daemons/autofs/{autofs-5.1.0 => autofs}/fix_disable_ldap.patch (100%)
rename meta-networking/recipes-daemons/autofs/{autofs-5.1.0 => autofs}/force-STRIP-to-emtpy.patch (100%)
rename meta-networking/recipes-daemons/autofs/{autofs-5.1.0 => autofs}/libtirpc-name-clash-backout.patch (100%)
rename meta-networking/recipes-daemons/autofs/{autofs-5.1.0 => autofs}/libtirpc.patch (100%)
rename meta-networking/recipes-daemons/autofs/{autofs-5.1.0 => autofs}/no-bash.patch (100%)
rename meta-networking/recipes-daemons/autofs/{autofs-5.1.0 => autofs}/remove-bashism.patch (100%)
rename meta-networking/recipes-daemons/autofs/{autofs-5.1.0 => autofs}/using-pkg-config-to-detect-libxml-2.0-and-krb5.patch (100%)
rename meta-networking/recipes-daemons/autofs/{autofs_5.1.0.bb => autofs_5.1.1.bb} (93%)meta-networking/recipes-daemons/autofs/autofs/0001-systemd-allow-with-systemd-to-take-a-path-arg.patch renamed from meta-networking/recipes-daemons/autofs/autofs-5.1.0/0001-systemd-allow-with-systemd-to-take-a-path-arg.patch +0 -0
meta-networking/recipes-daemons/autofs/autofs/Makefile.rules-cross.patch renamed from meta-networking/recipes-daemons/autofs/autofs-5.1.0/Makefile.rules-cross.patch +0 -0
meta-networking/recipes-daemons/autofs/autofs/add-the-needed-stdarg.h.patch renamed from meta-networking/recipes-daemons/autofs/autofs-5.1.0/add-the-needed-stdarg.h.patch +0 -0
meta-networking/recipes-daemons/autofs/autofs/autofs-5.0.7-do-not-check-for-modprobe.patch renamed from meta-networking/recipes-daemons/autofs/autofs-5.1.0/autofs-5.0.7-do-not-check-for-modprobe.patch +0 -0
meta-networking/recipes-daemons/autofs/autofs/autofs-5.0.7-fix-lib-deps.patch renamed from meta-networking/recipes-daemons/autofs/autofs-5.1.0/autofs-5.0.7-fix-lib-deps.patch +0 -0
meta-networking/recipes-daemons/autofs/autofs/autofs-5.0.7-include-linux-nfs.h-directly-in-rpc_sub.patch renamed from meta-networking/recipes-daemons/autofs/autofs-5.1.0/autofs-5.0.7-include-linux-nfs.h-directly-in-rpc_sub.patch +0 -0
meta-networking/recipes-daemons/autofs/autofs/autofs-additional-distros.patch renamed from meta-networking/recipes-daemons/autofs/autofs-5.1.0/autofs-additional-distros.patch +0 -0
meta-networking/recipes-daemons/autofs/autofs/cross.patch renamed from meta-networking/recipes-daemons/autofs/autofs-5.1.0/cross.patch +0 -0
meta-networking/recipes-daemons/autofs/autofs/fix-the-YACC-rule-to-fix-a-building-failure.patch renamed from meta-networking/recipes-daemons/autofs/autofs-5.1.0/fix-the-YACC-rule-to-fix-a-building-failure.patch +0 -0
meta-networking/recipes-daemons/autofs/autofs/fix_disable_ldap.patch renamed from meta-networking/recipes-daemons/autofs/autofs-5.1.0/fix_disable_ldap.patch +0 -0
meta-networking/recipes-daemons/autofs/autofs/force-STRIP-to-emtpy.patch renamed from meta-networking/recipes-daemons/autofs/autofs-5.1.0/force-STRIP-to-emtpy.patch +0 -0
meta-networking/recipes-daemons/autofs/autofs/libtirpc-name-clash-backout.patch renamed from meta-networking/recipes-daemons/autofs/autofs-5.1.0/libtirpc-name-clash-backout.patch +0 -0
meta-networking/recipes-daemons/autofs/autofs/libtirpc.patch renamed from meta-networking/recipes-daemons/autofs/autofs-5.1.0/libtirpc.patch +0 -0
meta-networking/recipes-daemons/autofs/autofs/no-bash.patch renamed from meta-networking/recipes-daemons/autofs/autofs-5.1.0/no-bash.patch +0 -0
meta-networking/recipes-daemons/autofs/autofs/remove-bashism.patch renamed from meta-networking/recipes-daemons/autofs/autofs-5.1.0/remove-bashism.patch +0 -0
meta-networking/recipes-daemons/autofs/autofs/using-pkg-config-to-detect-libxml-2.0-and-krb5.patch renamed from meta-networking/recipes-daemons/autofs/autofs-5.1.0/using-pkg-config-to-detect-libxml-2.0-and-krb5.patch +0 -0
meta-networking/recipes-daemons/autofs/autofs_5.1.1.bb renamed from meta-networking/recipes-daemons/autofs/autofs_5.1.0.bb +2 -2
@@ -23,8 +23,8 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/daemons/autofs/v5/autofs-${PV}.tar.gz \ file://fix-the-YACC-rule-to-fix-a-building-failure.patch \ " -SRC_URI[md5sum] = "b7724a9a55923f3c06933a8dfd1e79d3" -SRC_URI[sha256sum] = "794a28d178d2b21a2380ee71cbdb3b15b4be47c06f3de255b8c5c4351f046b26" +SRC_URI[md5sum] = "e143df66b614b8cdb1ff533735f8e12d" +SRC_URI[sha256sum] = "795419383b120d15699ab3b89ea0f3d029f6fb28405a83982d305c4b7b61130f" inherit update-rc.d pkgconfig
Signature · 1 line
1.9.1
PATCH 2/4 atftp: build with gcc 5.2
In reply to [email protected]From: Kai Kang <[email protected]>
atftp fails to build with gcc 5.2:
tftp_def.h:54:14: warning: inline function 'Strncpy' declared but never defined
GCC 5 defaults to -std=gnu11 instead of -std=gnu89. The semantics of inline function changes. Pass '-std=gnu89' to gcc to compile atftp.
Ref:
https://gcc.gnu.org/gcc-5/porting_to.html
--- meta-networking/recipes-daemons/atftp/atftp_git.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-networking/recipes-daemons/atftp/atftp_git.bb +2 -0
@@ -32,6 +32,8 @@ USERADD_PACKAGES = "${PN}d" USERADD_PARAM_${PN}d = "--system --no-create-home --shell /bin/false \ --user-group nobody" +EXTRA_OEMAKE = "CFLAGS='${CFLAGS} -std=gnu89'" + do_install_append() { install -d ${D}${sysconfdir}/init.d install -m 0755 ${WORKDIR}/atftpd.init ${D}${sysconfdir}/init.d/atftpd
Signature · 1 line
1.9.1
Re: [meta-networking][PATCH 2/4] atftp: build with gcc 5.2
Quoted 22 lines · On Fri, Aug 21, 2015 at 1:37 AM, <[email protected]> wrote:
From: Kai Kang <[email protected]>
atftp fails to build with gcc 5.2:
tftp_def.h:54:14: warning: inline function 'Strncpy' declared but never defined
GCC 5 defaults to -std=gnu11 instead of -std=gnu89. The semantics of inline function changes. Pass '-std=gnu89' to gcc to compile atftp.
Ref:
https://gcc.gnu.org/gcc-5/porting_to.htmlSigned-off-by Kai Kang <[email protected]>--- meta-networking/recipes-daemons/atftp/atftp_git.bb | 2 ++ 1 file changed, 2 insertions(+)meta-networking/recipes-daemons/atftp/atftp_git.bb +0
-0
meta-networking/recipes-daemons/atftp/atftp_git.bb USERADD_PACKAGES = "${PN}d" · line 35
Quoted 4 lines
meta-networking/recipes-daemons/atftp/atftp_git.bb +1
-0@@ -32,6 +32,8 @@ USERADD_PACKAGES = "${PN}d" USERADD_PARAM_${PN}d = "--system --no-create-home --shell /bin/false \ --user-group nobody" +EXTRA_OEMAKE = "CFLAGS='${CFLAGS} -std=gnu89'"
this is a woraround and will work, however if you are at and fix it once for all that will be desirable. eg. this file you could move the definition of
inline function into the relevant .h file and make it a static inline
Quoted 12 lines
meta-networking/recipes-daemons/atftp/atftp_git.bb +1
-1+ do_install_append() { install -d ${D}${sysconfdir}/init.d install -m 0755 ${WORKDIR}/atftpd.init ${D}${sysconfdir}/init.d/atftpd --1.9.1
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [meta-networking][PATCH 2/4] atftp: build with gcc 5.2
Quoted 26 lines · Khem Raj
Quoted 25 lines · On Fri, Aug 21, 2015 at 1:37 AM, <[email protected]> wrote:
From: Kai Kang <[email protected]>
atftp fails to build with gcc 5.2:
tftp_def.h:54:14: warning: inline function 'Strncpy' declared but never defined
GCC 5 defaults to -std=gnu11 instead of -std=gnu89. The semantics of inline function changes. Pass '-std=gnu89' to gcc to compile atftp.
Ref:
https://gcc.gnu.org/gcc-5/porting_to.htmlSigned-off-by Kai Kang <[email protected]>--- meta-networking/recipes-daemons/atftp/atftp_git.bb | 2 ++ 1 file changed, 2 insertions(+)meta-networking/recipes-daemons/atftp/atftp_git.bb +0
-0@@ -32,6 +32,8 @@ USERADD_PACKAGES = "${PN}d" USERADD_PARAM_${PN}d = "--system --no-create-home --shell /bin/false \ --user-group nobody"
Quoted 5 lines
meta-networking/recipes-daemons/atftp/atftp_git.bb USERADD_PACKAGES = "${PN}d" · line 35
Quoted 1 line
meta-networking/recipes-daemons/atftp/atftp_git.bb +1
-0+EXTRA_OEMAKE = "CFLAGS='${CFLAGS} -std=gnu89'"this is a woraround and will work, however if you are at and fix it once for all that will be desirable. eg. this file you could move the definition of
inline function into the relevant .h file and make it a static inline
Hi Raj,
Thanks. I'll try it.
--Kai
Quoted 13 lines
Quoted 13 lines
meta-networking/recipes-daemons/atftp/atftp_git.bb +1
-1+ do_install_append() { install -d ${D}${sysconfdir}/init.d install -m 0755 ${WORKDIR}/atftpd.init ${D}${sysconfdir}/init.d/atftpd --1.9.1
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 2 lines
Regards, Neil | Kai Kang
Re: [meta-networking][PATCH 2/4] atftp: build with gcc 5.2
Quoted 34 lines · Kang Kai
Quoted 27 lines · Khem Raj
Quoted 26 lines · On Fri, Aug 21, 2015 at 1:37 AM, <[email protected]> wrote:
From: Kai Kang <[email protected]>
atftp fails to build with gcc 5.2:
tftp_def.h:54:14: warning: inline function 'Strncpy' declared but never defined
GCC 5 defaults to -std=gnu11 instead of -std=gnu89. The semantics of inline function changes. Pass '-std=gnu89' to gcc to compile atftp.
Ref:
https://gcc.gnu.org/gcc-5/porting_to.htmlSigned-off-by Kai Kang <[email protected]>--- meta-networking/recipes-daemons/atftp/atftp_git.bb | 2 ++ 1 file changed, 2 insertions(+)meta-networking/recipes-daemons/atftp/atftp_git.bb +0
-0@@ -32,6 +32,8 @@ USERADD_PACKAGES = "${PN}d" USERADD_PARAM_${PN}d = "--system --no-create-home --shell /bin/false \ --user-group nobody"Quoted 5 lines
meta-networking/recipes-daemons/atftp/atftp_git.bb USERADD_PACKAGES = "${PN}d" · line 35
Quoted 1 line
meta-networking/recipes-daemons/atftp/atftp_git.bb +1
-0+EXTRA_OEMAKE = "CFLAGS='${CFLAGS} -std=gnu89'"this is a woraround and will work, however if you are at and fix it once for all that will be desirable. eg. this file you could move the definition of
inline function into the relevant .h file and make it a static inline
Quoted 3 lines
Hi Raj,
Thanks. I'll try it.
I tried to move the definition to relevant .h file but it didn't work. It complained when did link:
options.o: In function `opt_options_to_string':
/buildarea3/kkang/poky-20141111/builds/x86-64-with-meta-oe/tmp/work/core2-64-poky-linux/atftp/0.7.1+gitAU TOINC+be3291a18c-r3/git/options.c:345: undefined reference to Strncpy' options.o:/buildarea3/kkang/poky-20141111/builds/x86-64-with-meta-oe/tmp/work/core2-64-poky-linux/atftp/0 .7.1+gitAUTOINC+be3291a18c-r3/git/options.c:347: more undefined references to Strncpy' follow
collect2: error: ld returned 1 exit status
And it has other issues about inline functions that I didn't mention in the commit message:
git/argz.c:44:8: error: redefinition of 'argz_next'
That's because more complex definitions:
In argz.h:
======================================
extern char *argz_next (__const char *__restrict __argz, size_t __argz_len,
__const char *__restrict __entry) __THROW;
#ifdef __USE_EXTERN_INLINES
extern inline char *argz_next (__const char *__argz, size_t __argz_len,
__const char *__entry)
{
return __argz_next (__argz, __argz_len, __entry);
}
#endif /* Use extern inlines. */
======================================
In argz.c:
======================================
char * argz_next (const char *argz, size_t argz_len, const char *entry) {
...
}
======================================
It seems gcc 5 doesn't support redefinition, right?
Compare to Debian, it fixed this issue by pass "-std=gnu89" to compiler too.
Ref:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=777783#12
Thanks,
Kai
Quoted 19 lines
--Kai
Quoted 14 lines
Quoted 14 lines
meta-networking/recipes-daemons/atftp/atftp_git.bb +1
-0+ do_install_append() { install -d ${D}${sysconfdir}/init.dinstall -m 0755 ${WORKDIR}/atftpd.init${D}${sysconfdir}/init.d/atftpd
Signature · 7 lines
1.9.1 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 2 lines
Regards, Neil | Kai Kang
PATCH 3/4 ltrace: 7.2 -> 7.3
In reply to [email protected]From: Kai Kang <[email protected]>
Upgrade ltrace from 7.2 to 7.3.
* update SRC_URI and SRCREV
* drop backport patch 0001-In-Linux-backend-initialize-linkmap-struct.patch
* fix error when compile with gcc 5.2
--- ...n-Linux-backend-initialize-linkmap-struct.patch | 31 ------------------ ...-ltrace-fix-gcc-5-logical-not-parentheses.patch | 37 ++++++++++++++++++++++ meta-oe/recipes-devtools/ltrace/ltrace_git.bb | 8 ++--- 3 files changed, 41 insertions(+), 35 deletions(-) delete mode 100644 meta-oe/recipes-devtools/ltrace/ltrace/0001-In-Linux-backend-initialize-linkmap-struct.patch create mode 100644 meta-oe/recipes-devtools/ltrace/ltrace/0001-ltrace-fix-gcc-5-logical-not-parentheses.patch
meta-oe/recipes-devtools/ltrace/ltrace/0001-In-Linux-backend-initialize-linkmap-struct.patch deleted +0 -31
@@ -1,31 +0,0 @@ -From efd12cfb10ccd2c612838c0e22069554ce60637c Mon Sep 17 00:00:00 2001 -From: Petr Machata <[email protected]> -Date: Wed, 2 Jan 2013 16:01:43 +0100 -Subject: [PATCH] In Linux backend, initialize linkmap struct - -GCC 4.7.2 -m32 -Os gives the following (spurious) warning: -proc.c: In function 'crawl_linkmap': -proc.c:544:25: error: 'rlm.l_addr' may be used uninitialized in this - -Upstream-Status: Backport -Signed-off-by: Martin Jansa <[email protected]> ---- - sysdeps/linux-gnu/proc.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/sysdeps/linux-gnu/proc.c b/sysdeps/linux-gnu/proc.c -index 6e01d28..d69c985 100644 ---- a/sysdeps/linux-gnu/proc.c -+++ b/sysdeps/linux-gnu/proc.c -@@ -484,7 +484,7 @@ crawl_linkmap(struct process *proc, struct lt_r_debug_64 *dbg) - arch_addr_t addr = (arch_addr_t)(uintptr_t)dbg->r_map; - - while (addr != 0) { -- struct lt_link_map_64 rlm; -+ struct lt_link_map_64 rlm = {}; - if (lm_fetcher(proc)(proc, addr, &rlm) < 0) { - debug(2, "Unable to read link map"); - return; --- -2.3.5 -
meta-oe/recipes-devtools/ltrace/ltrace/0001-ltrace-fix-gcc-5-logical-not-parentheses.patch new file +37 -0
@@ -0,0 +1,37 @@ +From 92bf386a18c9b49a9c44612b8ff7277c898de6cc Mon Sep 17 00:00:00 2001 +From: Kai Kang <[email protected]> +Date: Fri, 21 Aug 2015 16:07:52 +0800 +Subject: [PATCH] ltrace: fix gcc 5 logical not parentheses + +Upstream-Status: Pending + +Build ltrace with gcc 5.2, it fails with: + +error: logical not is only applied to the left hand side of comparison +[-Werror=logical-not-parentheses] + if (!need_data(data, offset, SIZE / 8) < 0) \ + ^ + +Fix it. + +Signed-off-by: Kai Kang <[email protected]> +--- + ltrace-elf.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/ltrace-elf.c b/ltrace-elf.c +index c571d2a..fe66f25 100644 +--- a/ltrace-elf.c ++++ b/ltrace-elf.c +@@ -218,7 +218,7 @@ need_data(Elf_Data *data, GElf_Xword offset, GElf_Xword size) + int \ + NAME(Elf_Data *data, GElf_Xword offset, uint##SIZE##_t *retp) \ + { \ +- if (!need_data(data, offset, SIZE / 8) < 0) \ ++ if (need_data(data, offset, SIZE / 8) >= 0) \ + return -1; \ + \ + if (data->d_buf == NULL) /* NODATA section */ { \ +-- +1.9.1 +
meta-oe/recipes-devtools/ltrace/ltrace_git.bb +4 -4
@@ -10,15 +10,15 @@ LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a" PE = "1" -PV = "7.2+git${SRCPV}" -SRCREV = "f44b28421979cec88d6d6a778fc27a8cd514f508" +PV = "7.3+git${SRCPV}" +SRCREV = "37ecc41b58be3dbdd79592a76e331b5b371e4f81" DEPENDS = "elfutils" RDEPENDS_${PN} = "elfutils" -SRC_URI = "git://anonscm.debian.org/collab-maint/ltrace.git \ +SRC_URI = "git://anonscm.debian.org/collab-maint/ltrace.git;branch=ltrace-0.7 \ file://ltrace-0.7.2-unused-typedef.patch \ file://configure-allow-to-disable-selinux-support.patch \ - file://0001-In-Linux-backend-initialize-linkmap-struct.patch \ + file://0001-ltrace-fix-gcc-5-logical-not-parentheses.patch \ " S = "${WORKDIR}/git"
Signature · 1 line
1.9.1
Re: [meta-oe][PATCH 3/4] ltrace: 7.2 -> 7.3
Quoted 81 lines · On Fri, Aug 21, 2015 at 1:37 AM, <[email protected]> wrote:
From: Kai Kang <[email protected]>
Upgrade ltrace from 7.2 to 7.3.
* update
SRC_URIand SRCREV
* drop backport patch 0001-In-Linux-backend-initialize-linkmap-struct.patch
* fix error when compile with gcc 5.2Signed-off-by Kai Kang <[email protected]>--- ...n-Linux-backend-initialize-linkmap-struct.patch | 31 ------------------ ...-ltrace-fix-gcc-5-logical-not-parentheses.patch | 37 ++++++++++++++++++++++ meta-oe/recipes-devtools/ltrace/ltrace_git.bb | 8 ++--- 3 files changed, 41 insertions(+), 35 deletions(-) delete mode 100644 meta-oe/recipes-devtools/ltrace/ltrace/0001-In-Linux-backend-initialize-linkmap-struct.patch create mode 100644 meta-oe/recipes-devtools/ltrace/ltrace/0001-ltrace-fix-gcc-5-logical-not-parentheses.patchmeta-oe/recipes-devtools/ltrace/ltrace/0001-In-Linux-backend-initialize-linkmap-struct.patch deleted +0
-31@@ -1,31 +0,0 @@ -From efd12cfb10ccd2c612838c0e22069554ce60637c Mon Sep 17 00:00:00 2001 -From: Petr Machata <[email protected]> -Date: Wed, 2 Jan 2013 16:01:43 +0100 -Subject: [PATCH] In Linux backend, initialize linkmap struct - -GCC 4.7.2 -m32 -Os gives the following (spurious) warning: -proc.c: In function 'crawl_linkmap': -proc.c:544:25: error: 'rlm.l_addr' may be used uninitialized in this - -Upstream-Status: Backport -Signed-off-by: Martin Jansa <[email protected]> ---- - sysdeps/linux-gnu/proc.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/sysdeps/linux-gnu/proc.c b/sysdeps/linux-gnu/proc.c -index 6e01d28..d69c985 100644 ---- a/sysdeps/linux-gnu/proc.c -+++ b/sysdeps/linux-gnu/proc.c -@@ -484,7 +484,7 @@ crawl_linkmap(struct process *proc, struct lt_r_debug_64 *dbg) - arch_addr_t addr = (arch_addr_t)(uintptr_t)dbg->r_map; - - while (addr != 0) { -- struct lt_link_map_64 rlm; -+ struct lt_link_map_64 rlm = {}; - if (lm_fetcher(proc)(proc, addr, &rlm) < 0) { - debug(2, "Unable to read link map"); - return; --- -2.3.5 -meta-oe/recipes-devtools/ltrace/ltrace/0001-ltrace-fix-gcc-5-logical-not-parentheses.patch new file +21
-0@@ -0,0 +1,37 @@ +From 92bf386a18c9b49a9c44612b8ff7277c898de6cc Mon Sep 17 00:00:00 2001 +From: Kai Kang <[email protected]> +Date: Fri, 21 Aug 2015 16:07:52 +0800 +Subject: [PATCH] ltrace: fix gcc 5 logical not parentheses + +Upstream-Status: Pending + +Build ltrace with gcc 5.2, it fails with: + +error: logical not is only applied to the left hand side of comparison +[-Werror=logical-not-parentheses] + if (!need_data(data, offset, SIZE / 8) < 0) \ + ^ + +Fix it. + +Signed-off-by: Kai Kang <[email protected]> +--- + ltrace-elf.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) +
meta-oe/recipes-devtools/ltrace/ltrace/0001-ltrace-fix-gcc-5-logical-not-parentheses.patch line 31
Quoted 10 lines
meta-oe/recipes-devtools/ltrace/ltrace/0001-ltrace-fix-gcc-5-logical-not-parentheses.patch new file +10
-0+diff --git a/ltrace-elf.c b/ltrace-elf.c +index c571d2a..fe66f25 100644 +--- a/ltrace-elf.c ++++ b/ltrace-elf.c +@@ -218,7 +218,7 @@ need_data(Elf_Data *data, GElf_Xword offset, GElf_Xword size) + int \ + NAME(Elf_Data *data, GElf_Xword offset, uint##SIZE##_t *retp) \ + { \ +- if (!need_data(data, offset, SIZE / 8) < 0) \ ++ if (need_data(data, offset, SIZE / 8) >= 0) \
While this might shut up the compiler, the fix seems end up with incorrect behavior to me. if you look at the function need_data() it returns 0 on success and < 0 on failure and you want to return -1 when the function fails not when it passes, as this patch now would be doing.
so a simple fix it to test if (need_data(data, offset, SIZE / 8) < 0)
Quoted 38 lines
meta-oe/recipes-devtools/ltrace/ltrace/0001-ltrace-fix-gcc-5-logical-not-parentheses.patch new file +6
-0+ return -1; \ + \ + if (data->d_buf == NULL) /* NODATA section */ { \ +-- +1.9.1 +meta-oe/recipes-devtools/ltrace/ltrace_git.bb +4
-5@@ -10,15 +10,15 @@ LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a" PE = "1" -PV = "7.2+git${SRCPV}" -SRCREV = "f44b28421979cec88d6d6a778fc27a8cd514f508" +PV = "7.3+git${SRCPV}" +SRCREV = "37ecc41b58be3dbdd79592a76e331b5b371e4f81" DEPENDS = "elfutils" RDEPENDS_${PN} = "elfutils" -SRC_URI = "git://anonscm.debian.org/collab-maint/ltrace.git \ +SRC_URI = "git://anonscm.debian.org/collab-maint/ltrace.git;branch=ltrace-0.7 \ file://ltrace-0.7.2-unused-typedef.patch \ file://configure-allow-to-disable-selinux-support.patch \ - file://0001-In-Linux-backend-initialize-linkmap-struct.patch \ + file://0001-ltrace-fix-gcc-5-logical-not-parentheses.patch \ " S = "${WORKDIR}/git" --1.9.1
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
PATCH 4/4 libvpx: 1.3.0 -> 1.4.0
In reply to [email protected]From: Kai Kang <[email protected]>
* update SRC_URI
* remove re-definition of S
* drop backport patch 0001-configure.sh-quote-local-variables.patch
* update context of libvpx-configure-support-blank-prefix.patch
---
.../0001-configure.sh-quote-local-variables.patch | 40 ---------------------
.../libvpx-configure-support-blank-prefix.patch | 42 +++++++++++-----------
.../webm/{libvpx_1.3.0.bb => libvpx_1.4.0.bb} | 10 +++---
3 files changed, 25 insertions(+), 67 deletions(-)
delete mode 100644 meta-oe/recipes-multimedia/webm/libvpx/0001-configure.sh-quote-local-variables.patch
rename meta-oe/recipes-multimedia/webm/{libvpx_1.3.0.bb => libvpx_1.4.0.bb} (79%)meta-oe/recipes-multimedia/webm/libvpx/0001-configure.sh-quote-local-variables.patch deleted +0 -40
@@ -1,40 +0,0 @@ -From f45fe1668401d72c2937a52385b492216715c0f9 Mon Sep 17 00:00:00 2001 -From: James Zern <[email protected]> -Date: Thu, 6 Mar 2014 15:58:37 -0800 -Subject: [PATCH] configure.sh: quote local variables - -fixes issue #711 - -specifying a multiword CC, e.g., CC='gcc -m32', would cause the failure -under dash - -reported in -https://bugs.gentoo.org/show_bug.cgi?id=498136 - -patch by floppymaster at gmail dot com - -Upstream-Status: Backport [f45fe1668401d72c2937a52385b492216715c0f9] - -Change-Id: I2ba246f765646161538622739961ec0f6c2d8c2d ---- - build/make/configure.sh | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/build/make/configure.sh b/build/make/configure.sh -index 449d1b9..43f8e77 100755 ---- a/build/make/configure.sh -+++ b/build/make/configure.sh -@@ -405,8 +405,8 @@ true - } - - write_common_target_config_mk() { -- local CC=${CC} -- local CXX=${CXX} -+ local CC="${CC}" -+ local CXX="${CXX}" - enabled ccache && CC="ccache ${CC}" - enabled ccache && CXX="ccache ${CXX}" - print_webm_license $1 "##" "" --- -1.8.3.2 -
meta-oe/recipes-multimedia/webm/libvpx/libvpx-configure-support-blank-prefix.patch +21 -21
52 lines not on this page · raw message
meta-oe/recipes-multimedia/webm/libvpx_1.4.0.bb renamed from meta-oe/recipes-multimedia/webm/libvpx_1.3.0.bb +4 -6
@@ -7,13 +7,11 @@ LICENSE = "BSD" LIC_FILES_CHKSUM = "file://LICENSE;md5=d5b04755015be901744a78cc30d390d4" -SRC_URI += "http://webm.googlecode.com/files/libvpx-v${PV}.tar.bz2 \ +SRC_URI += "http://storage.googleapis.com/downloads.webmproject.org/releases/webm/${BP}.tar.bz2 \ file://libvpx-configure-support-blank-prefix.patch \ - file://0001-configure.sh-quote-local-variables.patch" -SRC_URI[md5sum] = "14783a148872f2d08629ff7c694eb31f" -SRC_URI[sha256sum] = "d3dcc8d84af51c6c382b214397c62402e37a799e8ebcda6f4217aef0010451a9" - -S = "${WORKDIR}/libvpx-v${PV}" + " +SRC_URI[md5sum] = "63b1d7f59636a42eeeee9225cc14e7de" +SRC_URI[sha256sum] = "f582d9b2d60a592a4a3d8c32965ca2d2167e9ade38c6c30bac8801ff66a118e4" # ffmpeg links with this and fails # sysroots/armv4t-oe-linux-gnueabi/usr/lib/libvpx.a(vpx_encoder.c.o)(.text+0xc4): unresolvable R_ARM_THM_CALL relocation against symbol `memcpy@@GLIBC_2.4'
Signature · 1 line
1.9.1