Hi all,

dbus-daemon was segfaulting on trunk due to the -pie and -fPIC flag
being present on AT LEAST brcm43xx (with 2.6.30.4). I'm not sure what
other packages attempt to use that flag but they may or may not also
be broken. It could be related to uclibc. I'll look in to it.

The flag doesn't seem all that useful, so maybe it should be looked in
to for possible blacklisting.
More info: http://gcc.gnu.org/ml/gcc-patches/2003-06/msg00145.html
(thanks to xMff)

Anyway, without further adieu, here's the fix.

Thanks,
Dave Cooper


Signed-off-by: David Cooper <d...@kupesoft.com>

---


 Index: packages/utils/dbus/patches/01-dbus-nopie-fix.patch
===================================================================
--- packages/utils/dbus/patches/01-dbus-nopie-fix.patch (revision 0)
+++ packages/utils/dbus/patches/01-dbus-nopie-fix.patch (revision 0)
@@ -0,0 +1,23 @@
+diff -ruN dbus-1.2.4.6permissive.orig/configure
dbus-1.2.4.6permissive/configure
+--- dbus-1.2.4.6permissive.orig/configure      2009-05-06
13:35:38.000000000 -0400
++++ dbus-1.2.4.6permissive/configure   2009-08-05 17:53:25.000000000 -0400
+@@ -20927,19 +20927,6 @@
+      ;;
+   esac
+
+-  case " $CFLAGS " in
+-  *[\ \       ]-fPIE[\ \      ]*) ;;
+-  *) if cc_supports_flag -fPIE; then
+-        PIE_CFLAGS="-fPIE"
+-        if ld_supports_flag -z,relro; then
+-           PIE_LDFLAGS="-pie -Wl,-z,relro"
+-        else
+-           PIE_LDFLAGS="-pie"
+-        fi
+-     fi
+-     ;;
+-  esac
+-
+   ### Disabled warnings, and compiler flag overrides
+
+   # Let's just ignore unused for now
Index: packages/utils/dbus/Makefile
===================================================================
--- packages/utils/dbus/Makefile        (revision 17127)
+++ packages/utils/dbus/Makefile        (working copy)
@@ -10,7 +10,7 @@
 # Make sure to also update the dbus-x package
 PKG_NAME:=dbus
 PKG_VERSION:=1.2.4.6permissive
-PKG_RELEASE:=1
+PKG_RELEASE:=2

 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://dbus.freedesktop.org/releases/dbus/
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to