Opened 6 years ago
Closed 6 years ago
#5500 closed defect (fixed)
Macports openmodelicalibraries upgrade is failing
Reported by: | Adam Dershowitz | Owned by: | Martin Sjölund |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Build Environment | Version: | |
Keywords: | Cc: |
Description
I've recently seen a new problem with openmodelicalibraries. This port installs all of the available libraries. These used to install and upgrade correctly. But, over the last few days, some upgrades have stopped working. It seems that there is a file name conflict. Here are a few examples:
---> Attempting to fetch omlib-advancednoise_1.0.1-rc1.orig.tar.gz from https://build.openmodelica.org/apt/pool/libraries/ ---> Verifying checksums for omlib-advancednoise ---> Extracting omlib-advancednoise ---> Configuring omlib-advancednoise ---> Building omlib-advancednoise ---> Staging omlib-advancednoise into destroot ---> Installing omlib-advancednoise @1.0.1-rc1_0 ---> Activating omlib-advancednoise @1.0.1-rc1_0 Error: Failed to activate omlib-advancednoise: Image error: /opt/local/lib/omlibrary/AdvancedNoise 1.0.1/Distributions/Bates/cumulative.mo is being used by the active omlib-advancednoise-1.0.1 port. Please deactivate this port first, or use 'port -f activate omlib-advancednoise' to force the activation. Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_omlib-advancednoise/omlib-advancednoise/main.log for details. Error: Problem while installing omlib-advancednoise Error: Follow https://guide.macports.org/#project.tickets to report a bug.
---> Attempting to fetch omlib-aixlib_0.7.3-8-g15f52be.orig.tar.gz from https://build.openmodelica.org/apt/pool/libraries/ ---> Verifying checksums for omlib-aixlib ---> Extracting omlib-aixlib ---> Configuring omlib-aixlib ---> Building omlib-aixlib ---> Staging omlib-aixlib into destroot ---> Installing omlib-aixlib @0.7.3-8-g15f52be_0 ---> Activating omlib-aixlib @0.7.3-8-g15f52be_0 Error: Failed to activate omlib-aixlib: Image error: /opt/local/lib/omlibrary/AixLib 0.7.3/.copiedFiles.txt is being used by the active omlib-aixlib-0.7.3 port. Please deactivate this port first, or use 'port -f activate omlib-aixlib' to force the activation. Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_omlib-aixlib/omlib-aixlib/main.log for details. Error: Problem while installing omlib-aixlib Error: Follow https://guide.macports.org/#project.tickets to report a bug.
For omlib-aixlib, I decided to try to force the activation, on the hope that it would just solve the problem. But macports then made copies of files:
$ sudo port -f activate omlib-aixlib ---> Activating omlib-aixlib @0.7.3-8-g15f52be_0 Warning: File /opt/local/lib/omlibrary/AixLib 0.7.3/.copiedFiles.txt already exists. Moving to: /opt/local/lib/omlibrary/AixLib 0.7.3/.copiedFiles.txt.mp_1558441097. Warning: File /opt/local/lib/omlibrary/AixLib 0.7.3/Airflow/AirHandlingUnit/AHU.mo already exists. Moving to: /opt/local/lib/omlibrary/AixLib 0.7.3/Airflow/AirHandlingUnit/AHU.mo.mp_1558441097. Warning: File /opt/local/lib/omlibrary/AixLib 0.7.3/Airflow/AirHandlingUnit/BaseClasses/PartialAHU.mo already exists. Moving to: /opt/local/lib/omlibrary/AixLib 0.7.3/Airflow/AirHandlingUnit/BaseClasses/PartialAHU.mo.mp_1558441097. Warning: File /opt/local/lib/omlibrary/AixLib 0.7.3/Airflow/AirHandlingUnit/BaseClasses/package.mo already exists. Moving to: /opt/local/lib/omlibrary/AixLib 0.7.3/Airflow/AirHandlingUnit/BaseClasses/package.mo.mp_1558441097. Warning: File /opt/local/lib/omlibrary/AixLib 0.7.3/Airflow/AirHandlingUnit/BaseClasses/package.order already exists. Moving to: /opt/local/lib/omlibrary/AixLib 0.7.3/Airflow/AirHandlingUnit/BaseClasses/package.order.mp_1558441097. Warning: File /opt/local/lib/omlibrary/AixLib 0.7.3/Airflow/AirHandlingUnit/Examples/AHU.mo already exists. Moving to: /opt/local/lib/omlibrary/AixLib 0.7.3/Airflow/AirHandlingUnit/Examples/AHU.mo.mp_1558441097. Warning: File /opt/local/lib/omlibrary/AixLib 0.7.3/Airflow/AirHandlingUnit/Examples/package.mo already exists. Moving to: /opt/local/lib/omlibrary/AixLib 0.7.3/Airflow/AirHandlingUnit/Examples/package.mo.mp_1558441097. Warning: File /opt/local/lib/omlibrary/AixLib 0.7.3/Airflow/AirHandlingUnit/Examples/package.order already exists. Moving to: /opt/local/lib/omlibrary/AixLib 0.7.3/Airflow/AirHandlingUnit/Examples/package.order.mp_1558441097. Warning: File /opt/local/lib/omlibrary/AixLib 0.7.3/Airflow/AirHandlingUnit/NoAHU.mo already exists. Moving to: /opt/local/lib/omlibrary/AixLib 0.7.3/Airflow/AirHandlingUnit/NoAHU.mo.mp_1558441097. ... ...
---> Attempting to fetch omlib-annex60_1.0.0.orig.tar.gz from https://build.openmodelica.org/apt/pool/libraries/ ---> Verifying checksums for omlib-annex60 ---> Extracting omlib-annex60 ---> Configuring omlib-annex60 ---> Building omlib-annex60 ---> Staging omlib-annex60 into destroot ---> Installing omlib-annex60 @1.0.0_0 ---> Activating omlib-annex60 @1.0.0_0 Error: Failed to activate omlib-annex60: Image error: /opt/local/lib/omlibrary/Annex60 1.0.0/Airflow/Multizone/BaseClasses/DoorDiscretized.mo is being used by the active omlib-annex60-1.0.0 port. Please deactivate this port first, or use 'port -f activate omlib-annex60' to force the activation. Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_omlib-annex60/omlib-annex60/main.log for details. Error: Problem while installing omlib-annex60 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
So, it seems that the openmodelicalibraries and the port for each library are no longer named in a correct way to just upgrade the old version with a new version. Instead, the upgrade causes a conflict with the existing library port.
Change History (4)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
In order to get OMEdit to again work with the included basic examples, I did this, and it worked:
sudo port install omlib-modelicaservices-3.2.2 omlib-modelicaservices-3.2.3 omlib-complex-3.2.3 omlib-complex-3.2.2 omlib-modelicareference omlib-complex-trunk
I wasn't sure which versions were used by default. So, this is a work around. Any other libraries can then be added manually as well.
comment:3 by , 6 years ago
It seems https://github.com/OpenModelica/OMLibraries/commit/1b5e345af0b5b8fad59e6227a208bf9a4d5dcb5a broke something for MacPorts so the version number is stripped.
comment:4 by , 6 years ago
Milestone: | Future |
---|---|
Resolution: | → fixed |
Status: | new → closed |
I thought that perhaps what happened it that the library ports had just been renamed, for example from omlib-annex60-1.0.0 to omlib-annex (with a version number). This is probably a good thing.
I decided to uninstall openmodelicalibraries and omlib* ports. I figured I would just reinstall them and hopefully that would correct this problem. Instead, when I try to install I get this:
Perhaps omlib-modelica was accidentally renamed and that one really should have remained omlib-modelica-3.2.2?
At the moment I have no installed libraries, and I'm not sure how to fix that.