Package: man-db
Version: 2.11.2-2
Severity: normal

Dear Maintainer,

Subject: $MANWIDTH does not overwrite explicit line length in "~/.manpath"

In my ".manpath" for "nroff" was:

DEFINE nroff test-nroff -b -ww -mandoc -rF=0  -P-i -rHY=0 -dAD=l -rCHECKSTYLE=0 
-rLL=90m

Changing the line length with, say "export MANWIDTH=80", had no effect.

COLUMNS is 128

Line length in the output is 90.

Tested with "sensible-terminal.1" (with additional .tm lines).

/usr/bin/man --version
man 2.11.2

Output from /usr/bin/man --debug -l sensible-terminal.1

ruid=1000, euid=1000
rgid=1000, egid=1000
>From the config file /home/bg/.manpath:
  Defined `troff' as `test-groff -b -ww -mandoc -rF=0 -rCHECKSTYLE=5 -dpaper=a4 
'.
  Defined `nroff' as `test-nroff -b -ww -mandoc -rF=0  -P-i -rHY=0 -dAD=l 
-rCHECKSTYLE=0 -rLL=90m'.
  Defined `eqn' as `/home/bg/git/groff/build/eqn'.
  Defined `neqn' as `/home/bg/git/groff/build/eqn'.
  Defined `tbl' as `/home/bg/git/groff/build/tbl'.
  Defined `refer' as `/home/bg/git/groff/build/refer'.
  Defined `grap' as `/home/bg/git/groff/build/grap'.
  Defined `pic' as `/home/bg/git/groff/build/pic'.
>From the config file /etc/manpath.config:
  Mandatory mandir `/usr/man'.
  Mandatory mandir `/usr/share/man'.
  Mandatory mandir `/usr/local/share/man'.
  Path `/bin' mapped to mandir `/usr/share/man'.
  Path `/usr/bin' mapped to mandir `/usr/share/man'.
  Path `/sbin' mapped to mandir `/usr/share/man'.
  Path `/usr/sbin' mapped to mandir `/usr/share/man'.
  Path `/usr/local/bin' mapped to mandir `/usr/local/man'.
  Path `/usr/local/bin' mapped to mandir `/usr/local/share/man'.
  Path `/usr/local/sbin' mapped to mandir `/usr/local/man'.
  Path `/usr/local/sbin' mapped to mandir `/usr/local/share/man'.
  Path `/usr/X11R6/bin' mapped to mandir `/usr/X11R6/man'.
  Path `/usr/bin/X11' mapped to mandir `/usr/X11R6/man'.
  Path `/usr/games' mapped to mandir `/usr/share/man'.
  Path `/opt/bin' mapped to mandir `/opt/man'.
  Path `/opt/sbin' mapped to mandir `/opt/man'.
  Path `/home/bg/.local/share/man' mapped to mandir `/var/cache/man/local/man'.
  Path `/home/bg/git/man-pages/man' mapped to mandir `/var/cache/man/local/man'.
  Global mandir `/usr/man', catdir `/var/cache/man/fsstnd'.
  Global mandir `/usr/share/man', catdir `/var/cache/man'.
  Global mandir `/usr/local/man', catdir `/var/cache/man/oldlocal'.
  Global mandir `/usr/local/share/man', catdir `/var/cache/man/local'.
  Global mandir `/usr/X11R6/man', catdir `/var/cache/man/X11R6'.
  Global mandir `/opt/man', catdir `/var/cache/man/opt'.
  Global mandir `/snap/man', catdir `/var/cache/man/snap'.
  Added sections: `1', `n', `l', `8', `3', `0', `2', `3type', `3posix', `3pm', 
`3perl', `3am', `5', `4', `9', `6', `7'.
is a tty
using pager as pager
can't stat /home/bg/.local/share/man/andoc: No such file or directory
can't stat /home/bg/share/man/andoc: No such file or directory
can't stat /usr/local/share/man/andoc: No such file or directory
can't stat /usr/share/man/andoc: No such file or directory
can't stat /usr/local/share/heirloom-doctools/man/andoc: No such file or 
directory
add_system_manpath(): internal manpath equates to NULL
add_nls_manpaths(): processing 
/home/bg/.local/share/man:/home/bg/share/man:/usr/local/share/man:/usr/share/man:/usr/local/share/heirloom-doctools/man
checking for locale is_IS.iso88591
adding /home/bg/.local/share/man to manpathlist
adding /home/bg/share/man to manpathlist
adding /usr/local/share/man to manpathlist
adding /usr/share/man to manpathlist
adding /usr/local/share/heirloom-doctools/man to manpathlist
final search path = 
/home/bg/.local/share/man:/home/bg/share/man:/usr/local/share/man:/usr/share/man:/usr/local/share/heirloom-doctools/man
pre-processors `t' from default
page_encoding = iso88591
source_encoding = iso88591
locale_charset = ISO-8859-1
roff_encoding = ISO-8859-1
output_encoding = ISO-8859-1
Terminal width 80
Terminal width 80 within cat page range [80, 80]
formatted_encoding = ISO-8859-1
format: 1, save_cat: 0, found: 1
Setting LESS to -ix8RmPm Manual page sensible-terminal\.1\.new ?ltline 
%lt?L/%L.:byte %bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to 
quit)$PM Manual page sensible-terminal\.1\.new ?ltline %lt?L/%L.:byte 
%bB?s/%s..?e (END):?pB %pB\%.. (press h for help or q to quit)$-i -z-2
Setting MAN_PN to sensible-terminal\.1\.new
loading seccomp filter (permissive: 0)
loading seccomp filter (permissive: 1)
loading seccomp filter (permissive: 0)
loading seccomp filter (permissive: 1)
loading seccomp filter (permissive: 0)
opening -
opened -
seccomp already enabled
seccomp already enabled
trying encoding UTF-8 -> UTF-8//IGNORE

linelength LL is 2160u (90n)
.l is 2160u
COLUMNS IS 128

N.B.
  Most(?) tests (searches) are a waste, as the option '-l' is used.

  The search for "andoc" should start with "andoc.tmac".

"man -l ..." : "bash-completion" is not active.

 Do not use "atoi" (atoi(3)).


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.3.7-1 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=is_IS.iso88591, LC_CTYPE=is_IS.iso88591 (charmap=ISO-8859-1), 
LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages man-db depends on:
ii  bsdextrautils          2.38.1-6
ii  bsdmainutils           12.1.8
ii  debconf [debconf-2.0]  1.5.82
ii  groff-base             1.22.4-10
ii  libc6                  2.37-5
ii  libgdbm6               1.23-3
ii  libpipeline1           1.5.7-1
ii  libseccomp2            2.5.4-1+b3
ii  zlib1g                 1:1.2.13.dfsg-1

man-db recommends no packages.

Versions of packages man-db suggests:
pn  apparmor                   <none>
ii  elinks [www-browser]       0.16.1.1-4
ii  firefox-esr [www-browser]  115.0.2esr-1
ii  groff                      1.22.4-10
ii  less                       590-2
ii  lynx [www-browser]         2.9.0dev.12-1
ii  w3m [www-browser]          0.5.3+git20230121-2

-- Configuration Files:
/etc/manpath.config changed [not included]

-- debconf information:
  man-db/auto-update: true
  man-db/install-setuid: false

Reply via email to