Skip to contentSkip to conversation

libdbus-c++: Fix build with gcc7 and unblacklist

PATCH In review Khem Raj 2 participants 7 messages Jul 8, 2017 – Jul 10, 2017

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/5 libdbus-c++: Fix build with gcc7 and unblacklist

---
 .../0001-pipe.c-Use-a-string-instead-of-char.patch | 27 ++++++++++++++++++++++
 meta-oe/recipes-core/dbus/libdbus-c++_0.9.0.bb     | 20 ++++++++--------
 2 files changed, 36 insertions(+), 11 deletions(-)
 create mode 100644 meta-oe/recipes-core/dbus/libdbus-c++-0.9.0/0001-pipe.c-Use-a-string-instead-of-char.patch
meta-oe/recipes-core/dbus/libdbus-c++-0.9.0/0001-pipe.c-Use-a-string-instead-of-char.patch new file +27 -0
new file mode 100644
index 000000000..6883f9a0b
@@ -0,0 +1,27 @@
+From 6bcb58bd69c38b9200e8ec6c382247167571189d Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Sat, 1 Jul 2017 16:44:15 -0700
+Subject: [PATCH] pipe.c: Use a string instead of char
+
+Fixes
+error: invalid conversion from 'char' to 'const void*' [-fpermissive]
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ src/pipe.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/pipe.cpp b/src/pipe.cpp
+index 45c2ba6..1303c2d 100644
+--- a/src/pipe.cpp
++++ b/src/pipe.cpp
+@@ -83,5 +83,5 @@ ssize_t Pipe::read(void *buffer, unsigned int &nbytes)
+ void Pipe::signal()
+ {
+   // TODO: ignoring return of read/write generates warning; maybe relevant for eventloop work...
+-  ::write(_fd_write, '\0', 1);
++  ::write(_fd_write, "", 1);
+ }
+-- 
+2.13.2
+
meta-oe/recipes-core/dbus/libdbus-c++_0.9.0.bb +9 -11
index 4412716a6..4cc133301 100644
@@ -6,15 +6,15 @@ LICENSE = "LGPLv2.1"
 LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"
 DEPENDS = "dbus expat glib-2.0 libpcre"
 
-SRC_URI = "\
-    ${SOURCEFORGE_MIRROR}/project/dbus-cplusplus/dbus-c++/${PV}/${BP}.tar.gz \
-    file://fix-missing-unistd.h-include.patch \
-    file://remove-CXX_FOR_BUILD-stuff.patch \
-    file://0001-src-eventloop.cpp-use-portable-method-for-initializi.patch \
-    file://0002-tools-generate_proxy.cpp-avoid-possibly-undefined-ui.patch \
-    file://0003-Fixed-undefined-ssize_t-for-clang-3.8.0-on-FreeBSD.patch \
-    file://0004-use-POSIX-poll.h-instead-of-sys-poll.h.patch \
-"
+SRC_URI = "${SOURCEFORGE_MIRROR}/project/dbus-cplusplus/dbus-c++/${PV}/${BP}.tar.gz \
+           file://fix-missing-unistd.h-include.patch \
+           file://remove-CXX_FOR_BUILD-stuff.patch \
+           file://0001-src-eventloop.cpp-use-portable-method-for-initializi.patch \
+           file://0002-tools-generate_proxy.cpp-avoid-possibly-undefined-ui.patch \
+           file://0003-Fixed-undefined-ssize_t-for-clang-3.8.0-on-FreeBSD.patch \
+           file://0004-use-POSIX-poll.h-instead-of-sys-poll.h.patch \
+           file://0001-pipe.c-Use-a-string-instead-of-char.patch \
+           "
 SRC_URI[md5sum] = "e752116f523fa88ef041e63d3dee4de2"
 SRC_URI[sha256sum] = "bc11ac297b3cb010be904c72789695543ee3fdf3d75cdc8225fd371385af4e61"
 
@@ -27,5 +27,3 @@ PACKAGE_BEFORE_PN = "${PN}-tools"
 FILES_${PN}-tools = "${bindir}"
 
 BBCLASSEXTEND = "native"
-
-PNBLACKLIST[libdbus-c++] ?= "Fails to build with RSS http://errors.yoctoproject.org/Errors/Details/130644/ - the recipe will be removed on 2017-09-01 unless the issue is fixed"
Signature · 1 line
2.13.2
author
#1 lore raw

PATCH 2/5 security_flags.inc: Delete

OE-Core has now reworked the PIE flags, where they
are implicitly passed by compiler when security flags are enabled

None of these pinnings are needed anymore, since these packages compile fine with security flags enabled

---
 .../include/meta_networking_security_flags.inc     | 10 --------
 meta-networking/conf/layer.conf                    |  3 ---
 .../conf/distro/include/meta_oe_security_flags.inc | 28 ----------------------
 meta-oe/conf/layer.conf                            |  3 ---
 4 files changed, 44 deletions(-)
 delete mode 100644 meta-networking/conf/distro/include/meta_networking_security_flags.inc
 delete mode 100644 meta-oe/conf/distro/include/meta_oe_security_flags.inc
meta-networking/conf/distro/include/meta_networking_security_flags.inc deleted +0 -10
deleted file mode 100644
index 19e13ea87..000000000
@@ -1,10 +0,0 @@
-# configure righteously complains:
-# | configure:3479: using CFLAGS:  -O2 -pipe -g -feliminate-unused-debug-types -fstack-protector-strong -pie -fpie -D_FORTIFY_SOURCE=2
-# | configure:3485: CFLAGS error: CFLAGS may only be used to specify C compiler flags, not macro definitions. Use CPPFLAGS for: -D_FORTIFY_SOURCE=2
-# | configure:3516: error: Can not continue. Fix errors mentioned immediately above this line.
-
-# Make sure it's at least empty in builds which don't include
-# conf/distro/include/security_flags.inc
-lcl_maybe_fortify ?= ""
-TARGET_CFLAGS_remove_pn-c-ares = "${lcl_maybe_fortify}"
-TARGET_CPPFLAGS_append_pn-c-ares = "${lcl_maybe_fortify}"
meta-networking/conf/layer.conf +0 -3
index b5aa1599b..2dfde4bdf 100644
@@ -19,9 +19,6 @@ LAYERDEPENDS_networking-layer += "meta-python"
 
 LICENSE_PATH += "${LAYERDIR}/licenses"
 
-# Override security flags
-require conf/distro/include/meta_networking_security_flags.inc
-
 SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \
   wireguard-tools->wireguard-module \
 "
meta-oe/conf/distro/include/meta_oe_security_flags.inc deleted +0 -28
deleted file mode 100644
index 03868bfaf..000000000
@@ -1,28 +0,0 @@
-# Build errors with the pie options enabled
-SECURITY_CFLAGS_pn-libdbus-c++ = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-libdevmapper = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-lvm2 = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-rrdtool = "${SECURITY_NO_PIE_CFLAGS}"
-
-# This has text reloc errors with the pie options enabled
-SECURITY_CFLAGS_pn-llvm3.3 = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-mozjs = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-openldap = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-s3c64xx-gpio = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-s3c24xx-gpio = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-cpufrequtils = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-libcec = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-libmodplug = "${SECURITY_NO_PIE_CFLAGS}"
-SECURITY_CFLAGS_pn-libcdio = "${SECURITY_NO_PIE_CFLAGS}"
-
-#| /mnt/b/build/tmp-glibc/sysroots/intel-corei7-64/usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init':
-#| /usr/src/debug/glibc/2.24-r0/git/csu/elf-init.c:86: undefined reference to `__init_array_start'
-
-SECURITY_CFLAGS_pn-libvdpau = "${SECURITY_NO_PIE_CFLAGS}"
-
-#| /mnt/a/build/tmp-glibc/sysroots/x86_64-linux/usr/libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/6.2.0/ld: lj_err_dyn.o: relocation R_X86_64_TPOFF32 against `static_uex' can not be used when making a shared object; recompile with -fPIC
-#| /mnt/a/build/tmp-glibc/sysroots/x86_64-linux/usr/libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/6.2.0/ld: final link failed: Nonrepresentable section on output
-#| collect2: error: ld returned 1 exit status
-#| make[1]: *** [Makefile:675: libluajit.so] Error 1
-SECURITY_CFLAGS_pn-luajit = "${SECURITY_NO_PIE_CFLAGS}"
-
meta-oe/conf/layer.conf +0 -3
index 54425c68e..f0d21ed50 100644
@@ -77,7 +77,4 @@ SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \
 
 FREESMARTPHONE_GIT = "git://git.freesmartphone.org"
 
-# Override security flags
-require conf/distro/include/meta_oe_security_flags.inc
-
 HOSTTOOLS += "id"
Signature · 1 line
2.13.2
author
#2 lore raw

PATCH 3/5 kodi: Fix build on powerpc

In reply to Khem Raj

64bit atomics are not available therefore link in libatomic

---
 meta-multimedia/recipes-mediacenter/kodi/kodi_17.bb | 1 +
 1 file changed, 1 insertion(+)
meta-multimedia/recipes-mediacenter/kodi/kodi_17.bb +1 -0
index 3bc2eb591..0b39116a1 100644
@@ -133,6 +133,7 @@ BUILD_OPTIMIZATION = "${FULL_OPTIMIZATION}"
 
 LDFLAGS_append_mips = " -latomic"
 LDFLAGS_append_mipsel = " -latomic"
+LDFLAGS_append_powerpc = " -latomic"
 
 EXTRA_OECONF_append = " LIBTOOL=${STAGING_BINDIR_CROSS}/${HOST_SYS}-libtool"
 
Signature · 1 line
2.13.2
author
#3 lore raw

PATCH 4/5 ltrace: Fix build on musl

In reply to Khem Raj
---
 ...nfigure-Recognise-linux-musl-as-a-host-OS.patch | 25 ++++++++++++++++++++++
 meta-oe/recipes-devtools/ltrace/ltrace_git.bb      |  1 +
 2 files changed, 26 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/ltrace/ltrace/0001-configure-Recognise-linux-musl-as-a-host-OS.patch
meta-oe/recipes-devtools/ltrace/ltrace/0001-configure-Recognise-linux-musl-as-a-host-OS.patch new file +25 -0
new file mode 100644
index 000000000..52264a17e
@@ -0,0 +1,25 @@
+From c1d3aaf5ec810c2594938438c7b4ccd20943f255 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Fri, 7 Jul 2017 10:20:52 -0700
+Subject: [PATCH] configure: Recognise linux-musl as a host OS
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ configure.ac | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/configure.ac b/configure.ac
+index 3e8667f..95d6642 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -35,6 +35,7 @@ AC_CANONICAL_HOST
+ case "${host_os}" in
+     linux-gnu*) HOST_OS="linux-gnu" ;;
+     linux-uclibc*) HOST_OS="linux-gnu" ;;
++    linux-musl*) HOST_OS="linux-gnu" ;;
+     *)		AC_MSG_ERROR([unkown host-os ${host_os}]) ;;
+ esac
+ AC_SUBST(HOST_OS)
+-- 
+2.13.2
+
meta-oe/recipes-devtools/ltrace/ltrace_git.bb +1 -0
index b613bc3af..01b3bbe1b 100644
@@ -23,6 +23,7 @@ SRC_URI = "git://anonscm.debian.org/collab-maint/ltrace.git;branch=master \
            file://0001-ARM-code-has-unreachable-code-after-switch-statement.patch \
            file://0001-Fix-tautological-compare-warning.patch \
            file://0001-Add-support-for-mips64-n32-n64.patch \
+           file://0001-configure-Recognise-linux-musl-as-a-host-OS.patch \
            "
 S = "${WORKDIR}/git"
 
Signature · 1 line
2.13.2
author
#4 lore raw

PATCH 5/5 pptp-linux: Upgrade to 1.9.0

In reply to Khem Raj

Fix build errors found when building for musl while here

---
 .../0001-include-missing-sys-types.h.patch         | 28 ++++++++++++++++++++++
 .../{pptp-linux-1.8.0 => pptp-linux}/options.pptp  |  0
 .../{pptp-linux_1.8.0.bb => pptp-linux_1.9.0.bb}   |  9 ++++---
 3 files changed, 32 insertions(+), 5 deletions(-)
 create mode 100644 meta-networking/recipes-protocols/pptp-linux/pptp-linux/0001-include-missing-sys-types.h.patch
 rename meta-networking/recipes-protocols/pptp-linux/{pptp-linux-1.8.0 => pptp-linux}/options.pptp (100%)
 rename meta-networking/recipes-protocols/pptp-linux/{pptp-linux_1.8.0.bb => pptp-linux_1.9.0.bb} (81%)
meta-networking/recipes-protocols/pptp-linux/pptp-linux/0001-include-missing-sys-types.h.patch new file +28 -0
new file mode 100644
index 000000000..804bf1234
@@ -0,0 +1,28 @@
+From f6c4d2468ae0dadd2f35680d61b98b2a59077328 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Fri, 7 Jul 2017 10:31:03 -0700
+Subject: [PATCH] include missing sys/types.h
+
+Fixes errors seen on musl
+pqueue.h:21:3: error: unknown type name 'u_int32_t'
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ pqueue.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/pqueue.h b/pqueue.h
+index c37ba7b..ae4cc6a 100644
+--- a/pqueue.h
++++ b/pqueue.h
+@@ -3,6 +3,7 @@
+ 
+ #include <time.h>
+ #include <sys/time.h>
++#include <sys/types.h>
+ 
+ /* wait this many seconds for missing packets before forgetting about them */
+ #define DEFAULT_PACKET_TIMEOUT 0.3
+-- 
+2.13.2
+
meta-networking/recipes-protocols/pptp-linux/pptp-linux/options.pptp renamed from meta-networking/recipes-protocols/pptp-linux/pptp-linux-1.8.0/options.pptp +0 -0
similarity index 100%
rename from meta-networking/recipes-protocols/pptp-linux/pptp-linux-1.8.0/options.pptp
rename to meta-networking/recipes-protocols/pptp-linux/pptp-linux/options.pptp
meta-networking/recipes-protocols/pptp-linux/pptp-linux_1.9.0.bb renamed from meta-networking/recipes-protocols/pptp-linux/pptp-linux_1.8.0.bb +4 -5
similarity index 81%
rename from meta-networking/recipes-protocols/pptp-linux/pptp-linux_1.8.0.bb
rename to meta-networking/recipes-protocols/pptp-linux/pptp-linux_1.9.0.bb
index bc8b2cb2b..10c9170fb 100644
@@ -9,14 +9,13 @@ SECTION = "net"
 LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 
-PR = "r1"
-
 SRC_URI = "${SOURCEFORGE_MIRROR}/sourceforge/pptpclient/pptp-${PV}.tar.gz \
            file://options.pptp \
-"
+           file://0001-include-missing-sys-types.h.patch \
+           "
 
-SRC_URI[md5sum] = "4efce9f263e2c3f38d79d9df222476de"
-SRC_URI[sha256sum] = "e39c42d933242a8a6dd8600a0fa7f0a5ec8f066d10c4149d8e81a5c68fe4bbda"
+SRC_URI[md5sum] = "b2117b377f65294a9786f80f0235d308"
+SRC_URI[sha256sum] = "0b1e8cbfc578d3f5ab12ee87c5c2c60419abfe9cc445690a8a19c320b11c9201"
 
 S = "${WORKDIR}/pptp-${PV}"
 
Signature · 1 line
2.13.2
#5 lore raw
In reply to Khem Raj

Unfortunately still fails:
http://errors.yoctoproject.org/Errors/Details/147042/

Quoted 102 lines · Khem Raj
---
 .../0001-pipe.c-Use-a-string-instead-of-char.patch | 27
++++++++++++++++++++++
 meta-oe/recipes-core/dbus/libdbus-c++_0.9.0.bb     | 20 ++++++++--------
 2 files changed, 36 insertions(+), 11 deletions(-)
 create mode 100644 meta-oe/recipes-core/dbus/

libdbus-c++-0.9.0/0001-pipe.c-Use-a-string-instead-of-char.patch

(quoted diff) +0 -0

Use-a-string-instead-of-char.patch b/meta-oe/recipes-core/dbus/ libdbus-c++-0.9.0/0001-pipe.c-Use-a-string-instead-of-char.patch new file mode 100644
index 000000000..6883f9a0b

meta-oe/recipes-core/dbus/libdbus-c++-0.9.0/0001-pipe.c- new file +0 -0

Use-a-string-instead-of-char.patch

meta-oe/recipes-core/dbus/libdbus-c++-0.9.0/0001-pipe.c- new file +21 -0
@@ -0,0 +1,27 @@
+From 6bcb58bd69c38b9200e8ec6c382247167571189d Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Sat, 1 Jul 2017 16:44:15 -0700
+Subject: [PATCH] pipe.c: Use a string instead of char
+
+Fixes
+error: invalid conversion from 'char' to 'const void*' [-fpermissive]
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ src/pipe.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/pipe.cpp b/src/pipe.cpp
+index 45c2ba6..1303c2d 100644
+--- a/src/pipe.cpp
++++ b/src/pipe.cpp
+@@ -83,5 +83,5 @@ ssize_t Pipe::read(void *buffer, unsigned int &nbytes)
+ void Pipe::signal()
+ {
+   // TODO: ignoring return of read/write generates warning; maybe

relevant for eventloop work...

+-  ::write(_fd_write, '\0', 1);
++  ::write(_fd_write, "", 1);

+ }
+--
+2.13.2

meta-oe/recipes-core/dbus/libdbus-c++-0.9.0/0001-pipe.c- new file +1 -0
+
meta-oe/recipes-core/dbus/libdbus-c++_0.9.0.bb +1 -9
index 4412716a6..4cc133301 100644
@@ -6,15 +6,15 @@ LICENSE = "LGPLv2.1"
 LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"
 DEPENDS = "dbus expat glib-2.0 libpcre"
 
-SRC_URI = "\
-    ${SOURCEFORGE_MIRROR}/project/dbus-cplusplus/dbus-c++/${PV}/${BP}.tar.gz
 \
-    file://fix-missing-unistd.h-include.patch \
-    file://remove-CXX_FOR_BUILD-stuff.patch \
-    file://0001-src-eventloop.cpp-use-portable-method-for-initializi.patch
 \
-    file://0002-tools-generate_proxy.cpp-avoid-possibly-undefined-ui.patch
 \
-    file://0003-Fixed-undefined-ssize_t-for-clang-3.8.0-on-FreeBSD.patch
 \
-    file://0004-use-POSIX-poll.h-instead-of-sys-poll.h.patch \
-"
+SRC_URI = "${SOURCEFORGE_MIRROR}/project/dbus-cplusplus/dbus-c++/${PV}/${BP}.tar.gz

\

meta-oe/recipes-core/dbus/libdbus-c++_0.9.0.bb +3 -0
+           file://fix-missing-unistd.h-include.patch \
+           file://remove-CXX_FOR_BUILD-stuff.patch \
+           file://0001-src-eventloop.cpp-use-portable-method-for-initializi.patch

\
+ file://0002-tools-generate_proxy.cpp-avoid-possibly-undefined-ui.patch
\
+ file://0003-Fixed-undefined-ssize_t-for-clang-3.8.0-on-FreeBSD.patch
\

meta-oe/recipes-core/dbus/libdbus-c++_0.9.0.bb +3 -0
+           file://0004-use-POSIX-poll.h-instead-of-sys-poll.h.patch \
+           file://0001-pipe.c-Use-a-string-instead-of-char.patch \
+           "
 SRC_URI[md5sum] = "e752116f523fa88ef041e63d3dee4de2"
 SRC_URI[sha256sum] = "bc11ac297b3cb010be904c72789695

543ee3fdf3d75cdc8225fd371385af4e61"

meta-oe/recipes-core/dbus/libdbus-c++_0.9.0.bb +0 -2
@@ -27,5 +27,3 @@ PACKAGE_BEFORE_PN = "${PN}-tools"
 FILES_${PN}-tools = "${bindir}"
 
 BBCLASSEXTEND = "native"
-
-PNBLACKLIST[libdbus-c++] ?= "Fails to build with RSS

http://errors.yoctoproject.org/Errors/Details/130644/ - the recipe will be removed on 2017-09-01 unless the issue is fixed"
--
2.13.2

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

author
#6 lore raw
Quoted 3 lines · Martin Jansa

Unfortunately still fails:
http://errors.yoctoproject.org/Errors/Details/147042/

hmmm, i dont see it locally, I do not use gold linker as default ld. It looks like you do. Its most probably thats the difference. In anycase adding -pthread to LDFLAGS should fix it. Let me try it out and update the patch

Quoted 118 lines

On Sat, Jul 8, 2017 at 3:17 PM, Khem Raj <[email protected] <mailto:[email protected]>> wrote:

    Signed-off-by: Khem Raj <[email protected] <mailto:[email protected]>>
    ---
     .../0001-pipe.c-Use-a-string-instead-of-char.patch | 27
    ++++++++++++++++++++++
     meta-oe/recipes-core/dbus/libdbus-c++_0.9.0.bb <http://0.9.0.bb>   
     | 20 ++++++++--------
     2 files changed, 36 insertions(+), 11 deletions(-)
     create mode 100644
    meta-oe/recipes-core/dbus/libdbus-c++-0.9.0/0001-pipe.c-Use-a-string-instead-of-char.patch

    diff --git
    a/meta-oe/recipes-core/dbus/libdbus-c++-0.9.0/0001-pipe.c-Use-a-string-instead-of-char.patch
    b/meta-oe/recipes-core/dbus/libdbus-c++-0.9.0/0001-pipe.c-Use-a-string-instead-of-char.patch
    new file mode 100644
    index 000000000..6883f9a0b
    --- /dev/null
    +++
    b/meta-oe/recipes-core/dbus/libdbus-c++-0.9.0/0001-pipe.c-Use-a-string-instead-of-char.patch
    @@ -0,0 +1,27 @@
    +From 6bcb58bd69c38b9200e8ec6c382247167571189d Mon Sep 17 00:00:00 2001
    +From: Khem Raj <[email protected] <mailto:[email protected]>>
    +Date: Sat, 1 Jul 2017 16:44:15 -0700
    +Subject: [PATCH] pipe.c: Use a string instead of char
    +
    +Fixes
    +error: invalid conversion from 'char' to 'const void*' [-fpermissive]
    +
    +Signed-off-by: Khem Raj <[email protected]
    <mailto:[email protected]>>
    +---
    + src/pipe.cpp | 2 +-
    + 1 file changed, 1 insertion(+), 1 deletion(-)
    +
    +diff --git a/src/pipe.cpp b/src/pipe.cpp
    +index 45c2ba6..1303c2d 100644
    +--- a/src/pipe.cpp
    ++++ b/src/pipe.cpp
    +@@ -83,5 +83,5 @@ ssize_t Pipe::read(void *buffer, unsigned int
    &nbytes)
    + void Pipe::signal()
    + {
    +   // TODO: ignoring return of read/write generates warning; maybe
    relevant for eventloop work...
    +-  ::write(_fd_write, '\0', 1);
    ++  ::write(_fd_write, "", 1);
    + }
    +--
    +2.13.2
    +
    diff --git a/meta-oe/recipes-core/dbus/libdbus-c++_0.9.0.bb
    <http://0.9.0.bb> b/meta-oe/recipes-core/dbus/libdbus-c++_0.9.0.bb
    <http://0.9.0.bb>
    index 4412716a6..4cc133301 100644
    --- a/meta-oe/recipes-core/dbus/libdbus-c++_0.9.0.bb <http://0.9.0.bb>
    +++ b/meta-oe/recipes-core/dbus/libdbus-c++_0.9.0.bb <http://0.9.0.bb>
    @@ -6,15 +6,15 @@ LICENSE = "LGPLv2.1"
     LIC_FILES_CHKSUM =
    "file://COPYING;md5=fbc093901857fcd118f065f900982c24"
     DEPENDS = "dbus expat glib-2.0 libpcre"

    -SRC_URI = "\
    -   
    ${SOURCEFORGE_MIRROR}/project/dbus-cplusplus/dbus-c++/${PV}/${BP}.tar.gz
    \
    -    file://fix-missing-unistd.h-include.patch \
    -    file://remove-CXX_FOR_BUILD-stuff.patch \
    -   
    file://0001-src-eventloop.cpp-use-portable-method-for-initializi.patch \
    -   
    file://0002-tools-generate_proxy.cpp-avoid-possibly-undefined-ui.patch \
    -   
    file://0003-Fixed-undefined-ssize_t-for-clang-3.8.0-on-FreeBSD.patch \
    -    file://0004-use-POSIX-poll.h-instead-of-sys-poll.h.patch \
    -"
    +SRC_URI =
    "${SOURCEFORGE_MIRROR}/project/dbus-cplusplus/dbus-c++/${PV}/${BP}.tar.gz
    \
    +           file://fix-missing-unistd.h-include.patch \
    +           file://remove-CXX_FOR_BUILD-stuff.patch \
    +         
     file://0001-src-eventloop.cpp-use-portable-method-for-initializi.patch
    \
    +         
     file://0002-tools-generate_proxy.cpp-avoid-possibly-undefined-ui.patch
    \
    +         
     file://0003-Fixed-undefined-ssize_t-for-clang-3.8.0-on-FreeBSD.patch \
    +           file://0004-use-POSIX-poll.h-instead-of-sys-poll.h.patch \
    +           file://0001-pipe.c-Use-a-string-instead-of-char.patch \
    +           "
     SRC_URI[md5sum] = "e752116f523fa88ef041e63d3dee4de2"
     SRC_URI[sha256sum] =
    "bc11ac297b3cb010be904c72789695543ee3fdf3d75cdc8225fd371385af4e61"

    @@ -27,5 +27,3 @@ PACKAGE_BEFORE_PN = "${PN}-tools"
     FILES_${PN}-tools = "${bindir}"

     BBCLASSEXTEND = "native"
    -
    -PNBLACKLIST[libdbus-c++] ?= "Fails to build with RSS
    http://errors.yoctoproject.org/Errors/Details/130644/
    <http://errors.yoctoproject.org/Errors/Details/130644/> - the recipe
    will be removed on 2017-09-01 unless the issue is fixed"
    --
    2.13.2

    --
    _______________________________________________
    Openembedded-devel mailing list
    [email protected]
    <mailto:[email protected]>
    http://lists.openembedded.org/mailman/listinfo/openembedded-devel
    <http://lists.openembedded.org/mailman/listinfo/openembedded-devel>