forked from pool/libdc1394
This commit is contained in:
parent
7d23a51c6d
commit
f8e59c432f
@ -1,5 +1,9 @@
|
||||
--- libdc1394-2/dc1394/conversions.c
|
||||
+++ libdc1394-2/dc1394/conversions.c
|
||||
---
|
||||
libdc1394-2.0.2/dc1394/conversions.c | 5 ++---
|
||||
1 file changed, 2 insertions(+), 3 deletions(-)
|
||||
|
||||
--- a/libdc1394-2.0.2/dc1394/conversions.c
|
||||
+++ b/libdc1394-2.0.2/dc1394/conversions.c
|
||||
@@ -22,11 +22,10 @@
|
||||
|
||||
#include <string.h>
|
||||
|
@ -1,6 +1,11 @@
|
||||
--- libdc1394-2/acinclude.m4
|
||||
+++ libdc1394-2/acinclude.m4
|
||||
@@ -78,7 +78,7 @@
|
||||
---
|
||||
libdc1394-2.0.2/acinclude.m4 | 4 ++--
|
||||
libdc1394-2.0.2/configure.in | 7 +------
|
||||
2 files changed, 3 insertions(+), 8 deletions(-)
|
||||
|
||||
--- a/libdc1394-2.0.2/acinclude.m4
|
||||
+++ b/libdc1394-2.0.2/acinclude.m4
|
||||
@@ -78,7 +78,7 @@ AC_DEFUN([DX_REQUIRE_PROG], [
|
||||
AC_PATH_TOOL([$1], [$2])
|
||||
if test "$DX_FLAG_[]DX_CURRENT_FEATURE$$1" = 1; then
|
||||
AC_MSG_WARN([$2 not found - will not DX_CURRENT_DESCRIPTION])
|
||||
@ -9,7 +14,7 @@
|
||||
fi
|
||||
])
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
@@ -101,7 +101,7 @@ test "$DX_FLAG_$1" = "$2" \
|
||||
# ----------------------------------------------------------
|
||||
# Turn off the DX_CURRENT_FEATURE if the required feature is off.
|
||||
AC_DEFUN([DX_CLEAR_DEPEND], [
|
||||
@ -18,9 +23,9 @@
|
||||
])
|
||||
|
||||
# DX_FEATURE_ARG(FEATURE, DESCRIPTION,
|
||||
--- libdc1394-2/configure.in
|
||||
+++ libdc1394-2/configure.in
|
||||
@@ -3,12 +3,6 @@
|
||||
--- a/libdc1394-2.0.2/configure.in
|
||||
+++ b/libdc1394-2.0.2/configure.in
|
||||
@@ -3,12 +3,6 @@ AC_PREREQ([2.6.0])
|
||||
AC_INIT([libdc1394],[2.0.2],[libdc1394-devel@lists.sf.net])
|
||||
AC_CONFIG_SRCDIR([dc1394/control.c])
|
||||
|
||||
@ -33,7 +38,7 @@
|
||||
#
|
||||
DX_HTML_FEATURE(OFF)
|
||||
DX_CHM_FEATURE(OFF)
|
||||
@@ -25,6 +19,7 @@
|
||||
@@ -25,6 +19,7 @@ AM_INIT_AUTOMAKE([--warnings=all 1.9.6])
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
|
||||
AC_PROG_CC
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 6 10:15:29 CEST 2008 - olh@suse.de
|
||||
|
||||
- fix ordered comparison of pointer with integer zero (bnc#431916)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 19 14:19:30 CEST 2008 - pth@suse.de
|
||||
|
||||
|
@ -1,5 +1,10 @@
|
||||
--- libdc1394-2.0.2/libdc1394-1/examples/Makefile.am
|
||||
+++ libdc1394-2.0.2/libdc1394-1/examples/Makefile.am
|
||||
---
|
||||
libdc1394-1.2.2/examples/Makefile.am | 2 +-
|
||||
libdc1394-2.0.2/configure.in | 34 +++++++++++++++++++++-------------
|
||||
2 files changed, 22 insertions(+), 14 deletions(-)
|
||||
|
||||
--- a/libdc1394-1.2.2/examples/Makefile.am
|
||||
+++ b/libdc1394-1.2.2/examples/Makefile.am
|
||||
@@ -1,6 +1,6 @@
|
||||
MAINTAINERCLEANFILES = Makefile.in
|
||||
bin_PROGRAMS = dc1394_vloopback
|
||||
@ -8,9 +13,9 @@
|
||||
|
||||
grab_gray_image_SOURCES = grab_gray_image.c
|
||||
grab_gray_image_LDADD = ../libdc1394/libdc1394_control.la -lraw1394
|
||||
--- libdc1394-2.0.2/libdc1394-2/configure.in
|
||||
+++ libdc1394-2.0.2/libdc1394-2/configure.in
|
||||
@@ -71,20 +71,28 @@
|
||||
--- a/libdc1394-2.0.2/configure.in
|
||||
+++ b/libdc1394-2.0.2/configure.in
|
||||
@@ -71,20 +71,28 @@ AC_SUBST(dc1394platform)
|
||||
|
||||
# check for Xv extensions (necessary for examples/dc1394_multiview)
|
||||
# imported from Coriander
|
||||
|
24
libdc1394.raw1394_set_iso_handler.patch
Normal file
24
libdc1394.raw1394_set_iso_handler.patch
Normal file
@ -0,0 +1,24 @@
|
||||
Bug 431916 - libdc1394-2.0.0-7: ordered comparison of pointer with integer zero
|
||||
|
||||
dc1394_capture.c:441: warning: ordered comparison of pointer with integer zero
|
||||
|
||||
---
|
||||
libdc1394-1.2.2/libdc1394/dc1394_capture.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
--- a/libdc1394-1.2.2/libdc1394/dc1394_capture.c
|
||||
+++ b/libdc1394-1.2.2/libdc1394/dc1394_capture.c
|
||||
@@ -438,11 +438,11 @@ dc1394_multi_capture(raw1394handle_t han
|
||||
_dc1394_buffer[cams[i].channel]= cams[i].capture_buffer;
|
||||
|
||||
if (raw1394_set_iso_handler(handle,cams[i].channel,
|
||||
- _dc1394_video_iso_handler) < 0)
|
||||
+ _dc1394_video_iso_handler) == (iso_handler_t)-1)
|
||||
{
|
||||
/* error handling- for some reason something didn't work,
|
||||
so we have to reset everything....*/
|
||||
- printf("(%s:%d) error!\n",__FILE__, __LINE__);
|
||||
+ printf("(%s:%s:%d) error while calling raw1394_set_iso_handler!\n",__FILE__, __func__, __LINE__);
|
||||
|
||||
for (j= i - 1; j > -1; j--)
|
||||
{
|
@ -2,9 +2,16 @@
|
||||
# spec file for package libdc1394 (Version MACRO)
|
||||
#
|
||||
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
@ -19,7 +26,7 @@ License: LGPL v2.1 or later
|
||||
Group: Hardware/Camera
|
||||
AutoReqProv: on
|
||||
Version: %{libdc1394_version}
|
||||
Release: 9
|
||||
Release: 10
|
||||
Url: http://sourceforge.net/projects/libdc1394/
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Summary: 1394-Based Digital Camera Control Library
|
||||
@ -29,6 +36,7 @@ Source3: %{name}-rpmlintrc
|
||||
Patch0: libdc1394.no-x11.patch
|
||||
Patch1: libdc1394.ac.patch
|
||||
Patch2: libdc1394-swab_fix.patch
|
||||
Patch3: libdc1394.raw1394_set_iso_handler.patch
|
||||
|
||||
%description
|
||||
This library provides functionality for controlling any camera that
|
||||
@ -53,7 +61,7 @@ License: LGPL v2.1 or later
|
||||
Summary: 1394-Based Digital Camera Control Library
|
||||
Group: Hardware/Camera
|
||||
Version: %{libdc1394_12_version}
|
||||
Release: 7
|
||||
Release: 8
|
||||
|
||||
%description -n libdc1394_control12
|
||||
This library provides functionality for controlling any camera that
|
||||
@ -80,7 +88,7 @@ License: LGPL v2.1 or later
|
||||
Summary: 1394-Based Digital Camera Control Library
|
||||
Group: Development/Libraries/C and C++
|
||||
Version: %{libdc1394_12_version}
|
||||
Release: 7
|
||||
Release: 8
|
||||
Requires: libdc1394_control12 = %{libdc1394_12_version} libraw1394-devel
|
||||
|
||||
%description -n libdc1394_control12-devel
|
||||
@ -153,30 +161,33 @@ Authors:
|
||||
|
||||
%prep
|
||||
%setup -q -T -c -a 1 -a 2
|
||||
mv libdc1394-1* libdc1394-1
|
||||
mv libdc1394-2* libdc1394-2
|
||||
%patch0 -p1
|
||||
%patch1
|
||||
%patch2
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
|
||||
%build
|
||||
for i in libdc1394-1 libdc1394-2
|
||||
do
|
||||
cd $i
|
||||
autoreconf --force --install
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
%{configure} --disable-xv
|
||||
%{__make} %{?jobs:-j%jobs}
|
||||
cd ..
|
||||
done
|
||||
doit() {
|
||||
if pushd "$1" ; then
|
||||
autoreconf --force --install
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
%{configure} --disable-xv
|
||||
%{__make} %{?jobs:-j%jobs}
|
||||
popd
|
||||
fi
|
||||
}
|
||||
doit libdc1394-%{libdc1394_12_version}
|
||||
doit libdc1394-%{libdc1394_version}
|
||||
|
||||
%install
|
||||
for i in libdc1394-1 libdc1394-2
|
||||
do
|
||||
cd $i
|
||||
%{__make} DESTDIR=${RPM_BUILD_ROOT} install
|
||||
cd ..
|
||||
done
|
||||
doit() {
|
||||
if pushd "$1" ; then
|
||||
%{__make} DESTDIR=${RPM_BUILD_ROOT} install
|
||||
popd
|
||||
fi
|
||||
}
|
||||
doit libdc1394-%{libdc1394_12_version}
|
||||
doit libdc1394-%{libdc1394_version}
|
||||
rm -f %{buildroot}%{_bindir}/dc1394_vloopback %{buildroot}%{_mandir}/man1/dc1394_vloopback.1*
|
||||
|
||||
%post -n libdc1394_control12 -p /sbin/ldconfig
|
||||
@ -189,7 +200,7 @@ rm -f %{buildroot}%{_bindir}/dc1394_vloopback %{buildroot}%{_mandir}/man1/dc1394
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc libdc1394-2/{AUTHORS,COPYING,ChangeLog,NEWS,README}
|
||||
%doc libdc1394-%{libdc1394_version}/{AUTHORS,COPYING,ChangeLog,NEWS,README}
|
||||
%_bindir/dc1394_reset_bus
|
||||
%{_mandir}/man1/dc1394_reset_bus.1*
|
||||
|
||||
@ -217,6 +228,8 @@ rm -f %{buildroot}%{_bindir}/dc1394_vloopback %{buildroot}%{_mandir}/man1/dc1394
|
||||
%_libdir/pkgconfig/*.pc
|
||||
|
||||
%changelog
|
||||
* Mon Oct 06 2008 olh@suse.de
|
||||
- fix ordered comparison of pointer with integer zero (bnc#431916)
|
||||
* Thu Jun 19 2008 pth@suse.de
|
||||
- Include unistd.h to get prototype for swab.
|
||||
- Update to 2.0.2. Changes since 2.0.0:
|
||||
|
Loading…
x
Reference in New Issue
Block a user