Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#37014 closed defect (fixed)

docbook-xml-4.3 @5.01 command execution failed

Reported by: mzwinderman@… Owned by: lockhart (Thomas Lockhart)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: pixilla (Bradley Giesbrecht)
Port: docbook-xml-4.3

Description

Hi all,

Trying to install texlive, which has docbook-xml as a dependency. This fails with error "command execution failed", I've tried selfupdate of port, uninstalling and reinstalling docbook-xml, which also fails (Error: org.macports.deactivate for port docbook-xml-4.1.2 returned: command execution failed).

I've attached the log-file.

I have Xcode 4.5.2.

Please let me know how to fix this :)

Some background information: I upgraded from SL to ML, removed all ports (some where old and unused and seemed a good idea to start fresh) and am now trying to re-add my favorite ports. Other ports install just fine.

Attachments (1)

main.log (30.8 KB) - added by mzwinderman@… 11 years ago.
logfile

Download all attachments as: .zip

Change History (9)

Changed 11 years ago by mzwinderman@…

Attachment: main.log added

logfile

comment:1 Changed 11 years ago by pixilla (Bradley Giesbrecht)

Cc: pixilla@… added
Owner: changed from macports-tickets@… to lockhart@…

Did you uninstall your previous SL MacPorts ports or rm them?

The Portfile runs these commands in the deactivate phase, you could try them manually and then finish your install:

sudo xmlcatmgr -c /opt/local/etc/xml/catalog remove nextCatalog /opt/local/share/xml/docbook/4.3/catalog.xml
sudo xmlcatmgr -s -c /opt/local/etc/sgml/catalog remove CATALOG /opt/local/share/xml/docbook/4.3/docbook.cat
sudo port install docbook-xml-4.3

If this works and you are installing other docbook-xml version you may need to run the same commands changing 4.3 to each respective version.

comment:2 in reply to:  1 ; Changed 11 years ago by mzwinderman@…

I did an uninstall of the ports, but not of MacPorts itself (I ran port uninstall installed), I then did a selfupdate.

The xmlcatmgr commands return "no matching entry". Strangely port install docbook-xml-4.3 now does not give errors:

--->  Computing dependencies for docbook-xml-4.3
--->  Cleaning docbook-xml-4.3
--->  Updating database of binaries: 100.0%
--->  Scanning binaries for linking errors: 100.0%
--->  No broken files found.

But on installing texlive I do get the following error:

--->  Staging docbook-xml-4.5 into destroot
--->  Installing docbook-xml-4.5 @5.0_1
--->  Activating docbook-xml-4.5 @5.0_1
Error: org.macports.activate for port docbook-xml-4.5 returned: command execution failed
Error: Failed to install docbook-xml-4.5

Uninstalling docbook-xml also gives an error, but subsequent reinstallation goes well.

Thanks for your quick reply!

Replying to pixilla@…:

Did you uninstall your previous SL MacPorts ports or rm them?

The Portfile runs these commands in the deactivate phase, you could try them manually and then finish your install:

sudo xmlcatmgr -c /opt/local/etc/xml/catalog remove nextCatalog /opt/local/share/xml/docbook/4.3/catalog.xml
sudo xmlcatmgr -s -c /opt/local/etc/sgml/catalog remove CATALOG /opt/local/share/xml/docbook/4.3/docbook.cat
sudo port install docbook-xml-4.3

If this works and you are installing other docbook-xml version you may need to run the same commands changing 4.3 to each respective version.

comment:3 in reply to:  2 Changed 11 years ago by pixilla (Bradley Giesbrecht)

Replying to mzwinderman@…:

I did an uninstall of the ports, but not of MacPorts itself (I ran port uninstall installed), I then did a selfupdate.

The xmlcatmgr commands return "no matching entry". Strangely port install docbook-xml-4.3 now does not give errors:

...

But on installing texlive I do get the following error:

...

Uninstalling docbook-xml also gives an error, but subsequent reinstallation goes well.

Permissions on /opt/local/etc/xml/catalog and /opt/local/etc/sgml/catalog?

Might be to late to check if the catalogs have been updated/overwritten.

comment:4 Changed 11 years ago by mzwinderman@…

Permissions are as follows:

ls -lah /opt/local/etc/xml/catalog
-rw-r--r--  1 root  admin   784B 16 nov 15:53 /opt/local/etc/xml/catalog
ls -lah /opt/local/etc/sgml/catalog
-rw-r--r--  1 root  admin   155B 16 nov 15:51 /opt/local/etc/sgml/catalog

As you can see in the timestamp, the catalogs have recently been updated. Is that what you were asking for?

comment:5 Changed 11 years ago by mzwinderman@…

Are there any other suggestions I could try?

comment:6 in reply to:  2 Changed 11 years ago by pixilla (Bradley Giesbrecht)

Replying to mzwinderman@…:

Uninstalling docbook-xml also gives an error, but subsequent reinstallation goes well.

Replying to mzwinderman@…:

Are there any other suggestions I could try?

What is the problem? Your previous reply suggests the reinstallation worked.

Is your problem only with uninstall?

Last edited 11 years ago by pixilla (Bradley Giesbrecht) (previous) (diff)

comment:7 Changed 11 years ago by mzwinderman@…

Hi, sorry for the confusing statement. Reinstallation of 'docbook-xml' seemed to go well, but I would still get the same error on reinstalling tex-live, again with 'docbook-xml'. So apparently installation did not go correctly.

In short: the problem was with both installing and uninstalling of docbook-xml.

In the mean time I have done:

port selfupdate
port upgrade outdated
port clean --all installed
port -f uninstall inactive
port clean --all all

And now installation of texlive (and thus docbook-xml) is going right. The first two statements I had already tried before, so one of the last three commands did the trick. I can't say which, as I ran them in sequence.

My problem is solved, but if you need any logfiles to see if you can find the rootcause for bughunting, I am willing to provide!

Thanks very much!

comment:8 in reply to:  7 Changed 11 years ago by pixilla (Bradley Giesbrecht)

Resolution: fixed
Status: newclosed

I am happy this issue is resolved for you.

The logs will be gone for the upgraded and cleaned ports unless the "-k" flag was added to the port command.

You can reopen this ticket if this same issue happens with future docbook-xml upgrade/installs.

Last edited 11 years ago by pixilla (Bradley Giesbrecht) (previous) (diff)
Note: See TracTickets for help on using tickets.