-
-
Notifications
You must be signed in to change notification settings - Fork 76
Optimize mono & dnf downloads #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| ENV MONO64_PREFIX=/root/dependencies/mono | ||
| rm -rf /root/${mono_version} | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MONO64_PREFIX deprecated and ignored by scons
|
|
||
| ENV MONO32_PREFIX=/root/dependencies/mono-32 | ||
| ENV MONO64_PREFIX=/root/dependencies/mono-64 | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MONO32/64_PREFIX deprecated and ignored by scons
| [Yy]* ) break;; | ||
| [Nn]* ) exit 1;; | ||
| * ) echo "Please answer yes or no.";; | ||
| esac |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now ./build.sh master mono-6.6.0.160 2019-08 bef1e6335812d32f8eab648c0228fc624b9f8357 will make (and check for) a folder called files/mono-2019-08-bef1e6. Also it will say (exists) if found, so you know it won't be downloaded again.
| patch -p1 < ${files_root}/patches/mono-unity-Clear-TLS-instead-of-aborting.patch | ||
| popd | ||
| fi | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-j 6 made a huge difference in total download time. Less timeout and waiting because it was downloading other modules while one was timing out.
|
Thanks! |
git applywith more reliablepatchShould address relevant notes in reference #38
Note:
dnf clean allbecamednf clean packagesto save dnf cache and only remove the packages. However the default dnf configuration doesn't save the packages. keepcache=false is the default and must be set true in/etc/dnf/dnf.conin order to save packages. Sodnf cleanis removed entirely everywhere.