[packages/libfreebob] Rel 8; fix build

arekm arekm at pld-linux.org
Fri Jul 25 23:45:59 CEST 2025


commit 700ae308ab1d8641dc59c678d150b9ccabbcec7c
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Jul 25 23:45:54 2025 +0200

    Rel 8; fix build

 build.patch     | 41 +++++++++++++++++++++++++++++++++++++++++
 libfreebob.spec |  4 +++-
 2 files changed, 44 insertions(+), 1 deletion(-)
---
diff --git a/libfreebob.spec b/libfreebob.spec
index d1d0574..c8baaeb 100644
--- a/libfreebob.spec
+++ b/libfreebob.spec
@@ -2,7 +2,7 @@ Summary:	FreeBoB - free driver implementation for the BeBoB platform
 Summary(pl.UTF-8):	FreeBoB - wolnodostępna implementacja sterowników dla platformy BeBoB
 Name:		libfreebob
 Version:	1.0.11
-Release:	7
+Release:	8
 License:	GPL v2+
 Group:		Libraries
 Source0:	http://dl.sourceforge.net/freebob/%{name}-%{version}.tar.gz
@@ -10,6 +10,7 @@ Source0:	http://dl.sourceforge.net/freebob/%{name}-%{version}.tar.gz
 Patch0:		%{name}-gcc43.patch
 Patch1:		%{name}-gcc46.patch
 Patch2:		%{name}-gcc49.patch
+Patch3:		build.patch
 URL:		http://freebob.sourceforge.net/
 BuildRequires:	alsa-lib-devel >= 1.0.0
 BuildRequires:	libavc1394-devel >= 0.5.3
@@ -63,6 +64,7 @@ Statyczna biblioteka FreeBoB.
 %patch -P0 -p1
 %patch -P1 -p1
 %patch -P2 -p1
+%patch -P3 -p1
 
 %build
 %configure
diff --git a/build.patch b/build.patch
new file mode 100644
index 0000000..e01805a
--- /dev/null
+++ b/build.patch
@@ -0,0 +1,41 @@
+--- libfreebob-1.0.11/tests/freebob-server.c~	2007-10-15 20:15:07.000000000 +0200
++++ libfreebob-1.0.11/tests/freebob-server.c	2025-07-25 23:42:47.471447752 +0200
+@@ -23,6 +23,7 @@
+ #include <sys/types.h>
+ #include <sys/time.h>
+ #include <sys/poll.h>
++#include <arpa/inet.h>
+ 
+ #include <stdio.h>
+ #include <errno.h>
+--- libfreebob-1.0.11/tests/test-volume.cpp~	2025-07-25 23:38:23.000000000 +0200
++++ libfreebob-1.0.11/tests/test-volume.cpp	2025-07-25 23:43:07.858237445 +0200
+@@ -112,7 +112,7 @@ main(int argc, char **argv)
+         exit(0);
+     }
+ 
+-    int errno = 0;
++    errno = 0;
+     char* tail;
+     int node_id = strtol( argv[1], &tail, 0 );
+     int fb_id   = strtol( argv[2], &tail, 0 );
+--- libfreebob-1.0.11/src/configrom.cpp~	2007-11-06 16:57:21.000000000 +0100
++++ libfreebob-1.0.11/src/configrom.cpp	2025-07-25 23:41:53.587789249 +0200
+@@ -98,7 +98,7 @@ ConfigRom::initialize()
+                 ( void* )CSR1212_TEXTUAL_DESCRIPTOR_LEAF_DATA( m_vendorNameKv ),
+                 len );
+ 
+-	while ((buf + len - 1) == '\0') {
++	while (buf[len - 1] == '\0') {
+             len--;
+         }
+         // \todo XXX seems a bit strage to do this but the nodemgr.c code does
+@@ -117,7 +117,7 @@ ConfigRom::initialize()
+         memcpy( buf,
+                 ( void* )CSR1212_TEXTUAL_DESCRIPTOR_LEAF_DATA( m_modelNameKv ),
+                 len );
+-	while ((buf + len - 1) == '\0') {
++	while (buf[len - 1] == '\0') {
+             len--;
+         }
+         // \todo XXX for edirol fa-66 it seems somehow broken. see above
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libfreebob.git/commitdiff/700ae308ab1d8641dc59c678d150b9ccabbcec7c



More information about the pld-cvs-commit mailing list