Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 496754 - =media-libs/libgphoto2-2.5.2-r{1,2} and canon driver for Canon PowerShot S100 has bad parameters - error
Summary: =media-libs/libgphoto2-2.5.2-r{1,2} and canon driver for Canon PowerShot S100...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-01-02 12:44 UTC by Nikolay Kichukov
Modified: 2014-01-10 21:26 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for canon.c for Canon PowerShot S100 (file_496754.txt,1.12 KB, patch)
2014-01-02 12:44 UTC, Nikolay Kichukov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolay Kichukov 2014-01-02 12:44:23 UTC
Created attachment 366764 [details, diff]
patch for canon.c for Canon PowerShot S100

In latest code of libgphoto2 (media-libs/libgphoto2-2.5.2-r1 and media-libs/libgphoto2-2.5.2-r2) Canon PowerShot S100 is not properly initialized thus media cannot be fetched from the camera. This seems to be a problem in mainline as I was able to find the same problem described and resolved in many distributions.

To summarize:

$ gphoto2 --get-all-files
Initializing camera...
An error occurred in the io-library ('Bad parameters'): No error description available

and 

$ gphoto2 --list-cameras | grep "PowerShot S100"
	"Canon PowerShot S100"
	"Canon PowerShot S100"


The problem is fixed in libgphoto2-2.5.3, however gentoo does not yet offer the ebuild.

The attachment is a patch, which I have applied to media-libs/libgphoto2-2.5.2-r2 and it has resolved the problem. Confirmed.


Thanks,
-Nikolay
Comment 1 Pacho Ramos gentoo-dev 2014-01-02 14:16:42 UTC
Do you have some link/reference to that bugs in other distributions and upstream? I have seen they haven't released yet a .3 version and would like to use the patch willing to be included by them :)

Thanks
Comment 2 Nikolay Kichukov 2014-01-02 21:24:55 UTC
(In reply to Pacho Ramos from comment #1)
> Do you have some link/reference to that bugs in other distributions and
> upstream? I have seen they haven't released yet a .3 version and would like
> to use the patch willing to be included by them :)
> 
> Thanks

Hello Pacho,
yes, I found quite a few, here are some:

https://bugs.launchpad.net/ubuntu/+source/gphoto2/+bug/1245303
http://sourceforge.net/p/gphoto/bugs/958/
http://sourceforge.net/p/gphoto/bugs/965/
patch location: http://sourceforge.net/p/gphoto/bugs/965/attachment/canon

There might be others as well. The patch above does fix the problem for me. Let me know if you need to have more information about the case.

Cheers,
-Nik
Comment 3 Pacho Ramos gentoo-dev 2014-01-03 10:57:15 UTC
+*libgphoto2-2.5.2-r3 (03 Jan 2014)
+
+  03 Jan 2014; Pacho Ramos <pacho@gentoo.org>
+  +files/libgphoto2-2.5.2-canon-s100.patch, +libgphoto2-2.5.2-r3.ebuild,
+  -libgphoto2-2.5.2-r2.ebuild:
+  Fix Canon S100 detection, bug #496754 by Nikolay Kichukov, drop old
+
Comment 4 Nikolay Kichukov 2014-01-10 21:26:31 UTC
Thanks, it is resolved in -r3.

Cheers,
-N