Opened 21 years ago

Closed 19 years ago

#1487 closed defect (fixed)

maxima does not build (destroot_finish error)

Reported by: gwright@… Owned by: gwright@…
Priority: Normal Milestone:
Component: base Version: 1.0
Keywords: Cc:
Port:

Description

Change History (4)

comment:1 Changed 21 years ago by gwright@…

The maxima port no longer builds from a clean start (no maxima or maxima-lisp installed). It seems that in destroot_finish the successfully installed maxima-lisp port is mistaken for maxima. This is probably caused by the hyphen in the port name.

The error:

acc@pegasus:~> sudo port install maxima

  • ---> Installing maxima-lisp
  • ---> Fetching maxima
  • ---> Verifying checksum for maxima
  • ---> Extracting maxima
  • ---> Configuring maxima
  • ---> Building maxima with target all
  • ---> Staging maxima into destroot

Error: Target com.apple.install returned: Another version of Port maxima is already registered as installed. Please uninstall the port first.

In more detail (just the end of the log):

/bin/sh ../mkinstalldirs /Users/gwright/src/darwinports/dports/math/maxima/work/destroot make[2]: Nothing to be done for `install-exec-am'. /bin/sh ./mkinstalldirs /Users/gwright/src/darwinports/dports/math/maxima/work/destroot DEBUG: Executing destroot_finish Error: Target com.apple.install returned: Another version of Port maxima is already registered as installed. Please uninstall the port first. Warning: the following items did not execute (for maxima): com.apple.install

comment:2 Changed 21 years ago by ms@…

This is a problem with the way base/src/darwinports1.0/darwinports.tcl checks to see if a port is already installed.

The problem occurs in dportregistry::exists, where a file search in the /opt/local/var/db/dports/ receipts directory for files named ${packagename}-*

Unfortunately for maxima, this finds maxima-lisp-2.29, which causes dports to think it is already installed.

A workaround that "worked for me" is to execute "port install maxima". This will eventually fail with the error described previously. cd into /opt/local/var/db/dports/receipts and "mv maxima-lisp-2.29.bz2 maxima_lisp-2.29.bz2". Re-execute "port install maxima". All is good again (or at least it was for me). You might also like to "mv maxima_lisp-2.29.bz2 maxima-lisp-2.29.bz2" once finished.

comment:3 Changed 21 years ago by olegb@…

Owner: changed from darwinports-bugs@… to gwright@…

is this still a problem?

re-assigning to maintainer.

comment:4 Changed 19 years ago by gwright@…

Resolution: fixed
Status: newclosed

Closing an ancient bug report. There may still be bugs in maxima, but this isn't one of them any more.

-Greg

Note: See TracTickets for help on using tickets.