Bug#897071: Patch
Andreas Schwarz
a.schwarz_dev at dntw.de
Mon Apr 30 11:50:12 BST 2018
As mentioned in synctex_parser_readme.md
libsynctex1 broke its API and ABI among other things by renaming synctex_next_result to synctex_scanner_next_result
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=895980#32
The following simple patches should fix the issue for texmaker without the need of waiting for a proper transition by
libsynctex
diff texmaker-5.0.2/pdfviewer.cpp texmaker-5.0.2-patched/pdfviewer.cpp
565c565
< while ((node = synctex_next_result(scanner)) != NULL)
---
> while ((node = synctex_scanner_next_result(scanner)) != NULL)
1022c1022
< while ((node = synctex_next_result(scanner)) != NULL)
---
> while ((node = synctex_scanner_next_result(scanner)) != NULL)
diff texmaker-5.0.2/pdfviewerwidget.cpp texmaker-5.0.2-patched/pdfviewerwidget.cpp
529c529
< while ((node = synctex_next_result(scanner)) != NULL)
---
> while ((node = synctex_scanner_next_result(scanner)) != NULL)
988c988
< while ((node = synctex_next_result(scanner)) != NULL)
---
> while ((node = synctex_scanner_next_result(scanner)) != NULL)
diff texmaker-5.0.2/synctex_parser.c texmaker-5.0.2-patched/synctex_parser.c
3578c3578
< synctex_node_t synctex_next_result(synctex_scanner_t scanner) {
---
> synctex_node_t synctex_scanner_next_result(synctex_scanner_t scanner) {
diff texmaker-5.0.2/synctex_parser.h texmaker-5.0.2-patched/synctex_parser.h
129c129
< * while((node = synctex_next_result(scanner))) {
---
> * while((node = synctex_scanner_next_result(scanner))) {
145c145
< * while(node = synctex_next_result(scanner)) {
---
> * while(node = synctex_scanner_next_result(scanner)) {
170c170
< synctex_node_t synctex_next_result(synctex_scanner_t scanner);
---
> synctex_node_t synctex_scanner_next_result(synctex_scanner_t scanner);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 866 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20180430/0eb2b97e/attachment.sig>
More information about the debian-science-maintainers
mailing list