-
Notifications
You must be signed in to change notification settings - Fork 46
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
Optimize dependencies #94
base: master
Are you sure you want to change the base?
Conversation
thank you for your contribution. may be better to add option like --dev which will install dev binaries and by default will install prod binaries. thanks |
That's fine with me... going to add that option... |
@kguptasangoma What do you think of, instead of adding a new |
ideally testing environment means entire setup should be same except our packages so this should have prod binaries. dev binary is more like for someone who is creating development system , for example we create our 17 dev system so i think its better to have Please let me know if this makes sense to you ? |
OK, understood... I'll add a |
P.S. It would be a nice addition to have a |
Hi @kguptasangoma. I've reviewd all FreePBX package dependencies and pushed another commit to this PR in order to install only the minimum required packages for FreePBX 17 in production. With the proposed changes, a production installation (without the |
I've pushed another commit to add some comments on whose packages/modules are requiring some specific dependencies. I would like to suggest that, in future FreePBX releases, you would publish native Debian packages instead of building RPM and converting them to DEB using alien. If you build natively, the DEB packages would have built-in information on dependencies and would not require that you manually need to install them. Example for Debian's ffmpeg package (output provided by
were In your's custom build ffmpeg package
were there is no |
@JoseGoncalves Did you remove the --dev flag again with the latest commit? |
@raphaotten Yep. My bad... just fixed that. Thanks for reporting. |
Is there a discussion what's blocking this PR? Seems like a useful addition to the installer script to me. |
As I'm aware, there is nothing blocking this PR from being merged. |
Hi @kguptasangoma. Do you have any comments/concerns regarding this PR that prevent you from merging it? |
Hi @JoseGoncalves please give me some time to review this. no major concern as such, |
When installing FreePBX on a production machine, that will not be used to build packages, Debian development packages should not be installed.
This PR removes unnecessary build packages (
dpkg-dev
,build-essential
,pkg-config
,automake
,libtool
,autoconf
) and replaces development libraries with run-time packages.With this change, around 318 MB of storage space are saved, which could be relevant when installing FreePBX in some low resources SBC (like a Raspberry Pi Compute Module).