Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 327599 - [science overlay]x11-libs/gl2ps has automagic dependencies on pdflatex and tth
Summary: [science overlay]x11-libs/gl2ps has automagic dependencies on pdflatex and tth
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: InOverlay
Depends on: 327811
Blocks:
  Show dependency tree
 
Reported: 2010-07-09 10:24 UTC by François Bissey
Modified: 2010-07-11 16:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description François Bissey 2010-07-09 10:24:21 UTC
While rebuilding stuff for the libpng upgrade, gl2ps failed to merge.
pdflatex was called and pdflatex wasn't rebuilt yet for libpng-1.4,
so the call failed. This happened because gl2ps documentation has
automagic dependencies to pdflatex (dev-texlive/texlive-latex) and
tth (dev-tex/tth).

An ebuild with a possible fix has been uploaded in the science overlay.
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2010-07-10 23:27:00 UTC
why you say [in overlay]. Which verison of gl2ps fails for you?
Comment 2 François Bissey 2010-07-10 23:38:17 UTC
(In reply to comment #1)
> why you say [in overlay]. Which verison of gl2ps fails for you?
> 

Sorry should have precised: "science" overlay where we used to have it
before. Version 1.35. It is not so much failing as the fact there are automagic dependencies:


find_package(LATEX)
if(PDFLATEX_COMPILER)
  add_custom_command(OUTPUT gl2ps.pdf DEPENDS gl2ps.tex 
                     COMMAND ${PDFLATEX_COMPILER} ARGS ${CMAKE_SOURCE_DIR}/gl2ps.tex
                     COMMAND ${PDFLATEX_COMPILER} ARGS ${CMAKE_SOURCE_DIR}/gl2ps.tex
                     COMMAND ${PDFLATEX_COMPILER} ARGS ${CMAKE_SOURCE_DIR}/gl2ps.tex
                     COMMAND ${CMAKE_COMMAND} -E copy gl2ps.pdf ${CMAKE_SOURCE_DIR})
  add_custom_target(pdf ALL DEPENDS gl2ps.pdf)
  install(FILES gl2ps.pdf DESTINATION ${GL2PS_DOC})
  find_program(TTH tth)
  if(TTH)
    add_custom_command(OUTPUT gl2ps.html DEPENDS gl2ps.tex gl2ps.pdf
                       COMMAND ${CMAKE_COMMAND} -E copy_if_different 
                       ${CMAKE_SOURCE_DIR}/gl2ps.tex ${CMAKE_BINARY_DIR}/gl2ps.tex
                       COMMAND ${TTH} ARGS -w1 gl2ps.tex)
    add_custom_target(html DEPENDS gl2ps.html)
  endif(TTH)
endif(PDFLATEX_COMPILER)

-----------------------
Because pdflatex wasn't in the list of dependencies portage tried
to update gl2ps before pdflatex. Because I had removed libpng12 completely.
pdflatex failed. Furthermore there is a second automagic depency on
tth. 

This is of course bad.
Comment 3 François Bissey 2010-07-10 23:40:06 UTC
sorry it should have been "the call to pdflatex failed".
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2010-07-11 16:08:19 UTC
+*gl2ps-1.3.5-r1 (11 Jul 2010)
+
+  11 Jul 2010; Justin Lecher <jlec@gentoo.org> +gl2ps-1.3.5-r1.ebuild:
+  Imported doc building patch from sci overlay, #327599
+