]> git.pld-linux.org Git - packages/strigi.git/commitdiff
- fix building with gcc 7 auto/th/strigi-0.7.8-10
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 25 Sep 2017 21:18:07 +0000 (23:18 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 25 Sep 2017 21:18:07 +0000 (23:18 +0200)
- fix dbus deps
- rel 10

gcc7.patch [new file with mode: 0644]
strigi.spec

diff --git a/gcc7.patch b/gcc7.patch
new file mode 100644 (file)
index 0000000..95206d6
--- /dev/null
@@ -0,0 +1,33 @@
+--- strigi-0.7.8/libstreamanalyzer/cmake/MacroCheckGccVisibility.cmake~        2013-02-05 22:34:52.000000000 +0100
++++ strigi-0.7.8/libstreamanalyzer/cmake/MacroCheckGccVisibility.cmake 2017-09-25 22:59:45.059188936 +0200
+@@ -15,7 +15,7 @@
+    # get the gcc version
+    exec_program(${CMAKE_C_COMPILER} ARGS ${CMAKE_C_COMPILER_ARG1} --version OUTPUT_VARIABLE _gcc_version_info)
+-   string (REGEX MATCH "[345]\\.[0-9]\\.[0-9]" _gcc_version "${_gcc_version_info}")
++   string (REGEX MATCH "[34567]\\.[0-9]\\.[0-9]" _gcc_version "${_gcc_version_info}")
+    # gcc on mac just reports: "gcc (GCC) 3.3 20030304 ..." without the patch level, handle this here:
+    if (NOT _gcc_version)
+       string (REGEX REPLACE ".*\\(GCC\\).* ([34]\\.[0-9]) .*" "\\1.0" _gcc_version "${_gcc_version_info}")
+--- strigi-0.7.8/libstreams/cmake/MacroCheckGccVisibility.cmake~       2013-02-05 22:34:57.000000000 +0100
++++ strigi-0.7.8/libstreams/cmake/MacroCheckGccVisibility.cmake        2017-09-25 23:01:05.567563192 +0200
+@@ -15,7 +15,7 @@
+    # get the gcc version
+    exec_program(${CMAKE_C_COMPILER} ARGS ${CMAKE_C_COMPILER_ARG1} --version OUTPUT_VARIABLE _gcc_version_info)
+-   string (REGEX MATCH "[345]\\.[0-9]\\.[0-9]" _gcc_version "${_gcc_version_info}")
++   string (REGEX MATCH "[34567]\\.[0-9]\\.[0-9]" _gcc_version "${_gcc_version_info}")
+    # gcc on mac just reports: "gcc (GCC) 3.3 20030304 ..." without the patch level, handle this here:
+    if (NOT _gcc_version)
+       string (REGEX REPLACE ".*\\(GCC\\).* ([34]\\.[0-9]) .*" "\\1.0" _gcc_version "${_gcc_version_info}")
+--- strigi-0.7.8/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp~   2013-02-05 22:34:52.000000000 +0100
++++ strigi-0.7.8/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp    2017-09-25 23:04:39.028999670 +0200
+@@ -321,7 +321,7 @@
+         doc.size = atoi(size.c_str());
+     } else {
+         doc.properties.insert(make_pair<const string, string>(
+-            wchartoutf8(name), value));
++            wchartoutf8(name), wchartoutf8(field->stringValue())));
+     }
+ }
+ Variant
index 726fbfdd62109edc9b9c3892bac9a21a475af8cc..7d3e759f0e98e724dbdf4ff5c7f112a6571e549b 100644 (file)
@@ -8,13 +8,14 @@ Summary:      Strigi desktop search
 Summary(pl.UTF-8):     System wyszukiwania Strigi
 Name:          strigi
 Version:       0.7.8
-Release:       9
+Release:       10
 License:       LGPL v2+
 Group:         X11/Applications
 Source0:       http://www.vandenoever.info/software/strigi/%{name}-%{version}.tar.bz2
 # Source0-md5: d69443234f4286d71997db9de543331a
 Patch0:                %{name}-as-needed.patch
 Patch1:                ffmpeg3.patch
+Patch2:                gcc7.patch
 URL:           http://strigi.sourceforge.net/
 BuildRequires: QtDBus-devel >= %{qtver}
 BuildRequires: QtGui-devel >= %{qtver}
@@ -24,6 +25,7 @@ BuildRequires:        clucene-core-devel >= 0.9.21
 BuildRequires: cmake >= 2.8.9
 BuildRequires: cppunit-devel
 %{?with_dbus:BuildRequires:    dbus-devel >= 1.0}
+%{?with_dbus:BuildRequires:    dbus-x11 >= 1.0}
 BuildRequires: exiv2-devel >= 0.21
 BuildRequires: expat-devel
 BuildRequires: fam-devel
@@ -91,6 +93,7 @@ Pliki nagłówkowe dla strigi.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 install -d build
This page took 0.081869 seconds and 4 git commands to generate.