Remove support for old libsynctex

Debian buster will have a new enough libsynctex.
This commit is contained in:
Sebastian Ramacher 2019-03-03 18:30:32 +01:00
parent 9fe07d39d0
commit 4824c70318
3 changed files with 4 additions and 16 deletions

2
README
View file

@ -17,7 +17,7 @@ The following dependencies are optional:
* sqlite3 (>= 3.6.23): splite3 database backend * sqlite3 (>= 3.6.23): splite3 database backend
* libmagic from file(1): for mime-type detection * libmagic from file(1): for mime-type detection
* libsynctex from TeXLive: SyncTeX support * libsynctex from TeXLive (>= 1.19): SyncTeX support
* libseccomp: sandbox support * libseccomp: sandbox support
For building zathura, the following dependencies are also required: For building zathura, the following dependencies are also required:

View file

@ -69,7 +69,7 @@ flags = cc.get_supported_arguments(flags)
# optional dependencies # optional dependencies
additional_sources = [] additional_sources = []
sqlite = dependency('sqlite3', version: '>=3.6.23', required: get_option('sqlite')) sqlite = dependency('sqlite3', version: '>=3.6.23', required: get_option('sqlite'))
synctex = dependency('synctex', required: get_option('synctex')) synctex = dependency('synctex', version: '>=1.19', required: get_option('synctex'))
magic = cc.find_library('magic', required: get_option('magic')) magic = cc.find_library('magic', required: get_option('magic'))
seccomp = dependency('libseccomp', required: get_option('seccomp')) seccomp = dependency('libseccomp', required: get_option('seccomp'))
@ -82,12 +82,8 @@ endif
if synctex.found() if synctex.found()
build_dependencies += synctex build_dependencies += synctex
defines += '-DWITH_SYNCTEX' defines += '-DWITH_SYNCTEX'
if synctex.version() < '2.0.0' if synctex.version() < '2.0.0' and synctex.version() >= '1.19.0'
if synctex.version() >= '1.19.0' warning('You are using a synctex version pre-SONAME bump, but post-ABI-break. Please make sure to always run zathura using the correct synctex version.')
warning('You are using a synctex version pre-SONAME bump, but post-ABI-break. Please make sure to always run zathura using the correct synctex version.')
else
defines += '-DWITH_SYNCTEX1'
endif
endif endif
endif endif

View file

@ -16,14 +16,6 @@
#include "adjustment.h" #include "adjustment.h"
#ifdef WITH_SYNCTEX #ifdef WITH_SYNCTEX
#ifdef WITH_SYNCTEX1
typedef synctex_scanner_t synctex_scanner_p;
typedef synctex_node_t synctex_node_p;
#define synctex_scanner_next_result(scanner) synctex_next_result(scanner)
#define synctex_display_query(scanner, file, line, column, page) synctex_display_query(scanner, file, line, column)
#endif
bool bool
synctex_get_input_line_column(const char* filename, unsigned int page, int x, int y, synctex_get_input_line_column(const char* filename, unsigned int page, int x, int y,
char** input_file, unsigned int* line, unsigned int* column) char** input_file, unsigned int* line, unsigned int* column)