diff options
author | Ingmar Vanhassel <ingmar@gentoo.org> | 2008-03-19 04:24:48 +0000 |
---|---|---|
committer | Ingmar Vanhassel <ingmar@gentoo.org> | 2008-03-19 04:24:48 +0000 |
commit | 1bf0b27f426435b2bac5e998de25e4d11d2fa51c (patch) | |
tree | 9d62c9d643c6c7f901303170bf19271d9227e27a /app-misc | |
parent | Anti-aliasing rules are broken in qt-4.3*, causing random runtime failures in... (diff) | |
download | historical-1bf0b27f426435b2bac5e998de25e4d11d2fa51c.tar.gz historical-1bf0b27f426435b2bac5e998de25e4d11d2fa51c.tar.bz2 historical-1bf0b27f426435b2bac5e998de25e4d11d2fa51c.zip |
Fix compilation with GCC 4.3, thanks to impulze in bug 213887. Drop obsolete patch from 0.5.7.
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/strigi/ChangeLog | 8 | ||||
-rw-r--r-- | app-misc/strigi/Manifest | 12 | ||||
-rw-r--r-- | app-misc/strigi/files/strigi-0.5.7-automagic-deps.patch | 261 | ||||
-rw-r--r-- | app-misc/strigi/files/strigi-0.5.8-gcc-4.3.patch | 13 | ||||
-rw-r--r-- | app-misc/strigi/strigi-0.5.8.ebuild | 8 |
5 files changed, 33 insertions, 269 deletions
diff --git a/app-misc/strigi/ChangeLog b/app-misc/strigi/ChangeLog index 71705b646f9b..c8a0dbf4a99c 100644 --- a/app-misc/strigi/ChangeLog +++ b/app-misc/strigi/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-misc/strigi # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/strigi/ChangeLog,v 1.3 2008/03/18 20:38:39 ingmar Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/strigi/ChangeLog,v 1.4 2008/03/19 04:24:48 ingmar Exp $ + + 19 Mar 2008; Ingmar Vanhassel <ingmar@gentoo.org> + -files/strigi-0.5.7-automagic-deps.patch, + +files/strigi-0.5.8-gcc-4.3.patch, strigi-0.5.8.ebuild: + Fix compilation with GCC 4.3, thanks to impulze in bug 213887. Drop obsolete + patch from 0.5.7. 18 Mar 2008; Ingmar Vanhassel <ingmar@gentoo.org> -strigi-0.5.7.ebuild: Old. diff --git a/app-misc/strigi/Manifest b/app-misc/strigi/Manifest index 430aa7901e74..1450e1eadf64 100644 --- a/app-misc/strigi/Manifest +++ b/app-misc/strigi/Manifest @@ -1,15 +1,15 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -AUX strigi-0.5.7-automagic-deps.patch 9387 RMD160 094556498166e077d545b4464e81ad748201395c SHA1 7234c6fcb8493a0993c0080e398884ceeb66c3c5 SHA256 4ade3906963b7f2027b52ce54be39a0aad8e9f6b86a6219cb72e58cf0714ac8f +AUX strigi-0.5.8-gcc-4.3.patch 517 RMD160 f4bdf97eb31b44142ae3caaabb3fc9af3415a8c4 SHA1 b714e123de1a79de9179c6862999ab22c0c427be SHA256 d0376fb18afe292f1db3beb2cf926fe58db07be38e36fa196e6523c3cbb8ad74 DIST strigi-0.5.8.tar.bz2 830822 RMD160 b07c9138b9562d1aa7532e56d13ba3db5d4eeb32 SHA1 7505527bd6724e054602b8ab6d1417f2d9bc1a6e SHA256 7b512461008152883289d3c5e9df4addc86944026ba3ba09f66a87698d3dd928 -EBUILD strigi-0.5.8.ebuild 3121 RMD160 24feaecbadbe2e73d32915b7b8204b1167c3808f SHA1 5d07ebc41901ddc6299f83241550a5b9a944092c SHA256 3275075df7eb1cc0614d684ffbcabbf8248504ef6d83084c97601187f175fa5c -MISC ChangeLog 5724 RMD160 c518de887c0783aa031c0fdfa979d0ce0072a7e8 SHA1 831cc547b8dcde30d8b1de7bb315c26d27889247 SHA256 f91f9543a044f422a52e06fab4356c39c5b628e557499f7b3732c506cd19e2b7 +EBUILD strigi-0.5.8.ebuild 3206 RMD160 fe4d74064c579ae24bfe8dbfae4637f3e727beef SHA1 01edccd60fe92112d473045f996dde8fba70a648 SHA256 705f4d7f6bac295551fda1345f7756aa75d0ce647ed9bd3dcafabcf05ca60ece +MISC ChangeLog 5978 RMD160 8a401d306ffcb6eb11745517ba5e952588a25bc5 SHA1 160ab8d856b30188c65031647c4bd2c2815ca8e1 SHA256 94dd087c5121aabef87e4ce8bd1f615d7fced9d9cf4402481ce7b0ab58d23555 MISC metadata.xml 156 RMD160 ecce3b981f150c45ae1e84e2d208e678d6124259 SHA1 b64f7c0b4e5db816d82ad19848f72118af129d35 SHA256 2f4da28506b9d4185f320f67a6191d30c7a921217ed4447ed46ea0bc4aefc79a -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) -iD8DBQFH4CgZB18eXLOpYdkRAhn7AJ96Nfhf8/f7ZvMGpDHe2IMVwfEXwACfdNUQ -z7A8WBYfuxJESZoYkQzUZp0= -=ThBQ +iD8DBQFH4JV6B18eXLOpYdkRAgF/AKCZCL2APEIi0nZWnSvzQE4PyoZ2HQCeI2aU +GVqRt8fjtPeUhdUw6BxuNhs= +=BW5K -----END PGP SIGNATURE----- diff --git a/app-misc/strigi/files/strigi-0.5.7-automagic-deps.patch b/app-misc/strigi/files/strigi-0.5.7-automagic-deps.patch deleted file mode 100644 index cac9d3054935..000000000000 --- a/app-misc/strigi/files/strigi-0.5.7-automagic-deps.patch +++ /dev/null @@ -1,261 +0,0 @@ -Patch by Evgeny Egorochkin <phreedom.stdin@gmail.com> - -Index: cmake/MacroFindOptionalDep.cmake -=================================================================== ---- a/cmake/MacroFindOptionalDep.cmake (revision 0) -+++ b/cmake/MacroFindOptionalDep.cmake (revision 0) -@@ -0,0 +1,35 @@ -+# if ON, requested optional deps become required -+# if OFF, requested optional deps are linked to if found -+ -+# macro name changed from FIND_OPTIONAL_PACKAGE to FIND_OPTIONAL_DEP due to clash with a macro from KDE4 -+ -+OPTION(FORCE_DEPS "Enforce strict dependencies" OFF) -+ -+macro(FIND_OPTIONAL_DEP _package _enabled _found _description) -+ -+ if(${_enabled}) -+ if(FORCE_DEPS) -+ find_package(${_package} REQUIRED) -+ else(FORCE_DEPS) -+ find_package(${_package}) -+ endif(FORCE_DEPS) -+ endif(${_enabled}) -+ -+ REPORT_OPTIONAL_PACKAGE_STATUS(${_package} ${_enabled} ${_found} ${_description}) -+ -+endmacro(FIND_OPTIONAL_DEP) -+ -+ -+macro(REPORT_OPTIONAL_PACKAGE_STATUS _package _enabled _found _description) -+ -+ if(${_enabled}) -+ if(${_found}) -+ MESSAGE("** ${_package} is found. Support for ${_description} is enabled") -+ else(${_found}) -+ MESSAGE("** ${_package} not found. Support for ${_description} is disabled") -+ endif(${_found}) -+ else(${_enabled}) -+ MESSAGE("** ${_package} is disabled. No support for ${_description}") -+ endif(${_enabled}) -+ -+endmacro(REPORT_OPTIONAL_PACKAGE_STATUS) -\ No newline at end of file -Index: src/xsd/CMakeLists.txt -=================================================================== ---- a/src/xsd/CMakeLists.txt (revision 730316) -+++ b/src/xsd/CMakeLists.txt (working copy) -@@ -20,7 +20,8 @@ - endif (LIBXML2_FOUND) - - # java is required to compile the xsd parser --find_package(Java REQUIRED) -+OPTION(ENABLE_REGENERATEXSD "regenerate xsd parser from *.xsd files(not normally required)" ON) -+FIND_OPTIONAL_DEP(Java ENABLE_REGENERATEXSD JAVA_COMPILE "generating xsd parser from *.xsd files") - - # loop over all xsd files, the next line does not work everywhere, - # so we dont use it currently -@@ -57,4 +58,3 @@ - target_link_libraries(${XSDNAME}test ${XSDNAME} xmlstream) - - endforeach (XSDFILE ${XSDFILES}) -- -Index: src/streamanalyzer/endplugins/CMakeLists.txt -=================================================================== ---- a/src/streamanalyzer/endplugins/CMakeLists.txt (revision 730316) -+++ b/src/streamanalyzer/endplugins/CMakeLists.txt (working copy) -@@ -22,9 +22,9 @@ - install(TARGETS ${libname} LIBRARY DESTINATION ${LIB_DESTINATION}/strigi) - ENDMACRO(ADD_STRIGIEA) - --if(EXIV2_FOUND) -+if(Exiv2_FOUND) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions") - include_directories(${EXIV2_INCLUDE_DIR}) - ADD_STRIGIEA(jpeg jpegendanalyzer.cpp) - target_link_libraries(jpeg ${EXIV2_LIBRARIES}) --endif(EXIV2_FOUND) -+endif(Exiv2_FOUND) -Index: src/CMakeLists.txt -=================================================================== ---- a/src/CMakeLists.txt (revision 730316) -+++ b/src/CMakeLists.txt (working copy) -@@ -32,7 +32,7 @@ - - if (NOT CLucene_FOUND) - message("** No CLucene libraries were found, so Strigi cannot use indexes.") -- message("** It is recommended to install CLucene >= 0.9.16.") -+ message("** It is recommended to install CLucene >= 0.9.16a.") - message("** You will still be able to use deepfind, deepgrep and xmlindexer.") - endif (NOT CLucene_FOUND) - -Index: CMakeLists.txt -=================================================================== ---- a/CMakeLists.txt (revision 730316) -+++ b/CMakeLists.txt (working copy) -@@ -16,6 +16,7 @@ - # include general modules - include(UsePkgConfig) - include(MacroCheckGccVisibility) -+include(MacroFindOptionalDep) - - # compile in debug mode - IF(NOT CMAKE_BUILD_TYPE) -@@ -67,52 +68,48 @@ - REMOVE_DEFINITIONS(-fPIC) - ENDIF(CMAKE_SYSTEM MATCHES "SunOS-5*.") - --OPTION(ENABLE_INOTIFY -- "enable inotify support (unstable)" -- OFF) -+OPTION(ENABLE_INOTIFY "enable inotify support (unstable)" OFF) -+OPTION(ENABLE_DBUS "enable dbus support" ON) -+OPTION(ENABLE_NEWXESAM "enable new xesam support" OFF) -+OPTION(ENABLE_LOG4CXX "enable log4cxx support for advanced logging" OFF) -+OPTION(ENABLE_CPPUNIT "enable CppUnit for unit tests" ON) -+OPTION(ENABLE_QT4 "enable Qt4 GUI" ON) -+OPTION(ENABLE_EXIV2 -+ "enable exiv2 support. This allows you to index EXIF/IPTC metadata." ON) - --OPTION(ENABLE_DBUS -- "enable dbus support" -- ON) -+# backends -+OPTION(ENABLE_CLUCENE "enable CLucene support (recommended)" ON) -+OPTION(ENABLE_HYPERESTRAIER "enable Hyper Estraier support(unreliable)" OFF) -+OPTION(ENABLE_SQLITE "enable SQLite support(unreliable)" OFF) - --OPTION(ENABLE_NEWXESAM -- "enable new xesam support" -- OFF) -+#OPTION(ENABLE_LIBXML2 "enable libxml2 support" ON) -+OPTION(ENABLE_EXPAT "enable expat support" OFF) - --OPTION(ENABLE_SQLITE "enable sqlite support" OFF) - --OPTION(ENABLE_LOG4CXX -- "enable log4cxx support for advanced logging" -- OFF) -- - find_package(ZLIB REQUIRED) - find_package(BZip2 REQUIRED) - find_package(Threads REQUIRED) - find_package(Iconv REQUIRED) - - # use either expat or libxml2 --find_package(Expat) -+FIND_OPTIONAL_DEP(Expat ENABLE_EXPAT Expat_FOUND "XML via Expat") -+# libxml seems to be required regardless of what because it's used by streamanalyzer -+#FIND_OPTIONAL_DEP(LibXml2 ENABLE_LIBXML2 LIBXML2_FOUND "XML via LibXml2") - find_package(LibXml2 REQUIRED) -+ - if (NOT LIBXML2_FOUND AND NOT Expat_FOUND) -- MESSAGE(FATAL "You need libxml2 or libexpat") -+ MESSAGE(FATAL_ERROR "You need libxml2 or libexpat") - endif (NOT LIBXML2_FOUND AND NOT Expat_FOUND) - --find_package(CLucene) --if(NOT CLucene_FOUND) -- MESSAGE("Could not find CLucene. Please install CLucene = 0.9.16a (http://clucene.sf.net)") --endif(NOT CLucene_FOUND) -+FIND_OPTIONAL_DEP(CLucene ENABLE_CLUCENE CLucene_FOUND "CLucene backend") -+FIND_OPTIONAL_DEP(HyperEstraier ENABLE_HYPERESTRAIER HyperEstraier_FOUND "HyperEstraier backend") -+FIND_OPTIONAL_DEP(SQLite ENABLE_SQLITE SQLite_FOUND "SQLite backend") - --find_package(HyperEstraier) --find_package(Exiv2) --if(ENABLE_SQLITE) -- find_package(SQLite) --endif(ENABLE_SQLITE) -+FIND_OPTIONAL_DEP(Exiv2 ENABLE_EXIV2 EXIV2_FOUND "indexing of EXIF/IPTC metadata") -+ - #find_package(XAttr) - set(QT_MIN_VERSION "4.2.0") --find_package(Qt4) --if (NOT QT4_FOUND) -- MESSAGE("** Qt4 was not found. No GUI will be built.") --endif (NOT QT4_FOUND) -+FIND_OPTIONAL_DEP(Qt4 ENABLE_QT4 QT4_FOUND "QT4 GUI client") - - check_include_files(strings.h HAVE_STRINGS_H) # various - -@@ -129,35 +126,40 @@ - ELSE(WIN32) - include(UsePkgConfig) - PKGCONFIG(dbus-1 DBUS_INCLUDE_DIR DBUS_LIBRARY_DIR DBUS_LDFLAGS DBUS_CFLAGS) -- if (NOT DBUS_INCLUDE_DIR) -- MESSAGE(FATAL_ERROR "Could not find DBus") -- endif (NOT DBUS_INCLUDE_DIR) - -- EXEC_PROGRAM(${PKGCONFIG_EXECUTABLE} ARGS --atleast-version=1.0 dbus-1 RETURN_VALUE _return_VALUE OUTPUT_VARIABLE _pkgconfigDevNull ) -- if(_return_VALUE STREQUAL "0") -- message(STATUS "Found dbus-1 release >= 1.0") -- else(_return_VALUE STREQUAL "0") -- message(STATUS "Found dbus-1 release < 1.0 support for dbus client will be disable") -- set(ENABLE_DBUS "OFF") -- endif(_return_VALUE STREQUAL "0") -+ if (DBUS_INCLUDE_DIR) -+ EXEC_PROGRAM(${PKGCONFIG_EXECUTABLE} ARGS --atleast-version=1.0 dbus-1 RETURN_VALUE _return_VALUE OUTPUT_VARIABLE _pkgconfigDevNull ) -+ if(_return_VALUE STREQUAL "0") -+ message(STATUS "Found dbus-1 release >= 1.0") -+ set(DBUS_FOUND "ON") -+ else(_return_VALUE STREQUAL "0") -+ message(STATUS "Found dbus-1 release < 1.0. Release >=1.0 is needed") -+ endif(_return_VALUE STREQUAL "0") -+ endif (DBUS_INCLUDE_DIR) - -+ REPORT_OPTIONAL_PACKAGE_STATUS(DBus-1 ENABLE_DBUS DBUS_FOUND "DBus interface in Strigi daemon") -+ if(NOT DBUS_FOUND) -+ set(ENABLE_DBUS "OFF") -+ if(FORCE_DEPS) -+ MESSAGE(FATAL_ERROR "Aborting") -+ endif(FORCE_DEPS) -+ endif(NOT DBUS_FOUND) -+ - ENDIF(WIN32) - ENDIF(ENABLE_DBUS) - --find_program (BISON -- bison -- DOC "Path to bison command, used for xesam userlanguage parser generation" --) -+# Don't delete bison section, but only micron seems to need this -+#find_program (BISON -+# bison -+# DOC "Path to bison command, used for xesam userlanguage parser generation") - --if (BISON) -- MESSAGE (STATUS "Found bison: ${BISON}") --else (BISON) -- MESSAGE ("** GNU bison not found. This affects the xesam parser.") --endif (BISON) -+#if (BISON) -+# MESSAGE (STATUS "Found bison: ${BISON}") -+#else (BISON) -+# MESSAGE ("** GNU bison not found. This affects the xesam parser.") -+#endif (BISON) - --if (ENABLE_LOG4CXX) -- find_package (Log4cxx) --endif (ENABLE_LOG4CXX) -+FIND_OPTIONAL_DEP(Log4cxx ENABLE_LOG4CXX LOG4CXX_FOUND "advanced logging") - - # - # AC_CHECK_LIB(dl, dlopen, DL_LIBRARY="-ldl", DL_LIBRARY="") for cmake by -@@ -189,13 +191,10 @@ - - SET (DIRS ${DIRS} src) - --find_package(CppUnit) --if (NOT CppUnit_FOUND) -- MESSAGE("** CppUnit was not found. Strigi unit tests will not be built.") --else (NOT CppUnit_FOUND) -- MESSAGE(STATUS "CppUnit found. Strigi unit tests will be built.") -+FIND_OPTIONAL_DEP(CppUnit ENABLE_CPPUNIT CppUnit_FOUND "Strigi unit tests") -+if (CppUnit_FOUND) - SET (DIRS ${DIRS} tests) --endif (NOT CppUnit_FOUND) -+endif (CppUnit_FOUND) - - ENABLE_TESTING() - SUBDIRS (${DIRS}) diff --git a/app-misc/strigi/files/strigi-0.5.8-gcc-4.3.patch b/app-misc/strigi/files/strigi-0.5.8-gcc-4.3.patch new file mode 100644 index 000000000000..bc9eefe8ed48 --- /dev/null +++ b/app-misc/strigi/files/strigi-0.5.8-gcc-4.3.patch @@ -0,0 +1,13 @@ +diff -Naur strigi.old/src/daemon/eventlistener/famlistener.cpp strigi-0.5.8/src/daemon/eventlistener/famlistener.cpp +--- strigi.old/src/daemon/eventlistener/famlistener.cpp 2007-11-20 19:19:34.000000000 +0100 ++++ strigi-0.5.8/src/daemon/eventlistener/famlistener.cpp 2008-03-19 04:42:34.000000000 +0100 +@@ -27,7 +27,9 @@ + #include "indexreader.h" + #include "../strigilogging.h" + ++#include <algorithm> + #include <cerrno> ++#include <cstring> + #include <sys/resource.h> + #include <sys/select.h> + #include <sys/types.h> diff --git a/app-misc/strigi/strigi-0.5.8.ebuild b/app-misc/strigi/strigi-0.5.8.ebuild index 4069aeb23f4c..b91c365d20db 100644 --- a/app-misc/strigi/strigi-0.5.8.ebuild +++ b/app-misc/strigi/strigi-0.5.8.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/strigi/strigi-0.5.8.ebuild,v 1.1 2008/03/10 21:49:04 zlin Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/strigi/strigi-0.5.8.ebuild,v 1.2 2008/03/19 04:24:48 ingmar Exp $ EAPI="1" inherit eutils cmake-utils @@ -68,6 +68,12 @@ pkg_setup() { fi } +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-gcc-4.3.patch +} + src_compile() { # Strigi needs either expat or libxml2. # However libxml2 seems to be required in both cases, linking to 2 xml parsers |