Opened 8 years ago

Last modified 5 years ago

#53856 assigned defect

zathura does not accept synctex related command-line options

Reported by: ymei (Yuan Mei) Owned by: harciga
Priority: Normal Milestone:
Component: ports Version: 2.4.1
Keywords: Cc:
Port: zathura

Description

With standard installation of zathura-0.3.6 via ports, it does not seem to accept synctex related options:

$ zathura --help
Usage:
  zathura [OPTION...]  [file1] [file2] [...]

Help Options:
  -h, --help                  Show help options

Application Options:
  -e, --reparent=xid          Reparents to window specified by xid (X11)
  -c, --config-dir=path       Path to the config directory
  -d, --data-dir=path         Path to the data directory
  --cache-dir=path            Path to the cache directory
  -p, --plugins-dir=path      Path to the directories containing plugins
  --fork                      Fork into the background
  -w, --password=password     Document password
  -P, --page=number           Page number to go to
  -l, --debug=level           Log level (debug, info, warning, error)
  -v, --version               Print version information
  --mode=mode                 Start in a non-default mode
$ zathura -x
error: Error parsing command line arguments: Unknown option -x

However, if I extract the source of zathura-0.3.6 and compile it manually on the same system (simple make), the generated executable does accept synctex options:

$ build/release/bin/zathura --help
Usage:
  zathura [OPTION...]  [file1] [file2] [...]

Help Options:
  -h, --help                           Show help options

Application Options:
  -e, --reparent=xid                   Reparents to window specified by xid (X11)
  -c, --config-dir=path                Path to the config directory
  -d, --data-dir=path                  Path to the data directory
  --cache-dir=path                     Path to the cache directory
  -p, --plugins-dir=path               Path to the directories containing plugins
  --fork                               Fork into the background
  -w, --password=password              Document password
  -P, --page=number                    Page number to go to
  -l, --debug=level                    Log level (debug, info, warning, error)
  -v, --version                        Print version information
  -x, --synctex-editor-command=cmd     Synctex editor (forwarded to the synctex command)
  --synctex-forward=position           Move to given synctex position
  --synctex-pid=pid                    Highlight given position in the given process
  --mode=mode                          Start in a non-default mode
$ build/release/bin/zathura -x
error: Error parsing command line arguments: Missing argument for -x

I am wondering that ports is not detecting the build parameters correctly.

Change History (2)

comment:1 Changed 8 years ago by mf2k (Frank Schima)

Keywords: synctex removed
Owner: set to starkhalo@…
Port: zathura added; office/zathura removed
Status: newassigned

In the future, please Cc the port maintainers (port info --maintainers zathura), if any.

comment:2 Changed 5 years ago by dbevans (David B. Evans)

In 9e6d60b19b9c4fc116c274a6417cdf8fde1581e0/macports-ports (master):

zathura: fix build with latest texlive-bin installed

By default, zathura will opportunistically build with libsynctex, provided
by texlive-bin, if available. Explicitly disable libsynctex support to prevent
build failure due to apparent API changes in texlive-bin @2019.50896.

See #53856.

In this case, optional synctex functionality is probably missing due to zathura
not declaring a dependency on texlive-bin and definitely so as a result of this commit.
The cause of the build failure reported here will have to be addressed and a dependency
on texlive-bin added before the functionality can be enabled.

Note: See TracTickets for help on using tickets.