94 Commits

Author SHA1 Message Date
duanhan 4a9402248a 0521 libexif update 0.6.25
Signed-off-by: duanhan <duanhan1@huawei.com>
2025-05-21 14:47:16 +08:00
Marcus Meissner 457dba6525 0.6.24 release 2021-11-25 11:29:16 +01:00
Hans Ulrich Niedermann 1b477fdb85 Fix and avoid more warnings (#76)
* Fix sequence to "static const"

Using "static const" instead of "const static" makes this
declaration use the same sequence as all other "static"
declarations in libexif, and also avoids the occasional
gcc warning about that sequence:

warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration]

* Fix signed/unsigned comparison: use size_t instead of int

sizeof() returns a size_t, and an array index is a size_t as well,
so we can use a size_t as the for loop variable in the first place.

The gcc warning this fixes is

warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]

* Add explicit /* fall through */ comments to avoid warnings

gcc recognizes a /* fall through */ comment (without any
additional words) as a hint that falling through is intended.

Otherwise, gcc generates

    warning: this statement may fall through [-Wimplicit-fallthrough=]`

* Pseudo-use unused parameter to avoid warning about unused param

The gcc warning this fixes is

warning: unused parameter ‘ed’ [-Wunused-parameter]

* Cast to (void *) for %p in format to avoid warning

The gcc warning this fixes is

warning: format ‘%p’ expects argument of type ‘void *’, but argument 2 has type ‘ExifContent *’ {aka ‘struct _ExifContent *’} [-Wformat=]

* consistently use *.h #ifndef and #endif macros

Consistently name and use the macros wrapping include files:

    /* file foo-bar.h */
    #ifndef __FOO_BAR_H__
    #define __FOO_BAR_H__

    ...

    #endif /* __FOO_BAR_H__ */

This fixes wrong comments after the #endif, and macro names
which were diverging too much from the include file name.

* configure: pseudo use variables to make checks succeed even with -Werror

Pseudo-using the result variables makes the configure compilations
work even if CFLAGS happens to contain -Werror.

Otherwise, the unused variable will trigger a warning which will be
treated like an error, which is the wrong result when trying to
find out whether compiling/linking works.
2021-09-21 09:54:56 +02:00
Hans Ulrich Niedermann 14197403ce Add commented out AC_SUBST for AM_CFLAGS and AM_CXXFLAGS
This does not change the current behaviour, but it makes it
a bit more obvious that we are not actually AC_SUBST()ing
AM_CFLAGS or AM_CXXFLAGS.
2021-09-21 02:00:36 +02:00
Hans Ulrich Niedermann 037d3d412f Fix typo: -pedantic-errors has a trailing letter s
Note that AM_CFLAGS and AM_CXXFLAGS are *NOT* AC_SUBST()ed
at this time, so they are not used.

This just fixes the typo, it does change the actual behaviour.
2021-09-21 02:00:24 +02:00
Marcus Meissner 192aa64e25 2.6.23.1 dev 2021-09-13 14:32:29 +02:00
Marcus Meissner d045209463 upgrade the limit a bit... eos m6 mark 2 has 156 mnote entries, add 100 as safety net 2021-09-12 15:15:25 +02:00
Vincent Torri 1243586577 Use Windows localtime_s() if available
If available, use localtime_s() instead of localtime().

As localtime_s() is part of the Windows API, the compile
check with localtime_s() should only work for those systems.

Note we are not using AC_CANONICAL_HOST and then checking the
$host_os here. Either localtime_s() is available, then we
can use it. Or localtime_s() is not available, then we cannot
use it.

All of that is independent of what exactly the $host_os value
actually is, and whether we have listed all appropriate values
in the list of matches.

Closes: https://github.com/libexif/libexif/issues/57
Closes: https://github.com/libexif/libexif/pull/66
2021-05-28 07:24:23 +02:00
Hans Ulrich Niedermann d5ae83e2e5 check for diff and diff -u before using it
Before actually running diff, check that diff is actually
available. And when it is possible, even use "diff -u".

And if diff is not available at all, fall back to cmp.
cmp does not produce nice verbose output, but it has
the same exit values as diff.

Oh, and we try to avoid "if ! condition" in the shell script,
as there allegedly are some corner cases where that is
problematic.
2021-05-28 05:07:52 +02:00
Hans Ulrich Niedermann 9583c1377b Use AM_TESTS_ENVIRONMENT instead of test script substitutions
Just set the required environment variable values in
AM_TESTS_ENVIRONMENT which is less complex than generating
new shell scripts from templates.
2021-05-28 05:07:52 +02:00
Hans Ulrich Niedermann 2532f3cac6 Update gettext requirement to 0.18.3
gettext 0.18.3 is from 2013-06, which is still earlier than the
2013-12 release date of our other requirement automake 1.14.1.

gettext post-0.17 now would e.g. allow us to use --from-code
with AM_XGETTEXT_OPTION to let UTF-8 strings be translated.

https://repology.org/project/gettext/versions suggests
that gettext version later than 0.18.3 are usual on most
systems today and have been for a few operating system
releases.
2021-05-03 21:08:23 +02:00
Hans Ulrich Niedermann 74334b3832 configure.ac: Add URL parameter to AC_INIT invocation
Add the URL of the libexif homepage to the AC_INIT invocation.

The resulting AC_PACKAGE_URL m4 macro and PACKAGE_URL sh var
is not used anywhere yet, but it might be useful for
documentation purposes.

The AC_INIT URL parameter is supported since at least
Autoconf version 2.69 which we AC_PREREQ.
2021-04-30 00:28:17 +02:00
Hans Ulrich Niedermann 342c4dadb2 configure.ac: Reformat the arguments to the AC_INIT invocation
Reformat the arguments to the AC_INIT invocation for improved
readability.

There should be no drawbacks with the toolset currently required.
2021-04-30 00:28:10 +02:00
Hans Ulrich Niedermann 39a124ec63 configure.ac: Use multi-line for macro calls
Multi-line makes diffs and patches easier to read.
2021-04-30 00:19:04 +02:00
Hans Ulrich Niedermann 1712b53559 configure.ac: Use m4sh constructs to help with portability 2021-04-30 00:19:04 +02:00
Hans Ulrich Niedermann 025152ebe1 configure.ac: Consistently use m4 quoting and argument passing 2021-04-30 00:12:52 +02:00
Vincent Torri 26bd45c066 Update autotools requirements and macro use
Update the use of autotools:

 * update autoconf and automake version requirements to 2.69 and 1.14.1,
   respectively

 * use LT_INIT instead of obsolete AM_PROG_LIBTOOL

 * generate xz archive when running make dist(check)

 * remove obsolete autoconf macros: AC_C_CONST and AM_PROG_CC_C_O
2021-04-30 00:06:07 +02:00
Marcus Meissner 9f7219bdcf start development 0.6.22.1 2020-05-18 18:52:08 +02:00
Marcus Meissner 4a6819585f 0.6.22 release
fixes https://github.com/libexif/libexif/issues/12
2020-05-18 17:58:47 +02:00
Hugh McMaster 520ece3575 Rename 'binary' directory to 'binary-dist' (#43)
* Rename 'binary' directory to 'binary-dist'

Debian invokes a 'binary' target in its build process. The presence of
the 'binary' directory breaks the automated build, as 'make' thinks the
target has already been invoked.

* Use substitution variable for 'mkdir -p' instead of hard-coding the command
2020-05-17 08:49:31 +02:00
Dan Fandrich b064346eb3 Add check-failmalloc.sh to test OOM conditions.
This requires Failmalloc, a library that can be used along with glibc to
cause malloc calls to fail in a defined way. Configure will search for
libfailmalloc.so.0 in the usual places by default, or in a
user-specified location. The tests are skipped if it's not available.
Enable Failmalloc on the Travis coverage build.
2018-11-10 16:04:53 +01:00
Dan Fandrich 0ee2def279 Enable AM_SILENT_RULES by default.
Verbose compile commands can be re-enabled with "make V=1" which is done
on the continuous build systems for easier debugging.
2018-11-06 01:07:33 +01:00
Dan Fandrich 3f35f94a93 Replaced obsolete references to CVS and SourceForge.
Also, switched links to https: where available.
2017-12-28 00:06:54 +01:00
Dan Fandrich a4baa75aa0 configure.ac: Made some changes to void warnings with modern automake versions 2016-09-01 15:38:43 -07:00
Dan Fandrich 2905681642 Added Malay translation from launchpad.net 2016-09-01 14:51:25 -07:00
Marcus Meissner 32570faeab added AC_SYS_LARGEFILE just in case we ever get jpegs larger than 2GB 2014-05-26 08:24:17 +02:00
Dan Fandrich 7bc5baa004 Prepare for continued development 2012-07-12 12:25:21 -07:00
Dan Fandrich ed638b2302 Released 0.6.21 2012-07-12 10:48:14 -07:00
Dan Fandrich c37ddee81f Added new translations from launchpad.net's "precise" translations:
po/en_AU.po: Added English (Australian) translation by Joel Pickett
po/uk.po: Added Ukrainian translation by Yuri Chornoivan
2012-06-25 00:28:25 -07:00
Dan Fandrich 75fd66f2af Prepare for continued development 2010-12-15 21:59:15 -08:00
Dan Fandrich fd23fc69c8 Released 0.6.20 2010-12-15 21:55:25 -08:00
Dan Fandrich 2b535a1d12 po/bs.po: Added Bosnian translation from launchpad.net
po/tr.po: Added Turkish translation from launchpad.net
2010-12-13 22:41:42 -08:00
Dan Fandrich 270ebc370c configure.ac: Turned on the --enable-silent-rules configure option 2010-01-25 13:58:50 -08:00
Dan Fandrich a3f15b6adc Prepare for continued development 2009-11-12 22:11:28 -08:00
Dan Fandrich d08c26e269 Released 0.6.19 2009-11-12 22:09:36 -08:00
Dan Fandrich 362f7f51f4 Added a bunch of new translations from launchpad.net
po/be.po: Added Belarusian translation by Iryna Nikanchuk
po/en_GB.po: Added English (United Kingdom) translation by Bruce Cowan
po/it.po: Added Italian translation by Sergio Zanchetta
po/ja.po: Added Japanese translation by Shushi Kurose
po/pt.po: Added Portuguese translation by nglnx
po/sq.po: Added Albanian translation by Vilson Gjeci
po/zh_CN.po: Added Chinese (simplified) translation by Tao Wei
2009-11-05 22:58:12 -08:00
Dan Fandrich a6056341bc Prepare for continued development 2009-10-09 12:59:47 -07:00
Dan Fandrich bb3971c851 Sneaking these new translations into the 0.6.18 release
po/sr.po: Added Serbian translation by Marko Uskokovic
po/pt_BR.po: Added Portuguese (Brazil) translation by André Gondi
2009-10-09 12:50:35 -07:00
Dan Fandrich 5ca4986bbd Prepare for continued development 2009-10-08 17:47:40 -07:00
Dan Fandrich 9f0c2af2bf Released 0.6.18 2009-10-08 17:34:18 -07:00
Dan Fandrich 13991ddb43 Added --enable-maintainer-mode in configure and made the SourceForge
logo appear in the Doxygen documentation only when it's enabled.
2009-10-06 16:53:11 -07:00
Dan Fandrich 02675e902a Bumped the library minor version number because of the addition
of exif_loader_get_buf()
2009-10-01 22:44:01 -07:00
Dan Fandrich 7c36988240 po/da.po: Added Danish translation by Joe Hansen 2009-06-03 12:21:26 -07:00
Dan Fandrich 165300b384 Added AC_C_INLINE to configure.ac to define the inline keyword
if the compiler doesn't handle it already.
2009-02-02 20:43:12 -08:00
Dan Fandrich 40136989a2 Fixed bug #1946138 to stop ignoring CFLAGS in the sqrt configure test 2008-12-23 00:24:46 -08:00
Dan Fandrich 3b75be0095 contrib/examples/*: Added a couple of simple example programs
to show how to use libexif. One was written by Naysawn Naderi
and the other one I wrote. Closes bug #1246824.
2008-11-18 12:42:13 -08:00
Dan Fandrich 6bf94e89b0 libexif/exif-entry.c & configure.ac: use localtime_r when available
to be more thread safe
2008-11-18 02:15:50 -08:00
Dan Fandrich 8d94ed2a35 Prepare for development of the next release 2008-11-06 00:38:46 -08:00
Dan Fandrich 51839879f7 Prepare for 0.6.17 release 2008-11-06 00:33:45 -08:00
Dan Fandrich 438782b3cb Added contrib/watcom/ directory to the source tarball now that
Jan Patera brought it up-to-date.
2008-11-05 22:54:50 -08:00