gonzalo / gphoto2-updater

Gphoto2 compiler and installer script. This script was initially created for Raspbian and Raspberry Pi but it is also tested for Ubuntu and Debian Jessie & Wheezy.
http://github.com/gonzalo/gphoto2-updater
291 stars 71 forks source link

Running ghoto2-updater on rpi does not result in latest version 2.5.26 but 2.5.23.1 #79

Closed Nears closed 3 years ago

Nears commented 3 years ago

Running ghoto2-updater on rpi does not result in latest version 2.5.26 but 2.5.23.1.

What could be the reason for this? Am I missing any preconditions which are not mentioned in the How-To?

scribblemaniac commented 3 years ago

Likely you have that version installed with a package manager. Try running sudo apt-get remove gphoto2 libgphoto2*, but make sure that it doesn't remove anything else important as a result. If it does remove something like gnome-desktop, then you may be able to make this script work by applying the changes from #73 instead.

Nears commented 3 years ago

Thanks for the quick feedback, this solved it partially. Now I have the lib at the latest version, but not yet gphoto2

See console log:

This version of gphoto2 is using the following software versions and options: gphoto2 2.5.23.1 gcc, popt(m), exif, no cdk, no aa, jpeg, no readline libgphoto2 2.5.26 standard camlibs (SKIPPING lumix), gcc, ltdl, EXIF libgphoto2_port 0.12.0 iolibs: disk ptpip serial usb1 usbdiskdirect usbscsi, gcc, ltdl, EXIF, USB, serial without locking

scribblemaniac commented 3 years ago

What is the output of which gphoto2?

Nears commented 3 years ago

/usr/local/bin/gphoto2

scribblemaniac commented 3 years ago

You actually probably have 2.5.26. Apparently the gphoto2 maintainers did not change the version number in configuration.ac until after the release (https://github.com/gphoto/gphoto2/commit/f2364ea53c53541ba154f049a0998bc461462e18). This means that 2.5.26 will print out version 2.5.23.1. Unfortunately I do not know of any good way to verify which version you have. There is very little difference between these versions of gphoto2, so as long as the library is updated I wouldn't worry about it too much.

Nears commented 3 years ago

Thanks for your feedback, but I am not sure what you are refering too. As far as I read the git repo for gphoto2 the rekease 2.5.26 was released at the 11th of october. https://github.com/gphoto/gphoto2/compare/v2.5.26...master And within this release the version tag was increased, so i would expect also gphoto to print the same version.

Or could you tell me were I am wrong? Thanks in advance.

scribblemaniac commented 3 years ago

The changes you linked are the changes since the v2.5.26 release and are not part of the latest stable release. Notice how the version change in AC_INIT is part of these changes.

Nears commented 3 years ago

Ok, thanks, I tried to use option 1) latest dev instead of 2) last stable release in your script and with this I do get the right version tag. Thanks