• Bug#1107068: groff: URLs specified with the man macro UR are dropped in

    From Colin Watson@21:1/5 to All on Sun Jun 1 02:20:01 2025
    Package: groff
    Version: 1.23.0-8
    Severity: important

    https://savannah.gnu.org/bugs/index.php?67169 reported that the .UR man
    macro drops URLs in PDF output; the upstream bug has a reproducer. This
    turns out to be because a Debian patch (https://salsa.debian.org/debian/groff/-/blob/master/debian/patches/man-hyperlinks.patch)
    enables the U register, but I hadn't realized that this was broken for
    PDF output in groff 1.23.0.

    The next upstream release will have proper PDF hyperlinking support, but
    until then, we should adjust this patch so that it doesn't default to attempting to use hyperlinks for PDF output.

    --
    Colin Watson (he/him) [cjwatson@debian.org]

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

    Kernel: Linux 6.12.27-amd64 (SMP w/12 CPU threads; PREEMPT)
    Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
    Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)
    LSM: AppArmor: enabled

    Versions of packages groff depends on:
    ii groff-base 1.23.0-8
    ii libc6 2.41-8
    ii libgcc-s1 14.2.0-19
    ii libstdc++6 14.2.0-19
    ii libx11-6 2:1.8.12-1
    ii libxaw7 2:1.0.16-1
    ii libxmu6 2:1.1.3-3+b4
    ii libxt6t64 1:1.2.1-1.2+b2

    Versions of packages groff recommends:
    ii ghostscript 10.05.1~dfsg-1
    ii imagemagick 8:7.1.1.43+dfsg1-1
    ii imagemagick-7.q16 [imagemagick] 8:7.1.1.43+dfsg1-1
    ii netpbm 2:11.10.02-1
    ii perl 5.40.1-3
    ii psutils 3.3.8-1

    groff suggests no packages.

    -- no debconf information

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Colin Watson@21:1/5 to Colin Watson on Sun Jun 1 03:00:01 2025
    On Sun, Jun 01, 2025 at 01:11:24AM +0100, Colin Watson wrote: >https://savannah.gnu.org/bugs/index.php?67169 reported that the .UR man
    macro drops URLs in PDF output; the upstream bug has a reproducer. This >turns out to be because a Debian patch >(https://salsa.debian.org/debian/groff/-/blob/master/debian/patches/man-hyperlinks.patch)
    enables the U register, but I hadn't realized that this was broken for
    PDF output in groff 1.23.0.

    The next upstream release will have proper PDF hyperlinking support, but >until then, we should adjust this patch so that it doesn't default to >attempting to use hyperlinks for PDF output.

    In fact, it's not just this patch, because an.tmac defaults to setting
    the U register to 1 if it's unset. So I think cherry-picking https://cgit.git.savannah.gnu.org/cgit/groff.git/commit/?id=d9e90209725a716dff23807ffffda403c58020c9
    is simplest, and I've checked that it produces sensible rendering in
    both terminal and PDF output.

    --
    Colin Watson (he/him) [cjwatson@debian.org]

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)