From 05b56d805ccde00aedc1b5041d4b84660ab2014a Mon Sep 17 00:00:00 2001 From: Jindrich Novy Date: Mon, 7 Jul 2008 08:11:48 +0000 Subject: [PATCH] - increase maximal number of entries in the camera list (#454245) --- gphoto2-maxentries.patch | 12 ++++++++++++ libgphoto2.spec | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 gphoto2-maxentries.patch diff --git a/gphoto2-maxentries.patch b/gphoto2-maxentries.patch new file mode 100644 index 0000000..1624a32 --- /dev/null +++ b/gphoto2-maxentries.patch @@ -0,0 +1,12 @@ +diff -up libgphoto2-2.4.1/libgphoto2/gphoto2-list.c.maxentries libgphoto2-2.4.1/libgphoto2/gphoto2-list.c +--- libgphoto2-2.4.1/libgphoto2/gphoto2-list.c.maxentries 2007-07-27 07:52:55.000000000 +0200 ++++ libgphoto2-2.4.1/libgphoto2/gphoto2-list.c 2008-07-07 09:27:04.000000000 +0200 +@@ -72,7 +72,7 @@ + + #ifdef CAMERALIST_STRUCT_COMPATIBILITY + +-#define MAX_ENTRIES 1024 ++#define MAX_ENTRIES 4096 + #define MAX_LIST_STRING_LENGTH 128 + struct _CameraList { + int count; diff --git a/libgphoto2.spec b/libgphoto2.spec index 98f7d05..c8b154e 100644 --- a/libgphoto2.spec +++ b/libgphoto2.spec @@ -1,7 +1,7 @@ Summary: Library for accessing digital cameras Name: libgphoto2 Version: 2.4.1 -Release: 5%{?dist} +Release: 6%{?dist} # GPLV2+ for the main lib (due to exif.c) and most plugins, some plugins GPLv2 License: GPLv2+ and GPLv2 Group: Development/Libraries @@ -10,6 +10,7 @@ Source0: http://downloads.sourceforge.net/gphoto/libgphoto2-%{version}.tar.bz2 Patch1: gphoto2-pkgcfg.patch Patch2: gphoto2-storage.patch Patch3: gphoto2-ixany.patch +Patch4: gphoto2-maxentries.patch Patch6: gphoto2-libusb-fix-build.patch Url: http://www.gphoto.org/ Requires: lockdev @@ -53,6 +54,7 @@ use libgphoto2. %patch1 -p1 -b .pkgcfg %patch2 -p1 -b .storage %patch3 -p1 -b .ixany +%patch4 -p1 -b .maxentries %patch6 -p1 -b .libusb-build # FIXME: These .pc.in files aren't actually being installed? @@ -151,6 +153,9 @@ rm -rf "${RPM_BUILD_ROOT}" %{_mandir}/man3/* %changelog +* Mon Jul 07 2008 Jindrich Novy 2.4.1-6 +- increase maximal number of entries in the camera list (#454245) + * Fri Jun 20 2008 Kevin Kofler 2.4.1-5 - fix pkgcfg patch to match actual .pc file names (fixes kdegraphics build)