Opened 11 years ago
Closed 11 years ago
#2526 closed defect (fixed)
Libraries are downloaded twice
Reported by: | Owned by: | Martin Sjölund | |
---|---|---|---|
Priority: | low | Milestone: | 1.9.1 |
Component: | Build Environment | Version: | trunk |
Keywords: | Cc: |
Description
A little while back the openmodelicalibraries was broken off from openmodelica-devel at least on the mac version. So there is a separate port for the libraries.
The issue is that it seems that the libraries are still included in the openmodelica-devel. And the libraries are a large part of the size of rather large download to build openmodelica.
So, now that the libraries are separate, and downloaded twice, the total download for building is nearly twice the size it had been, for a total of about 200meg to download.
As it all functions, this is just an annoyance, but it does add significant time to the download and the build.
Change History (9)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
I had looked through a few folders that appeared to be the same, but had not done a complete comparison. I guess I just happened to hit some of the overlap between the two.
But, you are right, that it would be nice to be able to just upgrade pieces that change, rather than downloading 200 meg every time anything changes. But, not a big deal.
Thanks,
comment:3 by , 11 years ago
Saved 19MB on removing unnecessary libraries. And macports should now be updated with the packages split like the Ubuntu packages (same package names, i.e., omlib-modelica-3.2.1). Package openmodelicalibraries (or openmodelica-devel+libraries) installs all of them.
Let's see if I broke anything in the process...
comment:4 by , 11 years ago
You almost got it. It appears to build and install fine. But, when I open OMEdit it fails to load any libraries at all.
It seems that the default setting is to open using MODELICAPATH which points to /opt/local/lib/omlibrary. But, the new set are now installed in /opt/local/lib/omlib
So, it seems that there just has to be a change in MODELICAPATH. I don't see a preference for that in OMEdit. Where is that being set?
comment:5 by , 11 years ago
I'll fix the path to the correct one. You can start by doing port uninstall openmodelicalibraries "omlib-*"
comment:8 by , 11 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:9 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
The libraries included in the openmodelica tarball has only a little overlap with the rest of the libraries. And some of the external libraries are built from these, so only very few libraries can actually be removed. I will remove those that can be though.
What would be nicer is splitting the libraries portfile into each individual package since then you can select only the ones you want and only update when they actually change. The source-file for each package is already generated and uploaded anyway so it's mostly about uploading all the required portfiles.