Bug 834043

Summary: texlive-latex-bin-bin: missing dependencies
Product: [openSUSE] openSUSE Tumbleweed Reporter: Christian Boltz <suse-beta>
Component: BasesystemAssignee: Dr. Werner Fink <werner>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: 13.1 Milestone 3   
Target Milestone: ---   
Hardware: Other   
OS: openSUSE 12.3   
Whiteboard:
Found By: Beta-Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 879161    

Description Christian Boltz 2013-08-08 14:46:50 UTC
# rpm -qvl texlive-latex-bin-bin 
lrwxrwxrwx    1 root    root    6 Aug  1 23:19 /usr/bin/dvilualatex -> luatex
lrwxrwxrwx    1 root    root    6 Aug  1 23:19 /usr/bin/latex -> pdftex
lrwxrwxrwx    1 root    root    6 Aug  1 23:19 /usr/bin/lualatex -> luatex
lrwxrwxrwx    1 root    root    6 Aug  1 23:19 /usr/bin/pdflatex -> pdftex
# rpm -q --requires texlive-latex-bin-bin 
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsLzma) <= 4.4.6-1
# rpm -q --recommends texlive-latex-bin-bin 
#

To sum it up: texlive-latex-bin-bin only contains symlinks, but does not depend on the packages that provide the "real" files.

I'd expect dependencies on texlive-luatex-bin and texlive-pdftex-bin.

This bug exists (at least) in 12.3 and current Factory.
Comment 1 Dr. Werner Fink 2013-08-08 14:57:50 UTC
Hmmm ... other way around

  the noarch texlive-latex-bin requires the binary texlive-latex-bin-bin

  the noarch texlive-latex requires the noarch texlive-latex-bin
                           requires the noarch texlive-luatex
                           requires the noarch texlive-pdftex

  the noarch texlive-luatex requires the binary texlive-luatex-bin

  the noarch texlive-pdftex trequires the binary texlive-pdftex-bin

IMHO this way it is perfect. You do not want to install

  texlive-latex-bin-bin nor texlive-latex-bin nor texlive-luatex-bin
  nor texlive-pdftex-bin

I'll not gonna fix that as otherwise I'll see circular dependencies.
Comment 2 Christian Boltz 2013-08-08 17:13:24 UTC
(In reply to comment #1)
> Hmmm ... other way around

No ;-)

>   the noarch texlive-latex-bin requires the binary texlive-latex-bin-bin

Wait - the latex(1) and pdflatex(1) manpages and /var/adm/update-scripts/texlive-latex-bin-2012.67.svn23398-8.1-zypper requires the symlinks of the binary? That looks very strange (and wrong).

(I didn't check the dependencies for the other packages you mentioned.)
 
> IMHO this way it is perfect. 

Let me explain how I found this bug:
The mediawiki math extension on my server needs /usr/bin/latex. Therefore I used rpm -qf (on my laptop) to find out that it is packaged in texlive-latex-bin-bin. I then zypper in'stalled this package on the server - and the only thing I got was a set of broken symlinks. (With all dependencies solved.)

I'm sorry to disagree, but - no, it is NOT perfect.

If you still disagree, start with a fresh system (without any *tex* packages) and try to get a working /usr/bin/latex. The way I described in the paragraph above is a good starting point - it will give you /usr/bin/latex ;-)  (but there's a reason I didn't say "a working /usr/bin/latex *eg*)

> I'll not gonna fix that as otherwise I'll see circular dependencies.

We are "only" talking about Requires, not BuildRequires (yes, I know that BR'd package can require other packages) - and besides that, you are only moving the dependency the other way round. That shouldn't result in circular dependencies.
Comment 3 Dr. Werner Fink 2013-08-09 07:09:37 UTC
I'll not fix that as this is not a bug.  This are the dependencies which you can find in the upstream TeXLive Data Base texlive.tlpdb.xz.  The perl script generating the 6000 spec files are using exactly this data base.  I'll not try to revert all those dependencies by hand.

(In reply to comment #2)
> Let me explain how I found this bug:
> The mediawiki math extension on my server needs /usr/bin/latex. Therefore I
> used rpm -qf (on my laptop) to find out that it is packaged in
> texlive-latex-bin-bin. I then zypper in'stalled this package on the server -
> and the only thing I got was a set of broken symlinks. (With all dependencies
> solved.)

Please do not use texlive-latex-bin-bin but use texlive-latex