You are not logged in.

#1 2008-11-08 13:17:01

hamlet
Member
Registered: 2007-11-25
Posts: 12

libgphoto2 alt PKGBUILD

Hello,
I had a problem with libgphoto2, "Fixed limit exceeded", which seems to occur when there is more than 1024 files in a directory !

To fix that, I just read debian/patches/70_increase_max_entries.dpatch which sets the limit to 8192 by replacing the value in src/libgphoto2-2.4.3/libgphoto2/gphoto2-list.c

line 75 was
#define MAX_ENTRIES 1024
is now
#define MAX_ENTRIES 8192

I've build the package with this "patch" and it seems to work perfectly...
My only problem is I don't know how to do that substitution in the PKGBUILD, I did it by hand...
I would like to create a package in AUR, something like libgphoto2-nolimit !

Thanks for any help,
regards

Last edited by hamlet (2008-11-08 13:17:44)

Offline

#2 2008-11-08 17:30:57

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

Re: libgphoto2 alt PKGBUILD

You could file a bug report and ask for this to be changed in the main package.

Probably only needs:

sed -i "s#MAX_ENTRIES 1024#MAX_ENTRIES 8192#" src/libgphoto2-2.4.3/libgphoto2/gphoto2-list.c

to be added.

Offline

#3 2008-11-09 15:23:38

hamlet
Member
Registered: 2007-11-25
Posts: 12

Re: libgphoto2 alt PKGBUILD

Should be ok in 2.4.0 according to this bug :
http://sourceforge.net/tracker/index.ph … tid=108874

So I don't know...
I created a libgphoto2-nolimit in AUR, if someone need that !
Should work...

Offline

#4 2011-06-18 22:25:20

onesandzeros
Member
Registered: 2005-09-16
Posts: 39

Re: libgphoto2 alt PKGBUILD

hamlet wrote:

Should be ok in 2.4.0 according to this bug :
http://sourceforge.net/tracker/index.ph … tid=108874

So I don't know...
I created a libgphoto2-nolimit in AUR, if someone need that !
Should work...

Thanks, this helped a lot.

Offline

#5 2011-06-18 22:59:16

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 12,872
Website

Re: libgphoto2 alt PKGBUILD


Arch + dwm   •   Mercurial repos

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB