bluez.spec - podbicie do 4.53

Daniel Dawid Majewski light-i at o2.pl
Mon Sep 21 17:46:31 CEST 2009


Witam, diff w załączniku ze zmodyfikowanymi łatkami bluez-etc_dir.patch bluez-oui.patch - zmieniły się katalogi w
nowszych źródłach.

Zapisano: /home/users/builder/rpm/SRPMS/bluez-4.53-1.src.rpm
Zapisano: /home/users/builder/rpm/RPMS/bluez-4.53-1.x86_64.rpm
Zapisano: /home/users/builder/rpm/RPMS/alsa-plugins-bluetooth-4.53-1.x86_64.rpm
Zapisano: /home/users/builder/rpm/RPMS/cups-backend-bluetooth-4.53-1.x86_64.rpm
Zapisano: /home/users/builder/rpm/RPMS/gstreamer-bluetooth-4.53-1.x86_64.rpm
Zapisano: /home/users/builder/rpm/RPMS/bluez-libs-4.53-1.x86_64.rpm
Zapisano: /home/users/builder/rpm/RPMS/bluez-libs-devel-4.53-1.x86_64.rpm
Zapisano: /home/users/builder/rpm/RPMS/bluez-libs-static-4.53-1.x86_64.rpm
Zapisano: /home/users/builder/rpm/RPMS/bluez-debuginfo-4.53-1.x86_64.rpm
Wykonywanie(%clean):  env -i PATH=/bin:/usr/bin:/usr/sbin:/sbin:/usr/X11R6/bin HOME=/home/users/builder
TMP=/home/users/builder/tmp TMPDIR=/home/users/builder/tmp  /bin/sh -e /home/users/builder/tmp/rpm-tmp.24365
+ umask 022
+ cd /home/users/builder/rpm/BUILD
+ cd bluez-4.53
+ /bin/rm --interactive=never -rf /home/users/builder/tmp/bluez-4.53-root-builder
+ rm -rf /home/users/builder/tmp/bluez-4.53-root-builder
--------------------------------------buildlog end------------------------------------------
-- 
Pozdrawiam,
Daniel Dawid Majewski
jabber:light-i/jid.pl
-------------- next part --------------
--- tools/parser.y.oryg	2009-09-03 05:58:36.000000000 +0200
+++ tools/parser.y	2009-09-21 17:17:22.000000000 +0200
@@ -153,7 +153,11 @@
 	if (filename) {
 		snprintf(file, MAXPATHLEN,  "%s", filename);
 	} else {
-		snprintf(file, MAXPATHLEN, "%s/.bluetooth/rfcomm.conf", getenv("HOME"));
+		char *etc_dir = getenv("HOME_ETC");
+		if (etc_dir)
+			snprintf(file, MAXPATHLEN, "%s/.bluetooth/rfcomm.conf", etc_dir);
+		else
+			snprintf(file, MAXPATHLEN, "%s/.bluetooth/rfcomm.conf", getenv("HOME"));
 
 		if ((getuid() == 0) || (access(file, R_OK) < 0))
 			snprintf(file, MAXPATHLEN, "%s/rfcomm.conf", CONFIGDIR);
-------------- next part --------------
--- bluez-4.53/src/oui.c.oryg	2009-09-03 05:58:36.000000000 +0200
+++ bluez-4.53/src/oui.c	2009-09-21 17:33:37.000000000 +0200
@@ -38,7 +38,7 @@
 
 /* http://standards.ieee.org/regauth/oui/oui.txt */
 
-#define OUIFILE "/var/lib/misc/oui.txt"
+#define OUIFILE "/usr/share/hwdata/oui.txt"
 
 char *ouitocomp(const char *oui)
 {
@@ -48,12 +48,7 @@
 
 	fd = open("oui.txt", O_RDONLY);
 	if (fd < 0) {
-		fd = open(OUIFILE, O_RDONLY);
-		if (fd < 0) {
-			fd = open("/usr/share/misc/oui.txt", O_RDONLY);
-			if (fd < 0)
-				return NULL;
-		}
+		return NULL;
 	}
 
 	if (fstat(fd, &st) < 0) {
-------------- next part --------------
--- bluez.spec.oryg	2009-09-21 16:18:48.000000000 +0200
+++ bluez.spec	2009-09-21 17:11:15.000000000 +0200
@@ -2,13 +2,13 @@
 Summary:	Bluetooth utilities
 Summary(pl.UTF-8):	Narzędzia Bluetooth
 Name:		bluez
-Version:	4.47
-Release:	3
+Version:	4.53
+Release:	1
 License:	GPL v2+
 Group:		Applications/System
 #Source0Download: http://www.bluez.org/download.html
 Source0:	http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.gz
-# Source0-md5:	b54a199004b578ec5652014a5e62aeaa
+# Source0-md5:	432509193ea508da5ce23fe056625d0f
 Source1:	%{name}.init
 Source2:	%{name}.sysconfig
 Source3:	dund.init
@@ -172,7 +172,7 @@
 
 %prep
 %setup -q
-%patch0 -p1
+%patch0 -p0
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
@@ -324,7 +324,7 @@
 - rel 2; init scripts into separate files
 
 Revision 1.30  2009/07/31 06:56:01  matkor
-Update to 4.45-1. wacom patches added. (all by Przemys�aw Firszt).
+Update to 4.45-1. wacom patches added. (all by Przemysław Firszt).
 
 Revision 1.29  2009/07/18 10:11:29  charles
 - removed BR openobex-devel (not needed)


More information about the pld-devel-pl mailing list