Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#39690 closed defect (fixed)

Some texlive ports print error messages at activation

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: drkp (Dan Ports)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: larryv (Lawrence Velázquez), cooljeanius (Eric Gallager)
Port:

Description

When upgrading the many outdated texlive ports today, many of them issued error messages at activation time, but MacPorts still shows them as active now. The full console log is attached, but there are many occurrences of this type of error:

--->  Installing texlive-lang-european @30457_0+doc
--->  Activating texlive-lang-european @30457_0+doc
Error: org.macports.activate for port texlive-lang-european returned: command execution failed
Please see the log file for port texlive-lang-european for details:
    /opt/local/var/macports/logs/_Users_rschmidt_macports_dports_tex_texlive-lang-european/texlive-lang-european/main.log
Error: Problem while installing texlive-lang-european
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

That logfile is attached. It says:

:info:activate ERROR:  The following map file(s) couldn't be found:
:info:activate 	ccpl.map (in /opt/local/var/db/texmf/web2c/updmap.cfg)
:info:activate 	plother.map (in /opt/local/var/db/texmf/web2c/updmap.cfg)
:info:activate 	pltext.map (in /opt/local/var/db/texmf/web2c/updmap.cfg)
:info:activate 	tabvar.map (in /opt/local/var/db/texmf/web2c/updmap.cfg)
:info:activate 
:info:activate 	Did you run mktexlsr?
:info:activate 
:info:activate 	You can disable non-existent map entries using the option
:info:activate 	  --syncwithtrees.
:info:activate 
:info:activate Command failed: /opt/local/bin/updmap-sys
:info:activate Exit code: 1

Attachments (2)

console.txt (11.9 KB) - added by ryandesign (Ryan Carsten Schmidt) 11 years ago.
main.log.bz2 (7.9 KB) - added by ryandesign (Ryan Carsten Schmidt) 11 years ago.

Download all attachments as: .zip

Change History (8)

Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: console.txt added

Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log.bz2 added

comment:1 Changed 11 years ago by larryv (Lawrence Velázquez)

Cc: larryv@… added

Cc Me!

comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

From my log:

Warning: No port dvipng found in the index.

This was because in r107919 you incremented the revision to rebuild dvipng with the new libkpathsea, but I had the same revision increment already made locally for the impending gd2 update in #39550. I increased the revision further (locally) and rebuilt dvipng again, and deactivated and reactivated all the texlive ports I had installed. They all activated ok now, so I'm not sure if this was the culprit, or whether there is a missing dependency somewhere and the order of upgrades wasn't correct.

comment:3 Changed 11 years ago by drkp (Dan Ports)

These error messages are unfortunately expected when upgrading from one major revision of the texlive ports to the next: when some of the installed ports have been upgraded but the others haven't yet, map/format generation in the post-activate hook may fail. This isn't a problem aside from the error message, since the final post-activate script will take care of it.

(What we really want to do is run all the post-activate scripts after all the ports have been upgraded -- or, better still, run the post-activate script once rather than once per port -- but that would require something like Debian's dpkg triggers.)

We should probably wrap some of the post-activate commands in a try block when failures are expected so they don't get reported, however.

comment:4 in reply to:  3 Changed 11 years ago by drkp (Dan Ports)

Resolution: fixed
Status: newclosed

Replying to dports@…:

We should probably wrap some of the post-activate commands in a try block when failures are expected so they don't get reported, however.

Actually, we already do this for fmtutil, but we should now do it for updmap too.

r107988

comment:5 Changed 11 years ago by larryv (Lawrence Velázquez)

Has duplicate #39792.

comment:6 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.