Bug 1577602

Summary: texlive-minted should require /usr/bin/pygmentize
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: texliveAssignee: Tom "spot" Callaway <tcallawa>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: tcallawa, than
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-14 16:14:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Miro Hrončok 2018-05-13 12:19:06 UTC
Description of problem:
texlive-minted requires python-pygments. It should instead require /usr/bin/pygmentize.

Version-Release number of selected component (if applicable):
texlive-minted-svn44855-4.fc29.noarch
texlive-2017-4.fc29.src

How reproducible:
Easy


Steps to Reproduce:
$ mock -r fedora-rawhide-x86_64 --init
$ mock -r fedora-rawhide-x86_64 --install /usr/bin/xelatex texlive-minted
$ mock -r fedora-rawhide-x86_64 --shell

# cat > minted.tex << EOF
\documentclass{article}
\usepackage{minted}

\begin{document}
\begin{minted}{pycon}
>>> "SUCCESS"
'SUCCESS'
\end{minted}
\end{document}
EOF

# xelatex -shell-escape minted.tex



Actual results:
! Package minted Error: You must have `pygmentize' installed to use this package.


Expected results: Should successfully build.


Additional info:

$ mock -r fedora-rawhide-x86_64 --install  /usr/bin/pygmentize
# xelatex -shell-escape minted.tex

All good.

/usr/bin/pygmentize is not in python2-pygments (that one provides python-pygments). It is in fact in python3-pygments. However just requiring /usr/bin/pygmentize will abstract us from this.