Skip to contentSkip to conversation

V2: Upgrade packages and fix failure of atftp with gcc 5.2

PATCH New [email protected] 1 participant 5 messages Aug 24, 2015

lore
Share & tools
lore
#0 lore raw

cover V2: Upgrade packages and fix failure of atftp with gcc 5.2

From: Kai Kang <[email protected]>

V2:
* ltrace: update patch to work with gcc 5.2
* atftp: just update commmit message, no patch update. The reason is in mail I replied in V1 series.

Kai Kang (4):
autofs: 5.1.0 -> 5.1.1
libvpx: 1.3.0 -> 1.4.0
ltrace: 7.2 -> 7.3
atftp: build with gcc 5.2

 meta-networking/recipes-daemons/atftp/atftp_git.bb |  2 ++
 ...emd-allow-with-systemd-to-take-a-path-arg.patch |  0
 .../Makefile.rules-cross.patch                     |  0
 .../add-the-needed-stdarg.h.patch                  |  0
 .../autofs-5.0.7-do-not-check-for-modprobe.patch   |  0
 .../autofs-5.0.7-fix-lib-deps.patch                |  0
 ...7-include-linux-nfs.h-directly-in-rpc_sub.patch |  0
 .../autofs-additional-distros.patch                |  0
 .../autofs/{autofs-5.1.0 => autofs}/cross.patch    |  0
 ...x-the-YACC-rule-to-fix-a-building-failure.patch |  0
 .../fix_disable_ldap.patch                         |  0
 .../force-STRIP-to-emtpy.patch                     |  0
 .../libtirpc-name-clash-backout.patch              |  0
 .../autofs/{autofs-5.1.0 => autofs}/libtirpc.patch |  0
 .../autofs/{autofs-5.1.0 => autofs}/no-bash.patch  |  0
 .../{autofs-5.1.0 => autofs}/remove-bashism.patch  |  0
 ...-pkg-config-to-detect-libxml-2.0-and-krb5.patch |  0
 .../autofs/{autofs_5.1.0.bb => autofs_5.1.1.bb}    |  4 +--
 ...n-Linux-backend-initialize-linkmap-struct.patch | 31 ----------------
 ...-ltrace-fix-gcc-5-logical-not-parentheses.patch | 38 ++++++++++++++++++++
 meta-oe/recipes-devtools/ltrace/ltrace_git.bb      |  8 ++---
 .../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 +++---
 24 files changed, 71 insertions(+), 104 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%)
 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
 rename meta-oe/recipes-multimedia/webm/{libvpx_1.3.0.bb => libvpx_1.4.0.bb} (79%)
Signature · 1 line
1.9.1
#1 lore raw

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
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
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
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
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
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
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
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
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
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
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
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
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
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
meta-networking/recipes-daemons/autofs/autofs/cross.patch renamed from meta-networking/recipes-daemons/autofs/autofs-5.1.0/cross.patch +0 -0
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
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
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
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
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
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
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
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
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
meta-networking/recipes-daemons/autofs/autofs/libtirpc.patch renamed from meta-networking/recipes-daemons/autofs/autofs-5.1.0/libtirpc.patch +0 -0
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
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
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
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
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
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
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
meta-networking/recipes-daemons/autofs/autofs_5.1.1.bb renamed from meta-networking/recipes-daemons/autofs/autofs_5.1.0.bb +2 -2
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
@@ -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
#2 lore raw

PATCH 2/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
deleted file mode 100644
index bf94b2d..0000000
@@ -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
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
@@ -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
#3 lore raw

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 | 38 ++++++++++++++++++++++
 meta-oe/recipes-devtools/ltrace/ltrace_git.bb      |  8 ++---
 3 files changed, 42 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
deleted file mode 100644
index 13609c1..0000000
@@ -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 +38 -0
new file mode 100644
index 0000000..681c43d
@@ -0,0 +1,38 @@
+From 876fe5680d77800426f8c4c5680a235732d722e6 Mon Sep 17 00:00:00 2001
+From: Kai Kang <[email protected]>
+Date: Mon, 24 Aug 2015 17:37:54 +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)  \
+                                             ^
+
+Function need_data just return 0 on success and -1 if fail. So it is ok
+to just test if (need_data(data, offset, SIZE / 8) < 0).
+
+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..7fe830f 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
index f9f1684..d8d037e 100644
@@ -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
#4 lore raw

PATCH 4/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:

git/tftp_def.h:54:14: warning: inline function 'Strncpy' declared but never defined git/argz.c:44:8: error: redefinition of 'argz_next'

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
index b53f637..0ece58f 100644
@@ -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