Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libgexiv2 for openSUSE:Factory 
checked in at 2021-08-25 20:56:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libgexiv2 (Old)
 and      /work/SRC/openSUSE:Factory/.libgexiv2.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libgexiv2"

Wed Aug 25 20:56:10 2021 rev:40 rq:913678 version:0.12.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/libgexiv2/libgexiv2.changes      2021-03-10 
08:47:58.550314293 +0100
+++ /work/SRC/openSUSE:Factory/.libgexiv2.new.1899/libgexiv2.changes    
2021-08-25 20:56:26.605300205 +0200
@@ -1,0 +2,9 @@
+Tue Aug 17 10:46:20 UTC 2021 - Bj??rn Lie <[email protected]>
+
+- Update to version 0.12.3:
+  + Enable Exiv2's BMFF support if available
+  + Catch WError on windows
+  + Deprecate gexiv2_metadata_from_stream
+  + Bugs fixed: glgo#GNOME/gexiv2#66
+
+-------------------------------------------------------------------

Old:
----
  gexiv2-0.12.2.tar.xz

New:
----
  gexiv2-0.12.3.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libgexiv2.spec ++++++
--- /var/tmp/diff_new_pack.XC2AeI/_old  2021-08-25 20:56:27.253299354 +0200
+++ /var/tmp/diff_new_pack.XC2AeI/_new  2021-08-25 20:56:27.257299349 +0200
@@ -21,7 +21,7 @@
 %bcond_without python2
 %bcond_without python3
 Name:           libgexiv2
-Version:        0.12.2
+Version:        0.12.3
 Release:        0
 Summary:        A GObject-based Exiv2 wrapper
 License:        GPL-2.0-or-later

++++++ gexiv2-0.12.2.tar.xz -> gexiv2-0.12.3.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gexiv2-0.12.2/.gitlab-ci.yml 
new/gexiv2-0.12.3/.gitlab-ci.yml
--- old/gexiv2-0.12.2/.gitlab-ci.yml    1970-01-01 01:00:00.000000000 +0100
+++ new/gexiv2-0.12.3/.gitlab-ci.yml    2021-08-15 23:30:55.276961300 +0200
@@ -0,0 +1,222 @@
+.flatpak:
+  tags:
+    - flatpak
+  variables:
+      MANIFEST_PATH: "build-aux/org.gnome.GExiv2.json"
+  image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:40
+  stage: build
+  only:
+    - schedules
+  script:
+    - flatpak-builder build-dir ${MANIFEST_PATH} --stop-at=gexiv2 --user 
--disable-rofiles-fuse
+    - flatpak build build-dir meson _build
+    - flatpak build build-dir ninja -C _build
+    - flatpak build build-dir ninja -C _build test
+  artifacts:
+    when: on_failure
+    name: "gexiv2-_${CI_COMMIT_REF_NAME}"
+    paths:
+      - "${CI_PROJECT_DIR}/_build/meson-logs"
+
+exiv2-master:on-schedule:
+    extends: .flatpak
+    variables:
+        MANIFEST_PATH: "build-aux/org.gnome.GExiv2.json"
+
+exiv2-stable:on-schedule:
+    extends: .flatpak
+    variables:
+        MANIFEST_PATH: "build-aux/org.gnome.GExiv2-stable.json"
+
+exiv2-oldstable:on-schedule:
+    extends: .flatpak
+    variables:
+        MANIFEST_PATH: "build-aux/org.gnome.GExiv2-oldstable.json"
+
+include:
+    - remote: 
"https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/290b79e0e78eab67a83766f4e9691be554fc4afd/templates/ci-fairy.yml";
+    - remote: 
'https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/290b79e0e78eab67a83766f4e9691be554fc4afd/templates/fedora.yml'
+
+variables:
+    MESON_TEST_TIMEOUT_MULTIPLIER: 3
+
+stages:
+    - review
+    - prepare
+    - build
+    - test
+    - analysis
+    - website
+
+.check-template: &check
+  extends:
+    - .fdo.ci-fairy
+  artifacts:
+    expire_in: 1 week
+    paths:
+      - check-junit-report.xml
+    reports:
+      junit: check-junit-report.xml
+
+check-commit-log:
+  variables:
+    GIT_DEPTH: "100"
+  stage: review
+  script:
+    - if [[ x"$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" != "x" ]] ;
+      then
+        ci-fairy check-commits --junit-xml=check-junit-report.xml ;
+      else
+        echo "Not a merge request" ;
+      fi
+  <<: *check
+
+check-merge-request:
+  variables:
+    GIT_STRATEGY: none
+  stage: review
+  script:
+    - if [[ x"$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" != "x" ]] ;
+      then
+        ci-fairy check-merge-request --require-allow-collaboration 
--junit-xml=check-junit-report.xml ;
+      else
+        echo "Not a merge request" ;
+      fi
+  <<: *check
+
+.build-template: &build
+  stage: build
+  script:
+      - meson . build --prefix=/usr -Db_coverage=true --werror
+      - ninja -C build
+  artifacts:
+      expire_in: 1 day
+      paths:
+          - build
+
+.gexiv2.fedora@common:
+  variables:
+    BASE_TAG: '2021-05-24.0'
+    FDO_UPSTREAM_REPO: GNOME/gexiv2
+    FDO_DISTRIBUTION_PACKAGES: 'clang clang-analyzer gcovr git libasan 
libubsan python3-gobject python3-pip xmlto gobject-introspection-devel gtk-doc 
vala ninja-build python3-devel gtk-doc exiv2-devel'
+    FDO_DISTRIBUTION_EXEC: |
+      dnf clean all &&
+      pip3 install meson
+
+.gexiv2.fedora:34@x86_64:
+  extends: .gexiv2.fedora@common
+  variables:
+    FDO_DISTRIBUTION_VERSION: 34
+    FDO_DISTRIBUTION_TAG: "x86_64-${BASE_TAG}"
+
+build-fedora-container@x86_64:
+  extends:
+    - .fdo.container-build@fedora
+    - .gexiv2.fedora:34@x86_64
+  stage: prepare
+  variables:
+    GIT_STRATEGY: none
+
+
+build-fedora@x86_64:
+    extends:
+        - .fdo.distribution-image@fedora
+        - .gexiv2.fedora:34@x86_64
+    needs:
+        - build-fedora-container@x86_64
+    <<: *build
+
+
+.test-template: &test
+  stage: test
+  variables:
+    G_SLICE: "always-malloc"
+    MALLOC_CHECK_: "3"
+  script:
+    - cd build
+    - |
+      # Remove the many "CI_" variables from the environment. Meson dumps the
+      # whole environment for every failed test, and that gives a whole
+      # screenful of junk each time unless we strip these.
+      unset $(env|grep -o '^CI_[^=]*')
+      env LANG=C.UTF-8 LC_ALL=C.UTF-8 meson test --print-errorlogs 
${MESON_TEST_EXTRA_ARGS}
+  after_script:
+    - |
+      echo "Distribution: "
+      echo
+      egrep '^NAME=|^VERSION=' /etc/os-release
+      echo
+      echo "Test suite settings:"
+      echo
+      echo "G_MESSAGES_DEBUG: ${G_MESSAGES_DEBUG}"
+      echo "MESON_TEST_EXTRA_ARGS: ${MESON_TEST_EXTRA_ARGS}"
+      echo
+      echo "These values can be set at 
https://gitlab.gnome.org/GNOME/gexiv2/pipelines/new";
+  artifacts:
+    expire_in: 1 day
+    when: always
+    paths:
+    - build
+    reports:
+      junit: "build/meson-logs/testlog.junit.xml"
+
+test-fedora@x86_64:
+  extends:
+    - .fdo.distribution-image@fedora
+    - .gexiv2.fedora:34@x86_64
+  needs:
+    - build-fedora@x86_64
+  <<: *test
+
+coverage-analysis:
+  extends:
+    - .fdo.distribution-image@fedora
+    - .gexiv2.fedora:34@x86_64
+  stage: analysis
+  allow_failure: true
+  script:
+    - cd build
+    - mkdir -p coveragereport
+    - gcovr --html-details --print-summary --root=.. --exclude=../build 
--exclude=../subprojects --exclude=../docs/reference --exclude=../tests 
--exclude=../tools --exclude=../examples --output coveragereport/index.html
+  coverage: '/^lines: (\d+\.\d+\%)/'
+  artifacts:
+    when: always
+    paths:
+    - build/coveragereport
+  needs:
+    - test-fedora@x86_64
+
+static-scan:
+  extends:
+    - .fdo.distribution-image@fedora
+    - .gexiv2.fedora:34@x86_64
+  stage: analysis
+  needs:
+    - build-fedora-container@x86_64
+  script:
+    - meson --buildtype=debug _scan_build
+    - ninja -C _scan_build scan-build
+  artifacts:
+    paths:
+      - _scan_build/meson-logs
+  allow_failure: true
+
+pages:
+  extends:
+    - .fdo.distribution-image@fedora
+    - .gexiv2.fedora:34@x86_64
+  stage: website
+  script:
+      - meson doc-build -Dgtk_doc=true
+      - ninja -C doc-build gexiv2-doc
+      - mkdir -p public
+      - mv doc-build/docs/reference/html public/docs
+  artifacts:
+    paths:
+      - public
+  needs:
+    - build-fedora-container@x86_64
+  only:
+    - master
+    - /^wip\/.*\/ci.*$/
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gexiv2-0.12.2/NEWS new/gexiv2-0.12.3/NEWS
--- old/gexiv2-0.12.2/NEWS      2021-02-20 12:54:10.103467200 +0100
+++ new/gexiv2-0.12.3/NEWS      2021-08-15 23:30:55.277961300 +0200
@@ -1,3 +1,18 @@
+gexiv2 0.12.3 - 15 Aug 2021
+
+ * Enable Exiv2's BMFF support if available
+ * Catch WError on windows
+ * Deprecate gexiv2_metadata_from_stream
+
+Bugs fixed in this release:
+ - https://gitlab.gnome.org/GNOME/gexiv2/issues/66
+
+All contributors to this release:
+ - postscript-dev <[email protected]>
+ - Jens Georg <[email protected]>
+ - Peter Kov???? <[email protected]>
+
+
 gexiv2 0.12.2 - 20 Feb 2021
  
  * Introduce gexiv2_metadata_get_exif_data
@@ -25,7 +40,7 @@
 
 All contributors to this release:
  - Jens Georg <[email protected]>
- - postscript-dev <[email protected]>
+ - postscript-dev <[email protected]>
  - Jehan <[email protected]>
  - Olav Vitters <[email protected]>
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/gexiv2-0.12.2/build-aux/org.gnome.GExiv2-oldstable.json 
new/gexiv2-0.12.3/build-aux/org.gnome.GExiv2-oldstable.json
--- old/gexiv2-0.12.2/build-aux/org.gnome.GExiv2-oldstable.json 2021-02-20 
12:54:10.103467200 +0100
+++ new/gexiv2-0.12.3/build-aux/org.gnome.GExiv2-oldstable.json 2021-08-15 
23:30:55.277961300 +0200
@@ -1,7 +1,7 @@
 {
     "app-id" : "org.gnome.GExiv2",
     "runtime" : "org.gnome.Platform",
-    "runtime-version" : "3.36",
+    "runtime-version" : "40",
     "sdk" : "org.gnome.Sdk",
     "command" : "gexiv2",
     "tags" : [
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gexiv2-0.12.2/build-aux/org.gnome.GExiv2-stable.json 
new/gexiv2-0.12.3/build-aux/org.gnome.GExiv2-stable.json
--- old/gexiv2-0.12.2/build-aux/org.gnome.GExiv2-stable.json    2021-02-20 
12:54:10.103467200 +0100
+++ new/gexiv2-0.12.3/build-aux/org.gnome.GExiv2-stable.json    2021-08-15 
23:30:55.277961300 +0200
@@ -1,7 +1,7 @@
 {
     "app-id" : "org.gnome.GExiv2",
     "runtime" : "org.gnome.Platform",
-    "runtime-version" : "3.36",
+    "runtime-version" : "40",
     "sdk" : "org.gnome.Sdk",
     "command" : "gexiv2",
     "tags" : [
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gexiv2-0.12.2/build-aux/org.gnome.GExiv2.json 
new/gexiv2-0.12.3/build-aux/org.gnome.GExiv2.json
--- old/gexiv2-0.12.2/build-aux/org.gnome.GExiv2.json   2021-02-20 
12:54:10.104467400 +0100
+++ new/gexiv2-0.12.3/build-aux/org.gnome.GExiv2.json   2021-08-15 
23:30:55.278961200 +0200
@@ -1,7 +1,7 @@
 {
     "app-id" : "org.gnome.GExiv2",
     "runtime" : "org.gnome.Platform",
-    "runtime-version" : "3.36",
+    "runtime-version" : "40",
     "sdk" : "org.gnome.Sdk",
     "command" : "gexiv2",
     "tags" : [
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gexiv2-0.12.2/gexiv2/gexiv2-metadata.cpp 
new/gexiv2-0.12.3/gexiv2/gexiv2-metadata.cpp
--- old/gexiv2-0.12.2/gexiv2/gexiv2-metadata.cpp        2021-02-20 
12:54:10.107467400 +0100
+++ new/gexiv2-0.12.3/gexiv2/gexiv2-metadata.cpp        2021-08-15 
23:30:55.281961200 +0200
@@ -46,7 +46,7 @@
         , _eof{false}
         {}
 #if EXIV2_TEST_VERSION(0,27,99)
-    using size_type = size_t;
+    using size_type = long;
 #else
     using size_type = long;
 #endif
@@ -88,11 +88,7 @@
     size_type write(BasicIo& /*src*/) override { return 0; }
     int putb(Exiv2::byte /*data*/) override { return EOF; }
 
-#if EXIV2_TEST_VERSION(0,27,99)
-    Exiv2::DataBuf read(size_t rcount) noexcept override {
-#else
-    Exiv2::DataBuf read(long rcount) override {
-#endif
+    Exiv2::DataBuf read(size_type rcount) override {
         Exiv2::DataBuf b{rcount};
 
         auto bytes_read = this->read(b.pData_, rcount);
@@ -459,7 +455,12 @@
     } catch (Exiv2::Error &e) {
         g_set_error_literal (error, g_quark_from_string ("GExiv2"), e.code (), 
e.what ());
     }
-    
+#ifdef EXV_UNICODE_PATH
+    catch (Exiv2::WError &e) {
+        g_set_error_literal (error, g_quark_from_string ("GExiv2"), e.code (), 
e.what ());
+    }
+#endif
+
     return FALSE;
 }
 
@@ -640,6 +641,11 @@
     } catch (Exiv2::Error &e) {
         g_set_error_literal (error, g_quark_from_string ("GExiv2"), e.code (), 
e.what ());
     }
+#ifdef EXV_UNICODE_PATH
+    catch (Exiv2::WError &e) {
+        g_set_error_literal (error, g_quark_from_string ("GExiv2"), e.code (), 
e.what ());
+    }
+#endif
 
     return FALSE;
 }
@@ -661,6 +667,11 @@
     } catch (Exiv2::Error &e) {
         g_set_error_literal (error, g_quark_from_string ("GExiv2"), e.code (), 
e.what ());
     }
+#ifdef EXV_UNICODE_PATH
+    catch (Exiv2::WError &e) {
+        g_set_error_literal (error, g_quark_from_string ("GExiv2"), e.code (), 
e.what ());
+    }
+#endif
     
     return FALSE;
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gexiv2-0.12.2/gexiv2/gexiv2-metadata.h 
new/gexiv2-0.12.3/gexiv2/gexiv2-metadata.h
--- old/gexiv2-0.12.2/gexiv2/gexiv2-metadata.h  2021-02-20 12:54:10.107467400 
+0100
+++ new/gexiv2-0.12.3/gexiv2/gexiv2-metadata.h  2021-08-15 23:30:55.281961200 
+0200
@@ -328,14 +328,11 @@
 
 /**
  * gexiv2_metadata_from_stream:
- * @self: An instance of #GExiv2Metadata
- * @stream: A #GInputStream to get meta-data from
- * @error: (allow-none): A return location for a #GError or %NULL
  *
- * Read meta-data from a GIO stream
+ * This function does not work and will be removed in a future release.
  *
- * Returns: Boolean success indicator
  */
+G_DEPRECATED
 gboolean               gexiv2_metadata_from_stream                     
(GExiv2Metadata *self, GInputStream* stream, GError **error);
 
 /**
@@ -672,7 +669,7 @@
  * @self: An instance of #GExiv2Metadata
  * @tag: Exiv2 tag name
  * @type: The GExiv2StructureType specifying the type of structure
- * @error: (allow-none): A return location for a #GError or %nullptr
+ * @error: (allow-none): A return location for a #GError or %NULL
  *
  * The Exiv2 Tag Reference can be found at <ulink 
url="http://exiv2.org/metadata.html";></ulink>
  *
@@ -701,7 +698,7 @@
  * gexiv2_metadata_try_get_tag_interpreted_string:
  * @self: An instance of #GExiv2Metadata
  * @tag: Exiv2 tag name
- * @error: (allow-none): A return location for a #GError or %nullptr
+ * @error: (allow-none): A return location for a #GError or %NULL
  *
  * An interpreted string is one fit for user display.  It may display units or 
use formatting
  * appropriate to the type of data the tag holds.
@@ -735,7 +732,7 @@
  * gexiv2_metadata_try_get_tag_long:
  * @self: An instance of #GExiv2Metadata
  * @tag: Exiv2 tag name
- * @error: (allow-none): A return location for a #GError or %nullptr
+ * @error: (allow-none): A return location for a #GError or %NULL
  *
  * The Exiv2 Tag Reference can be found at <ulink 
url="http://exiv2.org/metadata.html";></ulink>
  *
@@ -764,7 +761,7 @@
  * @self: An instance of #GExiv2Metadata
  * @tag: Exiv2 tag name
  * @value: The value to set or replace the existing value
- * @error: (allow-none): A return location for a #GError or %nullptr
+ * @error: (allow-none): A return location for a #GError or %NULL
  *
  * The Exiv2 Tag Reference can be found at <ulink 
url="http://exiv2.org/metadata.html";></ulink>
  *
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gexiv2-0.12.2/gexiv2/gexiv2-startup.cpp 
new/gexiv2-0.12.3/gexiv2/gexiv2-startup.cpp
--- old/gexiv2-0.12.2/gexiv2/gexiv2-startup.cpp 2021-02-20 12:54:10.108467300 
+0100
+++ new/gexiv2-0.12.3/gexiv2/gexiv2-startup.cpp 2021-08-15 23:30:55.283961300 
+0200
@@ -12,6 +12,10 @@
 #include "gexiv2-version.h"
 
 gboolean gexiv2_initialize(void) {
+#ifdef EXV_ENABLE_BMFF
+    Exiv2::enableBMFF();
+#endif
+
     return Exiv2::XmpParser::initialize();
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gexiv2-0.12.2/gexiv2/gexiv2-stream-io.cpp 
new/gexiv2-0.12.3/gexiv2/gexiv2-stream-io.cpp
--- old/gexiv2-0.12.2/gexiv2/gexiv2-stream-io.cpp       2021-02-20 
12:54:10.108467300 +0100
+++ new/gexiv2-0.12.3/gexiv2/gexiv2-stream-io.cpp       2021-08-15 
23:30:55.283961300 +0200
@@ -163,19 +163,7 @@
     return 0;
 }
 
-#if EXIV2_TEST_VERSION(0,27,99)
-
-Exiv2::DataBuf StreamIo::read (size_t read_count) noexcept {
-    Exiv2::DataBuf buffer (read_count);
-
-    long read_bytes = read (buffer.pData_, buffer.size_);
-
-    buffer.size_ = read_bytes;
-
-    return buffer;
-}
-#else
-Exiv2::DataBuf StreamIo::read (long read_count) {
+Exiv2::DataBuf StreamIo::read (size_type read_count) {
     Exiv2::DataBuf buffer (read_count);
     
     long read_bytes = read (buffer.pData_, buffer.size_);
@@ -184,7 +172,6 @@
     
     return buffer;
 }
-#endif
 
 StreamIo::size_type StreamIo::read (Exiv2::byte* buf, StreamIo::size_type 
read_count) {
     StreamIo::size_type total_read_bytes = 0;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gexiv2-0.12.2/gexiv2/gexiv2-stream-io.h 
new/gexiv2-0.12.3/gexiv2/gexiv2-stream-io.h
--- old/gexiv2-0.12.2/gexiv2/gexiv2-stream-io.h 2021-02-20 12:54:10.108467300 
+0100
+++ new/gexiv2-0.12.3/gexiv2/gexiv2-stream-io.h 2021-08-15 23:30:55.283961300 
+0200
@@ -24,7 +24,7 @@
 public:
 #if EXIV2_TEST_VERSION(0,27,99)
     using ptr_type = Exiv2::BasicIo::UniquePtr;
-    using size_type = size_t;
+    using size_type = long;
 #else
     using ptr_type = Exiv2::BasicIo::AutoPtr;
     using size_type = long;
@@ -38,12 +38,8 @@
        size_type write (const Exiv2::byte* data, size_type wcount) override;
        size_type write (Exiv2::BasicIo& src) override;
        int putb (Exiv2::byte data) override;
-#if EXIV2_TEST_VERSION(0,27,99)
-       Exiv2::DataBuf read (size_t rcount) noexcept override;
-#else
-       Exiv2::DataBuf read (long rcount) override;
-#endif
-       size_type read (Exiv2::byte* buf, size_type rcount) override;
+    Exiv2::DataBuf read (size_type rcount) override;
+    size_type read (Exiv2::byte* buf, size_type rcount) override;
        int getb () override;
        void transfer (Exiv2::BasicIo& src) override;
        int seek (long offset, Position pos) override;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gexiv2-0.12.2/meson.build 
new/gexiv2-0.12.3/meson.build
--- old/gexiv2-0.12.2/meson.build       2021-02-20 12:54:10.108467300 +0100
+++ new/gexiv2-0.12.3/meson.build       2021-08-15 23:30:55.283961300 +0200
@@ -1,7 +1,7 @@
 project(
     'gexiv2',
     ['c', 'cpp'],
-    version : '0.12.2',
+    version : '0.12.3',
     meson_version : '>=0.48',
     default_options : [
         'cpp_std=c++11'
@@ -17,6 +17,14 @@
 cc = meson.get_compiler('c')
 math = cc.find_library('m', required : false)
 
+bmff_test = '''#include <exiv2/exiv2.h>
+#ifndef EXV_ENABLE_BMFF
+#error No BMFF support in exiv2
+#endif
+'''
+
+bmff_available = cc.compiles(bmff_test, name : 'BMFF support in exiv2', 
dependencies : [exiv2])
+
 gir = find_program('g-ir-scanner', required: false)
 
 introspection_available = gir.found() and get_option('introspection')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gexiv2-0.12.2/test/data/partial_xml.txt 
new/gexiv2-0.12.3/test/data/partial_xml.txt
--- old/gexiv2-0.12.2/test/data/partial_xml.txt 1970-01-01 01:00:00.000000000 
+0100
+++ new/gexiv2-0.12.3/test/data/partial_xml.txt 2021-08-15 23:30:55.287961500 
+0200
@@ -0,0 +1,2 @@
+<rdf:RDF xmlns:rdf='
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gexiv2-0.12.2/test/gexiv2-regression.c 
new/gexiv2-0.12.3/test/gexiv2-regression.c
--- old/gexiv2-0.12.2/test/gexiv2-regression.c  2021-02-20 12:54:10.111467400 
+0100
+++ new/gexiv2-0.12.3/test/gexiv2-regression.c  2021-08-15 23:30:55.287961500 
+0200
@@ -327,6 +327,22 @@
     g_clear_object(&meta);
 }
 
+// Regression test for https://gitlab.gnome.org/GNOME/gexiv2/issues/66
+static void test_ggo_66(void) {
+    GExiv2Metadata* meta = NULL;
+    gboolean result = FALSE;
+    GError* error = NULL;
+
+    meta = gexiv2_metadata_new();
+    g_assert_nonnull(meta);
+
+    result = gexiv2_metadata_open_path(meta, SAMPLE_PATH "/partial_xml.txt", 
&error);
+    g_assert_nonnull(error);
+    g_assert_false(result);
+
+    g_clear_object(&meta);
+}
+
 int main(int argc, char *argv[static argc + 1])
 {
     g_test_init(&argc, &argv, NULL);
@@ -341,6 +357,7 @@
     g_test_add_func("/bugs/gnome/gitlab/xx", test_ggo_xx);
     g_test_add_func("/bugs/gnome/gitlab/45", test_ggo_45);
     g_test_add_func("/bugs/gnome/gitlab/58", test_ggo_58);
+    g_test_add_func("/bugs/gnome/gitlab/60", test_ggo_66);
 
     return g_test_run();
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gexiv2-0.12.2/test/python/test_metadata.py 
new/gexiv2-0.12.3/test/python/test_metadata.py
--- old/gexiv2-0.12.2/test/python/test_metadata.py      2021-02-20 
12:54:10.111467400 +0100
+++ new/gexiv2-0.12.3/test/python/test_metadata.py      2021-08-15 
23:30:55.288961400 +0200
@@ -87,9 +87,12 @@
                        'free',
                        'freeze_notify',
                        'from_app1_segment',
+                       'from_stream',
                        'g_type_instance',
+                       'generate_xmp_packet',
                        'get_comment',
                        'get_data',
+                       'get_exif_data',
                        'get_exif_tag_rational',
                        'get_exif_tags',
                        'get_exif_thumbnail',
@@ -102,6 +105,8 @@
                        'get_gps_longitude',
                        'get_iptc_tags',
                        'get_iso_speed',
+                       'get_metadata_pixel_height',
+                       'get_metadata_pixel_width',
                        'get_mime_type',
                        'get_orientation',
                        'get_pixel_height',
@@ -119,8 +124,10 @@
                        'get_tag_label',
                        'get_tag_long',
                        'get_tag_multiple',
+                       'get_tag_raw',
                        'get_tag_string',
                        'get_tag_type',
+                       'get_xmp_namespace_for_tag',
                        'get_xmp_packet',
                        'get_xmp_tags',
                        'handler_block',
@@ -156,6 +163,7 @@
                        'replace_data',
                        'replace_qdata',
                        'run_dispose',
+                       'save_external',
                        'save_file',
                        'set_comment',
                        'set_data',
@@ -163,20 +171,47 @@
                        'set_exif_thumbnail_from_buffer',
                        'set_exif_thumbnail_from_file',
                        'set_gps_info',
+                       'set_metadata_pixel_height',
+                       'set_metadata_pixel_width',
                        'set_orientation',
                        'set_properties',
                        'set_property',
                        'set_tag_long',
                        'set_tag_multiple',
                        'set_tag_string',
+                       'set_xmp_tag_struct',
                        'steal_data',
                        'steal_qdata',
                        'stop_emission',
                        'stop_emission_by_name',
                        'thaw_notify',
+                       'try_delete_gps_info',
+                       'try_generate_xmp_packet',
+                       'try_get_exif_tag_rational',
+                       'try_get_gps_altitude',
+                       'try_get_gps_info',
+                       'try_get_gps_latitude',
+                       'try_get_gps_longitude',
+                       'try_get_tag_description',
+                       'try_get_tag_interpreted_string',
+                       'try_get_tag_label',
+                       'try_get_tag_long',
+                       'try_get_tag_multiple',
+                       'try_get_tag_raw',
+                       'try_get_tag_string',
+                       'try_get_tag_type',
+                       'try_get_xmp_packet',
+                       'try_set_exif_tag_rational',
+                       'try_set_gps_info',
+                       'try_set_tag_long',
+                       'try_set_tag_multiple',
+                       'try_set_tag_string',
+                       'try_set_xmp_tag_struct',
+                       'try_update_gps_info',
                        'unref',
                        'unregister_all_xmp_namespaces',
                        'unregister_xmp_namespace',
+                       'update_gps_info',
                        'watch_closure',
                        'weak_ref']:
             self.assertIn(method, methods)

Reply via email to