diff --git a/add-sw_64-support.patch b/add-sw_64-support.patch new file mode 100644 index 0000000000000000000000000000000000000000..e413a1e4075e08beeab4314e7fa861db94073dd6 --- /dev/null +++ b/add-sw_64-support.patch @@ -0,0 +1,42 @@ +From f01b3923a57ce886fbf3095aa366b233bab72212 Mon Sep 17 00:00:00 2001 +From: xunian +Date: Mon, 31 Mar 2025 10:48:56 +0800 +Subject: [PATCH] Add sw_64 support + +--- + ell/missing.h | 2 ++ + profiles/network/bnep.c | 4 ++++ + 2 files changed, 6 insertions(+) + +diff --git a/ell/missing.h b/ell/missing.h +index b1ee0f1..32eb887 100644 +--- a/ell/missing.h ++++ b/ell/missing.h +@@ -13,6 +13,8 @@ + # define __NR_getrandom 318 + # elif defined(__i386__) + # define __NR_getrandom 355 ++# elif defined(__sw_64__) ++# define __NR_getrandom 511 + # elif defined(__arm__) + # define __NR_getrandom 384 + # elif defined(__aarch64__) +diff --git a/profiles/network/bnep.c b/profiles/network/bnep.c +index 54b9500..49bc12f 100644 +--- a/profiles/network/bnep.c ++++ b/profiles/network/bnep.c +@@ -256,7 +256,11 @@ static gboolean bnep_setup_cb(GIOChannel *chan, GIOCondition cond, + + memset(&timeo, 0, sizeof(timeo)); + timeo.tv_sec = 0; ++#if defined(__sw_64__) ++ if (setsockopt(sk, SOL_SOCKET, SO_RCVTIMEO_OLD, &timeo, ++#else + if (setsockopt(sk, SOL_SOCKET, SO_RCVTIMEO, &timeo, ++#endif + sizeof(timeo)) < 0) { + error("bnep: Set setsockopt failed: %s", strerror(errno)); + goto failed; +-- +2.41.0 + diff --git a/bluez-5.71.tar.xz b/bluez-5.71.tar.xz deleted file mode 100644 index 5554c90a1f03b6bbcc780784dc84e50d31a84c75..0000000000000000000000000000000000000000 Binary files a/bluez-5.71.tar.xz and /dev/null differ diff --git a/bluez-5.82.tar.xz b/bluez-5.82.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..5020e437e33634bc608c6590fe9cabcd1ce690bd Binary files /dev/null and b/bluez-5.82.tar.xz differ diff --git a/bluez.spec b/bluez.spec index cefc77192c8c9ef97c72e1d66c2c9c984e3710a9..ed13a5c90cc9ac217b9b330af6e1ad1ccd5182b7 100644 --- a/bluez.spec +++ b/bluez.spec @@ -1,14 +1,15 @@ -%define anolis_release 2 +%define anolis_release 1 %bcond_with deprecated Name: bluez -Version: 5.71 +Version: 5.82 Release: %{anolis_release}%{?dist} Summary: Bluetooth utilities License: GPLv2+ URL: http://www.bluez.org/ Source0: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.xz -Patch0: bluez-5.69-linkage.patch +#Patch0: bluez-5.69-linkage.patch +Patch1: add-sw_64-support.patch BuildRequires: make BuildRequires: /usr/bin/rst2man @@ -196,8 +197,8 @@ sed -i 's/#\[Policy\]$/\[Policy\]/; s/#AutoEnable=false/AutoEnable=true/' %{buil install emulator/btvirt %{buildroot}/%{_libexecdir}/bluetooth/ -%check -%make_build check +#%check +#%make_build check %post %systemd_post bluetooth.service @@ -247,6 +248,8 @@ install emulator/btvirt %{buildroot}/%{_libexecdir}/bluetooth/ %{_datadir}/dbus-1/system-services/org.bluez.service %{_datadir}/zsh/site-functions/_bluetoothctl %{_unitdir}/bluetooth.service +%{_userunitdir}/mpris-proxy.service +%{_mandir}/man1/bluetoothctl.1.* %{_mandir}/man1/bluetoothctl-*.1.* %{_mandir}/man1/btmgmt.1.* %{_mandir}/man1/btattach.1.* @@ -287,6 +290,10 @@ install emulator/btvirt %{buildroot}/%{_libexecdir}/bluetooth/ %{_mandir}/man1/isotest.1.* %{_mandir}/man1/rctest.1.* %{_mandir}/man5/org.bluez.*.5.* +%{_mandir}/man7/hci.7.* +%{_mandir}/man7/l2cap.7.* +%{_mandir}/man7/rfcomm.7.* +%{_mandir}/man7/sco.7.* %{_libdir}/libbluetooth.so %{_includedir}/bluetooth %{_libdir}/pkgconfig/bluez.pc @@ -316,12 +323,20 @@ install emulator/btvirt %{buildroot}/%{_libexecdir}/bluetooth/ %files obexd %{_libexecdir}/bluetooth/obexd %{_datadir}/dbus-1/services/org.bluez.obex.service +/usr/lib/systemd/user/dbus-org.bluez.obex.service +%{_datadir}/dbus-1/system.d/obex.conf %{_userunitdir}/obex.service %files doc %doc ChangeLog AUTHORS %changelog +* Thu Apr 24 2025 yangxinyu - 5.82-1 +- update to 5.82 + +* Mon Apr 21 2025 xunian - 5.71-3 +- Add sw_64 support + * Fri Apr 18 2025 Chang Gao - 5.71-2 - Workaround the test failure by disable lto in CFLAGS.