Opened 10 years ago

Closed 10 years ago

#47083 closed defect (fixed)

dblatex fails with titlesec.sty not found error

Reported by: nortcele Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port: dblatex

Description

Since, r132311 dblatex fails to output a pdf file with a titlesec.sty not found error.

To reproduce:

# First clean macports to only get essential dependencies
sudo port uninstall installed
# Then install dblatex
sudo port install dblatex

Create a simple test.xml file with ie.:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
                    "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
]>


<article class="techreport" status="final">


<para>Just some blabla.</para>

</article>

Then use dblatex to create a pdf file from this file:

dblatex test.xml

The pdf creation fails.

Change History (4)

comment:1 Changed 10 years ago by nortcele

The problem could be circumvented by editing dblatex Portfile with:

--- Portfile.orig	2015-03-09 12:00:43.000000000 +0100
+++ Portfile	2015-03-09 14:40:23.000000000 +0100
@@ -3,6 +3,7 @@
 
 PortSystem          1.0
 PortGroup           python 1.0
+PortGroup           texlive 1.0
 
 name                dblatex
 version             0.3.5
@@ -69,7 +70,11 @@
 }
 
 post-activate {
-    system "${prefix}/bin/mktexlsr"
+    texlive.mktexlsr
+}
+
+post-deactivate {
+    texlive.mktexlsr
 }
 
 livecheck.type      regex

and reinstall dblatex.

comment:2 Changed 10 years ago by nortcele

As titlesec.sty is part of textive-latex-extra, the latex update should have come from textive-latex-extra port.

comment:3 Changed 10 years ago by neverpanic (Clemens Lang)

Owner: changed from macports-tickets@… to cal@…
Status: newassigned

Doesn't texlive-latex-extra run mktexlsr? I agree we should use the texlive portgroup, though.

comment:4 in reply to:  3 Changed 10 years ago by neverpanic (Clemens Lang)

Cc: cal@… removed
Resolution: fixed
Status: assignedclosed

Replying to cal@…:

Doesn't texlive-latex-extra run mktexlsr? I agree we should use the texlive portgroup, though.

I checked and it texlive-latex-extra already runs mktexlsr (by including the PortGroup, not changing defaults and running texlive.texmfport).

However, I recently removed a couple of .sty files dblatex used to install because they were shadowing newer versions provided by our texlive ports, and that might have left the cache in an incoherent state. I've applied your patch in r133761. Additionally, I increased the revision to fix this problem for all users that may still be experiencing it.

Note: See TracTickets for help on using tickets.