enblend 4.2 build error without latex

Bug #1565269 reported by Andreas Metzler
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Enblend
Fix Committed
Medium
Christoph Spiel

Bug Description

enblend 4.2 has a hard dependency on (pdf)latex:

checking for perl module Time::Zone... ok
checking for latex... no
checking for elatex... no
checking for lambda... no
../configure: line 8623: WARNING:: command not found
checking for pdflatex... ../configure: line 8655: WARNING:: command not found
no
checking for latex... no
checking for elatex... no
checking for lambda... no
configure: error: Unable to find a LaTeX application

Afaict this code in configure.ac fails to work as expected:
-----------------------------------
can_build_doc=yes

AC_PATH_PROGS(LATEX, [latex elatex lambda],
              [AC_MSG_WARN(missing LaTeX translator)
               can_build_doc=no
               missing_for_doc="$missing_for_doc latex"])
AC_PATH_PROG(PDFLATEX, pdflatex,
             [AC_MSG_WARN([missing PDFLaTeX translator -- no direct translation of LaTeX to PDF available])
              missing_for_doc="$missing_for_doc pdflatex"])

if test "$latex" != 'no'
then
  AC_LATEX_CLASS(report,report,[],
                 [AC_MSG_WARN(missing document class report.cls)
                  can_build_doc=no
                  missing_for_doc="$missing_for_doc report.cls"])
-------------------------------------
AC_PATH_PROGS would set $LATEX ("upper case") on success and can_build_doc=no otherwise but the code checks "$latex" != 'no' instead of '"$can_build_doc'='yes'. Therefore AC_LATEX_CLASS is always invoked which afaict invokes AC_PROG_LATEX and throws a hard error of AC_PROG_LATE fails.

cu Andreas

Revision history for this message
Christoph Spiel (cspiel) wrote :

Should be fixed in rev 78a09bc743b7, which will be backported to 4.2.1.

Given the complexity and sheer mass of checks for the documentation,
I expect more bugs to show up time after time.

Changed in enblend:
assignee: nobody → Christoph Spiel (cspiel)
status: New → Fix Committed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.