future 1.22 packaging

This commit is contained in:
Jean-Francois Dockes
2015-11-22 09:56:04 +01:00
parent c2183f1363
commit 02ac941cf7
11 changed files with 49 additions and 470 deletions
+18 -9
View File
@@ -113,6 +113,7 @@ internfile/mh_mail.cpp \
internfile/mh_mail.h \
internfile/mh_mbox.cpp \
internfile/mh_mbox.h \
internfile/mh_null.h \
internfile/mh_symlink.h \
internfile/mh_text.cpp \
internfile/mh_text.h \
@@ -237,7 +238,11 @@ utils/wipedir.cpp \
utils/wipedir.h \
utils/workqueue.h \
utils/x11mon.cpp \
utils/x11mon.h
utils/x11mon.h \
xaposix/safefcntl.h \
xaposix/safesysstat.h \
xaposix/safesyswait.h \
xaposix/safeunistd.h
BUILT_SOURCES = query/wasaparse.cpp
AM_YFLAGS = -d
@@ -358,8 +363,8 @@ qtgui/i18n/recoll_ru.qm qtgui/i18n/recoll_ru.ts \
qtgui/i18n/recoll_tr.qm qtgui/i18n/recoll_tr.ts \
qtgui/i18n/recoll_uk.qm qtgui/i18n/recoll_uk.ts \
qtgui/i18n/recoll_xx.qm qtgui/i18n/recoll_xx.ts \
qtgui/i18n/recoll_zh_CN.qm qtgui/i18n/recoll_zh_CN.ts \
qtgui/i18n/recoll_zh.qm qtgui/i18n/recoll_zh.ts \
qtgui/i18n/recoll_zh_CN.qm qtgui/i18n/recoll_zh_CN.ts \
qtgui/idxsched.h \
qtgui/idxsched.ui \
qtgui/images/asearch.png \
@@ -380,26 +385,26 @@ qtgui/images/up.png \
qtgui/listdialog.h \
qtgui/listdialog.ui \
qtgui/main.cpp \
qtgui/mtpics/License_sidux.txt \
qtgui/mtpics/README \
qtgui/mtpics/aptosid-book.png \
qtgui/mtpics/aptosid-manual-copyright.txt \
qtgui/mtpics/aptosid-manual.png \
qtgui/mtpics/archive.png \
qtgui/mtpics/bookchap.png \
qtgui/mtpics/book.png \
qtgui/mtpics/bookchap.png \
qtgui/mtpics/document.png \
qtgui/mtpics/drawing.png \
qtgui/mtpics/emblem-symbolic-link.png \
qtgui/mtpics/folder.png \
qtgui/mtpics/html.png \
qtgui/mtpics/image.png \
qtgui/mtpics/License_sidux.txt \
qtgui/mtpics/message.png \
qtgui/mtpics/mozilla_doc.png \
qtgui/mtpics/pdf.png \
qtgui/mtpics/pidgin.png \
qtgui/mtpics/postscript.png \
qtgui/mtpics/presentation.png \
qtgui/mtpics/README \
qtgui/mtpics/sidux-book.png \
qtgui/mtpics/soffice.png \
qtgui/mtpics/source.png \
@@ -411,6 +416,10 @@ qtgui/mtpics/video.png \
qtgui/mtpics/wordprocessing.png \
qtgui/multisave.cpp \
qtgui/multisave.h \
qtgui/preview_load.cpp \
qtgui/preview_load.h \
qtgui/preview_plaintorich.cpp \
qtgui/preview_plaintorich.h \
qtgui/preview_w.cpp \
qtgui/preview_w.h \
qtgui/ptrans.ui \
@@ -418,14 +427,14 @@ qtgui/ptrans_w.cpp \
qtgui/ptrans_w.h \
qtgui/rclhelp.cpp \
qtgui/rclhelp.h \
qtgui/rclmain.ui \
qtgui/rclmain_w.cpp \
qtgui/rclmain_w.h \
qtgui/rclm_idx.cpp \
qtgui/rclm_preview.cpp \
qtgui/rclm_saveload.cpp \
qtgui/rclm_view.cpp \
qtgui/rclm_wins.cpp \
qtgui/rclmain.ui \
qtgui/rclmain_w.cpp \
qtgui/rclmain_w.h \
qtgui/rclzg.cpp \
qtgui/rclzg.h \
qtgui/recoll.h \
@@ -489,7 +498,7 @@ sampleconf/fields sampleconf/fragbuts.xml sampleconf/mimeconf \
sampleconf/mimemap sampleconf/mimeview sampleconf/mimeview.mac \
sampleconf/recoll.conf sampleconf/recoll.qss \
\
unac/AUTHORS unac/COPYING unac/README unac/README.recoll \
unac/AUTHORS unac/COPYING unac/README unac/README.recoll unac/unac.c \
\
VERSION
-249
View File
@@ -1,249 +0,0 @@
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define if ftime returns void */
/* #undef FTIME_RETURNS_VOID */
/* Define to 1 if you have the `closefrom' function. */
/* #undef HAVE_CLOSEFROM */
/* Define to 1 if you have the `dirfd' function. */
#define HAVE_DIRFD 1
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1
/* Define to 1 if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H 1
/* Define to 1 if you have the `fork' function. */
#define HAVE_FORK 1
/* Define to 1 if you have the `fsync' function. */
#define HAVE_FSYNC 1
/* Define to 1 if you have the `ftime' function. */
#define HAVE_FTIME 1
/* Define to 1 if you have the `gethostname' function. */
#define HAVE_GETHOSTNAME 1
/* Define to 1 if you have the `getrlimit' function. */
#define HAVE_GETRLIMIT 1
/* Define to 1 if you have the `getrusage' function. */
#define HAVE_GETRUSAGE 1
/* Define to 1 if you have the `gettimeofday' function. */
#define HAVE_GETTIMEOFDAY 1
/* Define to 1 if you have the `hstrerror' function. */
#define HAVE_HSTRERROR 1
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
/* Define to 1 if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define to 1 if you have the `link' function. */
#define HAVE_LINK 1
/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define if pread is available on this system */
#define HAVE_PREAD 1
/* Define if pwrite is available on this system */
#define HAVE_PWRITE 1
/* Define to 1 if you have the `setenv' function. */
#define HAVE_SETENV 1
/* Define to 1 if you have the `sigaction' function. */
#define HAVE_SIGACTION 1
/* Define to 1 if you have the `sigsetjmp' function */
#define HAVE_SIGSETJMP 1
/* Define to 1 if you have the 'socketpair' function. */
#define HAVE_SOCKETPAIR 1
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the `strerror' function. */
#define HAVE_STRERROR 1
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define to 1 if you have the `sysconf' function. */
#define HAVE_SYSCONF 1
/* Define to 1 if you have the <sys/errno.h> header file. */
#define HAVE_SYS_ERRNO_H 1
/* Define to 1 if you have the <sys/resource.h> header file. */
#define HAVE_SYS_RESOURCE_H 1
/* Define to 1 if you have the <sys/select.h> header file. */
#define HAVE_SYS_SELECT_H 1
/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the <sys/utsname.h> header file. */
#define HAVE_SYS_UTSNAME_H 1
/* Define to 1 if you have the `times' function. */
#define HAVE_TIMES 1
/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define to 1 if you have the <uuid.h> header file. */
/* #undef HAVE_UUID_H */
/* Define to 1 if you have the 'uuid_unparse_lower' function. */
#define HAVE_UUID_UNPARSE_LOWER 1
/* Define to 1 if you have the <uuid/uuid.h> header file. */
#define HAVE_UUID_UUID_H 1
/* Define if a suitable valgrind is installed */
#define HAVE_VALGRIND 1
/* Define to 1 if you have the <valgrind/memcheck.h> header file. */
#define HAVE_VALGRIND_MEMCHECK_H 1
/* Define to 1 if you have the <zlib.h> header file. */
#define HAVE_ZLIB_H 1
/* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
#define LT_OBJDIR ".libs/"
/* Name of package */
#define PACKAGE "xapian-core"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "http://xapian.org/bugs"
/* Define to the full name of this package. */
#define PACKAGE_NAME "xapian-core"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "xapian-core 1.2.14"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "xapian-core"
/* Define to the home page for this package. */
#define PACKAGE_URL ""
/* Define to the version of this package. */
#define PACKAGE_VERSION "1.2.14"
/* explicit prototype needed for pread (if any) */
/* #undef PREAD_PROTOTYPE */
/* explicit prototype needed for pwrite (if any) */
/* #undef PWRITE_PROTOTYPE */
/* The size of `int', as computed by sizeof. */
#define SIZEOF_INT 4
/* The size of `long', as computed by sizeof. */
#define SIZEOF_LONG 8
/* Define to the name of a function implementing snprintf but not caring about
ISO C99 return value semantics (if one exists) */
#define SNPRINTF snprintf
/* Define to the name of a function implementing snprintf with ISO C99
semantics (if one exists) */
#define SNPRINTF_ISO snprintf
/* type to use for 5th parameter to getsockopt */
#define SOCKLEN_T socklen_t
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define if the testsuite should use RTTI */
#define USE_RTTI 1
/* Version number of package */
#define VERSION "1.2.14"
/* Define if you want assertions (causes some slow-down) */
/* #undef XAPIAN_ASSERTIONS */
/* Define if you want paranoid assertions (causes significant slow-down) */
/* #undef XAPIAN_ASSERTIONS_PARANOID */
/* Define if you want a log of methods called and other debug messages */
/* #undef XAPIAN_DEBUG_LOG */
/* Number of bits in a file offset, on hosts where this is settable. */
/* #undef _FILE_OFFSET_BITS */
/* Define for large files, on AIX-style hosts. */
/* #undef _LARGE_FILES */
/* Define on mingw to the minimum msvcrt version to assume */
/* #undef __MSVCRT_VERSION__ */
/* Define to `int' if <sys/types.h> does not define. */
/* #undef mode_t */
/* Define to `int' if <sys/types.h> does not define. */
/* #undef pid_t */
/* Define to `int' if <sys/types.h> does not define. */
/* #undef ssize_t */
/* Disable stupid MSVC "performance" warning for converting int to bool. */
#ifdef _MSC_VER
# pragma warning(disable:4800)
#endif
/* _FORTIFY_SOURCE is only supported by GCC >= 4.1 and glibc >= 2.3.4, but it
* shouldn't cause a problem to define it where it's not supported and some
* distros may have backported support, so hardcoding version checks is
* counter-productive.
*
* Check if _FORTIFY_SOURCE is already defined to allow the user to override
* our choice with "./configure CPPFLAGS=-D_FORTIFY_SOURCE=0" or "...=1".
*/
#if defined __GNUC__ && !defined _FORTIFY_SOURCE
# define _FORTIFY_SOURCE 2
#endif
/* For GCC >= 3.0 (and Intel's C++ compiler, which also defines __GNUC__),
* we can use __builtin_expect to give the compiler hints about branch
* prediction. See HACKING for how to use these.
*/
#if defined __GNUC__
/* The arguments of __builtin_expect() are both long, so use !! to ensure that
* the first argument is always an integer expression, and always 0 or 1, but
* still has the same truth value for the if or while it is used in.
*/
# define rare(COND) __builtin_expect(!!(COND), 0)
# define usual(COND) __builtin_expect(!!(COND), 1)
#else
# define rare(COND) (COND)
# define usual(COND) (COND)
#endif
-107
View File
@@ -1,107 +0,0 @@
/** @file realtime.h
* @brief Functions for handling a time or time interval in a double.
*/
/* Copyright (C) 2010,2013 Olly Betts
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef XAPIAN_INCLUDED_REALTIME_H
#define XAPIAN_INCLUDED_REALTIME_H
#include <cmath>
#include <ctime>
#include "safeerrno.h"
#include "safeunistd.h"
#ifndef __WIN32__
# ifdef HAVE_FTIME
# include <sys/timeb.h>
# endif
# ifdef HAVE_GETTIMEOFDAY
# include <sys/time.h>
# endif
#else
# include <sys/types.h>
# include <sys/timeb.h>
extern void xapian_sleep_milliseconds(unsigned int millisecs);
#endif
namespace RealTime {
/// Return the current time.
inline double now() {
#ifndef __WIN32__
// POSIX.1-2008 stopped specifying ftime(), so prefer gettimeofday().
# ifdef HAVE_GETTIMEOFDAY
struct timeval tv;
if (usual(gettimeofday(&tv, NULL) == 0))
return tv.tv_sec + (tv.tv_usec * 1e-6);
return double(std::time(NULL));
# elif defined HAVE_FTIME
struct timeb tp;
# ifdef FTIME_RETURNS_VOID
ftime(&tp);
# else
if (rare(ftime(&tp) != 0))
return double(std::time(NULL));
# endif
return tp.time + (tp.millitm * 1e-3);
# else
return double(std::time(NULL));
# endif
#else
struct __timeb64 tp;
_ftime64(&tp);
return tp.time + tp.millitm * 1e-3;
#endif
}
/** Return the end time for a timeout in @a timeout seconds.
*
* If @a timeout is 0, that means "no timeout", so 0 is returned. Otherwise
* the current time plus @a timeout seconds is returned.
*/
inline double end_time(double timeout) {
return (timeout == 0.0 ? timeout : timeout + now());
}
/// Sleep until the time represented by this object.
inline void sleep(double t) {
#ifndef __WIN32__
double delta;
struct timeval tv;
do {
delta = t - RealTime::now();
if (delta <= 0.0)
return;
tv.tv_sec = long(delta);
tv.tv_usec = long(std::fmod(delta, 1.0) * 1e6);
} while (select(0, NULL, NULL, NULL, &tv) < 0 && errno == EINTR);
#else
double delta = t - RealTime::now();
if (delta <= 0.0)
return;
while (rare(delta > 4294967.0)) {
xapian_sleep_milliseconds(4294967000u);
delta -= 4294967.0;
}
xapian_sleep_milliseconds(unsigned(delta * 1000.0));
#endif
}
}
#endif // XAPIAN_INCLUDED_REALTIME_H
-36
View File
@@ -1,36 +0,0 @@
/* safeerrno.h: #include <errno.h>, but working around broken platforms.
*
* Copyright (C) 2006,2007 Olly Betts
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
* USA
*/
#ifndef XAPIAN_INCLUDED_SAFEERRNO_H
#define XAPIAN_INCLUDED_SAFEERRNO_H
//#ifndef PACKAGE
//# error You must #include <config.h> before #include "safeerrno.h"
//#endif
// Compaq's C++ compiler requires sys/errno.h to be included, followed by
// errno.h, otherwise you don't get EINTR or most of the other EXXX codes
// defined.
#if defined __DECCXX && defined HAVE_SYS_ERRNO_H
# include <sys/errno.h>
#endif
#include <cerrno>
#endif // XAPIAN_INCLUDED_SAFEERRNO_H