Debian Patches

Status for groff/1.23.0-3

Patch Description Author Forwarded Bugs Origin Last update
bash-scripts.patch The *2graph scripts use $RANDOM, which is bash-specific Colin Watson <cjwatson@debian.org> yes 2018-03-05
nroff-ifs.patch Unset IFS at nroff startup
It's questionable whether we should forward this; as noted in the bug
trail, there's a decent argument that this is a dash bug.
Colin Watson <cjwatson@debian.org> no debian 2018-03-05
doc-gfdl.patch Add GFDL references to manual pages licensed under GFDL Colin Watson <cjwatson@debian.org> not-needed debian 2023-07-08
doc-gzipped.patch Adjust documentation references to account for compression Colin Watson <cjwatson@debian.org> not-needed debian 2023-07-08
extratmacdirs.patch Allow adding a version-independent directory to the macro path
This allows us to put /usr/share/groff/tmac at the end of groff's macro
path in Debian.

This uses GNU-make-specific code, so it may not be forwardable in its
current state. A more upstreamable approach might be to add a --with-*
option to configure.
Colin Watson <cjwatson@debian.org> no 2018-03-05
papersize-config.patch Use /etc/papersize in preference to configure-time selection Colin Watson <cjwatson@debian.org> not-needed 2023-07-09
load-desc-failure.patch Display more helpful output when failing to load a device
If the device is known to be one of the devices in the groff binary package
rather than groff-base, refer the user to that.
Colin Watson <cjwatson@debian.org> not-needed 2023-07-08
mmse-note.patch Note that groff_mmse(7) is only available in Swedish locales Colin Watson <cjwatson@debian.org> no debian 2023-07-08
source-date-epoch-utc.patch Display time from SOURCE_DATE_EPOCH in UTC.
The semantics imposed in 1.23.0 are unsuitable for use with
reproducible-builds harnesses, since those specifically want to vary the
TZ environment variable to shake out other problems in build systems.
However, my patch that Debian has been carrying for a while is
unsuitable for general use, since most people expect the time displayed
in output to use local time.

A viable compromise seems to be to force UTC _only_ when
SOURCE_DATE_EPOCH is set. That will keep reproducible-builds harnesses
working with no extra effort, while also preserving the expected
behaviour for typical users of groff that don't go out of their way to
set that environment variable.

As a bonus, this corrects the behaviour of gropdf when the local offset
from UTC is not a whole number of hours.

* src/include/curtime.h (current_time): Return a `struct tm *`.
Document behaviour.
* src/libs/libgroff/curtime.cpp (current_time): If SOURCE_DATE_EPOCH is
set, return the overridden time after passing it through `gmtime`.
Otherwise, pass the current time through `localtime`.

* src/devices/grohtml/post-html.cpp (html_printer::do_file_components,
html_printer::~html_printer):
* src/devices/grops/ps.cpp (ps_printer::~ps_printer):
* src/roff/troff/input.cpp (init_registers): Adjust to new
`current_time` signature.

* src/devices/gropdf/gropdf.pl: If SOURCE_DATE_EPOCH is set, return the
overridden time after passing it through `gmtime`. Otherwise, pass
the current time through `localtime`.
(PDFDate): Fix output in the case where the local offset from UTC is
not a whole number of hours. (Previously, the minutes offset field
was always set to zero.)

* doc/groff.texi (Environment):
* src/devices/grohtml/grohtml.1.man (Environment):
* src/devices/gropdf/gropdf.1.man (Environment):
* src/devices/grops/grops.1.man (Environment):
* src/roff/groff/groff.1.man (Environment):
* src/roff/troff/troff.1.man (Environment): Update.
Colin Watson <cjwatson@debian.org> no upstream, https://git.savannah.gnu.org/cgit/groff.git/commit/?id=d7bbfb04ea25a82a8597cdef6ebb391cb78ab47c 2023-07-11
doc-default-os-debian.patch Set doc-default-operating-system to "Debian" Colin Watson <cjwatson@debian.org> not-needed debian 2023-07-09
man-hyperlinks.patch Enable OSC 8 hyperlinks for man pages
The version of `less` in Debian stable supports these, provided that
you're also using a suitable terminal emulator.
Colin Watson <cjwatson@debian.org> no 2023-07-11
nroff-map-CW-to-R.patch Map CW to R for nroff Colin Watson <cjwatson@debian.org> no debian 2023-07-14

All known versions for source package 'groff'

Links