All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Upgrade packages and fix failure of atftp with gcc 5.2
@ 2015-08-21  8:37 kai.kang
  2015-08-21  8:37 ` [meta-networking][PATCH 1/4] autofs: 5.1.0 -> 5.1.1 kai.kang
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: kai.kang @ 2015-08-21  8:37 UTC (permalink / raw)
  To: openembedded-devel

From: Kai Kang <kai.kang@windriver.com>


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

-- 
1.9.1



^ permalink raw reply	[flat|nested] 9+ messages in thread

* [meta-networking][PATCH 1/4] autofs: 5.1.0 -> 5.1.1
  2015-08-21  8:37 [PATCH 0/4] Upgrade packages and fix failure of atftp with gcc 5.2 kai.kang
@ 2015-08-21  8:37 ` kai.kang
  2015-08-21  8:37 ` [meta-networking][PATCH 2/4] atftp: build with gcc 5.2 kai.kang
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 9+ messages in thread
From: kai.kang @ 2015-08-21  8:37 UTC (permalink / raw)
  To: openembedded-devel

From: Kai Kang <kai.kang@windriver.com>

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 .../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%)

diff --git a/meta-networking/recipes-daemons/autofs/autofs-5.1.0/0001-systemd-allow-with-systemd-to-take-a-path-arg.patch b/meta-networking/recipes-daemons/autofs/autofs/0001-systemd-allow-with-systemd-to-take-a-path-arg.patch
similarity index 100%
rename from meta-networking/recipes-daemons/autofs/autofs-5.1.0/0001-systemd-allow-with-systemd-to-take-a-path-arg.patch
rename to meta-networking/recipes-daemons/autofs/autofs/0001-systemd-allow-with-systemd-to-take-a-path-arg.patch
diff --git a/meta-networking/recipes-daemons/autofs/autofs-5.1.0/Makefile.rules-cross.patch b/meta-networking/recipes-daemons/autofs/autofs/Makefile.rules-cross.patch
similarity index 100%
rename from meta-networking/recipes-daemons/autofs/autofs-5.1.0/Makefile.rules-cross.patch
rename to meta-networking/recipes-daemons/autofs/autofs/Makefile.rules-cross.patch
diff --git a/meta-networking/recipes-daemons/autofs/autofs-5.1.0/add-the-needed-stdarg.h.patch b/meta-networking/recipes-daemons/autofs/autofs/add-the-needed-stdarg.h.patch
similarity index 100%
rename from meta-networking/recipes-daemons/autofs/autofs-5.1.0/add-the-needed-stdarg.h.patch
rename to meta-networking/recipes-daemons/autofs/autofs/add-the-needed-stdarg.h.patch
diff --git a/meta-networking/recipes-daemons/autofs/autofs-5.1.0/autofs-5.0.7-do-not-check-for-modprobe.patch b/meta-networking/recipes-daemons/autofs/autofs/autofs-5.0.7-do-not-check-for-modprobe.patch
similarity index 100%
rename from meta-networking/recipes-daemons/autofs/autofs-5.1.0/autofs-5.0.7-do-not-check-for-modprobe.patch
rename to meta-networking/recipes-daemons/autofs/autofs/autofs-5.0.7-do-not-check-for-modprobe.patch
diff --git a/meta-networking/recipes-daemons/autofs/autofs-5.1.0/autofs-5.0.7-fix-lib-deps.patch b/meta-networking/recipes-daemons/autofs/autofs/autofs-5.0.7-fix-lib-deps.patch
similarity index 100%
rename from meta-networking/recipes-daemons/autofs/autofs-5.1.0/autofs-5.0.7-fix-lib-deps.patch
rename to meta-networking/recipes-daemons/autofs/autofs/autofs-5.0.7-fix-lib-deps.patch
diff --git a/meta-networking/recipes-daemons/autofs/autofs-5.1.0/autofs-5.0.7-include-linux-nfs.h-directly-in-rpc_sub.patch b/meta-networking/recipes-daemons/autofs/autofs/autofs-5.0.7-include-linux-nfs.h-directly-in-rpc_sub.patch
similarity index 100%
rename from meta-networking/recipes-daemons/autofs/autofs-5.1.0/autofs-5.0.7-include-linux-nfs.h-directly-in-rpc_sub.patch
rename to meta-networking/recipes-daemons/autofs/autofs/autofs-5.0.7-include-linux-nfs.h-directly-in-rpc_sub.patch
diff --git a/meta-networking/recipes-daemons/autofs/autofs-5.1.0/autofs-additional-distros.patch b/meta-networking/recipes-daemons/autofs/autofs/autofs-additional-distros.patch
similarity index 100%
rename from meta-networking/recipes-daemons/autofs/autofs-5.1.0/autofs-additional-distros.patch
rename to meta-networking/recipes-daemons/autofs/autofs/autofs-additional-distros.patch
diff --git a/meta-networking/recipes-daemons/autofs/autofs-5.1.0/cross.patch b/meta-networking/recipes-daemons/autofs/autofs/cross.patch
similarity index 100%
rename from meta-networking/recipes-daemons/autofs/autofs-5.1.0/cross.patch
rename to meta-networking/recipes-daemons/autofs/autofs/cross.patch
diff --git a/meta-networking/recipes-daemons/autofs/autofs-5.1.0/fix-the-YACC-rule-to-fix-a-building-failure.patch b/meta-networking/recipes-daemons/autofs/autofs/fix-the-YACC-rule-to-fix-a-building-failure.patch
similarity index 100%
rename from meta-networking/recipes-daemons/autofs/autofs-5.1.0/fix-the-YACC-rule-to-fix-a-building-failure.patch
rename to meta-networking/recipes-daemons/autofs/autofs/fix-the-YACC-rule-to-fix-a-building-failure.patch
diff --git a/meta-networking/recipes-daemons/autofs/autofs-5.1.0/fix_disable_ldap.patch b/meta-networking/recipes-daemons/autofs/autofs/fix_disable_ldap.patch
similarity index 100%
rename from meta-networking/recipes-daemons/autofs/autofs-5.1.0/fix_disable_ldap.patch
rename to meta-networking/recipes-daemons/autofs/autofs/fix_disable_ldap.patch
diff --git a/meta-networking/recipes-daemons/autofs/autofs-5.1.0/force-STRIP-to-emtpy.patch b/meta-networking/recipes-daemons/autofs/autofs/force-STRIP-to-emtpy.patch
similarity index 100%
rename from meta-networking/recipes-daemons/autofs/autofs-5.1.0/force-STRIP-to-emtpy.patch
rename to meta-networking/recipes-daemons/autofs/autofs/force-STRIP-to-emtpy.patch
diff --git a/meta-networking/recipes-daemons/autofs/autofs-5.1.0/libtirpc-name-clash-backout.patch b/meta-networking/recipes-daemons/autofs/autofs/libtirpc-name-clash-backout.patch
similarity index 100%
rename from meta-networking/recipes-daemons/autofs/autofs-5.1.0/libtirpc-name-clash-backout.patch
rename to meta-networking/recipes-daemons/autofs/autofs/libtirpc-name-clash-backout.patch
diff --git a/meta-networking/recipes-daemons/autofs/autofs-5.1.0/libtirpc.patch b/meta-networking/recipes-daemons/autofs/autofs/libtirpc.patch
similarity index 100%
rename from meta-networking/recipes-daemons/autofs/autofs-5.1.0/libtirpc.patch
rename to meta-networking/recipes-daemons/autofs/autofs/libtirpc.patch
diff --git a/meta-networking/recipes-daemons/autofs/autofs-5.1.0/no-bash.patch b/meta-networking/recipes-daemons/autofs/autofs/no-bash.patch
similarity index 100%
rename from meta-networking/recipes-daemons/autofs/autofs-5.1.0/no-bash.patch
rename to meta-networking/recipes-daemons/autofs/autofs/no-bash.patch
diff --git a/meta-networking/recipes-daemons/autofs/autofs-5.1.0/remove-bashism.patch b/meta-networking/recipes-daemons/autofs/autofs/remove-bashism.patch
similarity index 100%
rename from meta-networking/recipes-daemons/autofs/autofs-5.1.0/remove-bashism.patch
rename to meta-networking/recipes-daemons/autofs/autofs/remove-bashism.patch
diff --git a/meta-networking/recipes-daemons/autofs/autofs-5.1.0/using-pkg-config-to-detect-libxml-2.0-and-krb5.patch b/meta-networking/recipes-daemons/autofs/autofs/using-pkg-config-to-detect-libxml-2.0-and-krb5.patch
similarity index 100%
rename from meta-networking/recipes-daemons/autofs/autofs-5.1.0/using-pkg-config-to-detect-libxml-2.0-and-krb5.patch
rename to meta-networking/recipes-daemons/autofs/autofs/using-pkg-config-to-detect-libxml-2.0-and-krb5.patch
diff --git a/meta-networking/recipes-daemons/autofs/autofs_5.1.0.bb b/meta-networking/recipes-daemons/autofs/autofs_5.1.1.bb
similarity index 93%
rename from meta-networking/recipes-daemons/autofs/autofs_5.1.0.bb
rename to meta-networking/recipes-daemons/autofs/autofs_5.1.1.bb
index fbfe4b3..0f4c247 100644
--- a/meta-networking/recipes-daemons/autofs/autofs_5.1.0.bb
+++ b/meta-networking/recipes-daemons/autofs/autofs_5.1.1.bb
@@ -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
 
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [meta-networking][PATCH 2/4] atftp: build with gcc 5.2
  2015-08-21  8:37 [PATCH 0/4] Upgrade packages and fix failure of atftp with gcc 5.2 kai.kang
  2015-08-21  8:37 ` [meta-networking][PATCH 1/4] autofs: 5.1.0 -> 5.1.1 kai.kang
@ 2015-08-21  8:37 ` kai.kang
  2015-08-21 16:08   ` Khem Raj
  2015-08-21  8:37 ` [meta-oe][PATCH 3/4] ltrace: 7.2 -> 7.3 kai.kang
  2015-08-21  8:37 ` [meta-oe][PATCH 4/4] libvpx: 1.3.0 -> 1.4.0 kai.kang
  3 siblings, 1 reply; 9+ messages in thread
From: kai.kang @ 2015-08-21  8:37 UTC (permalink / raw)
  To: openembedded-devel

From: Kai Kang <kai.kang@windriver.com>

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

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 meta-networking/recipes-daemons/atftp/atftp_git.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-networking/recipes-daemons/atftp/atftp_git.bb b/meta-networking/recipes-daemons/atftp/atftp_git.bb
index b53f637..0ece58f 100644
--- a/meta-networking/recipes-daemons/atftp/atftp_git.bb
+++ b/meta-networking/recipes-daemons/atftp/atftp_git.bb
@@ -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
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [meta-oe][PATCH 3/4] ltrace: 7.2 -> 7.3
  2015-08-21  8:37 [PATCH 0/4] Upgrade packages and fix failure of atftp with gcc 5.2 kai.kang
  2015-08-21  8:37 ` [meta-networking][PATCH 1/4] autofs: 5.1.0 -> 5.1.1 kai.kang
  2015-08-21  8:37 ` [meta-networking][PATCH 2/4] atftp: build with gcc 5.2 kai.kang
@ 2015-08-21  8:37 ` kai.kang
  2015-08-21 15:58   ` Khem Raj
  2015-08-21  8:37 ` [meta-oe][PATCH 4/4] libvpx: 1.3.0 -> 1.4.0 kai.kang
  3 siblings, 1 reply; 9+ messages in thread
From: kai.kang @ 2015-08-21  8:37 UTC (permalink / raw)
  To: openembedded-devel

From: Kai Kang <kai.kang@windriver.com>

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

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 ...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

diff --git a/meta-oe/recipes-devtools/ltrace/ltrace/0001-In-Linux-backend-initialize-linkmap-struct.patch b/meta-oe/recipes-devtools/ltrace/ltrace/0001-In-Linux-backend-initialize-linkmap-struct.patch
deleted file mode 100644
index 13609c1..0000000
--- a/meta-oe/recipes-devtools/ltrace/ltrace/0001-In-Linux-backend-initialize-linkmap-struct.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From efd12cfb10ccd2c612838c0e22069554ce60637c Mon Sep 17 00:00:00 2001
-From: Petr Machata <pmachata@redhat.com>
-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 <Martin.Jansa@gmail.com>
----
- 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
-
diff --git a/meta-oe/recipes-devtools/ltrace/ltrace/0001-ltrace-fix-gcc-5-logical-not-parentheses.patch b/meta-oe/recipes-devtools/ltrace/ltrace/0001-ltrace-fix-gcc-5-logical-not-parentheses.patch
new file mode 100644
index 0000000..ecfba0d
--- /dev/null
+++ b/meta-oe/recipes-devtools/ltrace/ltrace/0001-ltrace-fix-gcc-5-logical-not-parentheses.patch
@@ -0,0 +1,37 @@
+From 92bf386a18c9b49a9c44612b8ff7277c898de6cc Mon Sep 17 00:00:00 2001
+From: Kai Kang <kai.kang@windriver.com>
+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 <kai.kang@windriver.com>
+---
+ 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
+
diff --git a/meta-oe/recipes-devtools/ltrace/ltrace_git.bb b/meta-oe/recipes-devtools/ltrace/ltrace_git.bb
index f9f1684..d8d037e 100644
--- a/meta-oe/recipes-devtools/ltrace/ltrace_git.bb
+++ b/meta-oe/recipes-devtools/ltrace/ltrace_git.bb
@@ -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



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [meta-oe][PATCH 4/4] libvpx: 1.3.0 -> 1.4.0
  2015-08-21  8:37 [PATCH 0/4] Upgrade packages and fix failure of atftp with gcc 5.2 kai.kang
                   ` (2 preceding siblings ...)
  2015-08-21  8:37 ` [meta-oe][PATCH 3/4] ltrace: 7.2 -> 7.3 kai.kang
@ 2015-08-21  8:37 ` kai.kang
  3 siblings, 0 replies; 9+ messages in thread
From: kai.kang @ 2015-08-21  8:37 UTC (permalink / raw)
  To: openembedded-devel

From: Kai Kang <kai.kang@windriver.com>

* 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

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 .../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%)

diff --git a/meta-oe/recipes-multimedia/webm/libvpx/0001-configure.sh-quote-local-variables.patch b/meta-oe/recipes-multimedia/webm/libvpx/0001-configure.sh-quote-local-variables.patch
deleted file mode 100644
index bf94b2d..0000000
--- a/meta-oe/recipes-multimedia/webm/libvpx/0001-configure.sh-quote-local-variables.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-From f45fe1668401d72c2937a52385b492216715c0f9 Mon Sep 17 00:00:00 2001
-From: James Zern <jzern@google.com>
-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
-
diff --git a/meta-oe/recipes-multimedia/webm/libvpx/libvpx-configure-support-blank-prefix.patch b/meta-oe/recipes-multimedia/webm/libvpx/libvpx-configure-support-blank-prefix.patch
index 1bf863d..c7a6e51 100644
--- a/meta-oe/recipes-multimedia/webm/libvpx/libvpx-configure-support-blank-prefix.patch
+++ b/meta-oe/recipes-multimedia/webm/libvpx/libvpx-configure-support-blank-prefix.patch
@@ -13,31 +13,31 @@ Fix configure to accept "--prefix=" (a blank prefix).
          ;;
          --libdir=*)
          libdir="${optval}"
-@@ -471,13 +473,23 @@
- 
+@@ -587,13 +587,23 @@ process_cmdline() {
+ }
  
  post_process_common_cmdline() {
--    prefix="${prefix:-/usr/local}"
-+    if [ "$prefixset" != "1" ]
-+    then
-+        prefix=/usr/local
-+    fi
+-  prefix="${prefix:-/usr/local}"
++  if [ "$prefixset" != "1" ]
++  then
++      prefix=/usr/local
++  fi
 +
-+    # Strip trailing slash
-     prefix="${prefix%/}"
++  # Strip trailing slash
+   prefix="${prefix%/}"
 +
-     libdir="${libdir:-${prefix}/lib}"
-     libdir="${libdir%/}"
--    if [ "${libdir#${prefix}}" = "${libdir}" ]; then
--        die "Libdir ${libdir} must be a subdirectory of ${prefix}"
--    fi
+   libdir="${libdir:-${prefix}/lib}"
+   libdir="${libdir%/}"
+-  if [ "${libdir#${prefix}}" = "${libdir}" ]; then
+-    die "Libdir ${libdir} must be a subdirectory of ${prefix}"
+-  fi
 +
-+    case "$libdir" in
-+        "${prefix}/"*) ;;
-+        *)
-+            die "Libdir ${libdir} must be a subdirectory of ${prefix}"
-+            ;;
-+    esac
++  case "$libdir" in
++      "${prefix}/"*) ;;
++      *)
++          die "Libdir ${libdir} must be a subdirectory of ${prefix}"
++          ;;
++  esac
  }
  
- 
+ post_process_cmdline() {
diff --git a/meta-oe/recipes-multimedia/webm/libvpx_1.3.0.bb b/meta-oe/recipes-multimedia/webm/libvpx_1.4.0.bb
similarity index 79%
rename from meta-oe/recipes-multimedia/webm/libvpx_1.3.0.bb
rename to meta-oe/recipes-multimedia/webm/libvpx_1.4.0.bb
index eb19a57..4d9d2fd 100644
--- a/meta-oe/recipes-multimedia/webm/libvpx_1.3.0.bb
+++ b/meta-oe/recipes-multimedia/webm/libvpx_1.4.0.bb
@@ -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'
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [meta-oe][PATCH 3/4] ltrace: 7.2 -> 7.3
  2015-08-21  8:37 ` [meta-oe][PATCH 3/4] ltrace: 7.2 -> 7.3 kai.kang
@ 2015-08-21 15:58   ` Khem Raj
  0 siblings, 0 replies; 9+ messages in thread
From: Khem Raj @ 2015-08-21 15:58 UTC (permalink / raw)
  To: openembeded-devel

On Fri, Aug 21, 2015 at 1:37 AM,  <kai.kang@windriver.com> wrote:
> From: Kai Kang <kai.kang@windriver.com>
>
> 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
>
> Signed-off-by: Kai Kang <kai.kang@windriver.com>
> ---
>  ...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
>
> diff --git a/meta-oe/recipes-devtools/ltrace/ltrace/0001-In-Linux-backend-initialize-linkmap-struct.patch b/meta-oe/recipes-devtools/ltrace/ltrace/0001-In-Linux-backend-initialize-linkmap-struct.patch
> deleted file mode 100644
> index 13609c1..0000000
> --- a/meta-oe/recipes-devtools/ltrace/ltrace/0001-In-Linux-backend-initialize-linkmap-struct.patch
> +++ /dev/null
> @@ -1,31 +0,0 @@
> -From efd12cfb10ccd2c612838c0e22069554ce60637c Mon Sep 17 00:00:00 2001
> -From: Petr Machata <pmachata@redhat.com>
> -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 <Martin.Jansa@gmail.com>
> ----
> - 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
> -
> diff --git a/meta-oe/recipes-devtools/ltrace/ltrace/0001-ltrace-fix-gcc-5-logical-not-parentheses.patch b/meta-oe/recipes-devtools/ltrace/ltrace/0001-ltrace-fix-gcc-5-logical-not-parentheses.patch
> new file mode 100644
> index 0000000..ecfba0d
> --- /dev/null
> +++ b/meta-oe/recipes-devtools/ltrace/ltrace/0001-ltrace-fix-gcc-5-logical-not-parentheses.patch
> @@ -0,0 +1,37 @@
> +From 92bf386a18c9b49a9c44612b8ff7277c898de6cc Mon Sep 17 00:00:00 2001
> +From: Kai Kang <kai.kang@windriver.com>
> +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 <kai.kang@windriver.com>
> +---
> + 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)             \

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)

> +                       return -1;                                      \
> +                                                                       \
> +               if (data->d_buf == NULL) /* NODATA section */ {         \
> +--
> +1.9.1
> +
> diff --git a/meta-oe/recipes-devtools/ltrace/ltrace_git.bb b/meta-oe/recipes-devtools/ltrace/ltrace_git.bb
> index f9f1684..d8d037e 100644
> --- a/meta-oe/recipes-devtools/ltrace/ltrace_git.bb
> +++ b/meta-oe/recipes-devtools/ltrace/ltrace_git.bb
> @@ -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
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [meta-networking][PATCH 2/4] atftp: build with gcc 5.2
  2015-08-21  8:37 ` [meta-networking][PATCH 2/4] atftp: build with gcc 5.2 kai.kang
@ 2015-08-21 16:08   ` Khem Raj
  2015-08-24  2:24     ` Kang Kai
  0 siblings, 1 reply; 9+ messages in thread
From: Khem Raj @ 2015-08-21 16:08 UTC (permalink / raw)
  To: openembeded-devel

On Fri, Aug 21, 2015 at 1:37 AM,  <kai.kang@windriver.com> wrote:
> From: Kai Kang <kai.kang@windriver.com>
>
> 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
>
> Signed-off-by: Kai Kang <kai.kang@windriver.com>
> ---
>  meta-networking/recipes-daemons/atftp/atftp_git.bb | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/meta-networking/recipes-daemons/atftp/atftp_git.bb b/meta-networking/recipes-daemons/atftp/atftp_git.bb
> index b53f637..0ece58f 100644
> --- a/meta-networking/recipes-daemons/atftp/atftp_git.bb
> +++ b/meta-networking/recipes-daemons/atftp/atftp_git.bb
> @@ -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

> +
>  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
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [meta-networking][PATCH 2/4] atftp: build with gcc 5.2
  2015-08-21 16:08   ` Khem Raj
@ 2015-08-24  2:24     ` Kang Kai
  2015-08-24  8:53       ` Kang Kai
  0 siblings, 1 reply; 9+ messages in thread
From: Kang Kai @ 2015-08-24  2:24 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-devel

On 2015年08月22日 00:08, Khem Raj wrote:
> On Fri, Aug 21, 2015 at 1:37 AM,  <kai.kang@windriver.com> wrote:
>> From: Kai Kang <kai.kang@windriver.com>
>>
>> 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
>>
>> Signed-off-by: Kai Kang <kai.kang@windriver.com>
>> ---
>>   meta-networking/recipes-daemons/atftp/atftp_git.bb | 2 ++
>>   1 file changed, 2 insertions(+)
>>
>> diff --git a/meta-networking/recipes-daemons/atftp/atftp_git.bb b/meta-networking/recipes-daemons/atftp/atftp_git.bb
>> index b53f637..0ece58f 100644
>> --- a/meta-networking/recipes-daemons/atftp/atftp_git.bb
>> +++ b/meta-networking/recipes-daemons/atftp/atftp_git.bb
>> @@ -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

Hi Raj,

Thanks. I'll try it.

--Kai

>
>> +
>>   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
>> Openembedded-devel@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


-- 
Regards,
Neil | Kai Kang



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [meta-networking][PATCH 2/4] atftp: build with gcc 5.2
  2015-08-24  2:24     ` Kang Kai
@ 2015-08-24  8:53       ` Kang Kai
  0 siblings, 0 replies; 9+ messages in thread
From: Kang Kai @ 2015-08-24  8:53 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-devel

On 2015年08月24日 10:24, Kang Kai wrote:
> On 2015年08月22日 00:08, Khem Raj wrote:
>> On Fri, Aug 21, 2015 at 1:37 AM, <kai.kang@windriver.com> wrote:
>>> From: Kai Kang <kai.kang@windriver.com>
>>>
>>> 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
>>>
>>> Signed-off-by: Kai Kang <kai.kang@windriver.com>
>>> ---
>>>   meta-networking/recipes-daemons/atftp/atftp_git.bb | 2 ++
>>>   1 file changed, 2 insertions(+)
>>>
>>> diff --git a/meta-networking/recipes-daemons/atftp/atftp_git.bb 
>>> b/meta-networking/recipes-daemons/atftp/atftp_git.bb
>>> index b53f637..0ece58f 100644
>>> --- a/meta-networking/recipes-daemons/atftp/atftp_git.bb
>>> +++ b/meta-networking/recipes-daemons/atftp/atftp_git.bb
>>> @@ -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
>
> 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

>
> --Kai
>
>>
>>> +
>>>   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
>>> Openembedded-devel@lists.openembedded.org
>>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
>


-- 
Regards,
Neil | Kai Kang



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-08-24  8:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-21  8:37 [PATCH 0/4] Upgrade packages and fix failure of atftp with gcc 5.2 kai.kang
2015-08-21  8:37 ` [meta-networking][PATCH 1/4] autofs: 5.1.0 -> 5.1.1 kai.kang
2015-08-21  8:37 ` [meta-networking][PATCH 2/4] atftp: build with gcc 5.2 kai.kang
2015-08-21 16:08   ` Khem Raj
2015-08-24  2:24     ` Kang Kai
2015-08-24  8:53       ` Kang Kai
2015-08-21  8:37 ` [meta-oe][PATCH 3/4] ltrace: 7.2 -> 7.3 kai.kang
2015-08-21 15:58   ` Khem Raj
2015-08-21  8:37 ` [meta-oe][PATCH 4/4] libvpx: 1.3.0 -> 1.4.0 kai.kang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.