Hello community,

here is the log from the commit of package zathura-plugin-djvu for 
openSUSE:Factory checked in at 2020-02-11 22:24:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/zathura-plugin-djvu (Old)
 and      /work/SRC/openSUSE:Factory/.zathura-plugin-djvu.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "zathura-plugin-djvu"

Tue Feb 11 22:24:28 2020 rev:6 rq:773362 version:0.2.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/zathura-plugin-djvu/zathura-plugin-djvu.changes  
2018-08-10 09:51:36.938447794 +0200
+++ 
/work/SRC/openSUSE:Factory/.zathura-plugin-djvu.new.26092/zathura-plugin-djvu.changes
       2020-02-11 22:25:21.907566250 +0100
@@ -1,0 +2,6 @@
+Tue Feb 11 07:12:34 UTC 2020 - Ondřej Súkup <mimi...@gmail.com>
+
+- update to 0.2.9
+* Fix crash on search without results
+
+-------------------------------------------------------------------

Old:
----
  zathura-djvu-0.2.8.tar.xz

New:
----
  zathura-djvu-0.2.9.tar.xz

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

Other differences:
------------------
++++++ zathura-plugin-djvu.spec ++++++
--- /var/tmp/diff_new_pack.09I8Vq/_old  2020-02-11 22:25:22.775566726 +0100
+++ /var/tmp/diff_new_pack.09I8Vq/_new  2020-02-11 22:25:22.779566727 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package zathura-plugin-djvu
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,19 +12,18 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %define realname zathura-djvu
 Name:           zathura-plugin-djvu
-Version:        0.2.8
+Version:        0.2.9
 Release:        0
 Summary:        DjVu support for zathura using the djvulibre library
 License:        Zlib
-Group:          Productivity/Office/Other
-URL:            http://pwmt.org/projects/zathura/plugins/zathura-djvu/
-Source:         
http://pwmt.org/projects/zathura/plugins/download/%{realname}-%{version}.tar.xz
+URL:            https://pwmt.org/projects/zathura-djvu/
+Source:         
https://pwmt.org/projects/zathura-djvu/download/%{realname}-%{version}.tar.xz
 BuildRequires:  meson >= 0.43
 BuildRequires:  pkgconfig
 BuildRequires:  pkgconfig(ddjvuapi)

++++++ zathura-djvu-0.2.8.tar.xz -> zathura-djvu-0.2.9.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zathura-djvu-0.2.8/meson.build 
new/zathura-djvu-0.2.9/meson.build
--- old/zathura-djvu-0.2.8/meson.build  2018-03-17 20:21:20.000000000 +0100
+++ new/zathura-djvu-0.2.9/meson.build  2020-01-06 11:00:18.000000000 +0100
@@ -1,5 +1,5 @@
 project('zathura-djvu', 'c',
-  version: '0.2.8',
+  version: '0.2.9',
   meson_version: '>=0.43',
   default_options: 'c_std=c11'
 )
@@ -22,12 +22,19 @@
 
 build_dependencies = [zathura, girara, glib, cairo, djvu]
 
+if get_option('plugindir') == ''
+  plugindir = zathura.get_pkgconfig_variable('plugindir')
+else
+  plugindir = get_option('plugindir')
+endif
+
 # defines
 defines = [
   '-DVERSION_MAJOR=@0@'.format(version_array[0]),
   '-DVERSION_MINOR=@0@'.format(version_array[1]),
   '-DVERSION_REV=@0@'.format(version_array[2]),
   '-D_DEFAULT_SOURCE',
+  '-D_GNU_SOURCE',
 ]
 
 # compile flags
@@ -51,7 +58,7 @@
   dependencies: build_dependencies,
   c_args: defines + flags,
   install: true,
-  install_dir: zathura.get_pkgconfig_variable('plugindir')
+  install_dir: plugindir
 )
 
 subdir('data')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zathura-djvu-0.2.8/meson_options.txt 
new/zathura-djvu-0.2.9/meson_options.txt
--- old/zathura-djvu-0.2.8/meson_options.txt    1970-01-01 01:00:00.000000000 
+0100
+++ new/zathura-djvu-0.2.9/meson_options.txt    2020-01-06 11:00:18.000000000 
+0100
@@ -0,0 +1,5 @@
+option('plugindir',
+  type: 'string',
+  value: '',
+  description: 'Install to a different location than Zathura\'s plugin 
directory'
+)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zathura-djvu-0.2.8/zathura-djvu/djvu.c 
new/zathura-djvu-0.2.9/zathura-djvu/djvu.c
--- old/zathura-djvu-0.2.8/zathura-djvu/djvu.c  2018-03-17 20:21:20.000000000 
+0100
+++ new/zathura-djvu-0.2.9/zathura-djvu/djvu.c  2020-01-06 11:00:18.000000000 
+0100
@@ -1,4 +1,4 @@
-/* See LICENSE file for license and copyright information */
+/* SPDX-License-Identifier: Zlib */
 
 #include <stdlib.h>
 #include <ctype.h>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zathura-djvu-0.2.8/zathura-djvu/djvu.h 
new/zathura-djvu-0.2.9/zathura-djvu/djvu.h
--- old/zathura-djvu-0.2.8/zathura-djvu/djvu.h  2018-03-17 20:21:20.000000000 
+0100
+++ new/zathura-djvu-0.2.9/zathura-djvu/djvu.h  2020-01-06 11:00:18.000000000 
+0100
@@ -1,4 +1,4 @@
-/* See LICENSE file for license and copyright information */
+/* SPDX-License-Identifier: Zlib */
 
 #ifndef DJVU_H
 #define DJVU_H
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zathura-djvu-0.2.8/zathura-djvu/internal.h 
new/zathura-djvu-0.2.9/zathura-djvu/internal.h
--- old/zathura-djvu-0.2.8/zathura-djvu/internal.h      2018-03-17 
20:21:20.000000000 +0100
+++ new/zathura-djvu-0.2.9/zathura-djvu/internal.h      2020-01-06 
11:00:18.000000000 +0100
@@ -1,4 +1,4 @@
-/* See LICENSE file for license and copyright information */
+/* SPDX-License-Identifier: Zlib */
 
 #ifndef DJVU_INTERNAL_H
 #define DJVU_INTERNAL_H
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zathura-djvu-0.2.8/zathura-djvu/page-text.c 
new/zathura-djvu-0.2.9/zathura-djvu/page-text.c
--- old/zathura-djvu-0.2.8/zathura-djvu/page-text.c     2018-03-17 
20:21:20.000000000 +0100
+++ new/zathura-djvu-0.2.9/zathura-djvu/page-text.c     2020-01-06 
11:00:18.000000000 +0100
@@ -1,4 +1,4 @@
-/* See LICENSE file for license and copyright information */
+/* SPDX-License-Identifier: Zlib */
 
 #include <libdjvu/miniexp.h>
 #include <string.h>
@@ -146,7 +146,7 @@
   int search_length = strlen(text);
   char* tmp  = page_text->content;
 
-  while ((tmp = strstr(tmp, text)) != NULL) {
+  while ((tmp = strcasestr(tmp, text)) != NULL) {
     int start_pointer = tmp - page_text->content;
     int end_pointer   = start_pointer + search_length - 1;
 
@@ -204,6 +204,7 @@
 
   if (page_text->text_positions != NULL) {
     girara_list_free(page_text->text_positions);
+    page_text->text_positions = NULL;
   }
 
   if (page_text->content != NULL) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zathura-djvu-0.2.8/zathura-djvu/page-text.h 
new/zathura-djvu-0.2.9/zathura-djvu/page-text.h
--- old/zathura-djvu-0.2.8/zathura-djvu/page-text.h     2018-03-17 
20:21:20.000000000 +0100
+++ new/zathura-djvu-0.2.9/zathura-djvu/page-text.h     2020-01-06 
11:00:18.000000000 +0100
@@ -1,4 +1,4 @@
-/* See LICENSE file for license and copyright information */
+/* SPDX-License-Identifier: Zlib */
 
 #ifndef DJVU_PAGE_H
 #define DJVU_PAGE_H


Reply via email to