Your message dated Sat, 15 Aug 2020 15:33:57 +0000
with message-id <[email protected]>
and subject line Bug#962988: fixed in xfstt 1.11-1
has caused the Debian Bug report #962988,
regarding When started, xfstt doesn't listen at any sockets (neither unix nor 
tcp) if /tmp/.font-unix/ directory already exists
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
962988: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=962988
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: xfstt
Version: 1.10-1
Severity: grave
Tags: upstream

During its start-up, xfstt creates the `/tmp/.font-unix/` directory in order to 
place its socket there.

If, however, the above directory already exists, xfstt:

 - doesn't create the unix socket there if the socket file doesn't exist,
 - doesn't re-use the existing socket file, and
 - fails to listen at a TCP socket even if configured so.

STR:

 1. Make sure xfstt isn't running or stop it first.
 2. As root, create the /tmp/.font-unix/ directory.
 3. Delete /tmp/.font-unix/fs7101 (the socket file).
 4. Start xfstt.
 5. The daemon will start w/o any error:

> # service xfstt status
> [ ok ] xfstt is running.
> 
> # ps -ef | grep xfstt | grep -v grep
> root     31878     1  0 02:00 ?        00:00:00 /usr/bin/xfstt --daemon 
> --port 7101 --unstrap --encoding iso8859-1

 6. In spite of the above, the socket file won't be re-created:

> # ls -l /tmp/.font-unix/
> total 0

 7. Additionally, xfstt will no longer be listening at TCP port 7101:

> # lsof -p 31878
> COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF    NODE NAME
> xfstt   31878 root  cwd    DIR  254,2    12288 1314666 
> /usr/share/fonts/truetype
> xfstt   31878 root  rtd    DIR  254,1     4096       2 /
> xfstt   31878 root  txt    REG  254,2   129224  805495 /usr/bin/xfstt
> xfstt   31878 root  mem    REG  254,4   311653  134640 
> /var/cache/xfstt/ttname.dir
> xfstt   31878 root  mem    REG  254,1  1824496    2028 
> /lib/x86_64-linux-gnu/libc-2.28.so
> xfstt   31878 root  mem    REG  254,1   100712     661 
> /lib/x86_64-linux-gnu/libgcc_s.so.1
> xfstt   31878 root  mem    REG  254,1  1579448    3929 
> /lib/x86_64-linux-gnu/libm-2.28.so
> xfstt   31878 root  mem    REG  254,2  1570256 2104093 
> /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25
> xfstt   31878 root  mem    REG  254,4    72536  134639 
> /var/cache/xfstt/ttinfo.dir
> xfstt   31878 root  mem    REG  254,1   165632    1889 
> /lib/x86_64-linux-gnu/ld-2.28.s

Normally, I'm also expecting 3 sockets in lsof output:

> xfstt   1663 root    0u  unix 0xffff8838fffb7800      0t0 4774342 
> /tmp/.font-unix/fs7101 type=STREAM
> xfstt   1663 root    1u  IPv4            4774346      0t0     TCP *:7101 
> (LISTEN)
> xfstt   1663 root    2u  IPv6            4774347      0t0     TCP *:7101 
> (LISTEN)

If I re-start xfstt, it'll remove and re-create the /tmp/.font-unix/ directory, 
but this directory
shouldn't be managed by xfstt alone as it may be shared between multiple X font 
servers (e. g.: xfs).

The problem stems from the following fragment in xfstt.cc:

>                 if (mkdir(sockdir, 01777) < 0) {
>                         error(_("cannot make socket directory %s!\n"), 
> sockdir);
>                         close(sd);
>                         return -1;
>                 }

If the directory already exists and has the right permissions, xfstt should 
just proceed.

If the directory already exists but lacks some permissions, xfstt should 
attempt to change those (when running as root).

BTW, /etc/init.d/x11-common script from x11-common already does the job of 
creating X11 socket directories,
so it could be enhanced to take care of /tmp/.font-unix, too.

-- System Information:
Distributor ID: Debian
Description:    Devuan GNU/Linux 3 (beowulf)
Release:        3
Codename:       beowulf
Architecture: x86_64

Kernel: Linux 4.9.0-11-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8), 
LANGUAGE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages xfstt depends on:
ii  debconf [debconf-2.0]  1.5.71
ii  libc6                  2.28-10
ii  libgcc1                1:8.3.0-6
ii  libstdc++6             8.3.0-6
ii  lsb-base               10.2019051400

xfstt recommends no packages.

xfstt suggests no packages.

-- debconf information:
* xfstt/listen_tcp: true

--- End Message ---
--- Begin Message ---
Source: xfstt
Source-Version: 1.11-1
Done: Guillem Jover <[email protected]>

We believe that the bug you reported is fixed in the latest version of
xfstt, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Guillem Jover <[email protected]> (supplier of updated xfstt package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 14 Aug 2020 15:54:58 +0200
Source: xfstt
Architecture: source
Version: 1.11-1
Distribution: unstable
Urgency: medium
Maintainer: Guillem Jover <[email protected]>
Changed-By: Guillem Jover <[email protected]>
Closes: 858512 962988
Changes:
 xfstt (1.11-1) unstable; urgency=medium
 .
   * New upstream release.
     - Handle pre-existing .fonts-unix socket directory. (Closes: #962988)
   * Namespace debconf templates file too. It also required renaming the file
     in the debian/po/POTFILES.in file.
   * Switch to debhelper compatibility level 13.
   * Switch from debian/compat to debhelper-commpat in Build-Depends.
   * Switch to Standards-Version 4.5.0 (no changes needed).
   * Switch to dh sequencer.
   * Stop passing -fomit-frame-pointer, which makes debugging harder.
   * Mention in package description that the font server support is disabled
     in Debian's X.Org server. (Closes: #858512)
   * Switch from a boolean to free form OPTIONS for LISTEN_TCP setting in
     /etc/default/xfstt, to make it possible to share it between sysvinit
     and systemd.
   * Add new systemd service file.
Checksums-Sha1:
 e4e15161ad2395dc16c5146b3602aeb779871c95 2092 xfstt_1.11-1.dsc
 9023e4338d05d8e9bf82ba26eb5a06128b5e4d28 217564 xfstt_1.11.orig.tar.xz
 3e9586f088322246f1a1893524d4373ee39d8c39 833 xfstt_1.11.orig.tar.xz.asc
 1414438daf34c2bd2240c6a57dd38108659ab10e 23992 xfstt_1.11-1.debian.tar.xz
 f7fcff0af241bf937813056edf43b906351762e5 5520 xfstt_1.11-1_amd64.buildinfo
Checksums-Sha256:
 022bbb6c94c27c438cf4b75890185b87705fbda13306e9f45a873ef722122992 2092 
xfstt_1.11-1.dsc
 f29772abbe20168abd3ac855a4e09438442f2e4c2bf1698cb74a525cb281594a 217564 
xfstt_1.11.orig.tar.xz
 fdbfad6c8fe553ae0799e844cf27d0a1fd16784cea7f9f78349ef70c8eee2834 833 
xfstt_1.11.orig.tar.xz.asc
 ea7fa2bd23f1f1a02f80583ed8147a59efc46ce41d66ff85ed76a5343b68d15b 23992 
xfstt_1.11-1.debian.tar.xz
 e6633f72ca3f92f11f691bcc13fd535fd5dcbda7efefd7587fac974d1f644fff 5520 
xfstt_1.11-1_amd64.buildinfo
Files:
 4a98fb0b127b1df9728bb44b540709e2 2092 x11 optional xfstt_1.11-1.dsc
 8e65b3a32b4af94ba16726db52d9a62e 217564 x11 optional xfstt_1.11.orig.tar.xz
 96f033f0638c8fb989e5fe7910ef3159 833 x11 optional xfstt_1.11.orig.tar.xz.asc
 0db695e2cfdb4070f3f355acf47dfd89 23992 x11 optional xfstt_1.11-1.debian.tar.xz
 fd838e6da2778155c5f0212dfb4ecc63 5520 x11 optional xfstt_1.11-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEETz509DYFDBD1aWV0uXK/PqSuV6MFAl83/I0ACgkQuXK/PqSu
V6NFvg//VkW0iOQv6i8l6+IoUNg1vfX1BqbU7OvzSUPOwHUzxvXC/+pIAt/K5nQg
e3CgjO+gOUM4S88f6Lxua3TI2fGVWniiPwKqn9iJIfalAEXS0qKVXcNX61olpuRy
fuubB8JpQghE9cH+Vzt9ZgabekaWEWWiHNqpKQQNOCQmZN48hJbG27WpPk88DZZD
GPK6biz17mlvIW1/ZMeuBhjfkSP0/zQB1Jlf7Mx4JNDTSD+pebeOgllwDEtE3Rqq
VXJC2xE4O7OlL5p2A6wnYmYQpWVXUAuvMhuDJpzn2REkzYMb9Q64OsOl55OH+RgI
AvfVSoNL+iSUSDR3prEROKOHQJcGWCQ/SyMcSuoJsrOhv0o6N1e5CCdg2bY5wxoM
mMljWE43T/EcgbZxbVhXevSX5A1+meLa/uuHWH+PYit6P9Z+ospPv2uXaaJOnevj
lZvcXIoAY2qXWQfAz8R1bk+djJGm5FFZSL/0EYcJbmFaMhFdx7/+zNNnw6zX4AUd
QVwNHVr+S34ue9HdCmHq0ARmoqziWWxFgr2Y+K4FKhbIlEJTghXk6IbhyXcA2Oe3
NYRXNUYPaGAXSqY5jY/FDPbZNQtRq4MdvGTXRJhvSL3gIxbS6A+WM05cT23mKnRi
mG+8ak/xXmQvthewopH9qkoDuVfovx3vd78P/f355nMpALgDQ9Y=
=QK8a
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to