diff --git a/bluez-udev-deprecated.patch b/bluez-udev-deprecated.patch new file mode 100644 index 0000000..ffff682 --- /dev/null +++ b/bluez-udev-deprecated.patch @@ -0,0 +1,26 @@ +From 35beaaa5b39d50eabd54563804182bb01a5d7ff4 Mon Sep 17 00:00:00 2001 +From: Tom Gundersen +Date: Sun, 27 May 2012 01:07:57 +0200 +Subject: [PATCH] udev: remove deprecated function + +This function has in the past returned "/sys" unconditionally. As of +udev-183 it is gone, so just replace it with the string. +--- + tools/hid2hci.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/tools/hid2hci.c b/tools/hid2hci.c +index 45a3a3d..e3a5b2e 100644 +--- a/tools/hid2hci.c ++++ b/tools/hid2hci.c +@@ -291,7 +291,7 @@ int main(int argc, char *argv[]) + if (udev == NULL) + goto exit; + +- snprintf(syspath, sizeof(syspath), "%s/%s", udev_get_sys_path(udev), devpath); ++ snprintf(syspath, sizeof(syspath), "/sys/%s", devpath); + udev_dev = udev_device_new_from_syspath(udev, syspath); + if (udev_dev == NULL) { + fprintf(stderr, "error: could not find '%s'\n", devpath); +-- +1.7.7.6 diff --git a/bluez.spec b/bluez.spec index c69f365..3fad211 100644 --- a/bluez.spec +++ b/bluez.spec @@ -1,7 +1,7 @@ Summary: Bluetooth utilities Name: bluez Version: 4.99 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ Group: Applications/System URL: http://www.bluez.org/ @@ -20,6 +20,7 @@ Patch4: bluez-socket-mobile-cf-connection-kit.patch Patch5: 0001-Add-sixaxis-cable-pairing-plugin.patch # http://thread.gmane.org/gmane.linux.bluez.kernel/8645 Patch6: 0001-systemd-install-systemd-unit-files.patch +Patch7: bluez-udev-deprecated.patch BuildRequires: flex BuildRequires: dbus-devel >= 0.90 @@ -144,6 +145,7 @@ and mouse. %patch4 -p1 -b .socket-mobile %patch5 -p1 -b .cable-pairing %patch6 -p1 -b .systemd +%patch7 -p1 -b .udev %build libtoolize -f -c @@ -182,6 +184,8 @@ install -D -m0755 %{SOURCE8} $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/modules/bl install -d -m0755 $RPM_BUILD_ROOT/%{_localstatedir}/lib/bluetooth +mkdir -p $RPM_BUILD_ROOT/%{_libdir}/bluetooth/ + %post libs -p /sbin/ldconfig %post @@ -308,6 +312,10 @@ fi %exclude /usr/lib/udev/rules.d/97-bluetooth-hid2hci.rules %changelog +* Fri Jun 1 2012 Peter Robinson - 4.99-2 +- Add patch for udev change to fix FTBFS on rawhide +- Drop sbc patch as fixed in gcc 4.7 final + * Tue Mar 06 2012 Bastien Nocera 4.99-1 - Update to 4.99