Debian Bug report logs -
#1059536
groff-base: mdoc nroff output (Nm, Dt) broken since 1.23
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Colin Watson <cjwatson@debian.org>:
Bug#1059536; Package groff-base.
(Wed, 27 Dec 2023 19:24:04 GMT) (full text, mbox, link).
Acknowledgement sent
to наб <nabijaczleweli@nabijaczleweli.xyz>:
New Bug report received and forwarded. Copy sent to Colin Watson <cjwatson@debian.org>.
(Wed, 27 Dec 2023 19:24:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Package: groff-base
Version: 1.23.0-3
Severity: normal
Dear Maintainer,
This isn't about the many other font changes, especially the troff ones
(though changing Cm/Fl to CR from CB in troff mode
is basically violence against the user,
and changing Pa from C to I and Xr from B to nothing is awful)
because I'm the only psycho who actually renders PDFs and can patch this,
or even the other nroff font changes
(Sx I->Dq is weird, especially contrasted with Xr R->I
(which I'm not gonna complain too much about but it is odd;
you don't need any font because there's a big sexion specifier there);
I might even agree with Li R->B);
(it would be nice if reversions were provided by default
or with an easy opt-in in Debian I've personally been using
.\" Comparing groff-base 1.23.0-3 with 1.22.4-10
.\" Based on https://paste.sr.ht/~nabijaczleweli/e897d091aa5b62c284c6c996d90253023b6271f7
.\"
.\" 1.23 effectively aliases Sx to Dq. undo this
.als Sx doc-generic-macro
.ds doc-Sx-usage section_header
.
.ie n \{ .
.\" doc-nroff
.ds doc-Li-font \f[R]
.\" \f[B] in 1.23
.
.ds doc-Sx-font \f[I]
.\" dropped in 1.23
.
.ds doc-Xr-font \f[R]
.\" \f[I] in 1.23
. \}
.el \{ .
.\" doc-ditroff
.ds doc-Sx-font \f[B]
.\" dropped in 1.23
.
.ds doc-Xr-font \f[C]
.\" \f[I] in 1.23
.
.ds doc-page-topic-font \f[R]
.\" \f[I] in 1.23; used to be called doc-caption-font
.
.ds doc-Cm-font \f[CB]
.\" \f[CR] in 1.23
.
.ds doc-Fl-font \f[CB]
.\" \f[CR] in 1.23
.
.ds doc-Pa-font \f[C]
.\" \f[I] in 1.23
. \}
since, commit date says, 2023-11-14)
this is about the two "obviously-broken" changes.
1:
The first invocation of Nm in NAME is broken:
it correctly saves the first argument to the string register,
but it draws the argument in R instead of B.
This is in contrast to every other use of Nm
(and, thus, every other reference to the object the Nms refer to).
This is baffling and confusing; please revert this
(a quick peep at
https://sources.debian.org/src/groff/1.23.0-3/tmac/doc.tmac/#L1166
shows that this is an explicit change).
This is much harder to correct (I'd say impossible) for a casual user,
though I've added this to my mdoc.local
(it's not pretty nor is it nice but it does work against 1.23.0-3):
.\" Handle '.Nm ...' in "Name" section: use the Nm font! It doesn't anymore in 1.23.
.als Nm_old Nm
.rm Nm
.de Nm
.if \\n[doc-in-name-section] \{\
. if "\\*[doc-topic-name]"" \
. ds doc-topic-name "\\$1\"
. nr doc-in-name-section 0
.\}
.Nm_old \\$@
..
2:
Dt is misrendered but only in nroff mode.
Given
.Dt A_B_C 9
In troff mode, and in 1.22.4-10, the top left and right corners were "A_B_C(9)".
In 1.23.0-3 in nroff they are "\fIA_B_C\fP(9)", which:
(a) why would you need this?
(b) completely breaks manuals with underscores in the name,
because "\fIA_B_C\fP(9)" and "A_B_C(9)" and "\fIA B C\fP(9)"
are all drawn identically.
I didn't have the time or the energy to root-cause this.
Best,
наб
-- System Information:
Debian Release: 12.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.1.0-9-amd64 (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages groff-base depends on:
ii libc6 2.36-9+deb12u3
ii libgcc-s1 12.2.0-14
ii libstdc++6 12.2.0-14
ii libuchardet0 0.0.7-1
groff-base recommends no packages.
Versions of packages groff-base suggests:
ii groff 1.22.4-10
-- no debconf information
[signature.asc (application/pgp-signature, inline)]
Message sent on
to наб <nabijaczleweli@nabijaczleweli.xyz>:
Bug#1059536.
(Wed, 27 Dec 2023 20:03:03 GMT) (full text, mbox, link).
Message #8 received at 1059536-submitter@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
At 2023-12-27T20:21:19+0100, наб wrote:
> Package: groff-base
> Version: 1.23.0-3
> Severity: normal
>
> Dear Maintainer,
These are all complaints about changes that have been made to groff
upstream, not Debian-specific configuration choices, so I would prefer
to field them in the GNU Savannah bug tracker if you don't mind.
I perceive 3 issues here.
1. The complaints you led with, which aren't really the substance of
your report;
2. the handling of the `Nm` macro; and
3. the handling of the `Dt` macro.
Would you prefer
A. me to file them on your behalf upstream, adding you to the CC list,
or
B. to do so yourself?
Debian's groff package can of course make different font styling choices
for its mdoc(7) macros if that seems wise to the maintainers, but I
think we should first resolve upstream bugs, if any, and document the
reasons I had for making many of the changes of which you complain,
which can then drive a more informed decision on the part of the package
maintainers to override those choices (or not).
Regards,
Branden
[signature.asc (application/pgp-signature, inline)]
Message sent on
to наб <nabijaczleweli@nabijaczleweli.xyz>:
Bug#1059536.
(Wed, 27 Dec 2023 20:03:04 GMT) (full text, mbox, link).
Message #11 received at 1059536-submitter@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
At 2023-12-27T20:21:19+0100, наб wrote:
> Package: groff-base
> Version: 1.23.0-3
> Severity: normal
Sorry--I should have included a handy URL for upstream bug-reporting
self-service.
https://savannah.gnu.org/bugs/?group=groff&func=additem
Regards,
Branden
[signature.asc (application/pgp-signature, inline)]
Added tag(s) upstream.
Request was from "G. Branden Robinson" <g.branden.robinson@gmail.com>
to control@bugs.debian.org.
(Thu, 28 Dec 2023 02:18:03 GMT) (full text, mbox, link).
Information stored
:
Bug#1059536; Package groff-base.
(Sun, 31 Dec 2023 22:39:05 GMT) (full text, mbox, link).
Acknowledgement sent
to наб <nabijaczleweli@nabijaczleweli.xyz>:
Extra info received and filed, but not forwarded.
(Sun, 31 Dec 2023 22:39:05 GMT) (full text, mbox, link).
Message #18 received at 1059536-quiet@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Control: tags -1 + upstream
On Wed, Dec 27, 2023 at 02:00:34PM -0600, G. Branden Robinson wrote:
> At 2023-12-27T20:21:19+0100, наб wrote:
> > Package: groff-base
> > Version: 1.23.0-3
> > Severity: normal
> Sorry--I should have included a handy URL for upstream bug-reporting
> self-service.
> https://savannah.gnu.org/bugs/?group=groff&func=additem
I definitely wouldn't have found it.
Forwarded as
https://savannah.gnu.org/bugs/?65101
https://savannah.gnu.org/bugs/?65102
which I hopefully reformatted correctly for the bizarre savannah markup.
I also didn't see a mail field, so I didn't enter an address,
so I won't get notifications for these.
[signature.asc (application/pgp-signature, inline)]
Message sent on
to наб <nabijaczleweli@nabijaczleweli.xyz>:
Bug#1059536.
(Sun, 31 Dec 2023 22:51:03 GMT) (full text, mbox, link).
Message #21 received at 1059536-submitter@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
At 2023-12-31T23:35:27+0100, наб wrote:
> Control: tags -1 + upstream
>
> On Wed, Dec 27, 2023 at 02:00:34PM -0600, G. Branden Robinson wrote:
> > At 2023-12-27T20:21:19+0100, наб wrote:
> > > Package: groff-base
> > > Version: 1.23.0-3
> > > Severity: normal
> > Sorry--I should have included a handy URL for upstream bug-reporting
> > self-service.
> > https://savannah.gnu.org/bugs/?group=groff&func=additem
> I definitely wouldn't have found it.
Admittedly that was kind of a deep link. I was trying to make things
easy. :-O
> Forwarded as
> https://savannah.gnu.org/bugs/?65101
> https://savannah.gnu.org/bugs/?65102
> which I hopefully reformatted correctly for the bizarre savannah
> markup.
I've got them. Thank you!
> I also didn't see a mail field, so I didn't enter an address,
> so I won't get notifications for these.
We can add you to the CC list so you'll get notifications in the future.
And you can create an account with which to file future tickets from the
"New User" link at <https://savannah.gnu.org/>.
Regards,
Branden
[signature.asc (application/pgp-signature, inline)]
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Tue Mar 5 01:17:38 2024;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.