-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Install native packages #4693
Install native packages #4693
Conversation
- similar as spksrc.install-resources.mk but for native packages - update installation of native dotnet packages - typos
- avoid compilation of native go and bootstrap with go 1.4
bb4ca34
to
d098cd1
Compare
Just a thought, what if instead we add deb build dependencies, e.g. force Something like: |
IMHO we have specific versions in native packages only. As the debian cmake package is outdated (we already have cmake in the docker image) we added newer cmake to native. I do not like to use apt-get within the container
|
We could probably use backports for that... And to that effect allow adding ppa or other channels as needed.
Unless the cache is entirely empty (and even then) we can specify the exact version to use, thus, avoiding the
A simple sudo can do the trick at docker image creation while making sure our user is part of the sudo group:
Just saying it may be best relying more on Debian packages as much as possible rather than downloading pre-built tar-balls when we can avoid it. |
- update native/cmake to v3.20.5 - use installer script to avoid building from sources
- update dotnet-sdk-5.0 to v5.0.7, SDK 5.0.301 - udpate dotnet-sdk-3.1 to v3.1.16, SDK 3.1.410
- only protoc (the protobuf compiler) is required as native to build cross/protobuf - avoid compilation by installation of protoc binary in native/protoc
- update native/nodejs and use spksrc.native-install.mk
- use linux-x86_64 package to avoid building from source
Now all native packages with downloadable binaries are installed instead of compiled from sources. |
Motivation: Omit compilation of native packages that support direct installation for linux amd64/x86_64
Linked issues: #4674
Checklist
all-supported
completed successfullyRemarks
We introduced native packages as we do not want to blow up the spksrc docker image with all the tools needed to build different packages.
Until now most of the native packages are compiled for the target linux system (debian, in the spksrc docker image) on demand, with the exception for the dotnet sdk packages.
With the introduction of native/cmake (#4674) I noticed that the build of cmake takes a lot of time (and resources). The (powerful) github build action environment takes about 7 minutes to build cmake form sources (as of June 2021), and my personal build system more than 20 min.
The download and installation (i.e. extraction) takes only a tiny little bit of resources.
This was the kick off for this PR.