Commit Graph

12107 Commits

Author SHA1 Message Date
Marcus Meissner
6d7787f0a1 use the same flags for the 1500D and 2000D, fixes https://github.com/gphoto/libgphoto2/issues/812 2022-07-23 10:52:37 +02:00
Marcus Meissner
c7cce560c1 added nikon z30 2022-07-20 10:36:35 +02:00
Marcus Meissner
4e56b0bda9 from https://github.com/gphoto/libgphoto2/issues/792 2022-07-16 10:58:39 +02:00
Marcus Meissner
904c28302e added eos 850d alias
fixes https://github.com/gphoto/libgphoto2/issues/810
2022-07-05 14:30:32 +02:00
Marcus Meissner
cb70e5fadc 2.5.30.1 development snapshot 2022-07-02 11:55:57 +02:00
Marcus Meissner
6511898c4b 2.5.30 release v2.5.30 libgphoto2-2_5_30-release 2022-07-02 11:29:52 +02:00
Marcus Meissner
c89a566f85 imported from libmtp 2022-07-02 10:28:11 +02:00
Hans Ulrich Niedermann
0cfd9bff23 Update libgphoto2_port/NEWS for 0.12.1, fixing distcheck
Commit e47c13fd8e updates the
libgphoto2_port version from 0.12.0 to 0.12.1, but fails to
update libgphoto2_port/NEWS accordingly.

This updates libgphoto2_port/NEWS with the 0.12.1 version number,
thus fixing the "make distcheck" target's part checking NEWS.
2022-05-31 22:41:24 +02:00
Hans Ulrich Niedermann
e47c13fd8e Call libgphoto2_port 0.12.1, add pc file requirement
Change the libgphoto2_port version from 0.12.0 to 0.12.1 so that
the libgphoto2 pkgconfig files can require libgphoto2_port >= 0.12.1
due to new symbols added.

This will not catch all possible build/install/link messups, but
will not hurt anyone and could catch some messups.
2022-05-30 22:30:38 +02:00
Hans Ulrich Niedermann
5edddb534d source-code-check refers to srcdir, not builddir 2022-05-29 06:43:40 +02:00
Hans Ulrich Niedermann
e7a4146464 remove unused file camlibs/largan/Makefile.am 2022-05-29 00:43:44 +02:00
Hans Ulrich Niedermann
85f2b9fdf5 gh CI workflow: Add "make installcheck" target 2022-05-27 21:46:59 +02:00
Marcus Meissner
160be50f1d added Sony HDR-PJ710V 2022-05-23 15:33:30 +02:00
Marcus Meissner
632d752672 updated news 2022-05-23 15:33:30 +02:00
Hans Ulrich Niedermann
26eb876839 Allow overriding build tools from configure command line
Introduce GP_CHECK_PROG macro to allow users to override
the autodetection of tools, instead of the autodetection
overriding the user's explicit wish.

    GP_CHECK_PROG([SORT, [sort], [text line sorting tool])

will now allow calling

    ./configure SORT="mysort"

and have subsequent builds use that given value without
checking PATH. When calling `configure` without SORT=,
AC_PATH_PROG will look for `sort` in `PATH` and set
`SORT` to the value it has found.

For comparison, here is the old buggy method:

    AC_ARG_VAR([SORT], [sort], [text line sorting tool])
    AC_PATH_PROG([SORT], [sort], [no])

When called as `configure SORT="mysort"`, the expanded
AC_PATH_PROG will just look in `PATH` for `sort` and
set `SORT` to the `sort` it found, completely ignoring
the SORT= value given on the `configure` command line.
2022-05-19 22:48:45 +02:00
Hans Ulrich Niedermann
c7c5d4cc80 Use GP_SLEEP_IF_TTY
Only sleep after configure warning message if the output goes to
an interactive terminal (isatty()) and therefore sleeping actually
has a chance to be noticed by someone watching.
2022-05-19 22:48:45 +02:00
Hans Ulrich Niedermann
4230f16670 Use m4_pattern_ignore for some PKG_* macros
It makes more sense to use the provided m4_pattern_ignore()
macro than writing our own error messages.

Yes, our own error message could be more helpful to the
uninitiated user by mentioning the package and the m4 file
name to install which provide the required macro.

However, those file names and package names can and do change
with time or by operating system.
2022-05-19 22:48:38 +02:00
Hans Ulrich Niedermann
f5455ef081 remove additional AM_CONDITIONAL definitions
Remove additional AM_CONDITIONAL definitions for HAVE_LIBCURL
and HAVE_LIBXML2.

Those two AM_CONDITIONALS are already defined by GP_CHECK_LIBRARY.

If not having the addtional definitions exposes a bug, then that
bug should be fixed, not papered over with the additional definitions.
2022-05-19 22:43:34 +02:00
Hans Ulrich Niedermann
6f5bd93820 Add test-init-localedir test program 2022-05-19 17:11:24 +02:00
Hans Ulrich Niedermann
ab3af6f500 add C coding style for emacs 2022-05-19 17:11:24 +02:00
Hans Ulrich Niedermann
77f3b22e93 Complete what adding gp_init_localedir() started
Complete what adding the gp_init_localedir() function implied:

  * only set success flag in the success case
  * consistent use of "initialize" spelling
  * add analogous gp_port_init_localedir() function
  * implement and document edge cases
  * update NEWS
2022-05-19 17:11:17 +02:00
Jim Easterbrook
00b09b0d45 Check bindtextdomain return value 2022-05-19 17:04:35 +02:00
Jim Easterbrook
1ae2edc79b Change function name to gp_init_localedir 2022-05-19 17:04:35 +02:00
Jim Easterbrook
33d2d2e8f7 Add function to initialise locale directory
The function is called from gp_abilities_list_new() so existing code
will carry on working as before. Non-standard installations of
libgphoto2 can call the initialisation function with their choice of
locale dir. The function includes code to ensure it's only run once.
2022-05-19 17:04:35 +02:00
Hans Ulrich Niedermann
d1650f14bc gh workflow: Use parallel make for builds
Use parallel make for builds. We use the GNU coreutils'
"nproc" utility to determine the number of cores available
for us to use. We then tell make to launch up to that number
of processes (-j$(nproc)) in parallel, but only if the system
load is below $(nproc) (-l$(nproc)).

That should make reasonably good use of however many cores github
makes available to us, while not overloading the build server
or the build server VM.
2022-05-19 16:59:58 +02:00
Hans Ulrich Niedermann
f727fa6e2d Require gettext >= 0.19.1
Require gettext >= 0.19.1 (from 2014-06-10), which both works properly
when building on many cores, and is also the first gettext release
whose po/Makefile.in.in allows disabling rebuilding of the *.po files
on normal (non dist target) builds.

The new po/Makefile.in.in rules fix "make distcheck" consistently
failing to remove ../../../po/libgphoto2-6.pot when running
"make -j$(nproc) distcheck" on a 12 core system:

    rm: cannot remove '../../../po/libgphoto2-6.pot': Permission denied

The "make dist" (and "make distcheck") targets will still update the
po files by default, but that could also be disabled in po/Makevars
if we wanted to separate updating the *.po files for translation from
"make dist" or "make distcheck" at any time in the future.

As gettext-0.19.1 was released almost 8 years ago, this is the newest
build tool release requirement for bulding libgphoto2.

If you ever need to build a 2022 or later libgphoto2 from git on a
system with pre 0.19.1 gettext, you can can always prepare a tarball
running "make dist" on a system with gettext 0.19.1 or later, and
build that tarball on the older machine.
2022-05-19 16:59:51 +02:00
Hans Ulrich Niedermann
34da56e174 Use actual backslashes in generated makefile recipe
Use actual backslashes in generated makefile recipe, as was
originally intended.
2022-05-16 06:03:28 +02:00
Hans Ulrich Niedermann
a380b000dd fix the symver file comment inconsistency fixes 2022-05-16 03:45:43 +02:00
Hans Ulrich Niedermann
d8fb815014 symver file comment inconsistency fixes 2022-05-16 01:24:31 +02:00
Hans Ulrich Niedermann
358da873a2 RELEASE-HOWTO: update library AGE, REVISION, CURRENT 2022-05-15 23:24:06 +02:00
Hans Ulrich Niedermann
0005e46c86 fix doc copy-and-paste error for gp_message_codeset() 2022-05-15 20:55:32 +02:00
Hans Ulrich Niedermann
cac3862c5a Consistent spelling for initialize
Consistently spell initialize the AE way. Excluding the *.po files,
we had 293 occurrences of the word, of which 279 used the AE
spelling, so changing everything to AE for consistency is not
much of a leap.
2022-05-15 18:16:02 +02:00
Hans Ulrich Niedermann
ea1044dcd6 gh workflow: print nproc to find out whether make -jNN makes sense 2022-05-14 00:16:11 +02:00
Marcus Meissner
eac2eb34b3 also set info for sony captured images
https://github.com/gphoto/libgphoto2/issues/794
2022-05-09 13:40:49 +02:00
Yi-Jyun Pan
2c8aaa575a updated zh_TW 2022-05-06 14:21:24 +02:00
Marcus Meissner
3018835bce use all object added events here... seems to work better? 2022-05-03 15:44:48 +02:00
Marcus Meissner
01c93aed7c added nikon d780 info 2022-05-03 15:44:48 +02:00
Marcus Meissner
5ee40c5371 added sony dsc-wx220 2022-04-23 19:48:53 +02:00
Marcus Meissner
1ee0d5c717 check for eos_setremotemode 2022-04-21 13:12:11 +02:00
Marcus Meissner
758450afc4 added ILCE-7RM4A also to wait list 2022-04-20 15:57:00 +02:00
Marcus Meissner
c7dadc7276 moved goto label to a better place 2022-04-10 14:05:14 +02:00
Marcus Meissner
21eff5426c ignore lens is retracting error as a test
https://github.com/gphoto/libgphoto2/issues/780
2022-04-10 13:59:08 +02:00
David Polák
f17dcdcd0a Configure Canon cameras on shutdown (#787)
* fix: 9d517a23-a0b1-40bb-aa55-14c5c1e6bc7f fix-784-01

* fix: 3a4fb09c-223e-4aac-801d-786b23ad0c28 fix-784-01

* fix: 96b650b9-bb4e-42cb-8809-b07a8c11de16 fix-784-01
2022-04-07 14:24:12 +02:00
Marcus Meissner
19c7d65757 added nikon z9 2022-04-04 16:57:42 +02:00
Marcus Meissner
223a4a606f added eos rebel t8i, fixes https://github.com/gphoto/libgphoto2/issues/781 2022-04-03 11:17:04 +02:00
Hans Ulrich Niedermann
4b3052fea0 Add common header with serial to all *.m4 files
The serial number can be useful for aclocal to choose
the newest one when it encounters the same foo.m4 file
in more than one place.
2022-03-31 22:23:46 +02:00
Hans Ulrich Niedermann
be104b3e90 For clang, use -Wmost instead of -Weverything
I have found good arguments from clang developers for not
using -Weverything after all. Instead, -Wmost is the
preferred option to enable the most warnings reasonable.

Apparently, -Weverything can a set of warnings where one
warning contradicts the other and is really only useful
people developing clang itself.
2022-03-30 15:11:14 +02:00
Marcus Meissner
dac8272132 moved a7 4 to correct order 2022-03-26 12:27:01 +01:00
Sachi King
8c9c63d8c5 Add some unknown Sony Alpha A7 IV config values
Values determined by changing values on the camera and then re-reading
the property.  While in the camera HEIF is accompanied by a mention of
chroma sampling, 4:2:2 or 4:2:0, this is not presented in
CompressionSettings, so it must be in one of the Unknown DPC code's.
2022-03-26 12:22:05 +01:00
Sachi King
543a5875b7 Add Sony ILCE-7M4, Alpha 7 IV 2022-03-26 12:22:05 +01:00