* [PATCH] fix dbus-daemon segfault on mipsel with recent toolchain
@ 2009-08-07 1:26 Graham Gower
2009-08-07 3:01 ` Khem Raj
0 siblings, 1 reply; 2+ messages in thread
From: Graham Gower @ 2009-08-07 1:26 UTC (permalink / raw)
To: openembedded-devel
dbus-daemon segfaults on mipsel when built with -fPIE/-pie, as outlined in
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=532821
Removes PIE compilation from the dbus-daemon Makefile as a workaround.
-Graham
Signed-off-by: Graham Gower <graham.gower@gmail.com>
diff --git a/recipes/dbus/dbus-native_1.0.3.bb b/recipes/dbus/dbus-native_1.0.3.bb
index 8a4c6fe..6ec0fc8 100644
--- a/recipes/dbus/dbus-native_1.0.3.bb
+++ b/recipes/dbus/dbus-native_1.0.3.bb
@@ -1,6 +1,6 @@
require dbus.inc
-PR = "r1"
+PR = "${INC_PR}.0"
DEFAULT_PREFERENCE = "-1"
inherit native
diff --git a/recipes/dbus/dbus-native_1.2.1.bb b/recipes/dbus/dbus-native_1.2.1.bb
index 566c7bc..2b1610e 100644
--- a/recipes/dbus/dbus-native_1.2.1.bb
+++ b/recipes/dbus/dbus-native_1.2.1.bb
@@ -1,4 +1,5 @@
require dbus.inc
+PR = "${INC_PR}.0"
RRECOMMENDS_${PN} = ""
RDEPENDS_${PN} = ""
inherit native
diff --git a/recipes/dbus/dbus.inc b/recipes/dbus/dbus.inc
index 0302cfe..b5eeb08 100644
--- a/recipes/dbus/dbus.inc
+++ b/recipes/dbus/dbus.inc
@@ -4,6 +4,8 @@ SECTION = "base"
LICENSE = "GPL"
DEPENDS = "expat glib-2.0 virtual/libintl libsm libice virtual/libx11"
+INC_PR = "r16"
+
SRC_URI = "\
http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \
file://cross.patch;patch=1 \
@@ -30,6 +32,10 @@ EXTRA_OECONF = "\
--with-dbus-default-reply-timeout=200000 \
"
+do_compile_prepend_mipsel() {
+ sed -i -e 's/\-fPIE//' -e 's/\-pie\ \-Wl\,\-z\,relro//' bus/Makefile
+}
+
do_install_append() {
install -d ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/dbus-1.init ${D}${sysconfdir}/init.d/dbus-1
diff --git a/recipes/dbus/dbus_1.0.3.bb b/recipes/dbus/dbus_1.0.3.bb
index 2589cfe..7001bb9 100644
--- a/recipes/dbus/dbus_1.0.3.bb
+++ b/recipes/dbus/dbus_1.0.3.bb
@@ -1,4 +1,4 @@
require dbus.inc
-PR = "r16"
+PR = "${INC_PR}.0"
DEFAULT_PREFERENCE = "-1"
diff --git a/recipes/dbus/dbus_1.2.1.bb b/recipes/dbus/dbus_1.2.1.bb
index 9d6c4c1..72db1da 100644
--- a/recipes/dbus/dbus_1.2.1.bb
+++ b/recipes/dbus/dbus_1.2.1.bb
@@ -1,3 +1,3 @@
include dbus.inc
-PR = "r12"
+PR = "${INC_PR}.0"
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fix dbus-daemon segfault on mipsel with recent toolchain
2009-08-07 1:26 [PATCH] fix dbus-daemon segfault on mipsel with recent toolchain Graham Gower
@ 2009-08-07 3:01 ` Khem Raj
0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2009-08-07 3:01 UTC (permalink / raw)
To: openembedded-devel
On (07/08/09 10:56), Graham Gower wrote:
> dbus-daemon segfaults on mipsel when built with -fPIE/-pie, as outlined in
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=532821
>
> Removes PIE compilation from the dbus-daemon Makefile as a workaround.
>
> -Graham
>
> Signed-off-by: Graham Gower <graham.gower@gmail.com>
looks ok to me.
Acked-by: Khem Raj <raj.khem@gmail.com>
>
> diff --git a/recipes/dbus/dbus-native_1.0.3.bb b/recipes/dbus/dbus-native_1.0.3.bb
> index 8a4c6fe..6ec0fc8 100644
> --- a/recipes/dbus/dbus-native_1.0.3.bb
> +++ b/recipes/dbus/dbus-native_1.0.3.bb
> @@ -1,6 +1,6 @@
> require dbus.inc
>
> -PR = "r1"
> +PR = "${INC_PR}.0"
> DEFAULT_PREFERENCE = "-1"
>
> inherit native
> diff --git a/recipes/dbus/dbus-native_1.2.1.bb b/recipes/dbus/dbus-native_1.2.1.bb
> index 566c7bc..2b1610e 100644
> --- a/recipes/dbus/dbus-native_1.2.1.bb
> +++ b/recipes/dbus/dbus-native_1.2.1.bb
> @@ -1,4 +1,5 @@
> require dbus.inc
> +PR = "${INC_PR}.0"
> RRECOMMENDS_${PN} = ""
> RDEPENDS_${PN} = ""
> inherit native
> diff --git a/recipes/dbus/dbus.inc b/recipes/dbus/dbus.inc
> index 0302cfe..b5eeb08 100644
> --- a/recipes/dbus/dbus.inc
> +++ b/recipes/dbus/dbus.inc
> @@ -4,6 +4,8 @@ SECTION = "base"
> LICENSE = "GPL"
> DEPENDS = "expat glib-2.0 virtual/libintl libsm libice virtual/libx11"
>
> +INC_PR = "r16"
> +
> SRC_URI = "\
> http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \
> file://cross.patch;patch=1 \
> @@ -30,6 +32,10 @@ EXTRA_OECONF = "\
> --with-dbus-default-reply-timeout=200000 \
> "
>
> +do_compile_prepend_mipsel() {
> + sed -i -e 's/\-fPIE//' -e 's/\-pie\ \-Wl\,\-z\,relro//' bus/Makefile
> +}
> +
> do_install_append() {
> install -d ${D}${sysconfdir}/init.d
> install -m 0755 ${WORKDIR}/dbus-1.init ${D}${sysconfdir}/init.d/dbus-1
> diff --git a/recipes/dbus/dbus_1.0.3.bb b/recipes/dbus/dbus_1.0.3.bb
> index 2589cfe..7001bb9 100644
> --- a/recipes/dbus/dbus_1.0.3.bb
> +++ b/recipes/dbus/dbus_1.0.3.bb
> @@ -1,4 +1,4 @@
> require dbus.inc
> -PR = "r16"
> +PR = "${INC_PR}.0"
>
> DEFAULT_PREFERENCE = "-1"
> diff --git a/recipes/dbus/dbus_1.2.1.bb b/recipes/dbus/dbus_1.2.1.bb
> index 9d6c4c1..72db1da 100644
> --- a/recipes/dbus/dbus_1.2.1.bb
> +++ b/recipes/dbus/dbus_1.2.1.bb
> @@ -1,3 +1,3 @@
> include dbus.inc
>
> -PR = "r12"
> +PR = "${INC_PR}.0"
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-08-07 3:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-07 1:26 [PATCH] fix dbus-daemon segfault on mipsel with recent toolchain Graham Gower
2009-08-07 3:01 ` Khem Raj
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.