Discussion:
Bug#914729: texlive-latex-recommended: fancyvrb/xcolor "Option clash for package xcolor"
Adrian Bunk
2018-11-26 18:53:10 UTC
Permalink
Package: texlive-latex-recommended
Version: 2018.20181106-1
Severity: serious
Control: affects -1 src:pycorrfit

https://buildd.debian.org/status/package.php?p=pycorrfit&suite=sid

This FTBFS in pycorrfit boils down to the following regression:

$ cat test.tex
\documentclass{article}
\usepackage{fancyvrb}
\usepackage[svgnames]{xcolor}
\begin{document}
Hello world
\end{document}
$ latex test
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2019/dev/Debian) (preloaded format=latex)
restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2018-04-01> patch level 5
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texlive/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty
Style option: `fancyvrb' v3.0 <2018/11/01> (tvz)
(/usr/share/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/dvips.def))
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty))

! LaTeX Error: Option clash for package xcolor.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...

l.4 \begin
{document}
?
Debian Bug Tracking System
2018-11-26 18:57:04 UTC
Permalink
Post by Adrian Bunk
affects -1 src:pycorrfit
Bug #914729 [texlive-latex-recommended] texlive-latex-recommended: fancyvrb/xcolor "Option clash for package xcolor"
Added indication that 914729 affects src:pycorrfit
--
914729: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=914729
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Hilmar Preuße
2018-11-26 21:38:24 UTC
Permalink
On 26.11.18 19:53, Adrian Bunk wrote:

Hi Adrian,
Post by Adrian Bunk
https://buildd.debian.org/status/package.php?p=pycorrfit&suite=sid
$ cat test.tex
\documentclass{article}
\usepackage{fancyvrb}
\usepackage[svgnames]{xcolor}
\begin{document}
Hello world
\end{document}
$ latex test
<snip>
Post by Adrian Bunk
! LaTeX Error: Option clash for package xcolor.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.4 \begin
{document}
?
Not sure if a single minimal example makes a bug to state RC. There is
currently no solution form upstream bug a simple work around: load

\usepackage[svgnames]{xcolor} before \usepackage{fancyvrb}

The issue is caused by the fact that fancyvrb loads xcolor, but w/
options by default. AFAICT this example is not the only one where the
load order of the packages does matter.

Hilmar
--
#206401 http://counter.li.org
Adrian Bunk
2018-11-26 21:45:20 UTC
Permalink
Post by Hilmar Preuße
Hi Adrian,
Hi Hilmar,
Post by Hilmar Preuße
Post by Adrian Bunk
https://buildd.debian.org/status/package.php?p=pycorrfit&suite=sid
$ cat test.tex
\documentclass{article}
\usepackage{fancyvrb}
\usepackage[svgnames]{xcolor}
\begin{document}
Hello world
\end{document}
$ latex test
<snip>
Post by Adrian Bunk
! LaTeX Error: Option clash for package xcolor.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.4 \begin
{document}
?
Not sure if a single minimal example makes a bug to state RC. There is
currently no solution form upstream bug a simple work around: load
I need an RC bug somewhere for a FTBFS.
Post by Hilmar Preuße
\usepackage[svgnames]{xcolor} before \usepackage{fancyvrb}
Thanks.
Post by Hilmar Preuße
The issue is caused by the fact that fancyvrb loads xcolor,
This seems to be the relevant recent change.
Post by Hilmar Preuße
but w/
options by default. AFAICT this example is not the only one where the
load order of the packages does matter.
My LaTeX knowledge is extremely rusty.

Is there some way to fix this in fancyvrb, or is the only way forward
to change pycorrfit (and potentially other affected packages)?
Post by Hilmar Preuße
Hilmar
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
Hilmar Preuße
2018-11-26 22:37:35 UTC
Permalink
Hi Adrian,
Post by Adrian Bunk
Post by Hilmar Preuße
but w/
options by default. AFAICT this example is not the only one where the
load order of the packages does matter.
My LaTeX knowledge is extremely rusty.
Is there some way to fix this in fancyvrb, or is the only way
forward to change pycorrfit (and potentially other affected
packages)?
I'm sorry, but fancyvrb can't know that the document tries to load
xcolor another time after the fancyvrb call. So I'm afraid we can't do
anything here.

@Norbert: do you agree here?

Hilmar
--
#206401 http://counter.li.org
Norbert Preining
2018-11-26 23:34:21 UTC
Permalink
Post by Hilmar Preuße
@Norbert: do you agree here?
Completely

Order of package loading is important and documents need adjustments
with new versions of support packages, as in this case.

This has always been like this, and there is unfortunately no way around
it (at least not in LaTeX2e, LaTeX3 might be a bit more resilient to
that).

Best

Norbert

--
PREINING Norbert http://www.preining.info
Accelia Inc. + JAIST + TeX Live + Debian Developer
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
Norbert Preining
2018-11-27 08:00:26 UTC
Permalink
reassign 914729 pycorrfit
retitle 914729 document does not compile: load order of packages needs to be inverted
thanks

Hi Adrian, hi Hilmar,

as discussed, this is something that no LaTeX package can care for, and
authors need to ensure proper loading order.

If this has changed, then the orginal document should be fixed upstream
or via Debian patches to turn the loading order around.
Post by Adrian Bunk
I need an RC bug somewhere for a FTBFS.
Well, the FTBFS is a RC bug of the package that fails to FTBFS.
If there is an API change in some library, and my package which
depends on the -dev package suddenly doesn't build anymore, then
my package needs to be fixed, not necessarily the -dev package.
(Well, besides we had that with the libsynctex, but that was
a very sad thing anyway).
Post by Adrian Bunk
Is there some way to fix this in fancyvrb, or is the only way forward
to change pycorrfit (and potentially other affected packages)?
No and Yes. Fancyvrb cannot check all possible combinations of packages
to be loaded, nor any other package.

Please forward the solution to upstream.

Thanks

Norbert

--
PREINING Norbert http://www.preining.info
Accelia Inc. + JAIST + TeX Live + Debian Developer
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
Debian Bug Tracking System
2018-11-27 08:15:16 UTC
Permalink
Post by Norbert Preining
reassign 914729 pycorrfit
Bug #914729 [texlive-latex-recommended] texlive-latex-recommended: fancyvrb/xcolor "Option clash for package xcolor"
Bug #914741 [texlive-latex-recommended] pycorrfit ftbfs in unstable
Bug reassigned from package 'texlive-latex-recommended' to 'pycorrfit'.
Bug reassigned from package 'texlive-latex-recommended' to 'pycorrfit'.
No longer marked as found in versions texlive-base/2018.20181106-1.
No longer marked as found in versions texlive-base/2018.20181106-1.
Ignoring request to alter fixed versions of bug #914729 to the same values previously set
Ignoring request to alter fixed versions of bug #914741 to the same values previously set
Post by Norbert Preining
retitle 914729 document does not compile: load order of packages needs to be inverted
Bug #914729 [pycorrfit] texlive-latex-recommended: fancyvrb/xcolor "Option clash for package xcolor"
Bug #914741 [pycorrfit] pycorrfit ftbfs in unstable
Changed Bug title to 'document does not compile: load order of packages needs to be inverted' from 'texlive-latex-recommended: fancyvrb/xcolor "Option clash for package xcolor"'.
Changed Bug title to 'document does not compile: load order of packages needs to be inverted' from 'pycorrfit ftbfs in unstable'.
Post by Norbert Preining
thanks
Stopping processing here.

Please contact me if you need assistance.
--
914729: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=914729
914741: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=914741
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Loading...