Package: rubber Version: 1.6.0-2 Severity: normal Tags: patch Dear Maintainer,
When using rubber -Wrefs (or rubber -Wall) on a latex document containing some undefined reference (e.g. \ref{foo} without any corresponding \label{foo}), rubber does not report any warning about these undefined references as it should. I'm using Debian bookworm, hence rubber 1.6.0-2, but the testing/sid version of rubber seem to suffer from the same issue. Issue already reported upstream: https://gitlab.com/latex- rubber/rubber/-/issues/15 The provided 2-line patch appears to solve this issue. Best regards Pierre L. -- Package-specific info: If you report an error when running rubber please include example input file that produces the error in your report. Don't forget to also include examples of other files that are needed, e.g. bibtex databases. Often it also helps to include the logfile. -- System Information: Debian Release: 12.5 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.1.0-20-amd64 (SMP w/8 CPU threads; PREEMPT) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages rubber depends on: ii python3 3.11.2-1+b1 ii texlive-latex-base 2022.20230122-3 rubber recommends no packages. Versions of packages rubber suggests: pn asymptote <none> pn biber <none> ii fig2dev [transfig] 1:3.2.8b-3 ii imagemagick 8:6.9.11.60+dfsg-1.6+deb12u1 ii imagemagick-6.q16 [imagemagick] 8:6.9.11.60+dfsg-1.6+deb12u1 ii python3-prompt-toolkit 3.0.36-2 ii python3-pygments 2.14.0+dfsg-1 pn r-cran-knitr <none> ii texlive-bibtex-extra 2022.20230122-4 ii texlive-binaries 2022.20220321.62855-5.1+deb12u1 ii texlive-extra-utils 2022.20230122-4 ii texlive-latex-extra 2022.20230122-4 ii texlive-latex-recommended 2022.20230122-3 pn texlive-metapost <none> ii texlive-pictures 2022.20230122-3 -- no debconf information -- debsums errors found: debsums: changed file /usr/lib/python3/dist-packages/rubber/converters/latex.py (from rubber package)
diff --git a/rubber/converters/latex.py b/rubber/converters/latex.py index 13ebffd..43e8236 100644 --- a/rubber/converters/latex.py +++ b/rubber/converters/latex.py @@ -140,8 +140,8 @@ re_macro = re.compile(r"^(?P<macro>\\.*) ->") re_page = re.compile(r"[\(?P<num>[0-9]+\)]") re_atline = re.compile( r"( detected| in paragraph)? at lines? (?P<line>[0-9]*)(--(?P<last>[0-9]*))?") -re_reference = re.compile(r"LaTeX Warning: Reference `(?P<ref>.*)' \ -on page (?P<page>[0-9]*) undefined on input line (?P<line>[0-9]*)\\.$") +re_reference = re.compile(r"LaTeX Warning: Reference `(?P<ref>.*)' "+ + r"on page (?P<page>[0-9]*) undefined on input line (?P<line>[0-9]*)\.$") re_label = re.compile(r"LaTeX Warning: (?P<text>Label .*)$") re_warning = re.compile(r"(LaTeX|Package)( (?P<pkg>.*))? Warning: (?P<text>.*)$") re_online = re.compile(r"(; reported)? on input line (?P<line>[0-9]*)")