summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:44:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:44:09 +0000
commit5e707dc6ca775854c09fef2729e0be1d997399a5 (patch)
treee676fd1b87f19e374fb51d8ee2d47742c8c8c02f
parentAdding upstream version 1.23.0. (diff)
downloadgroff-5e707dc6ca775854c09fef2729e0be1d997399a5.tar.xz
groff-5e707dc6ca775854c09fef2729e0be1d997399a5.zip
Adding debian version 1.23.0-3.debian/1.23.0-3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/.git-dpm12
-rw-r--r--debian/.gitignore9
-rw-r--r--debian/README.Debian37
-rw-r--r--debian/changelog1818
-rw-r--r--debian/clean17
-rw-r--r--debian/control104
-rw-r--r--debian/copyright316
-rw-r--r--debian/groff-base.dirs3
-rw-r--r--debian/groff-base.docs7
-rw-r--r--debian/groff-base.install84
-rw-r--r--debian/groff-base.links7
-rw-r--r--debian/groff-base.mime2
-rw-r--r--debian/groff.dirs3
-rw-r--r--debian/groff.docs1
-rw-r--r--debian/groff.install122
-rw-r--r--debian/groff.links2
-rw-r--r--debian/mandoc.local28
-rw-r--r--debian/patches/bash-scripts.patch45
-rw-r--r--debian/patches/doc-default-os-debian.patch41
-rw-r--r--debian/patches/doc-gfdl.patch163
-rw-r--r--debian/patches/doc-gzipped.patch41
-rw-r--r--debian/patches/extratmacdirs.patch33
-rw-r--r--debian/patches/load-desc-failure.patch42
-rw-r--r--debian/patches/man-hyperlinks.patch47
-rw-r--r--debian/patches/mmse-note.patch71
-rw-r--r--debian/patches/nroff-ifs.patch30
-rw-r--r--debian/patches/nroff-map-CW-to-R.patch40
-rw-r--r--debian/patches/papersize-config.patch98
-rw-r--r--debian/patches/series12
-rw-r--r--debian/patches/source-date-epoch-utc.patch468
-rwxr-xr-xdebian/rules119
-rw-r--r--debian/salsa-ci.yml6
-rw-r--r--debian/source/format1
-rw-r--r--debian/source/lintian-overrides5
-rw-r--r--debian/upstream/metadata4
-rw-r--r--debian/upstream/signing-key.asc52
-rw-r--r--debian/watch9
37 files changed, 3899 insertions, 0 deletions
diff --git a/debian/.git-dpm b/debian/.git-dpm
new file mode 100644
index 0000000..fe40ca3
--- /dev/null
+++ b/debian/.git-dpm
@@ -0,0 +1,12 @@
+# see git-dpm(1) from git-dpm package
+742dfac36f1fd23e17d27dbf83e3793d3f3a063d
+742dfac36f1fd23e17d27dbf83e3793d3f3a063d
+4e2e28947560f0b5e3a7e89d43846b9183fb4c09
+4e2e28947560f0b5e3a7e89d43846b9183fb4c09
+groff_1.23.0.orig.tar.gz
+c18099667889873704f6f953ba501abc014fae85
+7433031
+debianTag="debian/%v"
+patchedTag="patched/%v"
+upstreamTag="upstream/%u"
+signature:fbf11773b8cb8360a1ccc4a2c32630a95e436eb3:833:groff_1.23.0.orig.tar.gz.asc
diff --git a/debian/.gitignore b/debian/.gitignore
new file mode 100644
index 0000000..4136d42
--- /dev/null
+++ b/debian/.gitignore
@@ -0,0 +1,9 @@
+/*.debhelper*
+/*.substvars
+/autoreconf.*
+/build
+/doc-save
+/files
+/groff
+/groff-base
+/tmp
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..8908f70
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,37 @@
+groff for Debian
+----------------
+
+As of version 1.17-1, Debian groff was split into three packages:
+groff-base, groff, and groff-x11. At version 1.18-1 the groff-x11 package
+was merged back into groff. The current organization is as follows:
+
+ groff-base - a stripped-down groff package containing the components
+ required to read man pages in ASCII, Latin-1, UTF-8, and
+ PostScript
+ groff - all other components
+
+If you only need groff in order to read man pages in common formats, you can
+remove the main groff package and save some disk space. For more
+information, please see 'dpkg --print-avail <package>' or 'apt-cache show
+<package>'.
+
+If you see error messages like "groff: can't find `DESC' file", make sure
+that you have the groff package installed as well as groff-base, as this
+message indicates that the requested output device is not installed.
+
+Where is the groff documentation? It's not easy to find when you're
+unfamiliar with the system (as I well remember). The 'SEE ALSO' section of
+the roff(7) man page has a good index.
+
+The macro path in Debian groff is as follows:
+
+ /usr/lib/groff/site-tmac
+ - old directory for compatibility purposes
+ /usr/share/groff/site-tmac (symlink to /etc/groff)
+ - local macro configuration, such as man.local
+ /usr/share/groff/<version>/tmac
+ - macros installed as part of groff
+ /usr/share/groff/tmac
+ - macros installed by other Debian packages
+
+ -- Colin Watson <cjwatson@debian.org> Sun, 07 Apr 2013 21:51:24 +0100
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..9db676f
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,1818 @@
+groff (1.23.0-3) unstable; urgency=medium
+
+ [ G. Branden Robinson ]
+ * debian/groff-base.mime: Run groff with '-t' to unconditionally preprocess
+ with tbl(1). Since these MIME types are assumed to be man pages anyway
+ (hence the existing '-mandoc' option), it costs little to do this and will
+ help many more documents render well.
+
+ [ Colin Watson ]
+ * Map "-", "'", and "`" to "\-", "\[aq]", and "\[ga]" again for UTF-8
+ manual pages (closes: #1041731).
+
+ -- Colin Watson <cjwatson@debian.org> Mon, 16 Oct 2023 12:11:07 +0100
+
+groff (1.23.0-2) unstable; urgency=medium
+
+ * Map CW to R for nroff (closes: #1040975).
+
+ -- Colin Watson <cjwatson@debian.org> Fri, 14 Jul 2023 17:44:41 +0100
+
+groff (1.23.0-1) unstable; urgency=medium
+
+ * New upstream release (closes: #1040440):
+ - [libdriver]: Fix SEGV in printer::set_ascii_char (closes: #421437).
+ - [docs]: groff(7): Replace many uses of \[cq] with \[aq] when the
+ latter is what is meant (closes: #551111).
+ - [docs]: groff(7): Fix missing escape synonyms for '.ft' (closes:
+ #1021961).
+ - [tbl]: Regularize diagnostics (closes: #710178).
+ - [troff]: Avoid infinite loop (closes: #892423).
+ - [docs]: roff(7): Revise language referring to Emacs as the "best"
+ program for editing roff documents (closes: #248529).
+ - [mdoc]: Fix infinite loop (closes: #411227).
+ - [mdoc]: Fix bad page number placement (closes: #919890).
+ - [mdoc]: Improve output of .At 32v (closes: #991633).
+ - [libbib]: Validate input to avoid heap overread (closes: #716109).
+ - [fonts]: Fix \[oq] and \[cq] in X11 text fonts (closes: #243238).
+ - [gropdf]: Recognize "com10" paper format (closes: #1009248).
+ - [docs]: Document grotty pager requirements more prominently (closes:
+ #257413).
+ - [docs]: pic(1): Fix content nits, including no longer referring to
+ pic.ms (closes: #1032227).
+ - [tmac]: Define fallbacks for chars in Latin-[259] (closes: #782903).
+ - [mdoc]: Drop thin and hair space escape sequences from several string
+ definitions (closes: #1021795).
+ - [mdoc]: Indent entire subsection heading by 3 ens, even if it breaks
+ across output lines (closes: #1022179).
+ * Build-depend on m4, texlive-base, and texlive-latex-base (closes:
+ #1011666).
+ * Override Lintian source-is-missing misfire (see #1019980).
+ * Drop mapping of \(oq to ' on devices other than utf8; upstream does this
+ now for latin1, which is probably good enough.
+ * Adopt upstream's use of SGR escape sequences for man/mdoc (LP: #610609).
+ I turned these off for Debian in 2002 because pagers didn't cope well at
+ the time, but it's now 21 years later and things have changed; SGR
+ escape sequences resolve some ambiguity (see #963490) and are required
+ for new features such as clickable hyperlinks.
+ * Honour /etc/papersize in PDF output, now that gropdf has the necessary
+ support upstream (closes: #1030097).
+ * Set doc-default-operating-system to "Debian" (closes: #284002).
+ * Map "^" to "\[ha]" and "~" to "\[ti]" for man/mdoc on the utf8 device,
+ to mitigate an upstream change likely to expose many glyph usage errors
+ in manual pages (although those errors were already visible in PDF
+ output).
+ * Arrange to rebuild documentation from the original source.
+ * Install groff.pdf (the PDF form of groff's Texinfo manual).
+ * Only force time display to UTC when the time came from SOURCE_DATE_EPOCH
+ (LP: #1908333).
+ * Enable OSC 8 hyperlinks for man pages.
+
+ -- Colin Watson <cjwatson@debian.org> Thu, 13 Jul 2023 05:30:17 +0100
+
+groff (1.22.4-10) unstable; urgency=medium
+
+ [ Colin Watson ]
+ * Set upstream metadata fields: Repository-Browse.
+
+ [ G. Branden Robinson ]
+ * debian/patches/add-groff-1.23-forward-compatibility.patch: Prevent
+ formatter warnings and dropped man(7) document text when encountering
+ documents written using new features of groff 1.23.
+
+ -- Colin Watson <cjwatson@debian.org> Tue, 07 Mar 2023 09:38:03 +0000
+
+groff (1.22.4-9) unstable; urgency=medium
+
+ * Remove dh_missing override, no longer needed with debhelper v13.
+ * Simplify a debhelper override slightly.
+ * Update Lintian override to current syntax.
+
+ -- Colin Watson <cjwatson@debian.org> Tue, 15 Nov 2022 15:30:39 +0000
+
+groff (1.22.4-8) unstable; urgency=medium
+
+ [ Debian Janitor ]
+ * Remove constraints unnecessary since buster:
+ + Build-Depends: Drop versioned constraint on bison, dpkg-dev and texinfo.
+ + groff-base: Drop versioned constraint on groff in Replaces.
+ + groff-base: Drop versioned constraint on groff, pmake and troffcvt in
+ Breaks.
+ + groff: Drop versioned constraint on groff-base in Replaces.
+
+ [ Colin Watson ]
+ * Remove ancient Breaks/Replaces on jgroff and groff-x11.
+ * Upgrade to debhelper v13 (dh-exec is no longer needed).
+ * debian/watch: Upgrade to version 4.
+ * debian/upstream/signing-key.asc: Minimize exported keys.
+ * Cherry-pick from upstream:
+ - Clamp negative tab stop positions to 0 (closes: #990406).
+
+ -- Colin Watson <cjwatson@debian.org> Sun, 26 Dec 2021 15:12:27 +0000
+
+groff (1.22.4-7) unstable; urgency=medium
+
+ * Cherry-pick from upstream:
+ - Fix SEGV arising from recursing destructor (LP: #1942974).
+
+ -- Colin Watson <cjwatson@debian.org> Thu, 09 Sep 2021 18:20:47 +0100
+
+groff (1.22.4-6) unstable; urgency=medium
+
+ [ Colin Watson ]
+ * Document Debian-specific man/mdoc SGR defaults in grotty(1) (closes:
+ #963490).
+
+ [ Helmut Grohne ]
+ * Annotate Build-Depends: poppler-utils <!nocheck> (closes: #981160).
+
+ -- Colin Watson <cjwatson@debian.org> Wed, 27 Jan 2021 09:42:45 +0000
+
+groff (1.22.4-5) unstable; urgency=medium
+
+ [ Debian Janitor ]
+ * Set upstream metadata fields: Repository, Repository-Browse.
+
+ [ Vagrant Cascadian ]
+ * Ensure reproducible builds regardless of usrmerge (closes: #949324).
+
+ -- Colin Watson <cjwatson@debian.org> Wed, 06 May 2020 09:24:11 +0100
+
+groff (1.22.4-4) unstable; urgency=medium
+
+ [ Colin Watson ]
+ * Use debhelper-compat instead of debian/compat.
+ * Cherry-pick from upstream:
+ - Correctly handle groff_mdoc(7) .Lk arguments starting with a dot
+ (closes: #946868).
+ - Update NetBSD, OpenBSD, FreeBSD, Darwin, and DragonFly version strings
+ (closes: #867123).
+
+ [ Debian Janitor ]
+ * Trim trailing whitespace.
+ * Bump debhelper from old 9 to 12.
+ * Set upstream metadata fields: Bug-Submit (from ./configure), Name
+ (from ./configure), Repository.
+ * Drop unnecessary dependency on dh-autoreconf.
+ * Drop unnecessary dh arguments: --parallel
+ * Rely on pre-initialized dpkg-architecture variables.
+
+ -- Colin Watson <cjwatson@debian.org> Mon, 23 Dec 2019 22:38:19 +0000
+
+groff (1.22.4-3) unstable; urgency=medium
+
+ * Avoid Perl's unsafe "<>" operator (closes: #920269).
+
+ -- Colin Watson <cjwatson@debian.org> Thu, 28 Feb 2019 19:44:28 +0000
+
+groff (1.22.4-2) unstable; urgency=medium
+
+ [ Helmut Grohne ]
+ * Fix FTCBFS: Update build-native paths to new layout (closes: #917779).
+
+ -- Colin Watson <cjwatson@debian.org> Fri, 04 Jan 2019 19:13:49 +0000
+
+groff (1.22.4-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Colin Watson <cjwatson@debian.org> Sun, 23 Dec 2018 23:35:24 +0000
+
+groff (1.22.4~rc5-1) experimental; urgency=medium
+
+ * New upstream release candidate.
+ * Drop papersize-pre-html.patch: the "printing" operation here is only for
+ the purpose of extracting images, so all that matters is that the paper
+ size be consistent across the various tools that are invoked.
+
+ -- Colin Watson <cjwatson@debian.org> Thu, 20 Dec 2018 12:55:46 +0000
+
+groff (1.22.4~rc4-1) experimental; urgency=medium
+
+ * New upstream release candidate.
+ * Build-depend on gsfonts, so that devpdf's U-* fonts are generated.
+ * Build-depend on poppler-utils, so that the new tests of mom examples
+ work.
+
+ -- Colin Watson <cjwatson@debian.org> Sat, 01 Dec 2018 01:27:42 +0000
+
+groff (1.22.4~rc3-1) experimental; urgency=medium
+
+ [ Ondřej Nový ]
+ * d/changelog: Remove trailing whitespaces
+ * d/control: Remove trailing whitespaces
+
+ [ Colin Watson ]
+ * Adjust Vcs-* headers to reflect experimental branch.
+ * Add GitLab CI configuration.
+ * Adjust git-dpm tagging configuration.
+ * Add alpha.gnu.org to debian/watch, for pre-releases.
+ * New upstream release candidate.
+
+ -- Colin Watson <cjwatson@debian.org> Wed, 07 Nov 2018 11:09:18 +0000
+
+groff (1.22.4~rc2-3) experimental; urgency=medium
+
+ * Restore text versions of meintro.ps, meref.ps, and pic.ps, broken in
+ 1.22.3.rc1-1.
+ * Remove debian/groff.info; upstream's build system installs these files
+ by itself now.
+ * Use #! /usr/bin/perl for all installed Perl scripts, per policy 10.4.
+ * Remove dh_builddeb override to force gzip compression for groff-base;
+ most of the rest of the debootstrap-installed set needs xz nowadays so
+ that ship has sailed.
+
+ -- Colin Watson <cjwatson@debian.org> Sat, 03 Nov 2018 13:20:36 +0000
+
+groff (1.22.4~rc2-2) experimental; urgency=medium
+
+ * Move pdfpic.tmac to groff-base, since troffrc reads it.
+
+ -- Colin Watson <cjwatson@debian.org> Sat, 14 Apr 2018 18:30:52 +0100
+
+groff (1.22.4~rc2-1) experimental; urgency=medium
+
+ * New upstream release candidate.
+
+ -- Colin Watson <cjwatson@debian.org> Thu, 29 Mar 2018 10:48:04 +0100
+
+groff (1.22.3.rc1-1) experimental; urgency=medium
+
+ * New upstream release candidate.
+ * Switch debian/watch to HTTPS.
+ * Add signing key of new upstream maintainer (Bertrand Garrigues) to
+ debian/upstream/signing-key.asc.
+
+ -- Colin Watson <cjwatson@debian.org> Fri, 09 Mar 2018 23:11:38 +0000
+
+groff (1.22.3-10) unstable; urgency=medium
+
+ * Set Rules-Requires-Root: no.
+ * Remove "touch configure" from dh_auto_build override, which predated the
+ use of dh-autoreconf.
+ * Move VCS to salsa.debian.org.
+
+ -- Colin Watson <cjwatson@debian.org> Sat, 10 Feb 2018 02:09:07 +0000
+
+groff (1.22.3-9) unstable; urgency=medium
+
+ * debian/watch: Switch URL scheme to HTTP.
+ * Policy version 3.9.8: no changes required.
+ * Backport from upstream:
+ - tmac/zh.tmac: New file to support basic Chinese, both simplified and
+ traditional (closes: #848030).
+ * Install zh.tmac in groff-base.
+
+ -- Colin Watson <cjwatson@debian.org> Tue, 13 Dec 2016 13:06:22 +0000
+
+groff (1.22.3-8) unstable; urgency=medium
+
+ * Map "\-" to a plain hyphen when rendering HTML/XHTML output for manual
+ pages (closes: #829332).
+
+ -- Colin Watson <cjwatson@debian.org> Sat, 02 Jul 2016 21:04:05 +0100
+
+groff (1.22.3-7) unstable; urgency=medium
+
+ * Set build flags appropriately for the build architecture during the
+ native build pass (based loosely on a patch from Balint Reczey, for
+ which thanks; closes: #812872).
+ * Remove debian/build-native/ on clean.
+
+ -- Colin Watson <cjwatson@debian.org> Thu, 28 Jan 2016 14:57:16 +0000
+
+groff (1.22.3-6) unstable; urgency=medium
+
+ * Override dh-exec-subst-unknown-variable Lintian tags, which are false
+ positives.
+ * Use HTTPS for Vcs-* URLs.
+
+ -- Colin Watson <cjwatson@debian.org> Wed, 27 Jan 2016 11:49:56 +0000
+
+groff (1.22.3-5) unstable; urgency=medium
+
+ * Drop obsolete build-dependency on xutils-dev.
+ * Remove no-groff-x11 bootstrapping hack. If anything like this is still
+ needed, it should be reimplemented using build profiles, but since groff
+ can be installed from a foreign architecture using multiarch I believe
+ that this is now unnecessary.
+ * Upgrade to debhelper v9, using dh-exec.
+ * Build with large file support.
+ * Remove long-obsolete maintainer script file migration code from 2001.
+
+ -- Colin Watson <cjwatson@debian.org> Sat, 02 Jan 2016 18:09:43 +0000
+
+groff (1.22.3-4) unstable; urgency=medium
+
+ * Fix incorrect display-UTC-time patch to gropdf (closes: #805374).
+
+ -- Colin Watson <cjwatson@debian.org> Tue, 17 Nov 2015 13:45:10 +0000
+
+groff (1.22.3-3) unstable; urgency=medium
+
+ * Add SOURCE_DATE_EPOCH support to mdate.sh, and restore upstream code
+ there to force the C locale.
+ * Use gmtime in mdate.sh.
+ * Remove unnecessary randomness from hdtbl example output.
+ * Always use UTC times for display.
+ * Sort Perl hash keys.
+ * Build with LC_ALL=C.UTF-8. To some extent this is a cop-out as other
+ packages using groff may still need to do similarly; I believe the
+ remaining important place where groff is character-set-sensitive in a
+ way that affects reproducibility of output is in the HTML postprocessor,
+ which sometimes inserts spaces in UTF-8 locales but not (for example) in
+ ASCII locales.
+
+ -- Colin Watson <cjwatson@debian.org> Fri, 06 Nov 2015 13:14:24 +0000
+
+groff (1.22.3-2) unstable; urgency=medium
+
+ * Explicitly compile with -std=gnu++98, to avoid potential future problems
+ with GCC 6 defaulting to a newer standard.
+ * Implement SOURCE_DATE_EPOCH for reproducible builds (closes: #762854).
+
+ -- Colin Watson <cjwatson@debian.org> Thu, 05 Nov 2015 11:51:53 +0000
+
+groff (1.22.3-1) unstable; urgency=medium
+
+ * New upstream release.
+ * debian/groff-base.mime: Handle text/troff as well as
+ application/x-troff-man.
+ * Policy version 3.9.6: no changes required.
+ * Add OpenPGP signature checking configuration to watch file.
+
+ -- Colin Watson <cjwatson@debian.org> Wed, 05 Nov 2014 22:07:25 +0000
+
+groff (1.22.2-8) unstable; urgency=medium
+
+ * Update Vcs-Browser URL yet again.
+
+ -- Colin Watson <cjwatson@debian.org> Thu, 04 Sep 2014 17:50:22 +0100
+
+groff (1.22.2-7) unstable; urgency=medium
+
+ * Simplify debian/rules slightly to avoid hardcoding the list of targets
+ that dh(1) understands.
+ * Update Vcs-Browser URL for alioth cgit.
+ * Build with all hardening options.
+
+ -- Colin Watson <cjwatson@debian.org> Sun, 31 Aug 2014 03:51:26 +0100
+
+groff (1.22.2-6) unstable; urgency=medium
+
+ * Note that groff_mmse(7) is only available in Swedish locales (closes:
+ #710431).
+ * Describe \- as a minus sign rather than a dash in /etc/groff/man.local
+ and /etc/groff/mdoc.local (thanks, Bjarni Ingi Gislason; closes:
+ #742086).
+ * Adjust debian/source/lintian-overrides to match Lintian's current output
+ correctly.
+
+ -- Colin Watson <cjwatson@debian.org> Mon, 30 Jun 2014 03:09:27 +0100
+
+groff (1.22.2-5) unstable; urgency=medium
+
+ * Remove the W3C validation icons from generated HTML, to avoid tracking.
+ * Policy version 3.9.5: no changes required.
+ * Remove "debian/rules quilt-setup" target, obsoleted by git-dpm.
+
+ -- Colin Watson <cjwatson@debian.org> Wed, 22 Jan 2014 09:55:32 +0000
+
+groff (1.22.2-4) unstable; urgency=low
+
+ * Move debian/source.lintian-overrides to preferred location of
+ debian/source/lintian-overrides.
+ * Use 'set -e' rather than '#! /bin/sh -e' in maintainer scripts.
+ * Fix bad Texinfo markup for \z escape.
+ * Fix grolbp crash if a printer was never created (thanks, Mayhem team at
+ CMU; closes: #716003).
+ * Force gzip compression for groff-base.deb, to avoid causing problems for
+ debootstrap on non-Debian-based systems following dpkg 1.17.0.
+ * Switch to git; adjust Vcs-* fields.
+ * Add support for various new BSD versions (thanks, Guillem Jover; closes:
+ #717608).
+
+ -- Colin Watson <cjwatson@debian.org> Wed, 08 Jan 2014 02:22:41 +0000
+
+groff (1.22.2-3) unstable; urgency=low
+
+ [ Colin Watson ]
+ * Override license-problem-gfdl-invariants Lintian errors; these files are
+ dual-licensed (closes: #708944).
+
+ [ Daniel Schepler ]
+ * Stop dh_install failing in DEB_BUILD_OPTIONS=no-groff-x11 bootstrap
+ builds (closes: #709816).
+
+ -- Colin Watson <cjwatson@debian.org> Mon, 27 May 2013 23:09:35 +0100
+
+groff (1.22.2-2) unstable; urgency=low
+
+ * Update /etc/groff/man.local and /etc/groff/mdoc.local with new
+ commented-out code to force "-" back to Unicode HYPHEN, since upstream
+ groff has mapped this to HYPHEN-MINUS since 1.20, and remove the
+ Debian-local mapping of "\-" for the same reason. Remove mention of
+ this from README.Debian since the upstream change of default means that
+ this is only of minority interest (closes: #703690).
+
+ -- Colin Watson <cjwatson@debian.org> Sun, 07 Apr 2013 22:14:00 +0100
+
+groff (1.22.2-1) unstable; urgency=low
+
+ * New upstream release.
+ * Note in the groff package description that the chem preprocessor
+ requires perl.
+
+ -- Colin Watson <cjwatson@debian.org> Mon, 11 Mar 2013 08:36:01 +0000
+
+groff (1.22.1-3) unstable; urgency=low
+
+ * When cross-building, unset CONFIG_SITE for the native build pass.
+ * Support parallel builds.
+
+ -- Colin Watson <cjwatson@debian.org> Sat, 09 Feb 2013 12:01:18 +0000
+
+groff (1.22.1-2) unstable; urgency=low
+
+ * Fix mom-pdf.pdf symlink broken by compression (closes: #697678).
+
+ -- Colin Watson <cjwatson@debian.org> Tue, 08 Jan 2013 12:09:43 +0000
+
+groff (1.22.1-1) unstable; urgency=low
+
+ * New upstream release (LP: #1095075).
+ * Use xz compression for binary packages.
+ * Use 'dh $@ --options' rather than 'dh --options $@', for
+ forward-compatibility with debhelper v8.
+ * Use dh-autoreconf.
+ * Change Homepage from http://groff.ffii.org/ to
+ https://www.gnu.org/software/groff/. Suggested by Bernd Warken.
+ * Don't compress *.mom examples. They're not all that large, and this
+ allows dropping a manual page patch against upstream.
+ * Recommend perl for gropdf.
+
+ -- Colin Watson <cjwatson@debian.org> Mon, 07 Jan 2013 16:26:07 +0000
+
+groff (1.21-9) unstable; urgency=low
+
+ * Pass build flags in a few more places (based on a patch from Simon
+ Ruderich; closes: #653852).
+
+ -- Colin Watson <cjwatson@debian.org> Mon, 25 Jun 2012 01:32:46 +0100
+
+groff (1.21-8) unstable; urgency=low
+
+ * Use dpkg-buildflags to enable hardening options (based on a patch from
+ Moritz Muehlenhoff; closes: #653852).
+ * Adjust paths in groff_mom(7) (closes: #611904).
+
+ -- Colin Watson <cjwatson@debian.org> Fri, 22 Jun 2012 13:11:24 +0100
+
+groff (1.21-7) unstable; urgency=low
+
+ * Make groff-base and groff Multi-Arch: foreign.
+ * Support cross-building.
+
+ -- Colin Watson <cjwatson@debian.org> Sun, 01 Apr 2012 02:00:26 +0100
+
+groff (1.21-6) unstable; urgency=low
+
+ * Add mdoc support for various BSD versions (thanks, Guillem Jover;
+ closes: #629159).
+
+ -- Colin Watson <cjwatson@debian.org> Mon, 06 Jun 2011 12:09:05 +0100
+
+groff (1.21-5) unstable; urgency=low
+
+ * Fix -mm .RD macro to use .if rather than .ie (thanks, James Avera;
+ LP: #738169).
+
+ -- Colin Watson <cjwatson@debian.org> Sat, 19 Mar 2011 22:48:00 +0000
+
+groff (1.21-4) unstable; urgency=low
+
+ * Upload to unstable.
+
+ -- Colin Watson <cjwatson@debian.org> Tue, 08 Feb 2011 10:29:38 +0000
+
+groff (1.21-3) experimental; urgency=low
+
+ * Go back to installing groff.info from the source directory, not the
+ build directory; timestamps are such that make won't rebuild it (closes:
+ #609459).
+
+ -- Colin Watson <cjwatson@debian.org> Tue, 11 Jan 2011 03:37:52 +0000
+
+groff (1.21-2) experimental; urgency=low
+
+ * Build-depend on texinfo (closes: #609459).
+ * Only emit a single backspace for bold/underline in no-SGR mode.
+
+ -- Colin Watson <cjwatson@debian.org> Mon, 10 Jan 2011 19:48:58 +0000
+
+groff (1.21-1) experimental; urgency=low
+
+ * New upstream release:
+ - New warning category 'file'. (man-db uses this as part of
+ automatically enabling language-specific hyphenation rules, which
+ should now work.)
+ - CJK line-breaking and hyphenation support (closes: #552201).
+ - Fix typo in groff_man(7) (closes: #369254).
+ - Fix typo in "Character Translations" info node (closes: #450434).
+ - Fix white heart and diamond Unicode values in groff_char(7) (closes:
+ #540477).
+ - Point to troff(1) for -w and -W in groff(1) (closes: #545807).
+ * Document reasons for groff's Recommends in its package description
+ (closes: #599648).
+ * Switch build-dependency from byacc to bison, as that's what was used to
+ generate the parsers in the 1.21 release.
+ * Force YACC='bison -y' when configuring, to avoid problems if byacc is
+ also installed.
+ * Use a separate build directory, eliminating the requirement to preserve
+ some files by hand.
+ * Policy version 3.9.1:
+ - Rename debian/README.build to debian/README.source.
+ - Add a Homepage field.
+ - Refer to /usr/share/common-licenses/GFDL-1.3 in debian/copyright
+ rather than quoting it (although the GPL v3 governs this package, as
+ explained in detail in debian/copyright).
+ - Use Breaks rather than Conflicts.
+
+ -- Colin Watson <cjwatson@debian.org> Sun, 09 Jan 2011 13:15:30 +0000
+
+groff (1.20.1-10) unstable; urgency=low
+
+ * Handle ditroff command `Dt' without argument gracefully (closes:
+ #579890).
+
+ -- Colin Watson <cjwatson@debian.org> Sun, 09 May 2010 12:57:58 +0100
+
+groff (1.20.1-9) unstable; urgency=low
+
+ * Convert to source format 3.0 (quilt).
+ * Add a 'quilt-setup' target to debian/rules for the benefit of those
+ checking out the package from revision control.
+ * All patches are now maintained separately and tagged according to DEP-3.
+
+ -- Colin Watson <cjwatson@debian.org> Mon, 01 Mar 2010 19:50:42 +0000
+
+groff (1.20.1-8) unstable; urgency=low
+
+ * Add a watch file.
+ * Add mdoc support for FreeBSD 7.2, 7.3, 8.0, and IEEE Std 1003.1-2008.
+
+ -- Colin Watson <cjwatson@debian.org> Mon, 22 Feb 2010 10:08:09 +0000
+
+groff (1.20.1-7) unstable; urgency=low
+
+ * Use /bin/bash for grap2graph due to use of $RANDOM, as for eqn2graph and
+ pic2graph.
+ * Fix some unnecessary bashisms in gdiffmk (closes: #547750).
+ * Use 'dh_installdocs --link-doc' option from debhelper 7.4.2.
+ * Use POSIX-compliant 'trap' syntax (closes: #256226; the other problems
+ identified in this bug were fixed some time ago).
+ * Honour /etc/papersize in DVI output.
+ * Remove contrib/pdfmark/groff-pdfroff.* on clean.
+ * Preserve src/preproc/eqn/eqn.cpp, src/preproc/eqn/eqn_tab.h,
+ src/preproc/pic/pic.cpp, src/preproc/pic/pic_tab.h, and
+ src/preproc/refer/label.cpp, and restore them after running 'make
+ realclean' to avoid a large diff.
+
+ -- Colin Watson <cjwatson@debian.org> Fri, 19 Feb 2010 23:37:25 +0000
+
+groff (1.20.1-6) unstable; urgency=low
+
+ * Use dh_auto_install and dh_install.
+ * Convert to dh(1).
+ * Make /usr/share/groff/1.20.1/font/devlj4/generate/special.awk
+ executable.
+ * Move europs.tmac to groff-base (closes: #546844).
+
+ -- Colin Watson <cjwatson@debian.org> Wed, 16 Sep 2009 09:51:21 +0100
+
+groff (1.20.1-5) unstable; urgency=low
+
+ * Upgrade to debhelper v7. (There's still lots of complexity here, so no
+ dh(1).)
+ * Remove Fumitoshi UKAI from Uploaders, with thanks for his previous work.
+ Just shout if you want to be added back (closes: #541019).
+ * Unset IFS at nroff startup (closes: #541621).
+ * Patch from Openwall to fix temporary file handling vulnerabilities in
+ pdfroff (closes: #538330).
+ * Use -dSAFER when calling gs from pdfroff (thanks, brian m. carlson;
+ closes: #538338).
+
+ -- Colin Watson <cjwatson@debian.org> Sat, 15 Aug 2009 09:01:47 +0100
+
+groff (1.20.1-4) unstable; urgency=low
+
+ * Move devtag.tmac and papersize.tmac to groff-base (thanks, Niko Tyni;
+ closes: #537767).
+
+ -- Colin Watson <cjwatson@debian.org> Tue, 21 Jul 2009 06:01:02 +0100
+
+groff (1.20.1-3) unstable; urgency=low
+
+ * Tell 'make' (as well as 'make install') about docdir, so that it gets
+ substituted properly into manual pages.
+ * Adjust pic(1) and pdfroff(1) references to account for compression
+ (closes: #498356).
+ * Backport from upstream, fixing "bad character definition" warnings:
+ - tmac/doc.tmac: Call `ec' before mapping characters.
+
+ -- Colin Watson <cjwatson@debian.org> Mon, 20 Jul 2009 10:11:43 +0100
+
+groff (1.20.1-2) unstable; urgency=low
+
+ * Make sure /usr/share/groff/current is only in groff-base, not also in
+ groff (closes: #537667).
+ * Bump groff-base Replaces: groff version to include 1.20.1-1, just in
+ case the above bug confused some dpkg databases into believing that
+ /usr/share/groff/current is owned by groff.
+
+ -- Colin Watson <cjwatson@debian.org> Mon, 20 Jul 2009 08:26:22 +0100
+
+groff (1.20.1-1) unstable; urgency=low
+
+ * New upstream release (closes: #196762, #415754). See the NEWS file for
+ full details of improvements, to which I can't do justice here, but
+ items relevant to Debian bug reports include:
+ - Unicode input support has been very much improved, including a new
+ 'preconv' preprocessor which converts various input encodings to
+ something groff can understand directly (closes: #322760), which also
+ allows us to avoid the old and rather broken ascii8 device (closes:
+ #533778); support for composite glyphs; and localisation files for
+ several languages.
+ - mdoc .Dt now allows overriding the volume name (closes: #176575).
+ - Backquote formatting fixed in groff(1) (closes: #184603).
+ - HTML output much improved, including a DOCTYPE (closes: #190209).
+ - \[an] is now U+23AF, not U+2500 (closes: #382265).
+ - rs/rq typo fixed in groff(7) (closes: #402854).
+ - pic now supports up to 32 macro arguments, and ignores further
+ arguments rather than crashing (closes: #453260).
+ * Dropped multibyte patch. CJK is partially supported by way of Unicode
+ input, but widths are wrong and proper line breaking is not implemented;
+ this is planned to be added by way of "character classes". However, I
+ can't justify holding new groff code out of Debian any longer when CJK
+ manual pages can more or less be read with the new release.
+ * Since the M and G fonts no longer exist:
+ - \f5 and \f6 no longer break (closes: #227091);
+ - We no longer get spurious devdvi font errors (closes: #194041);
+ - We no longer fail to italicise or underline CJK text (closes:
+ #288382).
+ - Angle brackets around URLs no longer have broken widths (closes:
+ #522323).
+ * Add localisation macro files to groff-base.
+ * Adjust #! line of font/devlj4/generate/special.awk; awk is in
+ /usr/bin/awk on Debian, not /bin/awk.
+ * Add preconv to groff-base.
+ * Imported into a branch on bzr.debian.org; add Vcs-Bzr control field.
+
+ -- Colin Watson <cjwatson@debian.org> Sun, 19 Jul 2009 23:06:42 +0100
+
+groff (1.18.1.1-22) unstable; urgency=low
+
+ * Fix bug number for groffer fix in previous changelog entry.
+ * If the ascii8 device is used, pass through the input encoding even if
+ LC_CTYPE=C (closes: #519367).
+ * Build-depend on and recommend ghostscript rather than the obsolete
+ package gs.
+
+ -- Colin Watson <cjwatson@debian.org> Thu, 12 Mar 2009 10:48:01 +0000
+
+groff (1.18.1.1-21) unstable; urgency=low
+
+ * Build-depend on xutils-dev rather than xutils (thanks, Daniel Schepler;
+ closes: #485203).
+ * Update DEB_BUILD_OPTIONS parsing code from policy 3.8.0.
+ * Build-depend on x11proto-core-dev rather than x-dev (thanks, Lintian).
+ * Use /bin/bash for eqn2graph and pic2graph due to use of $RANDOM, even
+ though that's only a fallback in case mktemp fails (closes: #489604).
+ * Display more helpful output if a device was not found but is known to be
+ one of the devices in the groff binary package rather than groff-base.
+ * Define .PS and .PE to empty strings in pic output to inhibit -wmac
+ warnings (closes: #495713); similarly, define .EQ and .EN to empty
+ strings in eqn output.
+ * Add information to debian/copyright (a file from newer groff releases
+ and a clarifying e-mail) noting that upstream has relicensed the groff
+ documentation under the terms of the GPL (closes: #374569).
+ * Remove some fallback constructs from groffer that aren't necessary with
+ POSIX shells and that break dash (closes: #454902).
+
+ -- Colin Watson <cjwatson@debian.org> Tue, 26 Aug 2008 09:27:51 +0100
+
+groff (1.18.1.1-20) unstable; urgency=low
+
+ * Fix handling of properties of characters in the range 128-255 (closes:
+ #199422).
+
+ -- Colin Watson <cjwatson@debian.org> Sun, 30 Mar 2008 17:29:05 +0100
+
+groff (1.18.1.1-19) unstable; urgency=low
+
+ * Add an-ext.tmac to groff-base (closes: #470729).
+
+ -- Colin Watson <cjwatson@debian.org> Thu, 13 Mar 2008 10:28:58 +0000
+
+groff (1.18.1.1-18) unstable; urgency=low
+
+ * Backport from upstream:
+ - Add an-ext.tmac, containing extension macros for -man such as UR/UE
+ and MT/ME; load it from an-old.tmac. This file is under a very liberal
+ licence, and manual page authors should copy any macros they use from
+ it to the preamble of their manual pages in order to ensure
+ portability to older groff and other manual page viewers (closes:
+ #470469).
+
+ -- Colin Watson <cjwatson@debian.org> Wed, 12 Mar 2008 12:29:03 +0000
+
+groff (1.18.1.1-17) unstable; urgency=low
+
+ * Backport from upstream:
+ - Make the mdoc .In macro parsed and callable. If not in the synopsis,
+ represent the C header file enclosed in angle brackets (closes:
+ #466614).
+
+ -- Colin Watson <cjwatson@debian.org> Mon, 25 Feb 2008 09:29:46 +0000
+
+groff (1.18.1.1-16) unstable; urgency=low
+
+ * Install groff_mmse(7) under /usr/share/man/sv/ (LP: #76255).
+ * Add Korean support to devutf8 (thanks, Hansun Lee; LP: #176899).
+
+ -- Colin Watson <cjwatson@debian.org> Sun, 27 Jan 2008 22:41:37 +0000
+
+groff (1.18.1.1-15) unstable; urgency=low
+
+ [ Forest Bond ]
+ * debian/groff-base.mime: Use the utf8 device by default, as most modern
+ systems use UTF-8 by default nowadays (LP: #174297).
+
+ [ Colin Watson ]
+ * Make nroff wrapper accept -w and -W options and pass them to groff to
+ enable and disable warnings.
+
+ -- Colin Watson <cjwatson@debian.org> Thu, 06 Dec 2007 19:12:14 +0000
+
+groff (1.18.1.1-14) unstable; urgency=low
+
+ * Use autotools-dev's recommended ./configure --build and --host options.
+ * Update FSF address in debian/copyright.
+
+ -- Colin Watson <cjwatson@debian.org> Sat, 17 Nov 2007 20:16:53 +0000
+
+groff (1.18.1.1-13) unstable; urgency=low
+
+ * Add (untested) support for the BIG5-HKSCS encoding used by zh_HK.
+ * Backport from upstream:
+ - src/devices/grolbp/lbp.cc: Don't define _GNU_SOURCE (closes: #441534).
+ * Make groff binary-NMU-safe by using ${binary:Version} rather than
+ ${Source-Version}.
+ * Don't ignore 'make realclean' or 'make extraclean' errors other than
+ missing Makefiles.
+
+ -- Colin Watson <cjwatson@debian.org> Wed, 12 Sep 2007 10:39:13 +0000
+
+groff (1.18.1.1-12) unstable; urgency=low
+
+ * src/devices/grohtml/post-html.cc: Remove extra qualification on
+ char_block constructor (closes: #356248).
+
+ -- Colin Watson <cjwatson@debian.org> Mon, 17 Apr 2006 12:05:51 +0100
+
+groff (1.18.1.1-11) unstable; urgency=low
+
+ * Build-depend on x-dev, libx11-dev, libxmu-dev, and libxt-dev rather than
+ the transitional xlibs-dev package.
+ * Use debhelper v4.
+
+ -- Colin Watson <cjwatson@debian.org> Fri, 16 Dec 2005 13:28:09 +0000
+
+groff (1.18.1.1-10) unstable; urgency=low
+
+ * Configure gxditview with 'xmkmf -DBuildXaw=NO' to override imake's
+ incorrect ideas about library linkage and avoid libXp when linking with
+ libXaw7. We don't need Xprint support anyway.
+ * Build-depend on just libxaw7-dev, dropping the alternative.
+
+ -- Colin Watson <cjwatson@debian.org> Tue, 13 Sep 2005 10:38:10 +0100
+
+groff (1.18.1.1-9) unstable; urgency=low
+
+ * Move www.tmac to groff-base (closes: #319506).
+ * Fix non-XSI code in groff.postinst (part of #256226).
+ * Improve CJK support (closes: #324107):
+ - Add support for Chinese GB2312/GBK and BIG5 encodings (in the
+ increasingly-misnamed nippon driver), with kinsoku tables borrowed
+ from Emacs. Simon Law eyeballed the GB2312/GBK table.
+ - Expect UTF-8 input when running under a ko_*.UTF-8 locale. Functional
+ Korean support still requires a kinsoku table and a groff font
+ covering Hangul.
+ * Fix use of DoCharacter() in multibyte case; some calls to it were
+ missing the fourth argument (closes: #285524).
+ * Policy version 3.6.2. No changes required.
+
+ -- Colin Watson <cjwatson@debian.org> Wed, 31 Aug 2005 12:54:37 +0100
+
+groff (1.18.1.1-8) unstable; urgency=low
+
+ * Avoid double fclose() in grn, which causes a build failure with glibc
+ 2.3.5.
+ * Move gxditview from /usr/X11R6 to /usr.
+
+ -- Colin Watson <cjwatson@debian.org> Mon, 23 May 2005 16:34:34 +0100
+
+groff (1.18.1.1-7) unstable; urgency=low
+
+ * Too many fonts are missing the Unicode HYPHEN character, so I give up.
+ Render "-" as HYPHEN-MINUS (ASCII 0x2D) by default. (Of course, manual
+ pages using "-" when they should be using "\-" should still be fixed.)
+
+ -- Colin Watson <cjwatson@debian.org> Fri, 18 Mar 2005 17:57:51 +0000
+
+groff (1.18.1.1-6) unstable; urgency=low
+
+ * Refer to /usr/share/doc/groff-base/copyright or
+ /usr/share/doc/groff/copyright in the header of all manual pages
+ licensed under the GFDL, per GFDL section 6 "COLLECTIONS OF DOCUMENTS"
+ (closes: #292229, #292230).
+
+ -- Colin Watson <cjwatson@debian.org> Wed, 26 Jan 2005 09:28:10 +0000
+
+groff (1.18.1.1-5) unstable; urgency=high
+
+ * Upstream fix for temporary file handling vulnerability in pic2graph
+ (closes: #286371).
+ * Upstream fix for temporary file handling vulnerability in eqn2graph
+ (closes: #286372).
+
+ -- Colin Watson <cjwatson@debian.org> Mon, 20 Dec 2004 14:26:25 +0000
+
+groff (1.18.1.1-4) unstable; urgency=low
+
+ * Fix use of anonymous structs at top level, which gcc-4.0 doesn't like
+ (patch backported from upstream, by Art Haas; closes: #282682).
+
+ -- Colin Watson <cjwatson@debian.org> Sat, 11 Dec 2004 14:39:11 +0100
+
+groff (1.18.1.1-3) unstable; urgency=low
+
+ * Clarify copyright file (closes: #279904). Some items of documentation
+ are under non-free licences; this is exempt for sarge, and in any case
+ will be resolved when I update to a new version of groff after sarge.
+
+ -- Colin Watson <cjwatson@debian.org> Wed, 17 Nov 2004 19:36:29 +0000
+
+groff (1.18.1.1-2) unstable; urgency=high
+
+ * [SECURITY] Fix a race condition in groffer leading to a temporary file
+ handling vulnerability (closes: #278265).
+
+ -- Colin Watson <cjwatson@debian.org> Tue, 26 Oct 2004 23:52:13 +0100
+
+groff (1.18.1.1-1) unstable; urgency=low
+
+ * The "Death! Ride, ride to ruin and the world's ending!" release.
+ * New upstream release. The only change is an updated groffer script.
+ * Policy version 3.6.1. No changes required.
+
+ -- Colin Watson <cjwatson@debian.org> Tue, 22 Jun 2004 01:44:41 +0100
+
+groff (1.18.1-15) unstable; urgency=low
+
+ * Create eqn2graph's temporary files in /tmp, not /usr/tmp (thanks, Einar
+ Karttunen; closes: #216819). How did I miss this when doing the same for
+ pic2graph?
+
+ -- Colin Watson <cjwatson@debian.org> Fri, 23 Jan 2004 11:37:26 +0000
+
+groff (1.18.1-14) unstable; urgency=low
+
+ * Document Unicode hyphen configuration in README.Debian.
+
+ -- Colin Watson <cjwatson@debian.org> Sat, 15 Nov 2003 17:43:03 +0000
+
+groff (1.18.1-13) unstable; urgency=low
+
+ * Add sample code to /etc/groff/man.local and /etc/groff/mdoc.local to
+ make "-" render as Unicode HYPHEN-MINUS on the utf8 device. This is
+ commented out by default because man pages which require this are buggy:
+ "\-" should be used instead when a real dash as opposed to a logical
+ hyphen is required.
+ * Fix some typos in groff(1) (thanks, Göran Weinholt; closes: #181375).
+
+ -- Colin Watson <cjwatson@debian.org> Thu, 6 Nov 2003 12:52:18 +0000
+
+groff (1.18.1-12) unstable; urgency=low
+
+ * Create pic2graph's temporary files in /tmp, not /usr/tmp (thanks, Alex
+ Withers; closes: #216819).
+
+ -- Colin Watson <cjwatson@debian.org> Tue, 21 Oct 2003 09:24:37 +0100
+
+groff (1.18.1-11) unstable; urgency=low
+
+ * Never recode input or output for the ascii8 device. It doesn't work in
+ non-trivial locales, since ascii8 isn't supposed to be prepared for
+ input in, say, UTF-8, and the point of ascii8 is to be a trivial hack
+ device for use when you know your input encoding is the same as your
+ output encoding. This makes man(1)'s life easier, and incidentally fixes
+ a problem with iconv replacing certain Polish characters with question
+ marks (closes: #170320).
+ * Revert part of the original attempt at fixing #170320 (in 1.18.1-2),
+ which made ascii8 accept U+0100 to U+0200. This is no longer necessary
+ with the above, and it broke the assumptions in
+ font::get_font_wchar_metric(), causing problems for KOI8-R input.
+ * Stop output devices breaking when given the 'x init' command in an
+ intermediate output file rather than 'x init <encoding>'.
+
+ -- Colin Watson <cjwatson@debian.org> Sun, 14 Sep 2003 16:17:41 +0100
+
+groff (1.18.1-10) unstable; urgency=low
+
+ * Fix wrong devps Japanese font metrics (thanks, Masatoshi Suehiro and
+ Junichi Uekawa; closes: #194016).
+
+ -- Colin Watson <cjwatson@debian.org> Tue, 19 Aug 2003 02:54:34 +0100
+
+groff (1.18.1-9) unstable; urgency=low
+
+ * Fix segfault in grotty when changing the colour before setting the
+ initial font (closes: #189384).
+
+ -- Colin Watson <cjwatson@debian.org> Fri, 18 Apr 2003 00:47:43 +0000
+
+groff (1.18.1-8) unstable; urgency=low
+
+ * Make sure that the default input character encoding is always
+ ISO-8859-1, except for the ascii8 device and for Japanese locales. This
+ is required for compatibility with upstream.
+ * Automatically load latin1.tmac when using all terminal devices except
+ ascii, not just the latin1 device.
+
+ -- Colin Watson <cjwatson@debian.org> Fri, 11 Apr 2003 00:11:40 +0100
+
+groff (1.18.1-7) unstable; urgency=low
+
+ * Use groff's font metric instead of wcwidth()
+ (src/devices/grotty/tty.cc): add cols to tty_font
+ add_char takes font parameter
+ tty_printer:add_char calculate hpos by using font metric
+ (src/include/encoing.h src/libs/libgroff/encoding.cc):
+ put_wchar returns number of bytes written, not columns.
+ * font metric fixed, X*/M.proto,
+ * fix sed script in font's Makefile.sub. sed doesn't see + as regex metachar.
+ replace [0-9]+ to [0-9][0-9]*.
+
+ -- Fumitoshi UKAI <ukai@debian.or.jp> Mon, 24 Feb 2003 10:59:09 +0900
+
+groff (1.18.1-6) unstable; urgency=low
+
+ * Use wcwidth() to find the width of UTF-8 characters. This seems to work
+ well for both en_GB.UTF-8 and ja_JP.UTF-8, so both CJK and non-CJK
+ output should finally be correct (closes: #173764).
+ * Recommend libpaper1 instead of libpaperg.
+
+ -- Colin Watson <cjwatson@debian.org> Sun, 23 Feb 2003 19:33:50 +0000
+
+groff (1.18.1-5) unstable; urgency=low
+
+ * put_wchar() returns number of columns for char
+ * add UTF-8 support for Japanese.
+
+ -- Fumitoshi UKAI <ukai@debian.or.jp> Fri, 7 Feb 2003 00:32:00 +0900
+
+groff (1.18.1-4) unstable; urgency=low
+
+ * Fix over-zealous backspacing in UTF-8 output (closes: #173764).
+
+ -- Colin Watson <cjwatson@debian.org> Thu, 6 Feb 2003 01:31:57 +0000
+
+groff (1.18.1-3) unstable; urgency=low
+
+ * Recode this changelog to UTF-8.
+ * Clarify README.Debian to mention the error message you get if you've
+ forgotten to install groff as well as groff-base (see #175585).
+ * Build with g++ 3.2. Drop hppa -fno-strength-reduce hack from 1.17.2-12,
+ which I hope should no longer be required.
+
+ -- Colin Watson <cjwatson@debian.org> Wed, 8 Jan 2003 03:26:13 +0000
+
+groff (1.18.1-2) unstable; urgency=low
+
+ * Backport upstream patch to fix segfaults in
+ node::add_discretionary_hyphen() observed while building aegis and
+ aegis3 (closes: #173058, #173063).
+ * Fix pic2graph syntax error, thanks to lintian. Patch also sent upstream.
+ * Patch from Fumitoshi UKAI to fix ISO-8859-2 output through devascii8
+ (closes: #170320).
+
+ -- Colin Watson <cjwatson@debian.org> Sun, 15 Dec 2002 14:59:20 +0000
+
+groff (1.18.1-1) unstable; urgency=low
+
+ * New upstream release.
+ - Includes 'Am' string in mdoc from NetBSD (closes: #163195).
+ * Amend debian/copyright to reflect that the papersize fallback patch has
+ been merged upstream.
+ * Actually call the GROFF_LANGINFO_CODESET macro as well as defining it.
+
+ * New multibyte patch from Fumitoshi UKAI, with adjustments by me. Fixes
+ Japanese HTML output, among other things (closes: #149006).
+
+ groff (1.18.1-0.u1) unstable; urgency=low
+
+ * for C or POSIX locale, use ascii8 encoding handler
+ * xditview supports ENABLE_MULTIBYTE (at least Japanese)
+
+ -- Fumitoshi UKAI <ukai@debian.or.jp> Mon, 4 Nov 2002 02:05:16 +0900
+
+ groff (1.18.1-0.u) unstable; urgency=low
+
+ * New upstream release
+
+ -- Fumitoshi UKAI <ukai@debian.or.jp> Wed, 9 Oct 2002 02:09:41 +0900
+
+ groff (1.18-6.u2) unstable; urgency=low
+
+ * src/roff/troff/input.cc: fix bug in wchar_charinfo()
+ * src/device/grohtml/post-html.cc: works ENABLE_MULTIBYTE
+ * font/devhtml: add font M, G for Japanese
+ * grohtml works (japanese)
+
+ -- Fumitoshi UKAI <ukai@debian.or.jp> Mon, 23 Sep 2002 02:56:59 +0900
+
+ groff (1.18-6.u1) unstable; urgency=low
+
+ * new multibyte support patch based on japanese patch
+ - use iconv
+ - add .encoding directive (default encoding is determined from locale)
+ - \[u<code>] supported
+ - font/*/DESC:
+ add fontset
+ - font/*/<font>
+ add u<code>..u<code> range
+ - grotty and grops works (japanese)
+
+ -- Fumitoshi UKAI <ukai@debian.or.jp> Sun, 22 Sep 2002 04:47:10 +0900
+
+ -- Colin Watson <cjwatson@debian.org> Sun, 10 Nov 2002 23:16:32 +0000
+
+groff (1.18-7) unstable; urgency=low
+
+ * Policy version 3.5.7:
+ - Drop DEB_BUILD_OPTIONS=debug support; compile with -g by default.
+ - Support DEB_BUILD_OPTIONS=noopt.
+ * src/roff/troff/node.cc (bracket_node::copy): Fix a segfault on copying
+ an empty bracket_node, such as '(\bu' (closes: #162595).
+
+ -- Colin Watson <cjwatson@debian.org> Fri, 27 Sep 2002 16:03:22 +0100
+
+groff (1.18-6) unstable; urgency=low
+
+ * Backport upstream patch to m.tmac for the benefit of gpresent: the VM
+ macro definition was missing a backslash (closes: #160713).
+
+ -- Colin Watson <cjwatson@debian.org> Fri, 13 Sep 2002 00:54:39 +0100
+
+groff (1.18-5) unstable; urgency=low
+
+ * Document the Debian groff macro path in README.Debian.
+ * Map \- to Unicode HYPHEN-MINUS in UTF-8 mode, for more convenient
+ searching in man pages (closes: #159872).
+
+ -- Colin Watson <cjwatson@debian.org> Fri, 6 Sep 2002 22:34:21 +0100
+
+groff (1.18-4) unstable; urgency=low
+
+ * Upstream patch to freeze unbreakable spaces, preventing a failed
+ assertion on latin1(7) (closes: #155969).
+ * Install text versions of meintro.ps, meref.ps, and pic.ps. Other
+ documents either aren't very useful in plain text or don't format well
+ (closes: #155226).
+ * Reorder clean target a little.
+
+ -- Colin Watson <cjwatson@debian.org> Sat, 10 Aug 2002 10:54:54 +0100
+
+groff (1.18-3) unstable; urgency=low
+
+ * src/devices/grohtml/html-table.cc: Initialize another variable properly.
+ This really fixes the segfault during the arm build.
+
+ -- Colin Watson <cjwatson@debian.org> Wed, 31 Jul 2002 02:52:20 +0100
+
+groff (1.18-2) unstable; urgency=low
+
+ * src/include/encoding.h: Fix broken token-after-#endif syntax.
+ * src/devices/grohtml/post-html.cc: Make sure pointsize is initialized
+ properly. This fixes an infinite loop in the ia64 build, and perhaps arm
+ too.
+
+ -- Colin Watson <cjwatson@debian.org> Sat, 27 Jul 2002 18:41:46 +0100
+
+groff (1.18-1) unstable; urgency=low
+
+ * New upstream release. Highlights:
+ - Colour support (although see below).
+ - New macro set, mom, mainly for non-scientific writers. The aim of
+ these macros is to make groff accessible for ordinary use with a
+ minimum of convoluted syntax.
+ - 'eu' and 'Eu' characters available for Euro support.
+ - Improved support for TeX hyphenation files.
+ - New means of setting the line length, which now works for -mdoc manual
+ pages as well as -man. Use man-db >= 2.4.0 to take advantage of this.
+ - Documentation of the differences between groff and Unix troff is now
+ in groff_diff(7).
+ - groff_mwww(1) has been renamed to groff_www(1).
+ - groff_ms(7) has been completely rewritten.
+ - New scripts: groffer, pic2graph, and eqn2graph.
+ - Substantial improvements in grohtml (although it's still alpha),
+ including dealing with overstriking properly (closes: #67545).
+
+ * Many thanks, again, to Fumitoshi UKAI for forward-porting the Japanese
+ patch.
+ * Disable the new ANSI colour/bold/underline escapes in nroff mode,
+ because most pagers either fail to cope with it or need special options
+ to do so. It can be re-enabled by editing /etc/groff/man.local and
+ /etc/groff/mdoc.local, or by setting the environment variable GROFF_SGR
+ to something non-empty.
+ * Drop most current /etc/papersize patches, as the 'papersize' DESC
+ keyword is now available upstream. We now only patch the DESC files and
+ extend the papersize keyword to allow falling back to something else if
+ /etc/papersize doesn't exist.
+ * Fix the removal of final newlines when reading /etc/papersize.
+ * Translate the 'oq' character to an apostrophe (0x27) rather than a
+ backquote (0x60) when using devices other than utf8 (closes: #149086).
+
+ * Merge groff-x11 back into groff, since this release doesn't have to
+ worry so much about smooth upgrades from potato (closes: #129835).
+ * Accordingly, remove the debconf note about this, since it was an abuse
+ of debconf anyway. README.Debian describes the package organization.
+ * Include more documentation in the main groff package (closes: #121475).
+ * Build-depend on gs, netpbm, and psutils for HTML documentation. Mention
+ in README.build that people bootstrapping a new port or otherwise
+ building the base system from scratch don't need these three.
+ * Recommend these three packages for the grohtml driver.
+ * Recommend imagemagick for pic2graph and eqn2graph.
+ * Downgrade libpaperg dependency to a recommendation, since we fall back
+ to a4 now if it's not installed.
+ * Use debhelper v3 mode.
+ * Upstream ships pre-built info files now, so use them. You need texinfo
+ (>= 4.2) if you want to regenerate them.
+
+ -- Colin Watson <cjwatson@debian.org> Sun, 21 Jul 2002 18:33:04 +0100
+
+groff (1.17.2-17) unstable; urgency=low
+
+ * Back to unstable, now that there's no concern about disrupting woody.
+ Merge changes from -15.woody.1 (unstable) and -16 (experimental).
+ * Delete excess charset information in M and G font files that also use
+ the fixedkanji directive, after consultation with Fumitoshi UKAI. This
+ saves over 1.6Mb.
+ * Move ps device to base, now that it isn't quite so large. It's needed
+ there because it's the default device (closes: #131410).
+ * Update the descriptions of groff-base and groff for the move of the
+ PostScript device.
+
+ -- Colin Watson <cjwatson@debian.org> Sat, 4 May 2002 18:03:40 +0100
+
+groff (1.17.2-16) experimental; urgency=low
+
+ * Experimental upload for the benefit of the NetBSD porters.
+ * Document the build-dependency loop with xfree86, and allow people
+ constructing new ports to override this temporarily with
+ DEB_BUILD_OPTIONS=no-groff-x11 (closes: #130312).
+ * Import AM_LANGINFO_CODESET macro from gettext, and use it for
+ --enable-japanese to provide an emulation of nl_langinfo(CODESET) for
+ systems that don't have it (closes: #130356).
+ * Fix build without --enable-japanese.
+ * Build-depend on a version of debhelper which pulls in debconf-utils
+ (closes: #130357).
+ * Test that Makefile.clean doesn't exist before clobbering it in the
+ configure target.
+
+ -- Colin Watson <cjwatson@debian.org> Tue, 22 Jan 2002 18:34:22 +0000
+
+groff (1.17.2-15.woody.1) unstable; urgency=medium
+
+ * New Danish debconf translation (thanks, Rune B. Broberg;
+ closes: #131092).
+ * New French debconf translation (thanks, Philippe Batailler;
+ closes: #138515).
+
+ -- Colin Watson <cjwatson@debian.org> Sun, 17 Mar 2002 04:11:50 +0000
+
+groff (1.17.2-15) unstable; urgency=high
+
+ * Fix buffer overflow in grn (closes: #129261).
+
+ -- Colin Watson <cjwatson@debian.org> Tue, 15 Jan 2002 00:22:19 +0000
+
+groff (1.17.2-14) unstable; urgency=low
+
+ * Upstream patch to make .TH respect the line length (closes: #125826).
+
+ -- Colin Watson <cjwatson@debian.org> Mon, 14 Jan 2002 02:49:45 +0000
+
+groff (1.17.2-13) unstable; urgency=high
+
+ * Fix peekbyte() to return correctly (closes: #122702).
+
+ -- Colin Watson <cjwatson@debian.org> Thu, 6 Dec 2001 17:15:20 +0000
+
+groff (1.17.2-12) unstable; urgency=high
+
+ * Use -fno-strength-reduce on hppa, as a temporary workaround for a
+ compiler bug.
+ * Display package-split note when reconfiguring (closes: #122420).
+
+ -- Colin Watson <cjwatson@debian.org> Wed, 5 Dec 2001 17:24:08 +0000
+
+groff (1.17.2-11) unstable; urgency=high
+
+ * Use lpr as the print spooler, even if it happens not to be installed on
+ the build system. This broke 'groff -l' (thanks, Mike Fontenot).
+
+ -- Colin Watson <cjwatson@debian.org> Fri, 30 Nov 2001 21:41:29 +0000
+
+groff (1.17.2-10) unstable; urgency=high
+
+ * Install lbp.tmac (closes: #121765).
+
+ -- Colin Watson <cjwatson@debian.org> Thu, 29 Nov 2001 20:28:18 +0000
+
+groff (1.17.2-9) unstable; urgency=low
+
+ * Add Fumitoshi UKAI to Uploaders, in case of emergencies.
+ * Move refer to groff, as this saves over 100K in groff-base and I don't
+ think refer is very useful without additional macro packages.
+ * Document refer in groff's description.
+ * Move ChangeLog.jp and README.jp to groff-base.
+ * Replace createM.c with a Perl implementation to aid cross-compilation
+ (thanks, Fumitoshi UKAI; closes: #114338).
+
+ -- Colin Watson <cjwatson@debian.org> Sun, 14 Oct 2001 04:35:20 +0100
+
+groff (1.17.2-8) unstable; urgency=medium
+
+ * The "Texas Armadillo" release.
+ * Policy version 3.5.6 (support build-arch and build-indep targets).
+ * Reduce size of devnippon fonts, and include devnippon in groff-base
+ (thanks, Fumitoshi UKAI and GOTO Masanori; closes: #112622).
+ * Upstream fix for overzealous warnings from -mm and -ms (closes: #69129).
+ * Fix building in a subdirectory (closes: #111229).
+ * Remove spurious substitutions of '..' for '.' in groff_man(7).
+ * groff depends on libpaperg so that /etc/papersize is always present.
+ * Urgency medium as the above has broken some builds of other packages.
+ * Correct quoted-printable remnant in Brazilian Portugese debconf template
+ (thanks, Andre Luis Lopes; closes: #110192).
+ * New Russian debconf template (thanks, Ilgiz Kalmetev; closes: #112653).
+
+ -- Colin Watson <cjwatson@debian.org> Wed, 19 Sep 2001 01:34:21 +0100
+
+groff (1.17.2-7) unstable; urgency=low
+
+ * Back with a new GPG key after a disk crash. Thanks for the NMU in the
+ meantime (closes: #107998, #108705).
+ * Document that -E can't suppress messages output to stderr by macro
+ packages using .tm or .tm1 (fix from upstream CVS; closes: #69130).
+ * src/devices/grotty/tty.cc: Correct one instance of putchar() on a
+ potential UTF-8 character to put_char() (thanks, Mike Fabian and Michael
+ Schroeder; closes: #110008).
+
+ -- Colin Watson <cjwatson@debian.org> Sun, 26 Aug 2001 00:15:42 +0100
+
+groff (1.17.2-6.1) unstable; urgency=low
+
+ * Non Maintainer Upload
+ * fix hyphen character problem in EUC-JP encoding
+ (closes: Bug#107998).
+
+ -- Fumitoshi UKAI <ukai@debian.or.jp> Fri, 17 Aug 2001 02:06:21 +0900
+
+groff (1.17.2-6) unstable; urgency=medium
+
+ * src/devices/grohtml/post-html.cc: Put characters into the right places
+ in the output buffer so that HTML output no longer ends up as gibberish
+ (closes: #107788).
+
+ -- Colin Watson <cjwatson@debian.org> Wed, 8 Aug 2001 00:33:13 +0100
+
+groff (1.17.2-5) unstable; urgency=high
+
+ * src/preproc/pic/pic.y: Fix format string vulnerability that could allow
+ the -S flag to be disabled (closes: #107459). Patch adapted from one by
+ Zenith Parsec <zen-parse@gmx.net>.
+ * Add a note to README.Debian about where to find documentation.
+
+ -- Colin Watson <cjwatson@debian.org> Thu, 2 Aug 2001 20:36:18 +0100
+
+groff (1.17.2-4) unstable; urgency=low
+
+ * src/preproc/eqn/text.cc: Initialize wc to the value of the current
+ character even if it isn't a wide character. Otherwise eqn would output
+ nulls instead of normal characters (closes: #106551).
+ * Conflict with jgroff as well as with pre-split versions of ordinary
+ groff, and make references to jgroff versioned to avoid triggering on
+ groff's Provides: field.
+
+ -- Colin Watson <cjwatson@debian.org> Wed, 25 Jul 2001 22:40:52 +0100
+
+groff (1.17.2-3) unstable; urgency=low
+
+ * Remove spare newline from troffrc, which broke e.g. the ms macros
+ (closes: #105777).
+
+ -- Colin Watson <cjwatson@debian.org> Thu, 19 Jul 2001 00:07:18 +0100
+
+groff (1.17.2-2) unstable; urgency=medium
+
+ * Urgency medium to get a halfway recent groff into testing for the base
+ system freeze. This version should be a significant improvement for
+ non-ASCII/Latin-1 users.
+
+ * New Japanese patch from Fumitoshi UKAI:
+
+ groff (1.17.2-1.ukai.1) unstable; urgency=low
+
+ * fix tmac/euc-jp.tmac (fix coding-system)
+
+ -- Fumitoshi UKAI <ukai@debian.or.jp> Sun, 15 Jul 2001 21:14:56 +0900
+
+ groff (1.17.2-1.ukai.0) unstable; urgency=low
+
+ * revised Japanese patch evaluation build
+ - refactoring, cleanups
+ not completed (for example src/xditview)
+
+ -- Fumitoshi UKAI <ukai@debian.or.jp> Sun, 15 Jul 2001 15:27:59 +0900
+
+ Also added dq and cq characters to the ascii8 and nippon devices.
+
+ * Make groff-base and groff-x11 conflict with pre-split groff
+ (closes: #105276).
+ * Move ascii8 device to groff-base (closes: #105627).
+ * Remove stray + in groff(1) (closes: #105530).
+ * New Brazilian Portugese debconf translation (thanks, Andre Luis Lopes;
+ closes: #105367).
+
+ -- Colin Watson <cjwatson@debian.org> Tue, 17 Jul 2001 17:58:23 +0100
+
+groff (1.17.2-1) unstable; urgency=low
+
+ * New upstream release. Fixes \s[0] escape (affects non-tty use of mdoc).
+ * debian/rules:
+ - The clean target now cleans the source tree better.
+ - Use version detection from Makefile.in: it's friendlier to syntax
+ highlighting.
+
+ -- Colin Watson <cjwatson@debian.org> Mon, 9 Jul 2001 03:35:20 +0100
+
+groff (1.17.1-3) unstable; urgency=low
+
+ * New Spanish debconf translation (thanks, Carlos Valdivia Yagüe;
+ closes: #102897).
+
+ -- Colin Watson <cjwatson@debian.org> Sat, 30 Jun 2001 20:05:18 +0100
+
+groff (1.17.1-2) unstable; urgency=low
+
+ * Conflict with pmake (<< 1.45-7), which had problems with the new
+ location of groff's macros (see #101973).
+
+ -- Colin Watson <cjwatson@debian.org> Sun, 24 Jun 2001 03:45:43 +0100
+
+groff (1.17.1-1) unstable; urgency=low
+
+ * New upstream release.
+ * Of course, the library directory has moved with the new version number.
+ Add a symlink, /usr/share/groff/current, which points to the current
+ library directory; also add a versioned conflicts on troffcvt, which I'm
+ about to fix to cope with this. If you rely on some particular version,
+ use it; if not, use current.
+ * Autogenerate debian/groff-base.files and debian/groff-base.links.
+
+ -- Colin Watson <cjwatson@debian.org> Sat, 23 Jun 2001 00:54:37 +0100
+
+groff (1.17-4) unstable; urgency=low
+
+ * Back out patch supporting transparent decompression of groff's input
+ stream. Since programs using groff have to support systems where *roff
+ doesn't know how to decompress things, it doesn't really simplify
+ anything else greatly; more importantly, using gzip means that argument
+ parsing didn't always work the way we expected (closes: #75990).
+ * The lj4 and ps drivers already support /etc/papersize due to an earlier
+ Debian patch, and it turns out that lbp supports it upstream but wasn't
+ previously configured to use it. Altered its DESC file to meet libpaper
+ standards (closes: #19681, #19722).
+ * Move the error unwind for groff-base's preinst into its postrm (oops).
+ * New German debconf translation (thanks, Sebastian Feltel;
+ closes: #100681).
+ * Add README.Debian, describing the recent package reorganization.
+ * Update copyright file to describe all upstream-relevant patches.
+
+ -- Colin Watson <cjwatson@debian.org> Wed, 20 Jun 2001 00:43:45 +0100
+
+groff (1.17-3) unstable; urgency=low
+
+ * Restore /usr/share/groff/tmac to the macro path, as some third-party
+ programs install macros there (should fix #100139, but I'll leave it to
+ the vgrind maintainer to check that groff 1.17 hasn't broken anything
+ else).
+
+ -- Colin Watson <cjwatson@debian.org> Fri, 8 Jun 2001 19:06:15 +0100
+
+groff (1.17-2) unstable; urgency=low
+
+ * Brown paper bag bug: move grotty to groff-base!
+ * Also move the doc macros to groff-base; some man pages use them. (This
+ and the above bloat -base by some 200K, I'm afraid.)
+ * Mention in the debconf note that groff-base supports Latin-1 and UTF-8
+ as well as ASCII.
+ * /usr/share/groff/site-tmac contains mdoc.local as well as man.local as
+ of 1.17, so make that whole directory a symlink to /etc/groff and
+ migrate the old /etc/tmac.man.local conffile to /etc/groff/man.local.
+ This seems to need some ugly migration code.
+ * Back out the autoconf 2.50 diffs for now, as they were polluting the
+ .diff.gz. I've sent them upstream, though.
+
+ -- Colin Watson <cjwatson@debian.org> Wed, 6 Jun 2001 17:02:12 +0100
+
+groff (1.17-1) unstable; urgency=low
+
+ * New maintainer (ciao, Fabrizio).
+ * Thanks for the NMUs (closes: #75722, #90765).
+ * New upstream release, with corresponding debian/copyright updates.
+ * Follow upstream's move to versioned subdirectories of /usr/share/groff.
+ * The components of groff required to support normal use of man-db are now
+ in a separate package, groff-base (thanks, Elrond; closes: #53225).
+ * Also split out gxditview and the devices that use it into the groff-x11
+ package. I'd have preferred them to stay part of groff, as discussed on
+ -devel, but the necessary xlibs dependency would mean that everybody
+ dist-upgrading from a potato base system would get the X libraries.
+ Added a debconf note to avoid silent loss of functionality; maybe in
+ woody+1 they can be merged back into groff.
+
+ * New packaging, using debhelper.
+ - This shouldn't generate invalid syntax in the prerm (closes: #86437).
+ - All binaries should be correctly stripped now (closes: #96786).
+ * Add build dependencies (thanks, Daniel Schepler; closes: #80844).
+ * Don't bother running configure in the clean target.
+ * Touch configure in debian/rules to avoid a build-dep on autoconf. This
+ means I have to remember to run the autotools manually every time. Ugh.
+ * Support DEB_BUILD_OPTIONS debug and nostrip.
+ * Mark /etc/X11/app-defaults/GXditview as a conffile.
+ * All this brings us to Standards-Version: 3.5.2.
+
+ * New Japanese patch (version 0.0.2) from Fumitoshi UKAI. This may not be
+ quite right yet; please let me know if there are any problems.
+ * Replace mdate.sh with something whose results are more predictable
+ (thanks, Florian Lohoff; closes: #62554).
+ * Force LC_ALL to C so that makeinfo doesn't insert some localized strings
+ for the package builder's environment (closes: #84370).
+ * s/man/man-db/ in the package description.
+ * Remove an autoconf hack from aclocal.m4; the bug it's working around is
+ now fixed and the hack broke with autoconf 2.50 (closes: #98916).
+ * Set gxditview's fontpath in debian/rules, restoring
+ /usr/local/share/groff/font.
+ * Preserve the Makefile to avoid a large diff.
+ * Back out single-page an.tmac patch; upstream did it more neatly.
+
+ -- Colin Watson <cjwatson@debian.org> Sat, 2 Jun 2001 20:18:14 +0100
+
+groff (1.16-3.4) unstable; urgency=medium
+
+ * Non-maintainer upload
+ * gcc 3.0 fixes (needed by PARISC port). fixes #90765.
+
+ -- LaMont Jones <lamont@debian.org> Wed, 25 Apr 2001 00:19:29 -0600
+
+groff (1.16-3.3) unstable; urgency=medium
+
+ * Non-maintainer upload
+ * fixed font count in font/devdvi/DESC.in as suggested in bug
+ report from John P. Cummings <cummij@rpi.edu>, closes: #75722
+
+ -- Paul Bame <bame@debian.org> Sat, 24 Feb 2001 17:16:47 -0700
+
+groff (1.16-3.2) unstable; urgency=high
+
+ * Added ascii8 device and fixed bug with (non-latin1&&non-CJK) man-pages
+ viewing (before this polish, russian etc. manpages couldn't be viewed),
+ closes: #81148, #71744, #66928, #74535
+
+ -- Peter Novodvorsky <nidd@debian.org> Sun, 14 Jan 2001 01:09:24 +0300
+
+groff (1.16-3.1) unstable; urgency=low
+
+ * Rebuilt on a system with Xfree 4 and toasted contents of /usr/X11R6/lib,
+ closes: #76813, #77024, #77515, #77608, #77684, #78054, #78905, #79472,
+ #80559
+
+ -- Robert Woodcock <rcw@debian.org> Thu, 28 Dec 2000 20:51:34 -0800
+
+groff (1.16-3) unstable; urgency=low
+
+ * oops: had left generated files in the diff.
+ * In new macro checking for gzcat (aclocal.m4), added use of option -f
+ to permit transparent fallback to 'normal' cat.
+ * In src/roff/groff/groff.cc , added gzcat command before soelim; it
+ permits transparent use of zipped or not sources.
+
+ -- Fabrizio Polacco <fpolacco@debian.org> Sun, 27 Aug 2000 18:13:10 +0300
+
+groff (1.16-2) unstable; urgency=low
+
+ * now going into woody (previous were experimental).
+ * Added check for gzip in configure.in
+ * Applyed correction to patch #64551, thanx to Werner LEMBERG.
+ * Added single final footer to an macro, thanx to Werner LEMBERG;
+ closes: #65735. (waiting for the same for the doc macro)
+
+ -- Fabrizio Polacco <fpolacco@debian.org> Mon, 3 Jul 2000 00:13:23 +0300
+
+groff (1.16-1) experimental; urgency=low
+
+ * Fixed src/roff/nroff.sh, which was too much different from the
+ previous one to apply the dumb patch.
+ Thanx to Taketoshi Sano for the right patch!
+ (that was exactly the reason for using experimental instead of
+ unstable: uploading something broken and ask for help to fix it,
+ yeah!)
+
+ -- Fabrizio Polacco <fpolacco@debian.org> Fri, 16 Jun 2000 11:33:47 +0300
+
+groff (1.16-0) experimental; urgency=low
+
+ * New upstream release.
+ * Manually applyed all the nippon and ascii8 changes.
+ Failed for: src/roff/nroff.sh,
+ * Added new info document.
+
+ -- Fabrizio Polacco <fpolacco@debian.org> Wed, 7 Jun 2000 19:09:17 +0300
+
+groff (1.15.3-2) unstable; urgency=low
+
+ * Applied patch proposed by Karl M.Hegbloom to get a single page from
+ manpages when in nroff mode. Closes: #64551.
+
+ -- Fabrizio Polacco <fpolacco@debian.org> Thu, 25 May 2000 13:43:18 +0300
+
+groff (1.15.3-1) unstable; urgency=low
+
+ * re-enabled default font in Dvi.c, thanx to Kevin Ryde.
+ closes: #63491, but opens probably some other i18n related bug,
+ sigh.
+ * changed version to 1.15.3 (waiting for 1.16 :-) to be grater than
+ the version in slink and than the one in potato.
+ This means that I must reupload the sources ... which were gone from
+ woody anyway (why it's possible?).
+ * Applyed patch submitted by Tomohiro KUBOTA:
+ * Added a new device type 'ascii8', which is 8 bit clean (like latin1)
+ but does not use Latin-1 character for hyphenation and so on (like
+ ascii). This device is intended to be used for codesets other than
+ ASCII and ISO-8859-1. This device should be temporal till all
+ charsets (ISO-8859-*, KOI8-R, EUC-KR, EUC-ZH, TIS620, and so on so on)
+ in the world are implemented, though this is almost impossible.
+ * Added a new character 'sy', which is soft hyphen. This character is
+ defined only for latin1 device. This 'sy' is used for hyphenation
+ instead of [char173], because [char173] may not be a soft hyphen,
+ though [char173] is a soft hyphen in ISO-8859-1.
+ Tomohiro KUBOTA <kubota@debian.or.jp> Wed, 19 Apr 2000 23:47:18 +0900
+ This closes: #62840.
+
+ -- Fabrizio Polacco <fpolacco@debian.org> Thu, 11 May 2000 10:44:14 +0300
+
+groff (1.15-3.ja.3) unstable; urgency=low
+
+ * Corrected bug that segfaults when reading manpage printf(1), thanx
+ to David Schmitt who submitted the bug (closes: #60096) and to
+ Fumitoshi UKAI who submitted the patch to fix it. It was the same
+ bug that jgroff had (#59628).
+
+ -- Fabrizio Polacco <fpolacco@debian.org> Mon, 13 Mar 2000 12:50:02 +0200
+
+groff (1.15-3.ja.2) unstable; urgency=low
+
+ * Included changes proposed by Fumitoshi UKAI and Taketoshi Sano.
+ * corrected groff_man manpage which didn't parse correctly for mandb.
+
+ -- Fabrizio Polacco <fpolacco@debian.org> Fri, 25 Feb 2000 20:57:40 +0200
+
+groff (1.15-3.ja.1) experimental; urgency=low
+
+ * Added japanes patch for join with jgroff.
+
+ -- Fabrizio Polacco <fpolacco@debian.org> Sun, 30 Jan 2000 15:36:03 +0200
+
+groff (1.15-3) frozen unstable; urgency=high
+
+ * mm and mse macros were missing (thanx to Daniel Quinlan to make me
+ discover this grave bug); closes: #55428.
+ * corrected wrong .so request in macro mse
+
+ -- Fabrizio Polacco <fpolacco@debian.org> Mon, 17 Jan 2000 15:25:06 +0200
+
+groff (1.15-2) unstable; urgency=low
+
+ * quick fix to a bug reported only mainstream.
+ postscript device fails if paper format is not a4 or letter.
+ Fixed using "letter" for all other formats, as it _was_ before.
+
+ -- Fabrizio Polacco <fpolacco@debian.org> Fri, 14 Jan 2000 12:21:38 +0200
+
+groff (1.15-1) unstable; urgency=low
+
+ * new upstream release: only minor bugfixes.
+
+ -- Fabrizio Polacco <fpolacco@debian.org> Thu, 6 Jan 2000 18:23:41 +0200
+
+groff (1.12-1) unstable; urgency=low
+
+ * new upstream release.
+ Got all previous changes (except papersize),
+ plus: new HTML device! (expermental).
+ * leaved version numeric only: closes: #31739, thanx to
+ Jonathan H N Chin <jhnc@pfaff.newton.cam.ac.uk>.
+
+ -- Fabrizio Polacco <fpolacco@debian.org> Fri, 17 Dec 1999 14:40:46 +0200
+
+groff (1.11b-1) unstable; urgency=low
+
+ * updated to policy 3.1.0.
+ * new imminent release 1.12; this use groff-current renamed
+ groff-1.11b. Not to be uploaded until 1.12 is released.
+
+ -- Fabrizio Polacco <fpolacco@debian.org> Sun, 12 Dec 1999 18:15:26 +0200
+
+groff (1.11a-9) unstable; urgency=low
+
+ * not uploaded due to imminent 1.12
+ * added management of /etc/papersize in driver lj4.
+ todo: the same in driver ps.
+
+ -- Fabrizio Polacco <fpolacco@debian.org> Sun, 5 Dec 1999 14:26:18 +0200
+
+groff (1.11a-8) unstable; urgency=low
+
+ * moved tmac.local to /etc (as tmac.man.local) and symlinked from the
+ original place; made it a conffile. Thanx to Decklin Foster
+ <decklin@home.com>, closes: #39043
+ * recompiled with libstdc++2.10 . closes: #49392.
+ * added manpages groff_mdoc(7) and groff_mdoc.samples(7) taken from
+ netBSD, thanks to Ben Harris <bjh21@cam.ac.uk>. closes: #49159.
+ * added Y2K corrections from the beta-12, from Paul Eggert.
+ * Got rid of old and unusefull checks in postinst.
+ * added symlink from /usr/doc, and added -e to script; closes: #39410
+ * Bugs fixed in previous releases: closes: #27016, #28097.
+ * Updated to std policy 3.0.1
+
+ -- Fabrizio Polacco <fpolacco@debian.org> Tue, 26 Oct 1999 14:39:10 +0300
+
+groff (1.11a-7) unstable; urgency=low
+
+ * Applied patch to add include path search to groff e gsoelim, provided by
+ Peter Miller <millerp@canb.auug.org.au> needed by aegis.
+
+ -- Fabrizio Polacco <fpolacco@debian.org> Sat, 17 Oct 1998 23:45:27 +0300
+
+groff (1.11a-6) unstable; urgency=low
+
+ * Recompiled to generate new dependencies into libs
+ (closes: #27790, thanx to Zephaniah E, Hull.)
+ [Previous attempt wasn't succesful.]
+
+ -- Fabrizio Polacco <fpolacco@debian.org> Sat, 17 Oct 1998 02:39:10 +0300
+
+groff (1.11a-5) unstable; urgency=low
+
+ * Recompiled to generate new dependencies into libs
+ (closes: #27790, thanx to Zephaniah E, Hull.)
+ * added mime file as suggested by Brian White
+ (closes: #27016)
+
+ -- Fabrizio Polacco <fpolacco@debian.org> Tue, 13 Oct 1998 18:54:55 +0300
+
+groff (1.11a-4) unstable; urgency=low
+
+ * Added groff_man(7) manpage for tmac.an macro written by Susan Kleinmann.
+ * Added patch from Andy Dougherty to let groff pass the -U flag along to
+ troff. (closes: #20628)
+
+ -- Fabrizio Polacco <fpolacco@debian.org> Sat, 4 Apr 1998 23:46:42 +0300
+
+groff (1.11a-2) unstable; urgency=low
+
+ * groff (1.11a-2) unstable; urgency=low
+ * groff (1.11a-0bo2) bo-unstable; urgency=low
+
+ * (lintian): added a symlink for neqn manpage.
+ * (lintian): changed mode of manpage gxditview.1x to 644.
+ * (lintian): changed mode of app-defaults/GXditview to 644.
+ * (lintian): updated the debian/copyright file (previously
+ debian/README), to point to the actual postal address of the FSF,
+ even if the sources in the distribution, including the COPYING file)
+ still point tro the old file (this should be reported as a bug to
+ upstream :-) . Now it says:
+ A copy of the GNU General Public License is available in
+ /usr/doc/copyright/GPL (as installed by package base-files);
+ if not, write to the Free Software Foundation, Inc.,
+ 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * commented creation of ctags file in debian/rules (closes: #15825,
+ #16006).
+ * checked correct build of fontpath (closes: #16007).
+ * added gzipping of X11 manpage (closes: #17455), tx to David ROCHER.
+ * reverted security changes done in 1.10-3.5 due to added use of safer
+ macro. Added -U flag to nroff/troff/groff/pic to revert to old
+ unsecure behaviour:
+ - nroff script defaults calling groff -S
+ - troff defaults as called with -msafer
+ - groff defaults as called with -S
+ - pic defaults as called with -S
+ Updated manpages nroff(1), groff(1), troff(1), pic(1) for the -U option.
+ * changed reference to me and msafer manpages in groff(1), to reflect
+ the change in their names (done in 1.10-3.5 and 1.10-5).
+
+ -- Fabrizio Polacco <fpolacco@debian.org> Sun, 15 Feb 1998 13:09:27 +0200
+
+groff (1.11a-1) unstable; urgency=low
+
+ * changed Standards Version to 2.3.0.1
+ * corrected names of copyright and chnagelog files.
+ * added full copyright from MIT (for gzditview).
+ * avoid gzipping of copyright file (oops!)
+ * new upstream version 1.11a (fixes #12130) including:
+ - new document for pic.
+ - changes to groff manpage.
+ * full libc6 version (fixes #14592) Since there aren't changes to
+ code, there's no need for a libc5 version.
+
+ -- Fabrizio Polacco <fpolacco@debian.org> Mon, 17 Nov 1997 11:00:21 +0200
+
+groff (1.10-3.5) stable; urgency=high
+
+ * Compiled under debian-1.3.1 (libc5) as a security bugfix; used
+ version number 3.5 (instead of 5) to avoid downgrading for hamm.
+ * Avoided execution of arbitrary code embedded in documents;
+ added warning WARN_SECURITY, enabled by default, to warn about .sy
+ directives, but not yet documented in manpage. Warning mode enabled
+ by default via ifdef, should be toggled by option flag. (need
+ coordination with upstream maintainer.)
+ * Applied patch from Brian Mays <bem5r@virginia.edu> to pic/tex.cc to
+ cast a long double value to double (fixes #13788)
+ * Changed name of manpages me and msafer to groff_me and groff_msafer.
+
+ -- Fabrizio Polacco <fpolacco@debian.org> Wed, 15 Oct 1997 23:15:08 +0300
+
+groff (1.10-4) unstable; urgency=low
+
+ * libc6 version
+ * added explicit link to libc to let ld.so find libc dependencies.
+ * added dinamic dependence as Suggest for gxditview.
+ * forced configure to use /usr/bin/perl (fixes bug#11149 and #13239)
+ * added debian version number to option -v
+
+ -- Fabrizio Polacco <fpolacco@debian.org> Sun, 28 Sep 1997 09:09:22 +0300
+
+groff (1.10-3) frozen unstable; urgency=low
+
+ * Applied changes to avoid problem with bash-2 (bug#8755)
+ * Added gxditview notice in file copyright.debian
+ * Compiled to supply gxditview, to let groff -X and man -X work.
+ (changed font path in device.c)
+
+ -- Fabrizio Polacco <fpolacco@debian.org> Wed, 16 Apr 1997 22:50:58 +0300
+
+groff (1.10-2) frozen unstable; urgency=low
+
+ * corrected shlibs.local for libstd++ depenedency (fixes #5401)
+
+ -- Fabrizio Polacco <fpolacco@debian.org> Thu, 14 Nov 1996 08:39:25 +0200
+
+groff (1.10-1) frozen; urgency=low
+
+ * new maintainer: Fabrizio Polacco <fpolacco@debian.org>
+ * changed description in control file (fixes bug #4013 part 2)
+ * new upstream sources 1.10 (fixes bug #4013 part 1)
+ * added symlinks for geqn, gpic, gtbl (bug #4754)
+ * compressed manpages.
+ * Updated to Standards-Version 2.1.1.0
+
+ -- Fabrizio Polacco <fpolacco@debian.org> Fri, 8 Nov 1996 13:50:09 +0200
+
+groff (1.09-12) frozen; urgency=low
+
+ * this version was never uploaded
+ * new maintainer: Fabrizio Polacco <fpolacco@debian.org>
+ * built using original upstream sources 1.09 + patch 1.09-11
+ * Updated to Standards-Version 2.1.1.0
+
+ -- Fabrizio Polacco <fpolacco@debian.org> Wed, 6 Nov 1996 15:15:10 +0200
+
+Changes:
+ 2-Jul-1995 Alvar Bray <alvar@meiko.co.uk>
+ Set permissions of /usr/doc/groff dir in post install script.
+ Previous versions of this package may have got these wrong and
+ replacing the package will not fix them.
+ 5-Mar-1995 Bruce Perens <Bruce@Pixar.com>
+ Added Debian GNU/Linux package maintenance system files.
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..9c30d9b
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,17 @@
+# Work around groff's build system being weird for the top-level directory.
+config.log
+config.cache
+config.status
+stamp-h
+test-groff
+src/include/config.h
+site.exp
+site.bak
+groff.sum
+groff.log
+Makefile.cfg
+conftest*
+
+man/index.*
+
+debian/build-native/
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..edd71b0
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,104 @@
+Source: groff
+Section: text
+Priority: important
+Maintainer: Colin Watson <cjwatson@debian.org>
+Standards-Version: 3.9.8
+Build-Depends: bison,
+ debhelper-compat (= 13),
+ ghostscript,
+ gsfonts,
+ libuchardet-dev,
+ libx11-dev,
+ libxaw7-dev,
+ libxmu-dev,
+ libxt-dev,
+ m4,
+ netpbm,
+ pkg-config,
+ poppler-utils <!nocheck>,
+ psutils,
+ texinfo,
+ texlive-base,
+ texlive-latex-base,
+ x11proto-core-dev,
+Homepage: https://www.gnu.org/software/groff/
+Vcs-Git: https://salsa.debian.org/debian/groff.git
+Vcs-Browser: https://salsa.debian.org/debian/groff
+Rules-Requires-Root: no
+
+Package: groff-base
+Architecture: any
+Depends: ${misc:Depends},
+ ${shlibs:Depends},
+Suggests: groff,
+Multi-Arch: foreign
+Description: GNU troff text-formatting system (base system components)
+ This package contains the traditional UN*X text formatting tools
+ troff, nroff, tbl, eqn, and pic. These utilities, together with the
+ man-db package, are essential for displaying the on-line manual pages.
+ .
+ groff-base is a stripped-down package containing the necessary components
+ to read manual pages in ASCII, Latin-1, and UTF-8, plus the PostScript
+ device (groff's default). Users who want a full groff installation, with
+ the standard set of devices, fonts, macros, and documentation, should
+ install the groff package.
+
+Package: groff
+Priority: optional
+Architecture: any
+Depends: groff-base (= ${binary:Version}),
+ ${misc:Depends},
+ ${shlibs:Depends},
+Recommends: ghostscript,
+ imagemagick,
+ libpaper1,
+ netpbm,
+ perl,
+ psutils,
+Provides: groff-x11,
+ jgroff,
+Multi-Arch: foreign
+Description: GNU troff text-formatting system
+ This package contains optional components of the GNU troff text-formatting
+ system. The core package, groff-base, contains the traditional tools like
+ troff, nroff, tbl, eqn, and pic. This package contains additional devices
+ and drivers for output to DVI, HTML (when recommended packages are
+ installed - see below), PDF, HP LaserJet printers, and Canon CAPSL LBP-4
+ and LBP-8 printers.
+ .
+ The X75, X75-12, X100, and X100-12 devices, which allow groff output to be
+ conveniently viewed on an X display using the standard X11 fonts, are now
+ included here. They were previously in a separate package, groff-x11.
+ .
+ Besides these, the groff package contains man pages describing the language
+ and its macro sets, info documentation, and a number of supplementary
+ programs:
+ .
+ - gxditview, which is used to display the output of the X* devices, and
+ can also be used to view PostScript output from groff;
+ - grn, a preprocessor for pictures in the 'gremlin' format;
+ - tfmtodit, which creates font files for use with 'groff -Tdvi';
+ - hpftodit, which creates font files for use with 'groff -Tlj4';
+ - afmtodit, which creates font files for use with 'groff -Tps';
+ - refer, which preprocesses bibliographic references for use with groff;
+ - indxbib, which creates inverted indices for bibliographic databases used
+ by 'refer';
+ - lkbib and lookbib, which search bibliographic databases;
+ - addftinfo, which adds metric information to troff font files for use
+ with groff;
+ - pfbtops, which translates a PostScript font in .pfb format to ASCII for
+ use with groff;
+ - mmroff, a simple groff preprocessor which expands references in mm;
+ - pic2graph, which converts PIC diagrams into cropped image files;
+ - eqn2graph, which converts EQN equations into cropped image files;
+ - pdfmom, which runs 'groff -mom' to produce PDFs.
+ .
+ All the standard macro packages are supported.
+ .
+ Some facilities only work if certain recommended packages are installed:
+ .
+ - ghostscript, netpbm, psutils: required for HTML output;
+ - imagemagick: required for the pic2graph and eqn2graph programs;
+ - libpaper1: paper size detection in dvi, lbp, lj4, and ps devices (falls
+ back to a4 if not installed);
+ - perl: required for PDF output and for the chem preprocessor.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..b32b6c8
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,316 @@
+This is the Debian GNU/Linux prepackaged version of the GNU groff
+document formatting system.
+GNU groff was written by James Clark <jjc@jclark.com>.
+
+This Debian package was previously maintained by Fabrizio Polacco
+<fpolacco@debian.org>.
+It is now maintained by Colin Watson <cjwatson@debian.org>.
+
+The original tarball came from <URL:ftp://groff.ffii.org/pub/groff/>:
+ 48fa768dd6fdeb7968041dd5ae8e2b02 groff-1.20.1.tar.gz
+and was simply renamed to groff_1.20.1.orig.tar.gz.
+
+Some patches have been applied to groff outside the debian directory.
+
+The Debian diff also appends /usr/share/groff/tmac to the default macro path
+for compatibility with versions of groff earlier than 1.17 (patch by Colin
+Watson).
+
+=========================================================================
+
+Copyright (C) 1989-2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
+ 2008, 2009
+Free Software Foundation, Inc.
+ Written by James Clark (jjc@jclark.com)
+
+This file is part of groff.
+
+groff is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+groff is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+On Debian systems, a copy of the GNU General Public License is available
+in /usr/share/common-licenses/GPL-3 as part of the base-files package.
+
+=========================================================================
+
+Included in this release are implementations of troff, pic, eqn, tbl,
+grn, refer, -man, -mdoc, and -ms macros, and drivers for PostScript, TeX
+dvi format, HP LaserJet 4 printers, Canon CAPSL printers, HTML format
+(still alpha), and typewriter-like devices. Also included is a modified
+version of the Berkeley -me macros, an enhanced version of the X11
+xditview previewer, and an implementation of the -mm macros contributed
+by Joergen Haegg (jh@axis.se).
+
+xditview is copyrighted by MIT under the usual X terms.
+
+/*
+ * Copyright 1991 Massachusetts Institute of Technology
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and its
+ * documentation for any purpose is hereby granted without fee, provided that
+ * the above copyright notice appear in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation, and that the name of M.I.T. not be used in advertising or
+ * publicity pertaining to distribution of the software without specific,
+ * written prior permission. M.I.T. makes no representations about the
+ * suitability of this software for any purpose. It is provided "as is"
+ * without express or implied warranty.
+ *
+ * M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T.
+ * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
+ * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ */
+
+=========================================================================
+
+The groff manual is also distributed under the terms of the GNU Free
+Documentation License version 1.3. On Debian systems, this is available in
+/usr/share/common-licenses/GFDL-1.3 as part of the base-files package.
+However, Debian does not consider this free when the Front-Cover Texts or
+Back-Cover Texts options are used. groff is distributed with a LICENSES
+file containing the following text (excerpted):
+
+ The groff program is a free software project. It is licensed under the GNU
+ General Public License (GNU GPL), version 3 or later.
+
+ The file COPYING in the top directory of the groff source package contains a
+ copy of the GPL that was downloaded from the GNU web site
+ http://www.gnu.org/copyleft/gpl.txt at 3 jan 2009.
+
+ All files part of groff are licensed under this version of the GPL (or
+ licenses which are compatible with the GPL). You are free to choose
+ version 3 or any subsequent version of the GPL.
+
+I e-mailed the upstream maintainer to clarify the intent of this. Here is
+the relevant part of the reply:
+
+ From: Werner LEMBERG <wl@gnu.org>
+ To: cjwatson@debian.org
+ Subject: Re: Clarifying the scope of groff/LICENSE
+ Date: Thu, 18 Nov 2004 00:19:52 +0100 (CET)
+
+ > Since "compatible with the GPL" means to all intents and purposes
+ > "may be distributed under the terms of the GPL", can I correctly
+ > assume that groff/LICENSE grants me permission to distribute
+ > groff/doc/groff.texinfo and groff/doc/pic.ms under the terms of the
+ > GPL?
+
+ This is the intention, of course.
+
+ > If not, is the FDL thing from yesteryear going to be resolved some
+ > other way? I just want to make sure that I don't get forced to
+ > remove the groff manual, since that would really diminish the
+ > quality of the Debian package IMHO.
+
+ Sigh. I haven't found time to revert the FDL stuff back to GPL. It
+ basically affects only Bernd Warken and me, and we have both agreed to
+ return to GPL in case FDL makes problems.
+
+(Note that this e-mail predates the current wording in LICENSES.)
+
+It is therefore my understanding that the copyright holders of the groff
+documentation intend it to be distributable under the terms of the GPL
+version 3 or later. The reference above to the FDL text in
+/usr/share/common-licenses/ is for information only.
+
+=========================================================================
+
+The following material is based on that in the groff LICENSES file, which
+itself is licensed as follows:
+
+ Copyright 2003, 2006, 2007, 2009
+ Free Software Foundation, Inc.
+
+ Copying and distribution of this file, with or without modification,
+ are permitted in any medium without royalty provided the copyright
+ notice and this notice are preserved.
+
+=========================================================================
+
+The grn preprocessor was written by Barry Roitblat <barry@rentonww.com> and
+David Slattengren <slatteng@Xinet.COM>. These files have been part of the
+original Berkeley ditroff distribution, without AT&T code, and are in the
+public domain.
+
+=========================================================================
+
+The gxditview output device was based on X11's xditview program and thus has
+the X licence.
+
+ Copyright 1991 Massachusetts Institute of Technology
+
+ Permission to use, copy, modify, distribute, and sell this software and its
+ documentation for any purpose is hereby granted without fee, provided that
+ the above copyright notice appear in all copies and that both that
+ copyright notice and this permission notice appear in supporting
+ documentation, and that the name of M.I.T. not be used in advertising or
+ publicity pertaining to distribution of the software without specific,
+ written prior permission. M.I.T. makes no representations about the
+ suitability of this software for any purpose. It is provided "as is"
+ without express or implied warranty.
+
+ M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T.
+ BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
+ OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+ CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+=========================================================================
+
+The -mdoc and -me macro sets are distributed under the terms of the BSD
+licence.
+
+ Copyright (c) 1991, 1993
+ The Regents of the University of California. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ 3. [Deleted. See
+ ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change]
+ 4. Neither the name of the University nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+
+=========================================================================
+
+The file tmac/hyphen.us is identical to the file hyphen.tex, part of the TeX
+system written by Donald E. Knuth; the master file can be found at:
+
+ ftp://labrea.stanford.edu/pub/tex/dist/lib/hyphen.tex
+
+It has been renamed for consistency, i.e., to make patterns available under
+the filenames hyphen.<language>, e.g. hyphen.de or hyphen.uk.
+
+ Unlimited copying and redistribution of this file are permitted as long
+ as this file is not modified. Modifications are permitted, but only if
+ the resulting file is not named hyphen.tex.
+
+=========================================================================
+
+The file tmac/hyphen.fr contains the same patterns as the file frhyph.tex
+(for TeX), which can be found at:
+
+ http://dante.ctan.org/CTAN/language/hyphenation/frhyph.tex
+
+The patterns have been converted to a format groff can understand.
+
+ frhyph.tex % French hyphenation patterns
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ This file is available for free and can used and redistributed
+ asis for free. Modified versions should have another name.
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ % \message{frhyph.tex - French hyphenation patterns (V2.11) <2002/01/16>}
+
+=========================================================================
+
+The file tmac/hyphen.sv is identical to the file svhyph.tex, which can be
+found at:
+
+ http://dante.ctan.org/CTAN/language/hyphenation/svhyph.tex
+
+ Copyright 1994 by Jan Michael Rynning. All rights reserved.
+ This program may be distributed and/or modified under the conditions of
+ the LaTeX Project Public License, either version 1.2 of this license or
+ (at your option) any later version. The latest version of this license
+ is in http://www.latex-project.org/lppl.txt and version 1.2 or later is
+ part of all distributions of LaTeX version 1999/12/01 or later.
+
+=========================================================================
+
+The files tmac/hyphen.det and tmac/hyphen.den contain the same patterns as
+the files `dehypht-x-2017-03-31.pat' and `dehyphn-x-2017-03-31.pat' (for
+TeX), respectively, which can be found at:
+
+ http://ctan.org/tex-archive/language/hyphenation/dehyph-exptl
+
+The patterns have been converted to latin-1.
+
+ Copyright (C) 1988,1991 Rechenzentrum der Ruhr-Universitaet Bochum
+ [german hyphen patterns]
+ Copyright (C) 1993,1994,1999 Bernd Raichle/DANTE e.V.
+ [macros, adaption for TeX 2]
+ Copyright (C) 1998--2001 Walter Schmidt
+ [adaption to new German orthography]
+
+ -----------------------------------------------------------------
+ IMPORTANT NOTICE:
+
+ This program can be redistributed and/or modified under the terms
+ of the LaTeX Project Public License Distributed from CTAN
+ archives in directory macros/latex/base/lppl.txt; either
+ version 1 of the License, or any later version.
+ -----------------------------------------------------------------
+
+=========================================================================
+
+The file tmac/hyphen.cs contains the same patterns as the file czhyphen.tex
+(for TeX), which can be found in the archive:
+
+ http://dante.ctan.org/CTAN/macros/cstex/base/csplain.tar.gz
+
+The patterns have been converted to a format groff can understand.
+
+ This is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This file is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+=========================================================================
+
+doc/meintro.me and doc/meref.me are distributed under the following terms:
+
+ Copyright (c) 1986 The Regents of the University of California.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms are permitted
+ provided that the above copyright notice and this paragraph are
+ duplicated in all such forms and that any documentation,
+ advertising materials, and other materials related to such
+ distribution and use acknowledge that the software was developed
+ by the University of California, Berkeley. The name of the
+ University may not be used to endorse or promote products derived
+ from this software without specific prior written permission.
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
diff --git a/debian/groff-base.dirs b/debian/groff-base.dirs
new file mode 100644
index 0000000..41b69ac
--- /dev/null
+++ b/debian/groff-base.dirs
@@ -0,0 +1,3 @@
+etc
+usr/lib/groff/site-tmac
+usr/share/groff/${env:UPSTREAM_VERSION}
diff --git a/debian/groff-base.docs b/debian/groff-base.docs
new file mode 100644
index 0000000..fc9b4bb
--- /dev/null
+++ b/debian/groff-base.docs
@@ -0,0 +1,7 @@
+BUG-REPORT
+MORE.STUFF
+NEWS
+PROBLEMS
+PROJECTS
+README
+TODO
diff --git a/debian/groff-base.install b/debian/groff-base.install
new file mode 100644
index 0000000..b70e3f1
--- /dev/null
+++ b/debian/groff-base.install
@@ -0,0 +1,84 @@
+usr/bin/eqn
+usr/bin/groff
+usr/bin/grog
+usr/bin/grops
+usr/bin/grotty
+usr/bin/neqn
+usr/bin/nroff
+usr/bin/pic
+usr/bin/preconv
+usr/bin/soelim
+usr/bin/tbl
+usr/bin/troff
+usr/share/man/man1/eqn.1
+usr/share/man/man1/groff.1
+usr/share/man/man1/grog.1
+usr/share/man/man1/grops.1
+usr/share/man/man1/grotty.1
+usr/share/man/man1/neqn.1
+usr/share/man/man1/nroff.1
+usr/share/man/man1/pic.1
+usr/share/man/man1/preconv.1
+usr/share/man/man1/soelim.1
+usr/share/man/man1/tbl.1
+usr/share/man/man1/troff.1
+usr/share/groff/${env:UPSTREAM_VERSION}/eign
+usr/share/groff/${env:UPSTREAM_VERSION}/font/devascii
+usr/share/groff/${env:UPSTREAM_VERSION}/font/devlatin1
+usr/share/groff/${env:UPSTREAM_VERSION}/font/devps
+usr/share/groff/${env:UPSTREAM_VERSION}/font/devutf8
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/an-ext.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/an.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/andoc.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/composite.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/cp1047.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/cs.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/de.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/den.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/devtag.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/doc.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/doc-old.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/en.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/eqnrc
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/europs.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/fallbacks.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/fr.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/hyphen.cs
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/hyphen.den
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/hyphen.det
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/hyphen.en
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/hyphen.fr
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/hyphen.it
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/hyphen.sv
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/hyphenex.cs
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/hyphenex.en
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/it.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/ja.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/latin1.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/latin2.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/latin5.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/latin9.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/man.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/mandoc.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/mdoc.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/mdoc
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/papersize.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/pdfpic.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/pic.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/ps.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/psatk.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/psold.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/pspic.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/rfc1345.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/sv.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/trans.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/troffrc
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/troffrc-end
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/tty-char.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/tty.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/www.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/zh.tmac
+usr/share/groff/current
+
+# Conffiles should go in /etc
+usr/share/groff/site-tmac/* etc/groff
diff --git a/debian/groff-base.links b/debian/groff-base.links
new file mode 100644
index 0000000..49e403e
--- /dev/null
+++ b/debian/groff-base.links
@@ -0,0 +1,7 @@
+etc/groff usr/share/groff/site-tmac
+usr/bin/eqn usr/bin/geqn
+usr/bin/pic usr/bin/gpic
+usr/bin/tbl usr/bin/gtbl
+usr/share/man/man1/eqn.1.gz usr/share/man/man1/geqn.1.gz
+usr/share/man/man1/pic.1.gz usr/share/man/man1/gpic.1.gz
+usr/share/man/man1/tbl.1.gz usr/share/man/man1/gtbl.1.gz
diff --git a/debian/groff-base.mime b/debian/groff-base.mime
new file mode 100644
index 0000000..000d79f
--- /dev/null
+++ b/debian/groff-base.mime
@@ -0,0 +1,2 @@
+application/x-troff-man; /usr/bin/nroff -t -mandoc -Tutf8; copiousoutput; print=/usr/bin/nroff -t -mandoc -Tutf8 | print text/plain:-
+text/troff; /usr/bin/nroff -t -mandoc -Tutf8; copiousoutput; print=/usr/bin/nroff -t -mandoc -Tutf8 | print text/plain:-
diff --git a/debian/groff.dirs b/debian/groff.dirs
new file mode 100644
index 0000000..7031368
--- /dev/null
+++ b/debian/groff.dirs
@@ -0,0 +1,3 @@
+etc/X11/app-defaults
+usr/bin
+usr/share/man/sv/man7
diff --git a/debian/groff.docs b/debian/groff.docs
new file mode 100644
index 0000000..7a8407d
--- /dev/null
+++ b/debian/groff.docs
@@ -0,0 +1 @@
+debian/build/doc/groff.pdf
diff --git a/debian/groff.install b/debian/groff.install
new file mode 100644
index 0000000..fc0c57f
--- /dev/null
+++ b/debian/groff.install
@@ -0,0 +1,122 @@
+etc/X11/app-defaults
+usr/bin/addftinfo
+usr/bin/afmtodit
+usr/bin/chem
+usr/bin/eqn2graph
+usr/bin/gdiffmk
+usr/bin/glilypond
+usr/bin/gperl
+usr/bin/gpinyin
+usr/bin/grap2graph
+usr/bin/grn
+usr/bin/grodvi
+usr/bin/grolbp
+usr/bin/grolj4
+usr/bin/gropdf
+usr/bin/gxditview
+usr/bin/hpftodit
+usr/bin/indxbib
+usr/bin/lkbib
+usr/bin/lookbib
+usr/bin/mmroff
+usr/bin/pdfmom
+usr/bin/pdfroff
+usr/bin/pfbtops
+usr/bin/pic2graph
+usr/bin/post-grohtml
+usr/bin/pre-grohtml
+usr/bin/refer
+usr/bin/tfmtodit
+usr/bin/xtotroff
+usr/share/doc
+usr/share/info
+usr/share/man/man1/addftinfo.1
+usr/share/man/man1/afmtodit.1
+usr/share/man/man1/chem.1
+usr/share/man/man1/eqn2graph.1
+usr/share/man/man1/gdiffmk.1
+usr/share/man/man1/glilypond.1
+usr/share/man/man1/gperl.1
+usr/share/man/man1/gpinyin.1
+usr/share/man/man1/grap2graph.1
+usr/share/man/man1/grn.1
+usr/share/man/man1/grodvi.1
+usr/share/man/man1/grohtml.1
+usr/share/man/man1/grolbp.1
+usr/share/man/man1/grolj4.1
+usr/share/man/man1/gropdf.1
+usr/share/man/man1/gxditview.1
+usr/share/man/man1/hpftodit.1
+usr/share/man/man1/indxbib.1
+usr/share/man/man1/lkbib.1
+usr/share/man/man1/lookbib.1
+usr/share/man/man1/mmroff.1
+usr/share/man/man1/pdfmom.1
+usr/share/man/man1/pdfroff.1
+usr/share/man/man1/pfbtops.1
+usr/share/man/man1/pic2graph.1
+usr/share/man/man1/refer.1
+usr/share/man/man1/tfmtodit.1
+usr/share/man/man1/xtotroff.1
+usr/share/man/man5
+usr/share/man/man7/groff.7
+usr/share/man/man7/groff_char.7
+usr/share/man/man7/groff_diff.7
+usr/share/man/man7/groff_hdtbl.7
+usr/share/man/man7/groff_man.7
+usr/share/man/man7/groff_man_style.7
+usr/share/man/man7/groff_mdoc.7
+usr/share/man/man7/groff_me.7
+usr/share/man/man7/groff_mm.7
+usr/share/man/man7/groff_mom.7
+usr/share/man/man7/groff_ms.7
+usr/share/man/man7/groff_rfc1345.7
+usr/share/man/man7/groff_trace.7
+usr/share/man/man7/groff_www.7
+usr/share/man/man7/roff.7
+usr/share/groff/${env:UPSTREAM_VERSION}/pic
+usr/share/groff/${env:UPSTREAM_VERSION}/font/FontMap-X11
+usr/share/groff/${env:UPSTREAM_VERSION}/font/devX*
+usr/share/groff/${env:UPSTREAM_VERSION}/font/devcp1047
+usr/share/groff/${env:UPSTREAM_VERSION}/font/devdvi
+usr/share/groff/${env:UPSTREAM_VERSION}/font/devhtml
+usr/share/groff/${env:UPSTREAM_VERSION}/font/devlbp
+usr/share/groff/${env:UPSTREAM_VERSION}/font/devlj4
+usr/share/groff/${env:UPSTREAM_VERSION}/font/devpdf
+usr/share/groff/${env:UPSTREAM_VERSION}/oldfont
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/62bit.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/X.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/Xps.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/dvi.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/e.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/ec.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/hdmisc.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/hdtbl.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/html-end.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/html.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/lbp.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/lj4.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/m.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/me.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/mm.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/mm
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/mmse.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/mom.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/ms.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/mse.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/om.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/pdf.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/pdfmark.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/ptx.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/refer.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/refer-me.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/refer-mm.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/refer-ms.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/s.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/sanitize.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/sboxes.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/spdf.tmac
+usr/share/groff/${env:UPSTREAM_VERSION}/tmac/trace.tmac
+
+# Move non-English manual pages to proper locations
+usr/share/man/man7/groff_mmse.7 usr/share/man/sv/man7
diff --git a/debian/groff.links b/debian/groff.links
new file mode 100644
index 0000000..67185ba
--- /dev/null
+++ b/debian/groff.links
@@ -0,0 +1,2 @@
+usr/share/man/man1/grohtml.1.gz usr/share/man/man1/post-grohtml.1.gz
+usr/share/man/man1/grohtml.1.gz usr/share/man/man1/pre-grohtml.1.gz
diff --git a/debian/mandoc.local b/debian/mandoc.local
new file mode 100644
index 0000000..0e78ca5
--- /dev/null
+++ b/debian/mandoc.local
@@ -0,0 +1,28 @@
+.
+.if n \{\
+. \" Debian: As of groff 1.23.0, the "-", "'", "`", "^", and "~" input
+. \" characters are mapped to non-Basic Latin code points in output from
+. \" the "utf8" device, for consistency with other output devices such as
+. \" PDF. Unfortunately in practice this still causes far too much
+. \" disruption for innocent users of manual pages who just want to be able
+. \" to search for characters normally, so preserve the old behaviour.
+. \" Comment this out if you want to make sure that manual pages you're
+. \" writing are clear of these problems.
+. if '\*[.T]'utf8' \{\
+. char - \-
+. char ' \[aq]
+. char ` \[ga]
+. char ^ \[ha]
+. char ~ \[ti]
+. \}
+.
+. \" Debian: "\-" is more commonly used for option dashes than for minus
+. \" signs in manual pages, so map it to plain "-" for HTML/XHTML output
+. \" rather than letting it be rendered as "&minus;".
+. ie '\*[.T]'html' \
+. char \- \N'45'
+. el \{\
+. if '\*[.T]'xhtml' \
+. char \- \N'45'
+. \}
+.\}
diff --git a/debian/patches/bash-scripts.patch b/debian/patches/bash-scripts.patch
new file mode 100644
index 0000000..e61c2ec
--- /dev/null
+++ b/debian/patches/bash-scripts.patch
@@ -0,0 +1,45 @@
+From e3d8901a5e24e11e1fa8a80329309295a20eb47f Mon Sep 17 00:00:00 2001
+From: Colin Watson <cjwatson@debian.org>
+Date: Thu, 2 Jan 2014 13:13:09 +0000
+Subject: The *2graph scripts use $RANDOM, which is bash-specific
+
+Forwarded: https://lists.gnu.org/archive/html/groff/2014-01/msg00008.html
+Last-Update: 2018-03-05
+
+Patch-Name: bash-scripts.patch
+---
+ contrib/eqn2graph/eqn2graph.sh | 2 +-
+ contrib/grap2graph/grap2graph.sh | 2 +-
+ contrib/pic2graph/pic2graph.sh | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/contrib/eqn2graph/eqn2graph.sh b/contrib/eqn2graph/eqn2graph.sh
+index 3e9c37486..454754b52 100644
+--- a/contrib/eqn2graph/eqn2graph.sh
++++ b/contrib/eqn2graph/eqn2graph.sh
+@@ -1,4 +1,4 @@
+-#! /bin/sh
++#! /bin/bash
+ #
+ # eqn2graph -- compile EQN equation descriptions to bitmap images
+ #
+diff --git a/contrib/grap2graph/grap2graph.sh b/contrib/grap2graph/grap2graph.sh
+index 29df25bb1..062f2eecd 100644
+--- a/contrib/grap2graph/grap2graph.sh
++++ b/contrib/grap2graph/grap2graph.sh
+@@ -1,4 +1,4 @@
+-#! /bin/sh
++#! /bin/bash
+ #
+ # grap2graph -- compile graph description descriptions to bitmap images
+ #
+diff --git a/contrib/pic2graph/pic2graph.sh b/contrib/pic2graph/pic2graph.sh
+index b22991483..cc92ce075 100644
+--- a/contrib/pic2graph/pic2graph.sh
++++ b/contrib/pic2graph/pic2graph.sh
+@@ -1,4 +1,4 @@
+-#! /bin/sh
++#! /bin/bash
+ #
+ # pic2graph -- compile PIC image descriptions to bitmap images
+ #
diff --git a/debian/patches/doc-default-os-debian.patch b/debian/patches/doc-default-os-debian.patch
new file mode 100644
index 0000000..c1eaa8a
--- /dev/null
+++ b/debian/patches/doc-default-os-debian.patch
@@ -0,0 +1,41 @@
+From 9bd0e1f19bb2591b30d628710ab805ca265789bc Mon Sep 17 00:00:00 2001
+From: Colin Watson <cjwatson@debian.org>
+Date: Sun, 9 Jul 2023 12:04:37 +0100
+Subject: Set doc-default-operating-system to "Debian"
+
+Bug-Debian: https://bugs.debian.org/284002
+Forwarded: not-needed
+Last-Update: 2023-07-09
+
+Patch-Name: doc-default-os-debian.patch
+---
+ tmac/mdoc/doc-common | 2 +-
+ tmac/tests/doc_smoke-test.sh | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/tmac/mdoc/doc-common b/tmac/mdoc/doc-common
+index 53a25659f..769b3700d 100644
+--- a/tmac/mdoc/doc-common
++++ b/tmac/mdoc/doc-common
+@@ -490,7 +490,7 @@
+ .\" NS
+ .\" NS override this in 'mdoc.local', if necessary
+ .
+-.ds doc-default-operating-system GNU\"
++.ds doc-default-operating-system Debian\"
+ .
+ .
+ .\" NS doc-operating-system global string
+diff --git a/tmac/tests/doc_smoke-test.sh b/tmac/tests/doc_smoke-test.sh
+index 09d1ad06b..f63df9e1d 100755
+--- a/tmac/tests/doc_smoke-test.sh
++++ b/tmac/tests/doc_smoke-test.sh
+@@ -58,7 +58,7 @@ echo "checking paragraph body for correct content" >&2
+ echo "$output" | grep -qE 'you can read this' || wail
+
+ echo "checking footer for correct content" >&2
+-echo "$output" | grep -qE '^GNU +August 25, 2020 +mdoc-test\(7\)' \
++echo "$output" | grep -qE '^Debian +August 25, 2020 +mdoc-test\(7\)' \
+ || wail
+
+ test -z "$fail"
diff --git a/debian/patches/doc-gfdl.patch b/debian/patches/doc-gfdl.patch
new file mode 100644
index 0000000..f0c646a
--- /dev/null
+++ b/debian/patches/doc-gfdl.patch
@@ -0,0 +1,163 @@
+From 22b7d1355485e1aa9dd52317087d9abe5a9c44ce Mon Sep 17 00:00:00 2001
+From: Colin Watson <cjwatson@debian.org>
+Date: Thu, 2 Jan 2014 13:13:16 +0000
+Subject: Add GFDL references to manual pages licensed under GFDL
+
+Bug-Debian: https://bugs.debian.org/292229
+Forwarded: not-needed
+Last-Update: 2023-07-08
+
+Patch-Name: doc-gfdl.patch
+---
+ contrib/hdtbl/groff_hdtbl.7.man | 3 +++
+ contrib/pdfmark/pdfroff.1.man | 3 +++
+ man/groff.7.man | 3 +++
+ man/groff_diff.7.man | 3 +++
+ man/groff_out.5.man | 3 +++
+ man/groff_tmac.5.man | 3 +++
+ man/roff.7.man | 3 +++
+ src/roff/groff/groff.1.man | 3 +++
+ src/roff/troff/troff.1.man | 3 +++
+ tmac/groff_trace.7.man | 3 +++
+ 10 files changed, 30 insertions(+)
+
+diff --git a/contrib/hdtbl/groff_hdtbl.7.man b/contrib/hdtbl/groff_hdtbl.7.man
+index af5ab875f..4e0e8e926 100644
+--- a/contrib/hdtbl/groff_hdtbl.7.man
++++ b/contrib/hdtbl/groff_hdtbl.7.man
+@@ -20,6 +20,9 @@ groff_hdtbl \- Heidelberger table macros for GNU
+ .\"
+ .\" A copy of the Free Documentation License is included as a file
+ .\" called FDL in the main directory of the groff source package.
++.\"
++.\" A copy of the GNU Free Documentation License is also available in this
++.\" Debian package as /usr/share/doc/groff/copyright.
+ .
+ .
+ .\" Save and disable compatibility mode (for, e.g., Solaris 10/11).
+diff --git a/contrib/pdfmark/pdfroff.1.man b/contrib/pdfmark/pdfroff.1.man
+index 029a1f459..e55d9176c 100644
+--- a/contrib/pdfmark/pdfroff.1.man
++++ b/contrib/pdfmark/pdfroff.1.man
+@@ -20,6 +20,9 @@ pdfroff \- construct files in Portable Document Format using
+ .\"
+ .\" A copy of the Free Documentation License is included as a file
+ .\" called FDL in the main directory of the groff source package.
++.\"
++.\" A copy of the GNU Free Documentation License is also available in this
++.\" Debian package as /usr/share/doc/groff/copyright.
+ .
+ .
+ .\" Save and disable compatibility mode (for, e.g., Solaris 10/11).
+diff --git a/man/groff.7.man b/man/groff.7.man
+index 3d4cad11b..f51c0a2e4 100644
+--- a/man/groff.7.man
++++ b/man/groff.7.man
+@@ -22,6 +22,9 @@ language reference
+ .\"
+ .\" A copy of the Free Documentation License is included as a file
+ .\" called FDL in the main directory of the groff source package.
++.\"
++.\" A copy of the GNU Free Documentation License is also available in this
++.\" Debian package as /usr/share/doc/groff/copyright.
+ .
+ .
+ .\" Save and disable compatibility mode (for, e.g., Solaris 10/11).
+diff --git a/man/groff_diff.7.man b/man/groff_diff.7.man
+index 0d25cb6c0..bc6a45309 100644
+--- a/man/groff_diff.7.man
++++ b/man/groff_diff.7.man
+@@ -23,6 +23,9 @@ and AT&T
+ .\"
+ .\" A copy of the Free Documentation License is included as a file
+ .\" called FDL in the main directory of the groff source package.
++.\"
++.\" A copy of the GNU Free Documentation License is also available in this
++.\" Debian package as /usr/share/doc/groff/copyright.
+ .
+ .
+ .\" Save and disable compatibility mode (for, e.g., Solaris 10/11).
+diff --git a/man/groff_out.5.man b/man/groff_out.5.man
+index 9c1534e2e..f90b0e640 100644
+--- a/man/groff_out.5.man
++++ b/man/groff_out.5.man
+@@ -22,6 +22,9 @@ intermediate output format
+ .\"
+ .\" A copy of the Free Documentation License is included as a file
+ .\" called FDL in the main directory of the groff source package.
++.\"
++.\" A copy of the GNU Free Documentation License is also available in this
++.\" Debian package as /usr/share/doc/groff/copyright.
+ .
+ .
+ .\" Save and disable compatibility mode (for, e.g., Solaris 10/11).
+diff --git a/man/groff_tmac.5.man b/man/groff_tmac.5.man
+index fac78f52f..b28297f6f 100644
+--- a/man/groff_tmac.5.man
++++ b/man/groff_tmac.5.man
+@@ -21,6 +21,9 @@ typesetting system
+ .\"
+ .\" A copy of the Free Documentation License is included as a file
+ .\" called FDL in the main directory of the groff source package.
++.\"
++.\" A copy of the GNU Free Documentation License is also available in this
++.\" Debian package as /usr/share/doc/groff/copyright.
+ .
+ .
+ .\" Save and disable compatibility mode (for, e.g., Solaris 10/11).
+diff --git a/man/roff.7.man b/man/roff.7.man
+index 2468a4b02..9272f8264 100644
+--- a/man/roff.7.man
++++ b/man/roff.7.man
+@@ -25,6 +25,9 @@ typesetting
+ .\"
+ .\" A copy of the Free Documentation License is included as a file
+ .\" called FDL in the main directory of the groff source package.
++.\"
++.\" A copy of the GNU Free Documentation License is also available in this
++.\" Debian package as /usr/share/doc/groff/copyright.
+ .
+ .
+ .\" Save and disable compatibility mode (for, e.g., Solaris 10/11).
+diff --git a/src/roff/groff/groff.1.man b/src/roff/groff/groff.1.man
+index c551326e8..ed6c7eae1 100644
+--- a/src/roff/groff/groff.1.man
++++ b/src/roff/groff/groff.1.man
+@@ -21,6 +21,9 @@ document formatting system
+ .\"
+ .\" A copy of the Free Documentation License is included as a file
+ .\" called FDL in the main directory of the groff source package.
++.\"
++.\" A copy of the GNU Free Documentation License is also available in this
++.\" Debian package as /usr/share/doc/groff-base/copyright.
+ .
+ .
+ .\" Save and disable compatibility mode (for, e.g., Solaris 10/11).
+diff --git a/src/roff/troff/troff.1.man b/src/roff/troff/troff.1.man
+index d83c4a515..01b46616c 100644
+--- a/src/roff/troff/troff.1.man
++++ b/src/roff/troff/troff.1.man
+@@ -22,6 +22,9 @@ typesetter and document formatter
+ .\"
+ .\" A copy of the Free Documentation License is included as a file
+ .\" called FDL in the main directory of the groff source package.
++.\"
++.\" A copy of the GNU Free Documentation License is also available in this
++.\" Debian package as /usr/share/doc/groff-base/copyright.
+ .
+ .
+ .\" Save and disable compatibility mode (for, e.g., Solaris 10/11).
+diff --git a/tmac/groff_trace.7.man b/tmac/groff_trace.7.man
+index 63da8abb8..f3be31970 100644
+--- a/tmac/groff_trace.7.man
++++ b/tmac/groff_trace.7.man
+@@ -21,6 +21,9 @@ documents
+ .\"
+ .\" A copy of the Free Documentation License is included as a file
+ .\" called FDL in the main directory of the groff source package.
++.\"
++.\" A copy of the GNU Free Documentation License is also available in this
++.\" Debian package as /usr/share/doc/groff/copyright.
+ .
+ .
+ .\" Save and disable compatibility mode (for, e.g., Solaris 10/11).
diff --git a/debian/patches/doc-gzipped.patch b/debian/patches/doc-gzipped.patch
new file mode 100644
index 0000000..a91c730
--- /dev/null
+++ b/debian/patches/doc-gzipped.patch
@@ -0,0 +1,41 @@
+From 2bc926a96d056356c0c5cd68779e6579b289b38d Mon Sep 17 00:00:00 2001
+From: Colin Watson <cjwatson@debian.org>
+Date: Thu, 2 Jan 2014 13:13:17 +0000
+Subject: Adjust documentation references to account for compression
+
+Bug-Debian: https://bugs.debian.org/498356
+Forwarded: not-needed
+Last-Update: 2023-07-08
+
+Patch-Name: doc-gzipped.patch
+---
+ contrib/pdfmark/pdfroff.1.man | 2 +-
+ src/preproc/pic/pic.1.man | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/contrib/pdfmark/pdfroff.1.man b/contrib/pdfmark/pdfroff.1.man
+index e55d9176c..101da7d7f 100644
+--- a/contrib/pdfmark/pdfroff.1.man
++++ b/contrib/pdfmark/pdfroff.1.man
+@@ -958,7 +958,7 @@ as the preferred formatter.
+ .
+ .
+ .TP
+-.I @PDFDOCDIR@/\:\%pdfmark.pdf
++.I @PDFDOCDIR@/\:\%pdfmark.pdf.gz
+ \[lq]Portable Document Format Publishing with GNU
+ .IR Troff \[rq],
+ by Keith Marshall,
+diff --git a/src/preproc/pic/pic.1.man b/src/preproc/pic/pic.1.man
+index 727cbc347..aa1123706 100644
+--- a/src/preproc/pic/pic.1.man
++++ b/src/preproc/pic/pic.1.man
+@@ -1500,7 +1500,7 @@ which interprets 0 as black and 1 as white.
+ .\" ====================================================================
+ .
+ .TP
+-.I @DOCDIR@/\:pic\:.ps
++.I @DOCDIR@/\:pic\:.ps.gz
+ \[lq]Making Pictures with GNU pic\[rq],
+ by Eric S.\& Raymond.
+ .
diff --git a/debian/patches/extratmacdirs.patch b/debian/patches/extratmacdirs.patch
new file mode 100644
index 0000000..d0fb221
--- /dev/null
+++ b/debian/patches/extratmacdirs.patch
@@ -0,0 +1,33 @@
+From 8d089f72758f5abf62fe667cb6a7bef1b5d2e36b Mon Sep 17 00:00:00 2001
+From: Colin Watson <cjwatson@debian.org>
+Date: Thu, 2 Jan 2014 13:13:20 +0000
+Subject: 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.
+
+Forwarded: no
+Last-Update: 2018-03-05
+
+Patch-Name: extratmacdirs.patch
+---
+ Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index f7ab4107e..c4d09b7be 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -207,7 +207,7 @@ localtmacdir=$(dataprogramdir)/site-tmac
+ # directory will be always added.
+ # `troffrc' and `troffrc-end' (and `eqnrc') are searched neither in the
+ # current nor in the home directory.
+-tmacpath=$(systemtmacdir)$(RT_SEP)$(localtmacdir)$(RT_SEP)$(tmacdir)
++tmacpath=$(systemtmacdir)$(RT_SEP)$(localtmacdir)$(RT_SEP)$(tmacdir)$(if $(extratmacdirs),$(RT_SEP)$(extratmacdirs))
+
+ # sys_tmac_prefix
+ # `sys_tmac_prefix' is prefix (if any) for system macro packages.
diff --git a/debian/patches/load-desc-failure.patch b/debian/patches/load-desc-failure.patch
new file mode 100644
index 0000000..ebf05f6
--- /dev/null
+++ b/debian/patches/load-desc-failure.patch
@@ -0,0 +1,42 @@
+From b30f08f4cd5791a9895df07c1acb061518c73cbe Mon Sep 17 00:00:00 2001
+From: Colin Watson <cjwatson@debian.org>
+Date: Thu, 2 Jan 2014 13:13:22 +0000
+Subject: 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.
+
+Forwarded: not-needed
+Last-Update: 2023-07-08
+
+Patch-Name: load-desc-failure.patch
+---
+ src/roff/groff/groff.cpp | 15 ++++++++++++---
+ 1 file changed, 12 insertions(+), 3 deletions(-)
+
+diff --git a/src/roff/groff/groff.cpp b/src/roff/groff/groff.cpp
+index 4eb732969..d4cb3c122 100644
+--- a/src/roff/groff/groff.cpp
++++ b/src/roff/groff/groff.cpp
+@@ -378,9 +378,18 @@ int main(int argc, char **argv)
+ }
+ font::set_unknown_desc_command_handler(handle_unknown_desc_command);
+ const char *desc = font::load_desc();
+- if (0 /* nullptr */ == desc)
+- fatal("cannot load 'DESC' description file for device '%1'",
+- device);
++ if (0 /* nullptr */ == desc) {
++ if (strcmp(device, "X100") == 0 || strcmp(device, "X100-12") == 0 ||
++ strcmp(device, "X75") == 0 || strcmp(device, "X75-12") == 0 ||
++ strcmp(device, "dvi") == 0 || strcmp(device, "html") == 0 ||
++ strcmp(device, "lbp") == 0 || strcmp(device, "lj4") == 0)
++ fatal("cannot load 'DESC' description file for device '%1' "
++ "(try installing the 'groff' package?)",
++ device);
++ else
++ fatal("cannot load 'DESC' description file for device '%1'",
++ device);
++ }
+ if (need_postdriver && (0 /* nullptr */ == postdriver))
+ fatal_with_file_and_line(desc, 0, "device description file missing"
+ " 'postpro' directive");
diff --git a/debian/patches/man-hyperlinks.patch b/debian/patches/man-hyperlinks.patch
new file mode 100644
index 0000000..d28dec8
--- /dev/null
+++ b/debian/patches/man-hyperlinks.patch
@@ -0,0 +1,47 @@
+From 43f8bc8009a33929db3f3bafadf17f606c1b850a Mon Sep 17 00:00:00 2001
+From: Colin Watson <cjwatson@debian.org>
+Date: Tue, 11 Jul 2023 17:33:14 +0100
+Subject: 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.
+
+Forwarded: no
+Last-Update: 2023-07-11
+
+Patch-Name: man-hyperlinks.patch
+---
+ tmac/man.local | 2 +-
+ tmac/tests/an_UE-breaks-before-long-URIs.sh | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/tmac/man.local b/tmac/man.local
+index 5daa507b8..0bb667bd4 100644
+--- a/tmac/man.local
++++ b/tmac/man.local
+@@ -6,7 +6,7 @@
+ .\" output devices.
+ .if !'\*[.T]'html' \
+ . if !r U \
+-. nr U 0
++. nr U 1
+ .\"
+ .\" "CW" is not a portable font name, but some man pages use it anyway.
+ .\" Uncomment this to suppress warnings produced by such pages. This
+diff --git a/tmac/tests/an_UE-breaks-before-long-URIs.sh b/tmac/tests/an_UE-breaks-before-long-URIs.sh
+index 0b151fd8d..f39ceaea1 100755
+--- a/tmac/tests/an_UE-breaks-before-long-URIs.sh
++++ b/tmac/tests/an_UE-breaks-before-long-URIs.sh
+@@ -48,10 +48,10 @@ wail () {
+ fail=yes
+ }
+
+-output=$(printf "%s" "$input" | "$groff" -Tascii -P-cbou -man)
++output=$(printf "%s" "$input" | "$groff" -Tascii -P-cbou -rU0 -man)
+ echo "$output"
+ error=$(printf "%s" "$input" \
+- | "$groff" -Tascii -P-cbou -man -ww -z 2>&1)
++ | "$groff" -Tascii -P-cbou -rU0 -man -ww -z 2>&1)
+
+ echo "testing that no diagnostic messages are produced" >&2
+ test -z "$error" || wail
diff --git a/debian/patches/mmse-note.patch b/debian/patches/mmse-note.patch
new file mode 100644
index 0000000..a5944b5
--- /dev/null
+++ b/debian/patches/mmse-note.patch
@@ -0,0 +1,71 @@
+From a936d99e2e4315890085267112317ab710d504fc Mon Sep 17 00:00:00 2001
+From: Colin Watson <cjwatson@debian.org>
+Date: Sun, 26 Jan 2014 19:34:00 +0000
+Subject: Note that groff_mmse(7) is only available in Swedish locales
+
+Bug-Debian: https://bugs.debian.org/710431
+Forwarded: no
+Last-Update: 2023-07-08
+
+Patch-Name: mmse-note.patch
+---
+ contrib/mm/groff_mm.7.man | 1 +
+ contrib/mm/mmroff.1.man | 3 ++-
+ man/groff_tmac.5.man | 3 ++-
+ src/roff/groff/groff.1.man | 3 ++-
+ 4 files changed, 7 insertions(+), 3 deletions(-)
+
+diff --git a/contrib/mm/groff_mm.7.man b/contrib/mm/groff_mm.7.man
+index 4f9419150..4da41c867 100644
+--- a/contrib/mm/groff_mm.7.man
++++ b/contrib/mm/groff_mm.7.man
+@@ -5414,6 +5414,7 @@ You can browse it interactively with \[lq]info groff\[rq].
+ .MR @g@eqn @MAN1EXT@ ,
+ .MR @g@refer @MAN1EXT@ ,
+ .MR groff_mmse @MAN7EXT@
++(only in Swedish locales)
+ .
+ .
+ .\" Restore compatibility mode (for, e.g., Solaris 10/11).
+diff --git a/contrib/mm/mmroff.1.man b/contrib/mm/mmroff.1.man
+index 7920c709d..b0aed5509 100644
+--- a/contrib/mm/mmroff.1.man
++++ b/contrib/mm/mmroff.1.man
+@@ -151,7 +151,8 @@ Sweden.
+ .\" ====================================================================
+ .
+ .MR groff_mm @MAN7EXT@ ,
+-.MR groff_mmse @MAN7EXT@ ,
++.MR groff_mmse @MAN7EXT@
++(only in Swedish locales),
+ .MR groff @MAN1EXT@ ,
+ .MR @g@troff @MAN1EXT@ ,
+ .MR @g@tbl @MAN1EXT@ ,
+diff --git a/man/groff_tmac.5.man b/man/groff_tmac.5.man
+index b28297f6f..01f4c1970 100644
+--- a/man/groff_tmac.5.man
++++ b/man/groff_tmac.5.man
+@@ -416,7 +416,8 @@ Some of the localization of the
+ .I mm
+ package is handled separately;
+ see
+-.MR groff_mmse @MAN7EXT@ .
++.MR groff_mmse @MAN7EXT@
++(only in Swedish locales).
+ .
+ .
+ .TP
+diff --git a/src/roff/groff/groff.1.man b/src/roff/groff/groff.1.man
+index ed6c7eae1..75687440e 100644
+--- a/src/roff/groff/groff.1.man
++++ b/src/roff/groff/groff.1.man
+@@ -2311,7 +2311,8 @@ Macro packages and package-specific utilities:
+ .MR groff_mdoc @MAN7EXT@ , \" #56
+ .MR groff_me @MAN7EXT@ , \" #57
+ .MR groff_mm @MAN7EXT@ , \" # 10
+-.MR groff_mmse @MAN7EXT@ , \" # 11
++.MR groff_mmse @MAN7EXT@ \" # 11
++(only in Swedish locales),
+ .MR mmroff @MAN1EXT@ , \" #12
+ .MR groff_mom @MAN7EXT@ , \" #13
+ .MR pdfmom @MAN1EXT@ , \" #30
diff --git a/debian/patches/nroff-ifs.patch b/debian/patches/nroff-ifs.patch
new file mode 100644
index 0000000..bee5851
--- /dev/null
+++ b/debian/patches/nroff-ifs.patch
@@ -0,0 +1,30 @@
+From 5820d2ee6514013f1ee6477935ed13a5230c2cca Mon Sep 17 00:00:00 2001
+From: Colin Watson <cjwatson@debian.org>
+Date: Thu, 2 Jan 2014 13:13:12 +0000
+Subject: 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.
+
+Bug-Debian: https://bugs.debian.org/541621
+Forwarded: no
+Last-Update: 2018-03-05
+
+Patch-Name: nroff-ifs.patch
+---
+ src/roff/nroff/nroff.sh | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/roff/nroff/nroff.sh b/src/roff/nroff/nroff.sh
+index 77f5c069e..14e4bd0f1 100644
+--- a/src/roff/nroff/nroff.sh
++++ b/src/roff/nroff/nroff.sh
+@@ -20,6 +20,8 @@
+ # You should have received a copy of the GNU General Public License
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
+
++unset IFS
++
+ prog="$0"
+
+ T=
diff --git a/debian/patches/nroff-map-CW-to-R.patch b/debian/patches/nroff-map-CW-to-R.patch
new file mode 100644
index 0000000..8a99c9b
--- /dev/null
+++ b/debian/patches/nroff-map-CW-to-R.patch
@@ -0,0 +1,40 @@
+From 742dfac36f1fd23e17d27dbf83e3793d3f3a063d Mon Sep 17 00:00:00 2001
+From: Colin Watson <cjwatson@debian.org>
+Date: Fri, 14 Jul 2023 12:42:26 +0100
+Subject: Map CW to R for nroff
+
+Bug-Debian: https://bugs.debian.org/1040975
+Last-Update: 2023-07-14
+
+Patch-Name: nroff-map-CW-to-R.patch
+---
+ tmac/man.local | 2 +-
+ tmac/mdoc.local | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/tmac/man.local b/tmac/man.local
+index 0bb667bd4..1aaaadd6a 100644
+--- a/tmac/man.local
++++ b/tmac/man.local
+@@ -12,7 +12,7 @@
+ .\" Uncomment this to suppress warnings produced by such pages. This
+ .\" test remaps the font to roman ("R") on nroff (terminal) devices. You
+ .\" might prefer to remap it to bold ("B") instead.
+-.\" .if n .ftr CW R
++.if n .ftr CW R
+ .\"
+ .\" A de facto standard URL format for man pages is recognized
+ .\" everywhere except Apple, where different macOS applications expect
+diff --git a/tmac/mdoc.local b/tmac/mdoc.local
+index 94688aba0..66dcc423d 100644
+--- a/tmac/mdoc.local
++++ b/tmac/mdoc.local
+@@ -6,7 +6,7 @@
+ .\" Uncomment this to suppress warnings produced by such pages. This
+ .\" test remaps the font to roman ("R") on nroff (terminal) devices. You
+ .\" might prefer to remap it to bold ("B") instead.
+-.\" .if n .ftr CW R
++.if n .ftr CW R
+ .\"
+ .\" Local Variables:
+ .\" mode: nroff
diff --git a/debian/patches/papersize-config.patch b/debian/patches/papersize-config.patch
new file mode 100644
index 0000000..912a657
--- /dev/null
+++ b/debian/patches/papersize-config.patch
@@ -0,0 +1,98 @@
+From 89007e004d78582fd83651d0421045229ff2e838 Mon Sep 17 00:00:00 2001
+From: Colin Watson <cjwatson@debian.org>
+Date: Thu, 2 Jan 2014 13:13:21 +0000
+Subject: Use /etc/papersize in preference to configure-time selection
+
+Forwarded: not-needed
+Last-Update: 2023-07-09
+
+Patch-Name: papersize-config.patch
+---
+ font/devdvi/devdvi.am | 4 ++--
+ font/devlbp/devlbp.am | 4 ++--
+ font/devlj4/devlj4.am | 4 ++--
+ font/devpdf/devpdf.am | 5 +++--
+ font/devps/devps.am | 4 ++--
+ 5 files changed, 11 insertions(+), 10 deletions(-)
+
+diff --git a/font/devdvi/devdvi.am b/font/devdvi/devdvi.am
+index e7f5768d7..4d479de2b 100644
+--- a/font/devdvi/devdvi.am
++++ b/font/devdvi/devdvi.am
+@@ -81,9 +81,9 @@ font/devdvi/DESC: $(devdvi_srcdir)/DESC.in
+ $(AM_V_GEN)$(MKDIR_P) `dirname $@` \
+ && cat $(devdvi_srcdir)/DESC.in >$@ \
+ && if test "$(PAGE)" = A4; then \
+- echo "papersize a4" >>$@; \
++ echo "papersize /etc/papersize a4" >>$@; \
+ else \
+- echo "papersize letter" >>$@; \
++ echo "papersize /etc/papersize letter" >>$@; \
+ fi \
+ && (test -z '$(DVIPRINT)' \
+ || echo print '$(DVIPRINT)' >>$@)
+diff --git a/font/devlbp/devlbp.am b/font/devlbp/devlbp.am
+index 0702a2088..b60450caa 100644
+--- a/font/devlbp/devlbp.am
++++ b/font/devlbp/devlbp.am
+@@ -45,9 +45,9 @@ font/devlbp/DESC: $(devlbp_srcdir)/DESC.in
+ $(AM_V_GEN)$(MKDIR_P) `dirname $@` \
+ && cat $(devlbp_srcdir)/DESC.in >$@ \
+ && if test "$(PAGE)" = A4; then \
+- echo "papersize a4" >>$@; \
++ echo "papersize /etc/papersize a4" >>$@; \
+ else \
+- echo "papersize letter" >>$@; \
++ echo "papersize /etc/papersize letter" >>$@; \
+ fi \
+ && (test -z '$(LBPPRINT)' \
+ || echo print '$(LBPPRINT)' >>$@)
+diff --git a/font/devlj4/devlj4.am b/font/devlj4/devlj4.am
+index 9f17c4d72..d5cfe9b6d 100644
+--- a/font/devlj4/devlj4.am
++++ b/font/devlj4/devlj4.am
+@@ -90,9 +90,9 @@ font/devlj4/DESC: $(devlj4_srcdir)/DESC.in
+ && echo "unitwidth `expr 7620000 / $(LJ4RES)`" >>$@ \
+ && cat $(devlj4_srcdir)/DESC.in >>$@ \
+ && if test "$(PAGE)" = A4; then \
+- echo "papersize a4" >>$@; \
++ echo "papersize /etc/papersize a4" >>$@; \
+ else \
+- echo "papersize letter" >>$@; \
++ echo "papersize /etc/papersize letter" >>$@; \
+ fi \
+ && (test -z '$(LJ4PRINT)' \
+ || echo print '$(LJ4PRINT)' >>$@)
+diff --git a/font/devpdf/devpdf.am b/font/devpdf/devpdf.am
+index edce36575..5ba6f93f7 100644
+--- a/font/devpdf/devpdf.am
++++ b/font/devpdf/devpdf.am
+@@ -92,9 +92,10 @@ font/devpdf/DESC: $(devpdf_srcdir)/DESC.in
+ && cat $(devpdf_srcdir)/DESC.in \
+ >$(top_builddir)/font/devpdf/DESC \
+ && if test "$(PAGE)" = A4; then \
+- echo "papersize a4" >>$(top_builddir)/font/devpdf/DESC; \
++ echo "papersize /etc/papersize a4" \
++ >>$(top_builddir)/font/devpdf/DESC; \
+ else \
+- echo "papersize letter" \
++ echo "papersize /etc/papersize letter" \
+ >>$(top_builddir)/font/devpdf/DESC; \
+ fi
+
+diff --git a/font/devps/devps.am b/font/devps/devps.am
+index 2664f3c91..656c603be 100644
+--- a/font/devps/devps.am
++++ b/font/devps/devps.am
+@@ -144,9 +144,9 @@ font/devps/DESC: $(devps_srcdir)/DESC.in
+ && cat $(devps_srcdir)/DESC.in >$@.tmp \
+ && echo broken $(BROKEN_SPOOLER_FLAGS) >>$@.tmp \
+ && if test "$(PAGE)" = A4; then \
+- echo "papersize a4" >>$@.tmp; \
++ echo "papersize /etc/papersize a4" >>$@.tmp; \
+ else \
+- echo "papersize letter" >>$@.tmp; \
++ echo "papersize /etc/papersize letter" >>$@.tmp; \
+ fi \
+ && (test -z '$(PSPRINT)' \
+ || echo print '$(PSPRINT)' >>$@.tmp)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..fcabcc0
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,12 @@
+bash-scripts.patch
+nroff-ifs.patch
+doc-gfdl.patch
+doc-gzipped.patch
+extratmacdirs.patch
+papersize-config.patch
+load-desc-failure.patch
+mmse-note.patch
+source-date-epoch-utc.patch
+doc-default-os-debian.patch
+man-hyperlinks.patch
+nroff-map-CW-to-R.patch
diff --git a/debian/patches/source-date-epoch-utc.patch b/debian/patches/source-date-epoch-utc.patch
new file mode 100644
index 0000000..b9e5b76
--- /dev/null
+++ b/debian/patches/source-date-epoch-utc.patch
@@ -0,0 +1,468 @@
+From 56d2f35b18a8e6502c6aa842c07b3d27fe9f6f7f Mon Sep 17 00:00:00 2001
+From: Colin Watson <cjwatson@debian.org>
+Date: Sun, 9 Jul 2023 13:23:21 +0100
+Subject: 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.
+
+Origin: upstream, https://git.savannah.gnu.org/cgit/groff.git/commit/?id=d7bbfb04ea25a82a8597cdef6ebb391cb78ab47c
+Last-Update: 2023-07-11
+
+Patch-Name: source-date-epoch-utc.patch
+---
+ doc/groff.texi | 13 +++++++------
+ src/devices/grohtml/grohtml.1.man | 12 +++++++-----
+ src/devices/grohtml/post-html.cpp | 16 ++++------------
+ src/devices/gropdf/gropdf.1.man | 10 +++++-----
+ src/devices/gropdf/gropdf.pl | 16 ++++++++++++++--
+ src/devices/grops/grops.1.man | 12 +++++++-----
+ src/devices/grops/ps.cpp | 9 ++-------
+ src/include/curtime.h | 19 +++++++++++--------
+ src/libs/libgroff/curtime.cpp | 23 +++++++++++++----------
+ src/roff/groff/groff.1.man | 12 +++++++-----
+ src/roff/troff/input.cpp | 24 +++++++++---------------
+ src/roff/troff/troff.1.man | 12 +++++++-----
+ 12 files changed, 93 insertions(+), 85 deletions(-)
+
+diff --git a/doc/groff.texi b/doc/groff.texi
+index 2a6635e9d..bcea4f3e7 100644
+--- a/doc/groff.texi
++++ b/doc/groff.texi
+@@ -1389,15 +1389,16 @@ overrides @env{GROFF_TYPESETTER}.
+ @tindex SOURCE_DATE_EPOCH@r{, environment variable}
+ A timestamp (expressed as seconds since the Unix epoch) to use as the
+ output creation timestamp in place of the current time. The time is
+-converted to human-readable form using @cite{localtime@r{(3)}} when the
+-formatter starts up and stored in registers usable by documents and
+-macro packages (@pxref{Built-in Registers}).
++converted to human-readable form using @cite{gmtime@r{(3)}} and
++@cite{asctime@r{(3)}} when the formatter starts up and stored in
++registers usable by documents and macro packages (@pxref{Built-in
++Registers}).
+
+ @item TZ
+ @tindex TZ@r{, environment variable}
+-The time zone to use when converting the current time (or value of
+-@env{SOURCE_DATE_EPOCH}) to human-readable form; see
+-@cite{tzset@r{(3)}}.
++The time zone to use when converting the current time to human-readable
++form; see @cite{tzset@r{(3)}}. If @env{SOURCE_DATE_EPOCH} is used, it
++is always converted to human-readable form using UTC.
+ @end table
+
+ MS-DOS and MS-Windows ports of @code{groff} use semicolons, rather than
+diff --git a/src/devices/grohtml/grohtml.1.man b/src/devices/grohtml/grohtml.1.man
+index 2243b474c..8a55c93dd 100644
+--- a/src/devices/grohtml/grohtml.1.man
++++ b/src/devices/grohtml/grohtml.1.man
+@@ -616,18 +616,20 @@ A timestamp
+ to use as the output creation timestamp in place of the current time.
+ .
+ The time is converted to human-readable form using
+-.MR ctime 3
++.MR gmtime 3
++and
++.MR asctime 3 ,
+ and recorded in an HTML comment.
+ .
+ .
+ .TP
+ .I TZ
+-The time zone to use when converting the current time
+-(or value of
+-.IR SOURCE_DATE_EPOCH )
+-to human-readable form;
++The time zone to use when converting the current time to human-readable form;
+ see
+ .MR tzset 3 .
++If
++.I SOURCE_DATE_EPOCH
++is used, it is always converted to human-readable form using UTC.
+ .
+ .
+ .\" ====================================================================
+diff --git a/src/devices/grohtml/post-html.cpp b/src/devices/grohtml/post-html.cpp
+index 4e02b5cfa..b42720da1 100644
+--- a/src/devices/grohtml/post-html.cpp
++++ b/src/devices/grohtml/post-html.cpp
+@@ -5081,11 +5081,7 @@ void html_printer::do_file_components (void)
+ fclose(file_list.get_file());
+ file_list.move_next();
+ if (file_list.is_new_output_file()) {
+-#ifdef LONG_FOR_TIME_T
+- long t;
+-#else
+- time_t t;
+-#endif
++ struct tm *t;
+
+ if (fragment_no > 1)
+ write_navigation(top, prev, next, current);
+@@ -5115,7 +5111,7 @@ void html_printer::do_file_components (void)
+ if (do_write_date_comment) {
+ t = current_time();
+ html.begin_comment("CreationDate: ")
+- .put_string(ctime(&t), strlen(ctime(&t))-1)
++ .put_string(asctime(t), strlen(asctime(t))-1)
+ .end_comment();
+ }
+
+@@ -5215,11 +5211,7 @@ void html_printer::writeHeadMetaStyle (void)
+
+ html_printer::~html_printer()
+ {
+-#ifdef LONG_FOR_TIME_T
+- long t;
+-#else
+- time_t t;
+-#endif
++ struct tm *t;
+
+ if (current_paragraph)
+ current_paragraph->flush_text();
+@@ -5240,7 +5232,7 @@ html_printer::~html_printer()
+ if (do_write_date_comment) {
+ t = current_time();
+ html.begin_comment("CreationDate: ")
+- .put_string(ctime(&t), strlen(ctime(&t))-1)
++ .put_string(asctime(t), strlen(asctime(t))-1)
+ .end_comment();
+ }
+
+diff --git a/src/devices/gropdf/gropdf.1.man b/src/devices/gropdf/gropdf.1.man
+index d1d39bbe0..20a957e68 100644
+--- a/src/devices/gropdf/gropdf.1.man
++++ b/src/devices/gropdf/gropdf.1.man
+@@ -1673,18 +1673,18 @@ A timestamp
+ to use as the output creation timestamp in place of the current time.
+ .
+ The time is converted to human-readable form using Perl's
+-.I \%localtime()
++.I \%gmtime()
+ function and recorded in a PDF comment.
+ .
+ .
+ .TP
+ .I TZ
+-The time zone to use when converting the current time
+-(or value of
+-.IR SOURCE_DATE_EPOCH )
+-to human-readable form;
++The time zone to use when converting the current time to human-readable form;
+ see
+ .MR tzset 3 .
++If
++.I SOURCE_DATE_EPOCH
++is used, it is always converted to human-readable form using UTC.
+ .
+ .
+ .\" ====================================================================
+diff --git a/src/devices/gropdf/gropdf.pl b/src/devices/gropdf/gropdf.pl
+index c65a1051f..0e1b612a5 100644
+--- a/src/devices/gropdf/gropdf.pl
++++ b/src/devices/gropdf/gropdf.pl
+@@ -23,6 +23,7 @@
+ use strict;
+ use warnings;
+ use Getopt::Long qw(:config bundling);
++use POSIX qw(mktime);
+
+ use constant
+ {
+@@ -343,7 +344,12 @@ for $papersz ( split(" ", lc($possiblesizes).' #duff#') )
+ # If we get here, $papersz was invalid, so try the next one.
+ }
+
+-my (@dt)=localtime($ENV{SOURCE_DATE_EPOCH} || time);
++my @dt;
++if ($ENV{SOURCE_DATE_EPOCH}) {
++ @dt=gmtime($ENV{SOURCE_DATE_EPOCH});
++} else {
++ @dt=localtime;
++}
+ my $dt=PDFDate(\@dt);
+
+ my %info=('Creator' => "(groff version $cfg{GROFF_VERSION})",
+@@ -628,7 +634,13 @@ sub GetObj
+ sub PDFDate
+ {
+ my $dt=shift;
+- return(sprintf("D:%04d%02d%02d%02d%02d%02d%+03d'00'",$dt->[5]+1900,$dt->[4]+1,$dt->[3],$dt->[2],$dt->[1],$dt->[0],( localtime time() + 3600*( 12 - (gmtime)[2] ) )[2] - 12));
++ my $offset;
++ if ($ENV{SOURCE_DATE_EPOCH}) {
++ $offset=0;
++ } else {
++ $offset=mktime((localtime $dt)[0..5]) - mktime((gmtime $dt)[0..5]);
++ }
++ return(sprintf("D:%04d%02d%02d%02d%02d%02d%+03d'%+03d'",$dt->[5]+1900,$dt->[4]+1,$dt->[3],$dt->[2],$dt->[1],$dt->[0],int($offset/3600),int(($offset%3600)/60)));
+ }
+
+ sub ToPoints
+diff --git a/src/devices/grops/grops.1.man b/src/devices/grops/grops.1.man
+index d0ec21d0b..53014ee1b 100644
+--- a/src/devices/grops/grops.1.man
++++ b/src/devices/grops/grops.1.man
+@@ -1696,18 +1696,20 @@ A timestamp
+ to use as the output creation timestamp in place of the current time.
+ .
+ The time is converted to human-readable form using
+-.MR ctime 3
++.MR gmtime 3
++and
++.MR asctime 3 ,
+ and recorded in a PostScript comment.
+ .
+ .
+ .TP
+ .I TZ
+-The time zone to use when converting the current time
+-(or value of
+-.IR SOURCE_DATE_EPOCH )
+-to human-readable form;
++The time zone to use when converting the current time to human-readable form;
+ see
+ .MR tzset 3 .
++If
++.I SOURCE_DATE_EPOCH
++is used, it is always converted to human-readable form using UTC.
+ .
+ .
+ .\" ====================================================================
+diff --git a/src/devices/grops/ps.cpp b/src/devices/grops/ps.cpp
+index 807945f97..59e6e253d 100644
+--- a/src/devices/grops/ps.cpp
++++ b/src/devices/grops/ps.cpp
+@@ -1390,13 +1390,8 @@ ps_printer::~ps_printer()
+ .end_comment();
+ {
+ fputs("%%CreationDate: ", out.get_file());
+-#ifdef LONG_FOR_TIME_T
+- long
+-#else
+- time_t
+-#endif
+- t = current_time();
+- fputs(ctime(&t), out.get_file());
++ struct tm *t = current_time();
++ fputs(asctime(t), out.get_file());
+ }
+ for (font_pointer_list *f = font_list; f; f = f->next) {
+ ps_font *psf = (ps_font *)(f->p);
+diff --git a/src/include/curtime.h b/src/include/curtime.h
+index 5d3a24a7b..ebd2efb80 100644
+--- a/src/include/curtime.h
++++ b/src/include/curtime.h
+@@ -15,13 +15,16 @@ for more details.
+ The GNU General Public License version 2 (GPL2) is available in the
+ internet at <http://www.gnu.org/licenses/gpl-2.0.txt>. */
+
+-#ifndef LONG_FOR_TIME_T
+ #include <time.h>
+-#endif
+
+-#ifdef LONG_FOR_TIME_T
+-long
+-#else
+-time_t
+-#endif
+-current_time();
++// Get the current time in broken-down time representation. If the
++// SOURCE_DATE_EPOCH environment variable is set, then it is used instead of
++// the real time from the system clock; in this case, the user is clearly
++// trying to arrange for some kind of reproducible build, so express the
++// time in UTC. Otherwise, use the real time from the system clock, and
++// express it relative to the user's time zone.
++//
++// In either case, as with gmtime() and localtime(), the return value points
++// to a statically-allocated struct which might be overwritten by later
++// calls.
++struct tm *current_time();
+diff --git a/src/libs/libgroff/curtime.cpp b/src/libs/libgroff/curtime.cpp
+index 34dbc5ca9..277755cab 100644
+--- a/src/libs/libgroff/curtime.cpp
++++ b/src/libs/libgroff/curtime.cpp
+@@ -15,9 +15,7 @@ for more details.
+ The GNU General Public License version 2 (GPL2) is available in the
+ internet at <http://www.gnu.org/licenses/gpl-2.0.txt>. */
+
+-#ifdef HAVE_CONFIG_H
+-#include <config.h>
+-#endif
++#include "lib.h"
+
+ #include <errno.h>
+ #include <limits.h>
+@@ -25,16 +23,18 @@ internet at <http://www.gnu.org/licenses/gpl-2.0.txt>. */
+ #include <string.h>
+ #include <time.h>
+
++#include "curtime.h"
+ #include "errarg.h"
+ #include "error.h"
+
++struct tm *current_time()
++{
+ #ifdef LONG_FOR_TIME_T
+-long
++ long
+ #else
+-time_t
++ time_t
+ #endif
+-current_time()
+-{
++ t;
+ char *source_date_epoch = getenv("SOURCE_DATE_EPOCH");
+
+ if (source_date_epoch) {
+@@ -49,7 +49,10 @@ current_time()
+ fatal("$SOURCE_DATE_EPOCH: no digits found: '%1'", endptr);
+ if (*endptr != '\0')
+ fatal("$SOURCE_DATE_EPOCH: trailing garbage: '%1'", endptr);
+- return epoch;
+- } else
+- return time(0);
++ t = epoch;
++ return gmtime(&t);
++ } else {
++ t = time(0);
++ return localtime(&t);
++ }
+ }
+diff --git a/src/roff/groff/groff.1.man b/src/roff/groff/groff.1.man
+index 75687440e..348036cdf 100644
+--- a/src/roff/groff/groff.1.man
++++ b/src/roff/groff/groff.1.man
+@@ -1879,19 +1879,21 @@ A time stamp
+ to use as the output creation time stamp in place of the current time.
+ .
+ The time is converted to human-readable form using
+-.MR localtime 3
++.MR gmtime 3
++and
++.MR asctime 3
+ when the formatter starts up and stored in registers usable by documents
+ and macro packages.
+ .
+ .
+ .TP
+ .I TZ
+-The time zone to use when converting the current time
+-(or value of
+-.IR SOURCE_DATE_EPOCH )
+-to human-readable form;
++The time zone to use when converting the current time to human-readable form;
+ see
+ .MR tzset 3 .
++If
++.I SOURCE_DATE_EPOCH
++is used, it is always converted to human-readable form using UTC.
+ .
+ .
+ .\" ====================================================================
+diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
+index 292ee7389..f03338335 100644
+--- a/src/roff/troff/input.cpp
++++ b/src/roff/troff/input.cpp
+@@ -8297,21 +8297,15 @@ void warn_request()
+
+ static void init_registers()
+ {
+-#ifdef LONG_FOR_TIME_T
+- long
+-#else /* not LONG_FOR_TIME_T */
+- time_t
+-#endif /* not LONG_FOR_TIME_T */
+- t = current_time();
+- struct tm *tt = localtime(&t);
+- set_number_reg("seconds", int(tt->tm_sec));
+- set_number_reg("minutes", int(tt->tm_min));
+- set_number_reg("hours", int(tt->tm_hour));
+- set_number_reg("dw", int(tt->tm_wday + 1));
+- set_number_reg("dy", int(tt->tm_mday));
+- set_number_reg("mo", int(tt->tm_mon + 1));
+- set_number_reg("year", int(1900 + tt->tm_year));
+- set_number_reg("yr", int(tt->tm_year));
++ struct tm *t = current_time();
++ set_number_reg("seconds", int(t->tm_sec));
++ set_number_reg("minutes", int(t->tm_min));
++ set_number_reg("hours", int(t->tm_hour));
++ set_number_reg("dw", int(t->tm_wday + 1));
++ set_number_reg("dy", int(t->tm_mday));
++ set_number_reg("mo", int(t->tm_mon + 1));
++ set_number_reg("year", int(1900 + t->tm_year));
++ set_number_reg("yr", int(t->tm_year));
+ set_number_reg("$$", getpid());
+ register_dictionary.define(".A",
+ new readonly_text_register(ascii_output_flag
+diff --git a/src/roff/troff/troff.1.man b/src/roff/troff/troff.1.man
+index 01b46616c..4fbb962b1 100644
+--- a/src/roff/troff/troff.1.man
++++ b/src/roff/troff/troff.1.man
+@@ -868,19 +868,21 @@ A timestamp
+ to use as the output creation timestamp in place of the current time.
+ .
+ The time is converted to human-readable form using
+-.MR localtime 3
++.MR gmtime 3
++and
++.MR asctime 3
+ when the formatter starts up and stored in registers usable by documents
+ and macro packages.
+ .
+ .
+ .TP
+ .I TZ
+-The timezone to use when converting the current time
+-(or value of
+-.IR SOURCE_DATE_EPOCH )
+-to human-readable form;
++The time zone to use when converting the current time to human-readable form;
+ see
+ .MR tzset 3 .
++If
++.I SOURCE_DATE_EPOCH
++is used, it is always converted to human-readable form using UTC.
+ .
+ .
+ .\" ====================================================================
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..6963937
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,119 @@
+#! /usr/bin/make -f
+%:
+ dh $@ --builddirectory=debian/build
+
+export DH_OPTIONS
+
+export LC_ALL := C.UTF-8
+
+export DEB_BUILD_MAINT_OPTIONS := hardening=+all
+export DEB_CPPFLAGS_MAINT_APPEND := -D_FILE_OFFSET_BITS=64
+export DEB_CFLAGS_MAINT_APPEND := -Wall
+export DEB_CXXFLAGS_MAINT_APPEND := -Wall -std=gnu++98
+
+# Based loosely on /usr/share/dpkg/buildflags.mk, but we need to do this
+# ourselves in order to get flags for both build and host architectures.
+# Compare https://bugs.debian.org/644412.
+
+export_envvar := \
+ DEB_BUILD_MAINT_OPTIONS="$(DEB_BUILD_MAINT_OPTIONS)" \
+ DEB_CPPFLAGS_MAINT_APPEND="$(DEB_CPPFLAGS_MAINT_APPEND)" \
+ DEB_CFLAGS_MAINT_APPEND="$(DEB_CFLAGS_MAINT_APPEND)" \
+ DEB_CXXFLAGS_MAINT_APPEND="$(DEB_CXXFLAGS_MAINT_APPEND)"
+
+buildflags := YACC='bison -y' PSPRINT=lpr PAGE=A4
+buildflags_native := $(buildflags)
+buildflags += $(shell $(export_envvar) dpkg-buildflags --export=cmdline)
+buildflags_native += $(shell \
+ DEB_HOST_ARCH="$(DEB_BUILD_ARCH)" $(export_envvar) \
+ dpkg-buildflags --export=cmdline)
+buildflags_native += DEB_HOST_GNU_TYPE=$(DEB_BUILD_GNU_TYPE)
+buildflags_native += env -u CONFIG_SITE
+
+export UPSTREAM_VERSION := $(shell \
+ sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/' \
+ .tarball-version)
+datadir = usr/share/groff/$(UPSTREAM_VERSION)
+
+gbtmp = debian/groff-base
+gtmp = debian/groff
+
+include /usr/share/dpkg/architecture.mk
+
+confflags = \
+ --libdir=\$${prefix}/lib --with-appdefdir=/etc/X11/app-defaults \
+ BASH_PROG=/bin/bash GREP=/bin/grep
+
+override_dh_autoreconf:
+ dh_autoreconf autoreconf -- -f -i -I m4
+
+override_dh_auto_configure:
+ -rm -f config.log config.cache
+ $(buildflags) dh_auto_configure -- $(confflags)
+ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
+ $(buildflags_native) dh_auto_configure \
+ --builddirectory=debian/build-native -- \
+ $(confflags)
+endif
+ # Work around an unfortunate interaction between the
+ # non-recursive-gnulib-prefix-hack module and out-of-tree builds.
+ mkdir -p debian/build/lib
+ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
+ mkdir -p debian/build-native/lib
+endif
+
+ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
+ cross :=
+else
+ native_tmp := $(CURDIR)/debian/build-native
+ cross := \
+ GROFFBIN=$(native_tmp)/groff \
+ GROFF_BIN_PATH=$(native_tmp)
+endif
+
+override_dh_auto_build:
+ # Always rebuild documentation from source.
+ mkdir -p debian/doc-save
+ find doc \( -name \*.dvi -or -name \*.info -or -name \*.pdf \) \
+ -exec mv -f -t debian/doc-save '{}' +
+ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
+ dh_auto_build --builddirectory=debian/build-native -- \
+ extratmacdirs=/usr/share/groff/tmac \
+ docdir=\$${prefix}/share/doc/groff-base
+endif
+ GROFF_NO_SGR=1 dh_auto_build --builddirectory=debian/build -- \
+ extratmacdirs=/usr/share/groff/tmac \
+ docdir=\$${prefix}/share/doc/groff-base $(cross)
+
+override_dh_auto_install:
+ dh_auto_install -- \
+ docdir=\$${prefix}/share/doc/groff-base \
+ INSTALL_INFO=:
+
+execute_after_dh_install:
+ # Debian additions to *.local
+ cat debian/mandoc.local >> $(gbtmp)/etc/groff/man.local
+ cat debian/mandoc.local >> $(gbtmp)/etc/groff/mdoc.local
+ # Scripts should be executable
+ chmod +x $(gbtmp)/$(datadir)/font/devps/generate/afmname \
+ $(gbtmp)/$(datadir)/font/devps/generate/symbol.sed
+ chmod +x $(gtmp)/$(datadir)/font/devdvi/generate/CompileFonts \
+ $(gtmp)/$(datadir)/font/devlj4/generate/special.awk
+ # Debian Policy 10.4 specifies the #! line for Perl scripts
+ grep -rlZ '#! */usr/bin/env perl' $(gbtmp) $(gtmp) | \
+ xargs -0r sed -i 's,\(#! *\)/usr/bin/env perl,\1/usr/bin/perl,'
+
+override_dh_installdocs:
+ dh_installdocs -pgroff-base
+ dh_installdocs -pgroff -Xcopyright --link-doc=groff-base
+
+override_dh_installchangelogs:
+ dh_installchangelogs -pgroff-base
+
+override_dh_compress:
+ dh_compress -X.mom
+
+execute_before_dh_auto_clean:
+ [ ! -d debian/doc-save ] || \
+ find debian/doc-save -type f -exec mv -f -t doc '{}' +
+ rm -rf debian/doc-save
diff --git a/debian/salsa-ci.yml b/debian/salsa-ci.yml
new file mode 100644
index 0000000..5a834fa
--- /dev/null
+++ b/debian/salsa-ci.yml
@@ -0,0 +1,6 @@
+---
+include:
+ - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/recipes/debian.yml
+
+variables:
+ SALSA_CI_DISABLE_BUILD_PACKAGE_ALL: 1
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides
new file mode 100644
index 0000000..726e861
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1,5 @@
+# This file is dual-licensed under GPLv3+. See debian/copyright.
+groff source: license-problem-gfdl-invariants invariant part is: with no invariant sections, with the front-cover texts being a gnu manual, and with the back-cover texts as in (a) below [doc/groff.texi]
+
+# https://bugs.debian.org/1019980
+groff source: source-is-missing [doc/groff.html*]
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..6edd660
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,4 @@
+Name: GNU Troff
+Bug-Submit: http://savannah.gnu.org/bugs/?group=groff
+Repository: https://git.sv.gnu.org/git/groff.git
+Repository-Browse: https://git.savannah.gnu.org/cgit/groff.git
diff --git a/debian/upstream/signing-key.asc b/debian/upstream/signing-key.asc
new file mode 100644
index 0000000..005e81d
--- /dev/null
+++ b/debian/upstream/signing-key.asc
@@ -0,0 +1,52 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+
+mQGiBD+Z+pwRBACnK1FszJzA033xBE6MVbjhP1DLFNBLwhw+2hcTLOWvcsdbQh74
+BTSjR61QnFj0JcfmGXa2Qk6wsLL8r3mY2CrAtYf3MnXDU7ZImmVO4VJ4YvVO7FMz
+7Xl7TyEfz32aWT/FUMRbFsT8HTIv0gVimpvnOC5z0U53LbgI7TK2gp+UXwCgiNJC
++/0b9pskbjH8V5lyNPTR6pMD/0pjqPrWynPfuG015Bpc4GtfduB7RR7wWJwQq1s7
+5E/peGYqPk/yyGWfnSlhyW9+OuPxnCIxtoosqD5/gcaEK64qTzSmvdhP7csU6zk6
+Emb2RLfMX17fOWKTF5cfjpvGvhr0P4jukJ3q3q4JL+ZQLNuxW0ZrItujorG44jlc
+dSIZA/9VEegNNz5OnvrvWfU/jK/inXoSisdNunkxDpIshxCpph0xdMJqKcIsAfG0
+CsuNkDlDQSW1bGIS9zrK41PcYWs/2P/6lgEStiEPVXziqMZsXnDKuMRN32edLM9Z
+oGCoUFxWkGl8gtZqJUtOS86IABPG/5unldCfAulL1qDU267QcLQbV2VybmVyIExl
+bWJlcmcgPHdsQGdudS5vcmc+iFcEExECABcFAj+Z+pwFCwcKAwQDFQMCAxYCAQIX
+gAAKCRDBpg6s5wf9pU29AJ9vhRmqhegfi/fEsKL0Sk4+kTR0QwCgh/FwIGQV5pyZ
+LhWXXoV1HmhC3DC5AQ0EP5n6ohAEAPxiHOOxlYQVH5h9UM1IZuGOlmGPotkXOvma
+WPeFVIGXxeFHOk+23DSP5bCn6eyZVNzTjJwm0qTw21p5SZNzv8O/chKubsUhsSJF
+0EjXel+yt9Q6YHYTtORg1xpZsvbkCJJ6sck+Sdi1ad0/FFxTA3T5ITHwy8KOSrvT
+8U5jGo1LAAMFBACiGYEVeB5+LG4Bc9KGFbsGv0csENubeY+Hwodg/RdnTfkb2nIK
+mUuCSVSiYF0/XVZFzKP9wgT8eYF08ib/135ORmcV94tQn+sZ+wc+M7MuT9XWqQ3S
+PsKZ6p/0u2ZuqKiUCZKypdxdCYkXqO8WWbrqBMjsTyP+jC0iqQZ4y1ceoIhGBBgR
+AgAGBQI/mfqiAAoJEMGmDqznB/2lXBkAoIFgX38Ji3I0SsDNtfwdBVmoTGMrAJ9y
+2nSJUe7j1ZgHEZilNvqSK5Evtw==
+=ci2b
+-----END PGP PUBLIC KEY BLOCK-----
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+
+mQINBFp7hioBEACxAXpGe0dXlZDu3uwVu+d1crzXt4Tb111S+nEsbX1suX2Xl2J1
+e5B5cB9elGdRtG6U/GxQ8DPIoj5jrSt9XrvYn02nNSwito3UaOs8A3/lhs3f7NZT
+r85hHW+6YvhQ/ELUnR+odFj4E3hvuWEBTNcw+3Eg76iX2DQMRYOKShqU4niwMPgR
+ZZ2a8D8H6sORyy07WeTGrzAG3WtgfCyl0eNCHBXnhToStJzgI4PFNsRWelk7HzXb
+r7rrs24ijL3B9ZIU+CtSIXmoKIbxFUFxC4rH7KHENWWZ1VlKYnAsg83tbkv4BUoT
+Zy1wa/5HV5Og0N9gfr+ZQ0dKd+aqCC8qajGG9HCq+ToZTsmac6GNTpYSjgJTBn2F
+GUw/MqnpvBveS++zmy+yYr6WEM5J3LXtD2cOul585Lk1Nzy+j9QrkF3x4yMF4Oe4
+IHiimc0ie4cC92RFC5lvucUAsOHAB+r49W642BOneeWWmRknbMeUBxm21DM9h5YZ
+WuhiFJoXYXYXU3tz0pax9zFj/ITPi+VpJ4IaDQHmp1eTUq8vUr/D5daVLIy40ZNr
+QSUROG6rHOablE1tkFvSGzzD+g4P7cisdQfrlel5upAk2EirX+N1i5/lGGB6l+IW
+4OzLE4kQtOKB/pptESt+jGqExVvilEkrOXBXpebo6xJ2cqe6jAQf69+npwARAQAB
+tDNCZXJ0cmFuZCBHYXJyaWd1ZXMgPGJlcnRyYW5kLmdhcnJpZ3Vlc0BsYXBvc3Rl
+Lm5ldD6JAlQEEwEIAD4WIQQtDAjSsK0NPYYmZwJy0j+6yZ1OdQUCWnuGKgIbAwUJ
+A8JnAAULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRBy0j+6yZ1OdXl5D/46WZ2H
+wtnUmRlE/ibv48Ty+0FcYF/myMLdK2g8Qsy77tt8r3FEK4oxUKbtwnv4ibAefQ/1
+yFl3fKjcb6Zh2TjVdrf2a/uta9M7ldwjgU1BcMOLTjAkDkTh8Fsv5+ttw4iNGQAv
+eIfXZklT0cE4/ffw/rKoroVYNXEqjzBljKrzpc9TnI0tOUyY9+Pxc9P3HlRlEdZG
+jiBeD2avKZTI54zLEJFXgYhzkK1okjtIrrKz/VoU5bA0dBQqbiXpDMBfjRM/S+Ye
+7JXoprsdInHoYAD3kEhx4XQHHrjzHNDOBdb713lUexXTfVYp+M63R4uagn/hHuRA
+AMnOiKHojFKuc1+nO1E/EINBIVeBYBOUpqJ0Go00cQCUhViEVO2vEMgvrOS5fN8a
+8CBTaoUnvnEvxNNYnTeYf7dTSCOR3gFkbHBzi28ihLgiw9kxXq+m6O+e8BIewal4
+6jxeanjS5CH95/17JxqlkXjQFtSBpMst2ECKEYBgwY1DzzFJHAgGOXgxsEEhc6ir
+NEYTuk7M45kj1qTftZx0WX23dGLNyFp7xy5THOpy1hZ/CrtA8NSrv9mo3PEdt0X0
+1r3/DS2kClwU1BlFfpeR2YukcKByUEQGvzTxzckgT9FC+5o1mzU5O1YdzhmE3Q4U
+u/w00k1MTEg9RSvn4WAiNRWl7kxxq4ao8U8nvg==
+=Vqzd
+-----END PGP PUBLIC KEY BLOCK-----
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..cf41165
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,9 @@
+# Official releases:
+version=4
+opts=pgpsigurlmangle=s/$/.sig/ \
+https://ftp.gnu.org/gnu/groff/groff-([^-]*)\.tar\.gz
+
+# Betas and pre-releases:
+#version=4
+#opts=pgpsigurlmangle=s/$/.sig/,uversionmangle=s/\.rc/~rc/ \
+#https://alpha.gnu.org/gnu/groff/groff-([^-]*)\.tar\.gz