B
BlueBuild•2mo ago
benoit_lx

What is the best way to install programs from source ?

I wanted to try the Ly login manager https://github.com/fairyglade/ly, but I'm not sure how I can install this since it's not like an rpm or a flatpak. Could it be a solution to make a script that will run at build-time and do the following : - install required dependencies for compilation (zig, libc ...) - clone the repository - compile the programs - copy binaries and systemd file to the right folder
Solution:
You are looking for Stages
BlueBuild
Stages
A stage is a separate image build flow executed in parallel with the main build.
Jump to solution
59 Replies
Solution
xyny
xyny•2mo ago
You are looking for Stages
BlueBuild
Stages
A stage is a separate image build flow executed in parallel with the main build.
benoit_lx
benoit_lx•2mo ago
oh, sorry, I missed this page ^^ I will take a look at it
xyny
xyny•2mo ago
Also, reading Ly's README;
Warning: You may encounter issues with SELinux on Fedora. It is recommended to add a rule for Ly as it currently does not ship one.
you may need to write a rule for SELinux
benoit_lx
benoit_lx•2mo ago
yes I will deal with that later but thanks It looks amazing 😇
Luke Skywunker
Luke Skywunker•2mo ago
Make sure to use the unstable_cli option for the github action
benoit_lx
benoit_lx•2mo ago
Does the src and dest option from the copy module support syntax like /etc/ly/*.sh ?
fiftydinar
fiftydinar•2mo ago
no
Luke Skywunker
Luke Skywunker•2mo ago
Umm it supports whatever the COPY instruction supports And I think it supports wildcard
benoit_lx
benoit_lx•2mo ago
how to do so in local with the bluebuild cli ? (I don't understand the or using the stages feature when compiling in the doc)
Luke Skywunker
Luke Skywunker•2mo ago
Right So locally, you will need to install it from source. Do you have cargo installed?
Luke Skywunker
Luke Skywunker•2mo ago
You can install it with rustup https://rustup.rs/
rustup.rs - The Rust toolchain installer
The Rust toolchain installer
benoit_lx
benoit_lx•2mo ago
no
Luke Skywunker
Luke Skywunker•2mo ago
Then you can run cargo install --all-features blue-build
benoit_lx
benoit_lx•2mo ago
there was no error just using bluebuild build (I think it could have thrown a warning or an erro) I can do this in a distrobox ?
Luke Skywunker
Luke Skywunker•2mo ago
Sure? You would still need docker to run the build Our images aren't distrobox ready. I have an issue out for it
Want results from more Discord servers?
Add your server