Package: watchman
Version: 4.9.0-2
Severity: important

watchman, as configured in Debian, hardcodes /tmp as a state location.
it creates (in my case) a /tmp/anarcat-state directory and there's no
way to put that directory elsewhere which is quite annoying.

the upstream documentation says that `--enable-statedir` can be used to
point to another directory, but the debian package build explicitely
hardcodes this to /tmp. that seems non-sensical, as /tmp (or, rather,
TMPDIR) is the default.

by hardcoding /tmp that way at the build stage, it makes it impossible
for the debian package to pick another location for /tmp.

if we insist on using /tmp as a state file (instead of, say, /run), we
should use --disable-statedir instead of --enable-statedir=/tmp

see also

https://github.com/facebook/watchman/blob/4b98623e8fde17588f27494f3ae8f084b9b227d3/website/_docs/cli-options.markdown

a.

-- System Information:
Debian Release: 10.2
  APT prefers stable-debug
  APT policy: (500, 'stable-debug'), (500, 'stable'), (1, 'experimental'), (1, 
'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-6-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages watchman depends on:
ii  libc6       2.28-10
ii  libgcc1     1:8.3.0-6
ii  libpcre3    2:8.39-12
ii  libssl1.1   1.1.1d-0+deb10u2
ii  libstdc++6  8.3.0-6

watchman recommends no packages.

Versions of packages watchman suggests:
ii  python3-pywatchman  4.9.0-2

-- no debconf information

Reply via email to