Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#3106 closed defect (fixed)

Macport OM Install on upgrade fails

Reported by: Adam Dershowitz <dersh@…> Owned by: somebody
Priority: high Milestone:
Component: *unknown* Version: trunk
Keywords: Cc:

Description

I just attempted to upgrade from 24196_0 to 24230_0 using macports and it fails. The build seems to work fine, but then during the install phase it fails to find some files and gives an error.

command line shows this:

--->  Attempting to fetch openmodelica_24230.orig.tar.gz from http://build.openmodelica.org/apt/pool/contrib/
--->  Verifying checksums for openmodelica-devel                                     
--->  Extracting openmodelica-devel
--->  Configuring openmodelica-devel
--->  Building openmodelica-devel
--->  Staging openmodelica-devel into destroot
Error: org.macports.destroot for port openmodelica-devel returned: command execution failed
Please see the log file for port openmodelica-devel for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

Relevant part of the log file:

:info:destroot echo Installing OpenModelica...
:info:destroot Installing OpenModelica...
:info:destroot # Application directory (OSX)
:info:destroot if [ ".app" = ".app" ]; then cp -rp ./build/Applications/ /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/destroot/Applications/MacPorts/; fi
:info:destroot # Binaries
:info:destroot cp -a ./build/bin/* /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/destroot/opt/local/bin
:info:destroot # Libraries
:info:destroot cp -a ./build/lib/* /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/destroot/opt/local/lib/
:info:destroot # Includes
:info:destroot cp -a ./build/include/omc/* /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/destroot/opt/local/include/omc
:info:destroot # License
:info:destroot cp -p COPYING /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/destroot/opt/local/share/doc//omc/
:info:destroot # Documents
:info:destroot cp -p ./build/share/doc/omc/*.pdf /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/destroot/opt/local/share/doc//omc/
:info:destroot cp -p ./build/share/doc/omc/*.txt /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/destroot/opt/local/share/doc//omc/
:info:destroot cp: ./build/share/doc/omc/*.txt: No such file or directory
:info:destroot make: *** [install] Error 1
:info:destroot make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_24230'
:info:destroot Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_24230" && /usr/bin/make -w install DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/destroot 
:info:destroot Exit code: 2
:error:destroot org.macports.destroot for port openmodelica-devel returned: command execution failed
:debug:destroot Error code: CHILDSTATUS 75004 2
:debug:destroot Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec destroot"
    (procedure "portdestroot::destroot_main" line 2)
    invoked from within
"portdestroot::destroot_main org.macports.destroot"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:info:destroot Warning: targets not executed for openmodelica-devel: org.macports.install org.macports.destroot
:notice:destroot Please see the log file for port openmodelica-devel for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/main.log

Change History (2)

comment:1 by Martin Sjölund, 10 years ago

Milestone: Future
Resolution: fixed
Status: newclosed

Fixed in r24232.

comment:2 by Adam Dershowitz <dersh@…>, 10 years ago

Thanks. Works now.

Note: See TracTickets for help on using tickets.