Skip to content
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

Offline build support needed #3432

Closed
xgqt opened this issue May 6, 2023 · 4 comments
Closed

Offline build support needed #3432

xgqt opened this issue May 6, 2023 · 4 comments
Labels
area-build Improvements in source-build's own build process untriaged

Comments

@xgqt
Copy link

xgqt commented May 6, 2023

Hello!

The Gentoo team attempts to package .NET from-source-build for the Gentoo Linux distribution.
We have encountered many problems with achieving our goal and the most prominent are the ones related to making the dotnet build requiring constant use of the network.

Could you give a example workflow (if possible) that could satisfy our need?
We can not use the network during build and the only time where it is allowed is for downloading a predefined set of tarballs/artifacts before the build.

See also:

@dotnet-issue-labeler dotnet-issue-labeler bot added area-build Improvements in source-build's own build process untriaged labels May 6, 2023
@mid-kid
Copy link

mid-kid commented May 7, 2023

This repository allows building a source tarball, that once built contains everything the compiler needs to bootstrap itself. See: https://src.fedoraproject.org/rpms/dotnet5.0/blob/f35/f/build-dotnet-tarball

Also, you're in the wrong repository for anything 6.0+. This repository only goes up to 5.0.

@xgqt
Copy link
Author

xgqt commented May 7, 2023

This repository allows building a source tarball, that once built contains everything the compiler needs to bootstrap itself. See: https://src.fedoraproject.org/rpms/dotnet5.0/blob/f35/f/build-dotnet-tarball

Also, you're in the wrong repository for anything 6.0+. This repository only goes up to 5.0.

Thanks a lot! I will look into the Fedora's solution.

@MichaelSimons
Copy link
Member

@xgqt - We support offline builds, see the instructions at https://github.com/dotnet/installer/blob/main/README.md#build-net-from-source-source-build. Note we are making a lot of investments in .net Source Build and things will be changing some in the next version (.NET 8.0).

@xgqt
Copy link
Author

xgqt commented May 9, 2023

I had successfully compiled dotnet from ebuild. Installer's README was indeed helpful but I couldn't get it to build on latest 7.0.X tag, I used the same version number as packaged in Fedora, that is 7.0.105.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-build Improvements in source-build's own build process untriaged
Projects
None yet
Development

No branches or pull requests

3 participants